:root {
  --bg: #F4F1E8; --bg-2: #FFFFFF; --card: #FFFFFF; --card-2: #FFFFFF;
  --line: #191C1F; --line-2: #191C1F; --hair: #E3DFD2;
  --text: #191C1F; --soft: #43434B; --muted: #6B6B76;
  --yellow: #FFD900; --violet: #7B5CFF; --pink: #FF5FA8; --green: #1FB36B; --red: #FF4D4D; --blue: #006AFF; --ink: #191C1F;
  --display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --r: 20px; --sticker: 0 4px 0 var(--ink);
}
@view-transition { navigation: auto; }
::view-transition-group(fighter-me), ::view-transition-group(fighter-opp) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .9, .25, 1.1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(700px 420px at 8% 0%, rgba(255,217,0,.28), transparent 60%), radial-gradient(700px 480px at 100% 10%, rgba(123,92,255,.16), transparent 60%), radial-gradient(600px 500px at 60% 100%, rgba(255,95,168,.12), transparent 60%), var(--bg); color: var(--text); font-family: var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--violet); margin: 0 0 8px; }
.sub { color: var(--soft); font-size: 15px; line-height: 1.5; margin: 8px 0 0; max-width: 560px; }
.link { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.link:hover { color: var(--text); }

/* ---- buttons / brand ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 14px var(--display); text-decoration: none; border-radius: 999px; padding: 10px 18px; transition: transform .15s, box-shadow .15s, filter .15s; border: 0; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--sticker); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.brand { view-transition-name: brand; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand span { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; margin-left: 5px; font-size: 17px; }
.brand.small { font-size: 18px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 12px 28px; background: rgba(244,241,232,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 2px solid var(--ink); }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav nav a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sound { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); color: var(--text); font-size: 16px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sound[aria-pressed="true"] { background: var(--yellow); }
.navbal { font-size: 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.navbal b { color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 0 6px; }

/* ---- page shell: content + side rail ---- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 24px 28px 40px; align-items: start; }
.main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ---- hero ---- */
.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); color: #fff; }
.hero-art { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: drift 26s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,10,34,.92) 0%, rgba(13,10,34,.6) 38%, rgba(13,10,34,0) 70%), linear-gradient(0deg, rgba(13,10,34,.85) 0%, transparent 45%); }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.09) translateX(-1.2%); } }
.hero-copy { padding: 40px; max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 700; font-size: 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,107,107,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,107,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); } }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: .98; }
h1 em { font-style: normal; color: var(--yellow); text-shadow: 0 4px 0 var(--ink); }
.lede { font-size: 16px; line-height: 1.55; color: #E4E0FF; margin: 16px 0 0; max-width: 480px; }

/* ---- next fight bar ---- */
.nextcard { display: grid; grid-template-columns: 170px 1fr auto 1fr 200px; align-items: center; gap: 14px; text-decoration: none; color: var(--text); background: linear-gradient(90deg, #E8F0FF, #FFF 45%, #FFF 55%, #FFF7C2); border: 2px solid var(--ink); box-shadow: var(--sticker); border-radius: var(--r); padding: 14px 18px; transition: border-color .2s, transform .2s; }
.nextcard:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.nc-state { display: flex; flex-direction: column; gap: 3px; }
.nc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.nc-clock { font: 800 18px var(--display); white-space: nowrap; color: var(--blue); font-variant-numeric: tabular-nums; }
.nc-f { margin: 0; display: flex; align-items: center; gap: 12px; }
#lf1 { flex-direction: row-reverse; text-align: right; }
.nc-f img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 16px; background: #fff; border: 2px solid var(--ink); }
#lf0 { view-transition-name: fighter-me; }
#lf1 { view-transition-name: fighter-opp; }
.nc-f figcaption { display: flex; flex-direction: column; gap: 2px; }
.nc-f b { font: 800 16px var(--display); }
.nc-f figcaption span { font-size: 12px; color: var(--ink); font-weight: 800; background: var(--yellow); border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.nc-vs { font: 800 14px var(--display); color: var(--muted); letter-spacing: .1em; }
.nc-go { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.nc-go b { font: 800 14px var(--display); color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }

/* ---- ticker ---- */
.ticker { overflow: hidden; white-space: nowrap; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; gap: 44px; padding: 12px 0; animation: tick 70s linear infinite; font-size: 14px; color: var(--ink); }
.ticker-track span b { color: var(--ink); font-family: var(--display); margin-right: 6px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- content blocks ---- */
.block { background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 26px; box-shadow: 0 5px 0 var(--ink); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.block h2 { font-size: clamp(24px, 2.4vw, 32px); }

/* ---- draft day ---- */
.draft-stats { display: flex; gap: 8px; }
.draft-stats div { background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 14px; min-width: 104px; }
.draft-stats small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.draft-stats b { font: 800 18px var(--display); font-variant-numeric: tabular-nums; }
.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px 12px; padding-top: 8px; }
.cand { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; transition: border-color .2s, transform .2s; }
.cand:hover { border-color: var(--line-2); }
.cand.lead { background: linear-gradient(180deg, #FFF3A6, #fff 60%); }
.cand .pic { width: 64px; height: 64px; border-radius: 16px; background: #EDE8FF; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--ink); }
.cand .pic img { width: 100%; height: 100%; object-fit: cover; }
.cand .pic .q { font: 800 28px var(--display); color: var(--violet); }
.cand .arch { font-size: 11px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
.cand h3 { font-size: 17px; margin-top: 1px; }
.cand .pitch { font-size: 13px; line-height: 1.45; color: var(--soft); margin: 4px 0 0; }
.cand .tally { grid-column: 1 / -1; }
.cand .bar { height: 10px; border-radius: 999px; background: var(--bg); border: 2px solid var(--ink); overflow: hidden; }
.cand .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 999px; transition: width .8s cubic-bezier(.2,.9,.25,1.1); }
.cand.lead .bar i { background: linear-gradient(90deg, #FFB23F, var(--yellow)); }
.cand .nums { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: var(--soft); font-variant-numeric: tabular-nums; }
.cand .nums b { color: var(--text); }
.cand .mine { color: var(--green); font-weight: 700; }
.cand .rank { position: absolute; top: -12px; right: 14px; font: 800 11px var(--display); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.cand.lead .rank { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.cand .act { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.cand .act button { font: 700 12px var(--display); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 10px; background: #fff; color: var(--ink); cursor: pointer; }
.cand .act button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.cand .act input { width: 72px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; font: 600 12px var(--body); background: transparent; color: var(--text); }
.cand .act button.go { margin-left: auto; background: var(--yellow); color: var(--ink); border-color: var(--yellow); padding: 7px 14px; }
.cand .act button.go:disabled { opacity: .4; cursor: not-allowed; }
.cand.voted { animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.02); } }

/* ---- results ---- */
.fightlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fh { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fh-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.fh-side { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px var(--display); position: relative; color: var(--soft); }
.fh-side img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: #fff; border: 2px solid var(--ink); }
.fh-side.w { color: var(--text); } .fh-side.w img { box-shadow: 0 0 0 3px var(--yellow); }
.fh-side.l img { filter: grayscale(1) opacity(.55); }
.crownlet { position: absolute; top: -6px; right: 18%; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 9px; font-weight: 800; padding: 1px 6px; }
.fh-vs { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); background: var(--ink); border: 0; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.fh-line { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); border-left: 2px solid var(--violet); padding: 2px 0 2px 10px; }
.fh-line span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.fh-foot { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }

/* ---- how ---- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; }
.steps li { counter-increment: s; border: 2px solid var(--ink); border-radius: 18px; padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font: 800 14px var(--display); margin-bottom: 6px; }
.steps b { font: 800 16px var(--display); }
.steps span { line-height: 1.5; color: var(--soft); font-size: 14px; }

/* ---- throne room rail ---- */
.rail { position: sticky; top: 86px; }
.rail-card { background: linear-gradient(180deg, rgba(255,255,255,.55), #fff 230px), url('/art/throne-room.webp') center top / 160% auto no-repeat, #fff; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); border-radius: 24px; padding: 20px 16px 16px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
.rail-head { padding: 0 6px 10px; }
.rail-head h2 { font-size: 26px; }
.rail-head .sub { font-size: 13px; }
.ladder { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rung { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 18px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.rung .ava { position: relative; width: 64px; height: 64px; border-radius: 14px; background: #BCD6FF; border: 2px solid var(--ink); overflow: hidden; }
.rung .ava img.pose { width: 100%; height: 140%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; }
.rung .rk { font: 800 12px var(--display); color: var(--muted); margin-right: 6px; }
.rung .nm { font: 800 15px var(--display); line-height: 1.15; }
.rung .meta { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.rung .meta .streak { color: #FF9F45; font-weight: 700; }
.rung .elo { font: 800 16px var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.rung .elo small { display: block; font: 600 10px var(--body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.move { font-size: 11px; font-weight: 800; margin-left: 6px; }
.move.up { color: var(--green); } .move.down { color: var(--red); }
/* the king */
.rung[data-rank="1"] { grid-template-columns: 1fr; padding: 14px; gap: 10px; background: #FFF3A6; box-shadow: 0 5px 0 var(--ink); }
.rung[data-rank="1"] .ava { width: 100%; height: 170px; border-radius: 14px; background: radial-gradient(ellipse at 50% 100%, #FFF6C8 0 40%, #FFE27A 41% 100%); }
.rung[data-rank="1"] .ava img.pose { height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; animation: lounge 4s ease-in-out infinite; transform-origin: 50% 100%; }
.rung[data-rank="1"] .row { display: flex; justify-content: space-between; align-items: center; }
.rung[data-rank="1"] .nm { font-size: 18px; }
.rung[data-rank="1"] .rk { color: var(--ink); }
.crown-top { position: absolute; top: 8px; left: 10px; width: 46px; transform: rotate(-12deg); animation: bob 2.6s ease-in-out infinite; z-index: 2; }
@keyframes lounge { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(4deg); } }
/* speech bubbles: overlay the row, tail pointing at the speaker's avatar */
.bubble { position: absolute; z-index: 5; left: 78px; right: 8px; top: 50%; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 11px; font-size: 13px; line-height: 1.35; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(-50%) scale(.85); transform-origin: 0 50%; transition: opacity .2s, transform .28s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.bubble.show { opacity: 1; transform: translateY(-50%) scale(1); }
.bubble::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: #fff; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.bubble .to { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 2px; }
.rung[data-rank="1"] .bubble { left: 22px; right: 22px; top: auto; bottom: 78px; transform: scale(.85); transform-origin: 50% 100%; }
.rung[data-rank="1"] .bubble.show { transform: scale(1); }
.rung[data-rank="1"] .bubble::before { left: 50%; top: -7px; border: 0; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.speaking .ava img.pose { animation: yap .3s ease-in-out 4 alternate; }
.rung[data-rank="1"].speaking .ava img.pose { animation: lounge 4s ease-in-out infinite; }
@keyframes yap { to { transform: translateY(-3px) rotate(-2deg); } }
.hit { animation: shake .45s; }
.hit .ava { box-shadow: 0 0 0 2px var(--red); }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---- footer / toast ---- */
.foot { max-width: 1440px; margin: 0 auto; padding: 24px 28px 40px; display: flex; gap: 24px; align-items: flex-start; border-top: 2px solid var(--ink); }
.foot p { margin: 0; font-size: 12px; color: var(--muted); max-width: 860px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { background: var(--red); color: #fff; }

/* ---- wallet widget on the dark nav ---- */
#wallet-root { position: relative; }
#wallet-root .pw-btn { font: 800 13px var(--display); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
#wallet-root .pw-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 330px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 6px 0 var(--ink); z-index: 40; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
#wallet-root .pw-panel .pw-btn { background: #fff; color: var(--ink); border: 1px solid #D0CEC5; }
#wallet-root .pw-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#wallet-root .pw-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#wallet-root .pw-bals div { background: #F3F1EA; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; }
#wallet-root .pw-action { display: flex; gap: 6px; } #wallet-root .pw-action input { flex: 1; min-width: 0; border: 1px solid #D0CEC5; border-radius: 999px; padding: 6px 10px; }
#wallet-root .pw-addr code { font-size: 11px; word-break: break-all; }
#wallet-root .pw-fine { font-size: 11px; color: #6B6B76; margin: 0; } #wallet-root .pw-msg { margin: 0; font-size: 13px; } #wallet-root .pw-err { color: #A8370C; }
#wallet-root .pw-link { background: none; border: 0; text-decoration: underline; cursor: pointer; } #wallet-root .pw-panel .pw-primary { background: var(--yellow); border-color: var(--yellow); }
#wallet-root .pw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; order: -1; }
  .rail-card { max-height: none; }
  .ladder { display: grid; grid-template-columns: repeat(2, 1fr); }
  .rung[data-rank="1"] { grid-column: 1 / -1; }
  .nextcard { grid-template-columns: 1fr auto 1fr; }
  .nc-state, .nc-go { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .nc-state { order: -1; }
}
@media (max-width: 760px) {
  .nav { padding: 10px 14px; gap: 12px; } .nav nav, .navbal, .nav-cta { display: none; }
  .shell { padding: 14px; gap: 14px; }
  .main { display: contents; }
  .hero { order: -3; min-height: 560px; border-radius: 22px; }
  .hero-art img { object-position: 50% 0; }
  .nextcard { gap: 8px; padding: 12px; }
  .nc-f { gap: 8px; min-width: 0; } .nc-f img { width: 46px; height: 46px; border-radius: 12px; }
  .nc-f b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
  .nc-vs { font-size: 11px; }
  .hero::after { background: linear-gradient(0deg, rgba(13,10,34,.97) 0%, rgba(13,10,34,.8) 42%, rgba(13,10,34,0) 66%); }
  .hero-copy { padding: 22px; }
  .nextcard { order: -2; }
  .rail { order: -1; }
  .ladder { grid-template-columns: 1fr; }
  .rung[data-rank="1"] .ava { height: 180px; }
  .block { padding: 18px; border-radius: 20px; }
  .draft-stats { width: 100%; } .draft-stats div { flex: 1; min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .foot { flex-direction: column; padding: 20px 14px 32px; }
  #wallet-root .pw-panel { position: fixed; left: 14px; right: 14px; top: 62px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* vote row: one aligned control strip that never overflows the card */
.cand .act { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; }
.cand .act input { grid-column: 1 / span 2; }
.cand .act button.go { grid-column: 3 / span 2; }
.cand .act > * { height: 34px; margin: 0; box-sizing: border-box; }
.cand .act button { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; line-height: 1; min-width: 0; }
.cand .act input { width: 100%; min-width: 0; padding: 0 12px; text-align: left; }
.cand .act input::placeholder { color: var(--muted); }
.cand .act button.go { margin-left: 0; padding: 0 16px; box-shadow: 0 3px 0 var(--ink); }
.cand .act button.go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cand .act [data-signin] { grid-column: 1 / -1; width: 100%; }
.cand .act .fine { grid-column: 1 / -1; margin: 0; }
