/* Noroshi · The Clan War: the site's lacquer and gold, six banners on a field at night */
@font-face { font-family: "Shippori Mincho B1"; font-weight: 700; font-display: block; src: url(../fonts/shippori-clans-700.woff2) format("woff2"); unicode-range: U+3007, U+30A2, U+30A4, U+30A7, U+30AD, U+30AF, U+30B3, U+30B5, U+30B7, U+30B8, U+30BD, U+30C1, U+30C3, U+30C8, U+30C9, U+30CA, U+30D3, U+30E0, U+30E3, U+30E5, U+30E9, U+30EA, U+30EB, U+30F3, U+30FC, U+4E00, U+4E03, U+4E09, U+4E5D, U+4E8C, U+4E94, U+5148, U+516B, U+516D, U+52DD, U+5341, U+5343, U+5408, U+56DB, U+56DE, U+6226, U+767E, U+7B2C, U+9663; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 800; font-display: block; src: url(../fonts/shippori-clans-800.woff2) format("woff2"); unicode-range: U+3007, U+30A2, U+30A4, U+30A7, U+30AD, U+30AF, U+30B3, U+30B5, U+30B7, U+30B8, U+30BD, U+30C1, U+30C3, U+30C8, U+30C9, U+30CA, U+30D3, U+30E0, U+30E3, U+30E5, U+30E9, U+30EA, U+30EB, U+30F3, U+30FC, U+4E00, U+4E03, U+4E09, U+4E5D, U+4E8C, U+4E94, U+5148, U+516B, U+516D, U+52DD, U+5341, U+5343, U+5408, U+56DB, U+56DE, U+6226, U+767E, U+7B2C, U+9663; }

html, body.war { height: auto; }
body.war { overflow-x: hidden; overflow-y: auto; min-height: 100vh; font-size: 17px; }
.war .bar { position: sticky; top: 0; }
.war-main { position: relative; z-index: 2; height: auto; }
[hidden] { display: none !important; }

/* the night over the field, with signal smoke rising */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 108%, rgba(179, 48, 31, .22), rgba(179, 48, 31, 0) 60%), radial-gradient(90% 60% at 80% -10%, rgba(210, 170, 92, .07), rgba(210, 170, 92, 0) 60%), linear-gradient(#0d0b09, #15110e 60%, #1b1511); }
.sky i { position: absolute; bottom: 18vh; width: 22vw; max-width: 340px; aspect-ratio: 1 / 3.4; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(237, 230, 218, .07), rgba(237, 230, 218, 0) 70%); filter: blur(18px); transform-origin: 50% 100%; animation: smoke 26s linear infinite; opacity: 0; }
.sky i:nth-child(1) { left: 4%; animation-delay: -3s; } .sky i:nth-child(2) { left: 24%; animation-delay: -11s; animation-duration: 31s; }
.sky i:nth-child(3) { left: 47%; animation-delay: -19s; } .sky i:nth-child(4) { left: 66%; animation-delay: -7s; animation-duration: 29s; }
.sky i:nth-child(5) { left: 86%; animation-delay: -15s; }
@keyframes smoke { 0% { transform: translateY(18vh) scale(.6, .5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-70vh) translateX(6vw) scale(1.4, 1.2); opacity: 0; } }

.wallet { cursor: pointer; border: 1px solid rgba(210, 170, 92, .55); background: rgba(18, 15, 13, .55); color: var(--gold-hi); padding: 11px 18px; border-radius: 2px; font: 700 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, border-color .3s; }
.wallet:hover, .wallet:focus-visible { background: rgba(210, 170, 92, .14); border-color: var(--gold); }
.wallet.on { color: var(--bone); border-color: rgba(210, 170, 92, .25); text-transform: none; letter-spacing: .06em; font-weight: 500; }
.ribbon { margin: 18px var(--pad) 0; padding: 10px 16px; border: 1px dashed rgba(210, 170, 92, .45); color: var(--gold-hi); font: 500 13px/1.5 var(--sans); }

/* heading and the prize */
.head { padding: clamp(36px, 7vh, 80px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px; align-items: end; max-width: 1500px; margin: 0 auto; }
.head .pg-eye { grid-column: 1 / -1; }
.head .pg-eye [lang="ja"], #round-k { font: 700 15px/1 var(--serif); letter-spacing: .14em; color: var(--gold-hi); }
#round-k:empty { display: none; }
.head h1 { margin: 0; display: flex; align-items: center; gap: 24px; font-weight: 800; }
.h-k { font-size: clamp(66px, 9vw, 132px); line-height: .9; letter-spacing: .02em; color: var(--bone); text-shadow: 0 0 46px rgba(179, 48, 31, .35); }
.h-l { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; color: var(--bone-dim); font-weight: 700; max-width: 7.5em; }
.lede { grid-column: 1; margin: 4px 0 0; max-width: 34em; color: var(--bone-dim); font: 500 19px/1.6 var(--serif); }
.prize { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: repeat(3, auto); padding: 0; }
.prize > div { padding: 18px 24px 16px; display: flex; flex-direction: column; justify-content: flex-end; min-width: 150px; }
.prize > div + div { border-left: 1px solid rgba(210, 170, 92, .16); }
.lbl { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cinder); margin-bottom: 8px; max-width: 14em; }
.prize b { font-weight: 800; font-size: 30px; line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.prize small { font: 700 11px/1 var(--sans); letter-spacing: .2em; color: var(--cinder); margin-top: 6px; }
.prize-a b { font-size: 46px; background: linear-gradient(180deg, #fbefc8, #e2bd6b 55%, #a87b2c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(210, 170, 92, .25)); }
.prize-b b { font-size: 26px; }

/* the claim window and other notices */
.notice { max-width: 1500px; margin: 30px auto 0; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 1px solid rgba(212, 71, 47, .55); background: linear-gradient(90deg, rgba(179, 48, 31, .26), rgba(179, 48, 31, .06)); width: calc(100% - 2 * var(--pad)); }
.notice p { margin: 0; font-size: 17px; }
.notice b { color: var(--gold-hi); font-weight: 800; }
.notice .when { font: 700 13px/1 var(--sans); letter-spacing: .14em; color: var(--bone); white-space: nowrap; font-variant-numeric: tabular-nums; }
.notice.quiet { border-color: rgba(210, 170, 92, .2); background: rgba(18, 15, 13, .55); }

/* the field and the six banners */
.field { position: relative; margin-top: clamp(28px, 5vh, 60px); padding: 0 var(--pad); }
.clans { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 26px); max-width: 1500px; margin: 0 auto; }
.ground { position: absolute; z-index: 0; left: 0; right: 0; top: 330px; height: 230px; pointer-events: none; background: radial-gradient(60% 100% at 18% 100%, #1e1814 60%, rgba(30, 24, 20, 0) 61%), radial-gradient(70% 90% at 70% 100%, #191410 60%, rgba(25, 20, 16, 0) 61%), linear-gradient(rgba(18, 15, 13, 0), #120f0d 70%); opacity: .9; }
.clan { --cloth: #333; --on: var(--bone); --edge: rgba(0, 0, 0, .35); position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.clan:nth-child(1) { --i: 0; } .clan:nth-child(2) { --i: 1; } .clan:nth-child(3) { --i: 2; } .clan:nth-child(4) { --i: 3; } .clan:nth-child(5) { --i: 4; } .clan:nth-child(6) { --i: 5; }
.c-btc  { --cloth: #c98a1e; --on: #1c1612; --edge: rgba(80, 45, 0, .35); }
.c-eth  { --cloth: #1f2f8a; --on: #ede6da; }
.c-sol  { --cloth: #6a236a; --on: #ede6da; }
.c-bnb  { --cloth: #141312; --on: #d2aa5c; --edge: rgba(210, 170, 92, .25); }
.c-link { --cloth: #d8d2c4; --on: #1f2f8a; --edge: rgba(0, 0, 0, .18); }
.c-zec  { --cloth: #a3121c; --on: #ede6da; }
.nobori { position: relative; width: min(132px, 100%); height: 380px; transition: transform .9s var(--ease), filter .9s var(--ease); }
.pole { position: absolute; left: 0; top: -14px; bottom: -150px; width: 7px; border-radius: 3px; background: linear-gradient(90deg, #0b0908, #3b2f25 45%, #120f0d); box-shadow: 1px 0 0 rgba(0, 0, 0, .5); }
.pole::before { content: ""; position: absolute; left: -3px; top: -10px; width: 13px; height: 14px; border-radius: 50% 50% 3px 3px; background: radial-gradient(60% 60% at 40% 35%, #f1d590, #a9822f 60%, #4b3612); }
.bar2 { position: absolute; left: 0; top: 0; width: calc(100% + 8px); height: 6px; border-radius: 3px; background: linear-gradient(#3b2f25, #0b0908); z-index: 2; }
.cloth { position: absolute; left: 6px; right: 0; top: 4px; bottom: 0; overflow: hidden; transform-origin: 0 0; animation: sway 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s);
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 18%, rgba(255, 255, 255, .06) 46%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .22)), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, rgba(0, 0, 0, .03) 2px 4px), var(--cloth);
  box-shadow: inset 0 0 0 1px var(--edge), 0 18px 40px rgba(0, 0, 0, .45); }
.cloth::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 9px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 22px, rgba(0, 0, 0, .55) 22px 24px, rgba(255, 255, 255, .12) 24px 30px, rgba(0, 0, 0, .55) 30px 32px, rgba(0, 0, 0, 0) 32px 44px); }
.cloth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, 0) 60%); background-size: 260% 100%; animation: sheen 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
@keyframes sway { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(1.1deg) scaleX(.985); } }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.mon { position: absolute; left: 50%; top: 22px; transform: translateX(-46%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--on); box-shadow: inset 0 0 0 4px var(--cloth), inset 0 0 0 5px var(--on); opacity: .95; }
.mon span { font: 800 15px/1 var(--serif); letter-spacing: .04em; color: var(--on); }
.cloth h3 { position: absolute; left: 50%; top: 104px; transform: translateX(-46%); margin: 0; writing-mode: vertical-rl; text-orientation: upright; font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: .1em; color: var(--on); white-space: nowrap; }
.cloth h3.long { font-size: 21px; letter-spacing: .02em; }
.seal { position: absolute; right: 8px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; color: #f6eadb; background: var(--shu); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transform: rotate(-4deg) scale(.6); opacity: 0; transition: opacity .6s, transform .6s var(--ease); }
.clan.lead .nobori { transform: translateY(-16px); filter: drop-shadow(0 0 26px rgba(210, 170, 92, .35)); }
.clan.lead .seal { opacity: 1; transform: rotate(-4deg) scale(1); }

/* the tag under each banner: a lacquer plaque */
.tag { position: relative; z-index: 2; width: 100%; max-width: 210px; margin-top: 22px; padding: 16px 14px 12px; text-align: center; color: var(--bone);
  background: linear-gradient(160deg, rgba(255, 236, 205, .06), rgba(255, 236, 205, 0) 45%), linear-gradient(180deg, #1a1511, #110d0a); border: 1px solid rgba(210, 170, 92, .2); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 232, 190, .07); }
.tag::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--cloth); box-shadow: inset 0 -1px 0 var(--edge); }
.tag .nm { margin: 2px 0 4px; font: 700 11.5px/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--cinder); }
.tag .chg { margin: 0 0 10px; font-weight: 800; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--bone); }
.tag .chg.up { color: #e9c477; }
.tag .chg.down { color: #ec8f79; }
.tag .chg.off { font-size: 15px; color: var(--cinder); padding: 8px 0 4px; }
.tag .row { margin: 0; padding: 7px 0; border-top: 1px solid rgba(210, 170, 92, .14); font: 500 12.5px/1.35 var(--sans); color: var(--cinder); }
.tag .row b { display: block; font: 800 19px/1.15 var(--serif); color: var(--bone); font-variant-numeric: tabular-nums; }
.tag .row.small { font-size: 12px; }
.clan.lead .tag { border-color: rgba(210, 170, 92, .7); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .95), 0 0 34px -6px rgba(210, 170, 92, .35), inset 0 1px 0 rgba(255, 232, 190, .1); }
.clan.lead .tag::after { content: "Leading"; position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 4px 10px 3px; font: 700 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #1a120a; background: linear-gradient(#ecce8a, #b98d3e); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); white-space: nowrap; }

/* your warriors, the rules, the chronicle */
.mine { max-width: 1500px; margin: clamp(56px, 9vh, 100px) auto 0; width: calc(100% - 2 * var(--pad)); }
.mine-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.mine h2, .cols h2 { margin: 0 0 12px; font: 800 clamp(26px, 2.4vw, 36px)/1.15 var(--serif); color: var(--bone); }
.mine-top p:not(.band-h) { margin: 0; color: var(--cinder); font: 400 14.5px/1.55 var(--sans); max-width: 40em; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-shu { background: linear-gradient(180deg, #d4472f, #a8291a); color: #fff6ea; border: 1px solid #df5a40; font-weight: 700; box-shadow: 0 12px 30px -14px rgba(212, 71, 47, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-shu:hover { transform: translateY(-1px); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 26px; margin-top: 18px; }
.group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cinder); }
.group h3 i { width: 14px; height: 14px; border-radius: 50%; background: var(--cloth); box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 1px rgba(210, 170, 92, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; flex-direction: column; gap: 3px; padding: 8px 11px 7px; min-width: 94px; border: 1px solid rgba(210, 170, 92, .18); background: rgba(255, 240, 215, .025); }
.chip b { font: 800 16px/1 var(--serif); color: var(--bone); }
.chip span { font: 500 11px/1.25 var(--sans); color: var(--cinder); }
.chip.fight { border-color: rgba(210, 170, 92, .55); background: rgba(210, 170, 92, .08); }
.chip.fight span { color: var(--gold-hi); }
.chip.win { border-color: #df5a40; background: rgba(179, 48, 31, .16); }
.chip.win span { color: #f3b7a6; }
.chip.out span { color: #ec8f79; }
.empty { margin: 8px 0 0; color: var(--cinder); font: 500 15px/1.5 var(--sans); }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); max-width: 1500px; margin: clamp(48px, 8vh, 90px) auto 0; width: calc(100% - 2 * var(--pad)); padding-bottom: clamp(70px, 11vh, 130px); }
.rules ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 12px 0 12px 48px; border-top: 1px solid rgba(210, 170, 92, .14); font: 500 16.5px/1.55 var(--serif); color: var(--bone-dim); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; font: 800 14px/1 var(--serif); color: var(--gold-hi); border: 1px solid rgba(210, 170, 92, .55); border-radius: 50%; }
.past ol { margin: 6px 0 0; padding: 0; list-style: none; }
.past li { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; padding: 12px 0; border-top: 1px solid rgba(210, 170, 92, .14); }
.past .pn { grid-row: span 2; font: 800 15px/1 var(--serif); color: var(--gold); padding-top: 3px; white-space: nowrap; }
.past .pw { font-weight: 800; font-size: 18px; line-height: 1.3; display: flex; align-items: center; gap: 9px; color: var(--bone); }
.past .pw i { width: 12px; height: 12px; border-radius: 50%; background: var(--cloth) !important; box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 1px rgba(210, 170, 92, .25); }
.past .pd { font: 400 13px/1.45 var(--sans); color: var(--cinder); }
.war-links { margin: 0; }
.war-links:empty { display: none; }
.war-links a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid rgba(210, 170, 92, .3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 20px); max-width: min(560px, calc(100vw - 32px)); padding: 13px 18px; background: rgba(18, 15, 13, .96); border: 1px solid rgba(210, 170, 92, .5); color: var(--bone); font: 500 14px/1.45 var(--sans); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(212, 71, 47, .8); }
.war .foot { z-index: 2; }

@media (max-width: 1100px) {
  .head { grid-template-columns: 1fr; }
  .prize { grid-column: 1; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .prize-a { grid-column: 1 / -1; border-bottom: 1px solid rgba(210, 170, 92, .16); }
  .prize > div + div { border-left: 0; }
  .prize-c { border-left: 1px solid rgba(210, 170, 92, .16) !important; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px), (max-aspect-ratio: 9 / 10) {
  body.war { font-size: 16px; }
  .war .bar { position: sticky; }
  .h-k { font-size: 72px; }
  .lede { font-size: 16.5px; }
  .field { padding: 0; }
  .clans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; padding: 26px 9vw 18px; scrollbar-width: none; }
  .clans::-webkit-scrollbar { display: none; }
  .clan { flex: 0 0 41vw; scroll-snap-align: center; }
  .nobori { height: 300px; width: 104px; }
  .mon { width: 52px; height: 52px; top: 16px; }
  .mon span { font-size: 13px; }
  .cloth h3 { top: 84px; font-size: 20px; }
  .cloth h3.long { font-size: 17px; }
  .tag { padding: 14px 10px 10px; }
  .tag .chg { font-size: 25px; }
  .ground { top: 270px; }
  .prize > div { padding: 14px 16px; min-width: 0; }
  .prize-a b { font-size: 40px; }
  .prize-b b { font-size: 20px; white-space: nowrap; }
  .wallet { padding: 10px 12px; letter-spacing: .12em; }
  .war .foot { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky i, .cloth, .cloth::after { animation: none; }
}
