:root {
  --paper: #F2F1ED;
  --ink: #111111;
  --ink2: #3A3A37;
  --mute: #76756F;
  --line: #D8D6CF;
  --hair: #E7E5DF;
  --signal: #E5372B;
  --board: #F5F3EE;
  --gk: #D99A00;
  --df: #2F6FD6;
  --mf: #1E9E6A;
  --fw: #E5372B;
  --club: #3BA0D9;
  --on: #FFFFFF;
  --stripe: #3289ba;
  --ff: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --fd: "Dela Gothic One", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; height: 100% }
body { background: var(--paper); color: var(--ink); font-family: var(--ff); font-size: 14px; line-height: 1.5; font-feature-settings: "palt" 1; height: 100%; overflow: hidden }
button, select, input { font: inherit; color: inherit }
button { -webkit-tap-highlight-color: transparent }
.app { position: relative; max-width: 520px; height: 100%; height: 100dvh; margin: 0 auto; background: #fff; overflow: hidden; user-select: none; -webkit-user-select: none }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .12) } }
.scr { position: absolute; inset: 0; display: none; flex-direction: column; background: #fff }
.scr.on { display: flex }
.scr.tint { background: var(--club) repeating-linear-gradient(-24deg, transparent 0 46px, var(--stripe) 46px 60px); color: var(--on) }
.bar { padding: max(12px, env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--hair); min-height: 58px; flex: none }
.bar h1 { font-size: 17px; font-weight: 800; letter-spacing: -.02em }
.bar h2 { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tint .bar { border-bottom: 1px solid color-mix(in srgb, var(--on) 25%, transparent) }
.bar .back { width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; margin-left: -10px; color: inherit }
.bar .st { font-size: 11px; font-weight: 600; padding: 2px 8px; border: 1px solid currentColor; border-radius: 20px; white-space: nowrap }
.body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain }
.pad { padding: 16px }
.foot { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: #fff; flex: none }
.tint .foot { background: transparent; border-top: 1px solid color-mix(in srgb, var(--on) 25%, transparent) }
.go { width: 100%; height: 52px; border: 0; border-radius: 6px; background: #111; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px }
.tint .go { background: var(--on); color: var(--club) }
.go:disabled { opacity: .45; cursor: default }
a.go { text-decoration: none }
.mode-h { font-size: 28px; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; margin: 12px 0 24px }
.mbtn { display: grid; grid-template-columns: 40px 1fr 16px; gap: 4px 12px; width: 100%; text-align: left; background: #fff; border: 0; border-top: 2px solid #111; padding: 18px 0; cursor: pointer; align-items: center }
.mbtn + .mbtn { border-top: 1px solid #111 }
.mbtn .i { font-size: 12px; font-weight: 700; color: var(--mute); align-self: start; padding-top: 4px }
.mbtn strong { font-size: 21px; font-weight: 800; display: block; line-height: 1.3 }
.mbtn span.d { font-size: 12px; color: var(--mute); display: block }
.mbtn .ar { font-size: 18px }
.rule { border-top: 1px solid #111; margin-bottom: 16px }
.resume { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #FAFAF8; border-radius: 6px; padding: 10px 12px; cursor: pointer; text-align: left; margin-bottom: 4px }
.resume i { width: 24px; height: 24px; border-radius: 4px; flex: none }
.resume span { font-size: 13px; flex: 1; min-width: 0 }
.resume small { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hint { font-size: 11px; margin-top: 10px; line-height: 1.6; opacity: .78 }
.sitefoot .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 2px }
.sitefoot a { color: var(--ink2) }
.sitefoot { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); font-size: 10.5px; color: var(--mute); line-height: 1.6; border-top: 1px solid var(--hair); flex: none }
.seg { display: flex; border: 1px solid #111; border-radius: 6px; overflow: hidden; background: #fff; color: #111 }
.seg button { flex: 1; height: 38px; border: 0; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; min-width: 0 }
.seg button + button { border-left: 1px solid #111 }
.seg button[aria-pressed=true] { background: #111; color: #fff }
.tint .seg { border-color: var(--on); background: transparent }
.tint .seg button { background: transparent; color: var(--on) }
.tint .seg button + button { border-left-color: var(--on) }
.tint .seg button[aria-pressed=true] { background: var(--on); color: var(--club) }
.seg.sm button { height: 32px; font-size: 12px }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px }
.tile { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #111; padding: 0 0 8px; cursor: pointer; text-align: left; overflow: hidden; min-width: 0 }
.tile i { display: block; height: 34px; margin-bottom: 6px }
.tile span { display: block; padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere }
.meta { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; flex: none }
.meta::-webkit-scrollbar { display: none }
.chip { flex: none; height: 34px; border: 0; border-radius: 17px; background: #fff; color: #111; padding: 0 12px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .15) }
.chip input { border: 0; background: none; font-size: 12px; font-weight: 700; width: 116px; padding: 0 }
.chip select { border: 0; background: none; font-size: 12px; font-weight: 700; appearance: none; -webkit-appearance: none; padding-right: 2px; cursor: pointer }
.forms { display: flex; gap: 6px; margin: 2px 12px 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px }
.forms::-webkit-scrollbar { display: none }
.forms button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--on); border-radius: 6px; background: transparent; color: var(--on); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap }
.forms button[aria-pressed=true] { background: var(--on); color: var(--club) }
.forms button.more { border-style: dashed }
.pitch { position: relative; margin: 10px 12px 0; aspect-ratio: 100 / 112; background: var(--board); border-radius: 6px; touch-action: pan-y; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); color: #111 }
.pitch svg.ln { position: absolute; inset: 0; width: 100%; height: 100% }
.tok { position: absolute; width: 70px; margin-left: -35px; margin-top: -20px; display: flex; flex-direction: column; align-items: center; cursor: pointer; touch-action: pan-y; -webkit-touch-callout: none }
.tok svg { width: 36px; height: 34px; overflow: visible }
.tok .n { font-size: 11px; font-weight: 700; line-height: 1.25; margin-top: 1px; background: #fff; border: 1px solid rgba(0, 0, 0, .35); padding: 0 4px; border-radius: 1px; white-space: nowrap; max-width: 70px; overflow: hidden; text-overflow: ellipsis; color: #111 }
.tok.prov .n { border-style: dashed; color: #55534E }
.tok.empty .n { border-style: dashed; color: var(--mute) }
.tok.lift, .bch.lift { transform: scale(1.12); transition: transform .12s; z-index: 5 }
.tok.lift svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)) }
.tok.hl svg { filter: drop-shadow(0 0 4px rgba(229, 55, 43, .9)) }
.tok.drop svg, .bch.drop { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px }
.legend { display: flex; justify-content: space-between; gap: 8px; margin: 6px 12px 0; font-size: 10.5px; opacity: .85 }
.legend i { display: inline-block; width: 14px; border-bottom: 1px dashed currentColor; margin-right: 4px; vertical-align: 3px }
.bhead { display: flex; align-items: center; justify-content: space-between; margin: 16px 12px 8px }
.bhead b { font-size: 13px }
.bhead b small { font-weight: 500; opacity: .8; margin-left: 6px; font-size: 11px }
.sw { position: relative; width: 52px; height: 30px; border-radius: 15px; border: 0; background: rgba(0, 0, 0, .25); cursor: pointer; flex: none }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2) }
.sw[aria-checked=true] { background: #111 }
.sw[aria-checked=true]::after { left: 25px }
.swl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600 }
.bench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 12px 20px }
.bch { display: flex; align-items: center; gap: 6px; height: 42px; border-radius: 6px; padding: 0 8px; background: #fff; color: #111; cursor: pointer; touch-action: pan-y; -webkit-touch-callout: none; min-width: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); border: 0; text-align: left }
.bch .no { font-size: 13px; font-weight: 800; min-width: 20px; text-align: right }
.bch .nn { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bch.prov .nn { color: #55534E }
.bch.add { background: transparent; color: var(--on); box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--on) 60%, transparent); justify-content: center; font-weight: 700; font-size: 12px }
.bench.off { opacity: .35; pointer-events: none }
.tabs { display: flex; padding: 0 12px; flex: none }
.tabs button { flex: 1; height: 40px; border: 0; background: none; color: var(--on); opacity: .7; font-size: 13px; font-weight: 700; border-bottom: 3px solid transparent; cursor: pointer }
.tabs button[aria-pressed=true] { opacity: 1; border-bottom-color: var(--on) }
.ghost { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); opacity: .92 }
.sheet { position: absolute; inset: 0; z-index: 50; display: none; color: #111 }
.sheet.on { display: block }
.sheet .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4) }
.sheet .pan { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; background: #fff; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom) }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #D0CEC7; margin: 8px auto 4px; flex: none }
.sheet .sh2 { padding: 6px 16px 10px; border-bottom: 1px solid var(--hair); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex: none }
.sheet .sh2 b { font-size: 15px }
.sheet .sh2 small { font-size: 11px; color: var(--mute) }
.sheet .lst { overflow-y: auto; padding: 0 0 16px; overscroll-behavior: contain }
.sheet h4 { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--mute); padding: 14px 16px 6px }
.prow { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: #fff; color: #111; padding: 10px 16px; text-align: left; cursor: pointer; min-height: 50px }
.prow .no { font-weight: 800; font-size: 16px; text-align: right }
.prow .nm2 { font-weight: 700; font-size: 14px; line-height: 1.3; min-width: 0 }
.prow .nm2 small { display: block; font-weight: 500; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.prow .tg { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--mute); white-space: nowrap }
.prow .tg.x { background: #111; color: #fff; border-color: #111 }
.prow .tg.f { border-color: var(--signal); color: var(--signal) }
.prow.cur { background: #F6F5F1 }
.ftiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 16px }
.ftiles button { height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1.15; padding: 0 4px }
.ftiles button small { display: block; font-size: 9.5px; font-weight: 500; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ftiles button[aria-pressed=true] { background: #111; color: #fff; border-color: #111 }
.ftiles button[aria-pressed=true] small { color: #ccc }
.free { border-bottom: 1px solid var(--hair); background: #FAFAF8 }
.mrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--hair); background: #fff }
.mrow .prow, .mrow .pc { flex: 1; min-width: 0; border-bottom: 0 }
.mact { flex: none; border: 0; border-left: 1px solid var(--hair); background: #fff; color: var(--ink2); font-size: 12px; font-weight: 700; padding: 0 12px; cursor: pointer; min-width: 48px }
.mact.del { font-size: 16px; color: var(--mute) }
.mhead { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--mute); padding: 12px 14px 6px; border-bottom: 1px solid var(--hair) }
.freeBtn { width: 100%; border: 0; background: none; text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; color: #111 }
.freeBtn i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #111; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1 }
.freeBtn small { font-weight: 500; color: var(--mute); font-size: 11px; margin-left: auto }
.freeNote { margin: -4px 16px 0; padding-bottom: 10px; font-size: 11px; line-height: 1.5; color: var(--mute) }
.freeForm { padding: 0 16px 14px; display: grid; gap: 8px; user-select: text; -webkit-user-select: text }
.freeForm input, .freeForm select { height: 42px; border: 1px solid #BDBAB2; border-radius: 6px; padding: 0 10px; font-size: 16px; background: #fff; width: 100%; min-width: 0 }
.freeForm .fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.freeForm button { height: 44px; border: 0; border-radius: 6px; background: #111; color: #fff; font-weight: 700; cursor: pointer }
.freeForm p { font-size: 10.5px; color: var(--mute); line-height: 1.5 }
.toast { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 70; background: #111; color: #fff; font-size: 12.5px; padding: 10px 14px; border-radius: 6px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none }
.toast.on { opacity: 1; transform: none }
.pvbox { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); margin-top: 12px; background: rgba(255, 255, 255, .15) }
.pvbox canvas { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350 }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px }
.acts button { height: 50px; border-radius: 6px; border: 1px solid var(--on); background: transparent; color: var(--on); font-weight: 700; font-size: 14px; cursor: pointer }
.acts button.p { background: var(--on); color: var(--club) }
.acts button:disabled { opacity: .5 }
.ghostbtn { width: 100%; height: 46px; margin-top: 14px; border-radius: 6px; border: 1px dashed var(--on); background: transparent; color: var(--on); font-weight: 700; cursor: pointer }
.meter { padding: 12px 16px 4px }
.meter .cnt { display: flex; align-items: baseline; gap: 6px }
.meter .cnt b { font-family: var(--fd); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums }
.meter .cnt span { font-size: 13px; font-weight: 700 }
.meter .cnt em { font-style: normal; margin-left: auto; font-size: 11px; font-weight: 700; text-align: right; line-height: 1.35; opacity: .9 }
.dots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; margin-top: 10px }
.dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--on) 45%, transparent); transition: background .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1) }
.dots i.f { border-color: #fff; transform: scale(1.1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) }
.dots i.GK { background: var(--gk) } .dots i.DF { background: var(--df) } .dots i.MF { background: var(--mf) } .dots i.FW { background: var(--fw) }
.need { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap }
.need span { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: #fff; color: #111; display: flex; align-items: center; gap: 5px }
.need span i { width: 8px; height: 8px; border-radius: 50% }
.need span.ok { outline: 2px solid #111; outline-offset: -2px }
.jtools { display: flex; gap: 8px; padding: 10px 16px }
.jtools button { flex: 1; height: 40px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--on); border-radius: 6px; background: transparent; color: var(--on); cursor: pointer }
.jtools button.hot { background: var(--on); color: var(--club) }
.finder { padding: 4px 16px 10px; display: grid; gap: 8px }
.finder input { height: 42px; border: 0; border-radius: 6px; padding: 0 12px; font-size: 16px; background: #fff; color: #111; width: 100%; user-select: text; -webkit-user-select: text }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px }
.chips::-webkit-scrollbar { display: none }
.chips button { flex: none; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--on) 60%, transparent); background: transparent; color: var(--on); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap }
.chips button[aria-pressed=true] { background: var(--on); color: var(--club) }
.ptabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 16px; background: #fff; border-radius: 8px 8px 0 0; overflow: hidden }
.ptabs button { height: 40px; border: 0; background: #fff; color: #111; font-weight: 800; font-size: 12.5px; cursor: pointer; border-bottom: 2px solid var(--hair); display: flex; align-items: center; justify-content: center; gap: 5px }
.ptabs button i { width: 8px; height: 8px; border-radius: 50% }
.ptabs button[aria-pressed=true] { border-bottom: 3px solid #111 }
.pool { margin: 0 16px 16px; background: #fff; border-radius: 0 0 8px 8px; overflow: hidden; color: #111 }
.pool .empty { padding: 18px 14px; font-size: 12px; color: var(--mute) }
.pc { display: grid; grid-template-columns: 1fr 40px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: #fff; padding: 9px 14px; text-align: left; cursor: pointer; min-height: 54px; position: relative }
.pc b { font-size: 14px; line-height: 1.3; display: block }
.pc small { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pc.sel { background: #FBF8F3 }
.pc.full { opacity: .45 }
.hanko { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #C8102E; color: #C8102E; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg) scale(0); opacity: 0; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(200, 16, 46, .5) }
.pc.sel .hanko { transform: rotate(-14deg) scale(1); opacity: .92 }
.pc.just .hanko { animation: stamp .38s cubic-bezier(.2, 1.4, .4, 1) }
@keyframes stamp { 0% { transform: rotate(-14deg) scale(1.9); opacity: 0 } 60% { opacity: 1 } 100% { transform: rotate(-14deg) scale(1); opacity: .92 } }
.plus { position: absolute; z-index: 65; pointer-events: none; font-size: 13px; font-weight: 800; white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); animation: plus .9s ease-out forwards }
@keyframes plus { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0 } 25% { transform: translate(-50%, -12px) scale(1.05); opacity: 1 } 100% { transform: translate(-50%, -48px); opacity: 0 } }
.conf { position: absolute; top: -14px; width: 6px; height: 14px; z-index: 66; pointer-events: none; border-radius: 1px; animation: fall 1.7s ease-in forwards }
@keyframes fall { to { transform: translateY(900px) rotate(520deg) } }
.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1) }
@keyframes bump { 0% { transform: scale(.75) } 100% { transform: scale(1) } }
.rlist { margin: 0 16px 16px; background: #fff; color: #111; border-radius: 8px; padding: 4px 14px 10px }
.rg h5 { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; border-bottom: 2px solid #111; padding: 10px 0 4px; letter-spacing: .06em }
.rr { display: grid; grid-template-columns: 1fr 36px; gap: 8px; align-items: center; border-bottom: 1px solid var(--hair); min-height: 46px }
.rr b { font-size: 14px; line-height: 1.25; min-width: 0 }
.rr b small { display: block; font-size: 11px; font-weight: 500; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rr button { width: 36px; height: 36px; border: 0; background: none; font-size: 17px; color: var(--mute); cursor: pointer }
@media (prefers-reduced-motion: reduce) { .pc.just .hanko, .plus, .conf, .bump { animation: none } }
button, a.go, .tile, .chip, .resume { transition: transform .08s ease, filter .08s ease, background-color .08s ease }
button:not(:disabled):active, a.go:active, .chip:active { transform: scale(.96); filter: brightness(.9) }
.tile:active, .resume:active, .mbtn:active { transform: scale(.98); filter: brightness(.93) }
.prow:active, .pc:active, .freeBtn:active { transform: none; filter: none; background: #ECEAE4 }
.tok:active svg { transform: scale(.92) }
.bch:active { filter: brightness(.9) }
.mbtn:active { background: #F2F1ED }
@media (min-width: 960px) {
  body { overflow: hidden }
  .app { max-width: 1200px }
  .bar, .tabs, .foot, .sitefoot { padding-left: max(24px, calc((100% - 1120px) / 2)); padding-right: max(24px, calc((100% - 1120px) / 2)) }
  .foot { display: flex; justify-content: flex-end }
  .foot .go { width: 360px }
  [data-s="mode"] .pad { max-width: 760px; margin: 0 auto; padding-top: 32px }
  [data-s="mode"] .mode-h { font-size: 40px }
  [data-s="club"] .pad { max-width: 1120px; margin: 0 auto }
  .tiles { grid-template-columns: repeat(6, 1fr); gap: 10px }
  .tile i { height: 44px }
  .tile span { font-size: 13px }
  [data-s="board"] .body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: repeat(4, max-content) 1fr; column-gap: 32px; align-content: start; padding: 16px max(24px, calc((100% - 1120px) / 2)) 24px }
  [data-s="board"] .pitch { grid-column: 1; grid-row: 1 / span 5; margin: 0; width: 100%; max-width: calc((100dvh - 230px) * 100 / 112); justify-self: center; align-self: start }
  [data-s="board"] .legend { grid-column: 1; grid-row: 6; margin: 8px 0 0 }
  [data-s="board"] .meta { grid-column: 2; grid-row: 1; padding: 0 0 12px; flex-wrap: wrap; overflow: visible }
  [data-s="board"] .forms { grid-column: 2; grid-row: 2; margin: 0; flex-wrap: wrap; overflow: visible }
  [data-s="board"] .bhead { grid-column: 2; grid-row: 3; margin: 24px 0 10px }
  [data-s="board"] .bench { grid-column: 2; grid-row: 4; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .tok { width: 92px; margin-left: -46px }
  .tok svg { width: 44px; height: 42px }
  .tok .n { font-size: 12px; max-width: 92px }
  [data-s="pick"] .body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); grid-template-rows: max-content max-content max-content 1fr; column-gap: 28px; align-content: start; padding: 8px max(24px, calc((100% - 1120px) / 2)) 24px }
  [data-s="pick"] .meter, [data-s="pick"] .jtools, [data-s="pick"] .rlist { grid-column: 1 }
  [data-s="pick"] .meter { grid-row: 1; padding-left: 0; padding-right: 0 }
  [data-s="pick"] .jtools { grid-row: 2; padding-left: 0; padding-right: 0 }
  [data-s="pick"] .rlist { grid-row: 3 / -1; margin: 0; align-self: start }
  [data-s="pick"] .finder { grid-column: 2; grid-row: 1; padding: 12px 0 10px }
  [data-s="pick"] .ptabs { grid-column: 2; grid-row: 2; margin: 0 }
  [data-s="pick"] .pool { grid-column: 2; grid-row: 3; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
  [data-s="pick"] .pool > .free, [data-s="pick"] .pool > .mhead, [data-s="pick"] .pool > .empty { grid-column: 1 / -1 }
  [data-s="pick"] .pool .pc, [data-s="pick"] .pool .mrow { border-right: 1px solid var(--hair) }
  .chips { flex-wrap: wrap }
  [data-s="preview"] .pad { display: grid; grid-template-columns: auto minmax(260px, 340px); column-gap: 32px; justify-content: center; align-items: start; padding: 24px }
  [data-s="preview"] .pvbox { grid-column: 1; grid-row: 1 / span 4; margin: 0; width: calc((100dvh - 140px) * 1080 / 1350); max-width: 640px }
  [data-s="preview"] .acts { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; margin: 0 0 12px }
  [data-s="preview"] #pvSeg { grid-column: 2; grid-row: 2 }
  [data-s="preview"] .ghostbtn { grid-column: 2; grid-row: 3 }
  .sheet .pan { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, 92%); max-height: 80dvh; transform: translate(-50%, -50%); border-radius: 16px; padding-bottom: 0 }
  .sheet .grab { display: none }
  .toast { left: 50%; right: auto; transform: translate(-50%, 8px); bottom: 32px; min-width: 320px; text-align: center }
  .toast.on { transform: translate(-50%, 0) }
}
