/* Piano Attack · Falling notes (2026-10-15): the page (falls.html). The chrome follows the game's page
   (piano-attack.css) and is its own file, per the rule; the field is drawn on one canvas (js/falls-stage.js),
   with the sheet music, the HUD, the grenade's tooltip, the card and the debrief over it. */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #15171c; --bg2: #1d2027; --bg3: #262a33; --line: #343945;
  --ink: #ecebe4; --dim: #a7aab4; --soft: #c9c6bb;
  --gold: #e2b452; --gold2: #f0cf85; --red: #e0483b; --green: #63b47a;
  --paper: #f4ead2;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--gold2); }
h1, h5 { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0; }
kbd { font: 700 11px/1 ui-monospace, Menlo, monospace; background: var(--bg3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; color: var(--ink); }
.wrap { max-width: 1640px; margin: 0 auto; padding: 0 16px 60px; }

.mast { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.mast .home { text-decoration: none; color: var(--soft); font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.mast .home:hover { border-color: var(--gold); }
.mast h1 { font-size: 26px; color: var(--gold2); }
.mast h1 small { font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); margin-left: 6px; }
.mast-tools { margin-left: auto; display: flex; gap: 8px; }
.toggle { font: 700 14px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--soft); background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.toggle:hover { border-color: var(--gold); }
.toggle[aria-pressed="true"] { background: var(--gold); color: #2a2010; border-color: var(--gold); }
.plain { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.plain:hover { border-color: var(--gold); }
.go { font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; background: var(--gold); color: #2a2010; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.go:hover { background: var(--gold2); }

.game { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; margin-top: 14px; }
@media (max-width: 1080px) { .game { grid-template-columns: 1fr; } }
.under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 9px; font-size: 13.5px; color: var(--soft); }
.under .midi { margin-left: auto; font-size: 12.5px; color: var(--dim); }
.under .teaches b { color: var(--gold2); font: 700 19px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; margin-right: 6px; }
.help { font-size: 13px; color: var(--dim); margin: 8px 0 0; max-width: 980px; }
.help b { color: var(--soft); }

/* ------------------------------------------------------------------ the field -- */
.fa-stage { position: relative; width: 100%; height: clamp(520px, 74vh, 860px); background: #2a2622; border: 2px solid #0a0c12; border-bottom: 0;
  border-radius: 10px 10px 0 0; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.fa-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the sheet music along the top, scrolling right to left past the play line */
.fa-sheet { position: absolute; left: 0; right: 0; top: 0; height: 116px; z-index: 3; overflow: hidden; background: var(--paper);
  box-shadow: inset 0 -3px 0 #1b1710, inset 0 0 0 4px #c9b98f, 0 6px 16px rgba(0, 0, 0, .35); }
.fa-sheet[hidden] { display: none; }
.fa-strip { position: absolute; left: 0; top: 0; will-change: transform; }
.fa-strip svg, .fa-gutter svg { display: block; }
.fa-gutter { position: absolute; left: 0; top: 0; bottom: 3px; z-index: 2; overflow: hidden; background: linear-gradient(90deg, var(--paper) 78%, rgba(244, 234, 210, 0)); }
.fa-head { position: absolute; top: 4px; bottom: 6px; width: 3px; margin-left: -1px; z-index: 3; background: #d39b1f; box-shadow: 0 0 0 1px rgba(255, 245, 210, .8), 0 0 10px rgba(211, 155, 31, .6); }
.fa-noengrave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b5310; font: 600 14px Barlow, sans-serif; }
.fa-noengrave[hidden] { display: none; }

/* the HUD across the top of the field (under the sheet when it is shown) */
.fa-stage.sheet-on .fa-hud { top: 116px; }
.fa-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 12px; pointer-events: none;
  font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .65); }
.fa-hud > * { background: rgba(14, 16, 22, .62); border-radius: 999px; padding: 6px 12px; }
.fa-hud .hp { display: flex; align-items: center; gap: 8px; }
.fa-hud .meter { display: block; width: 150px; height: 12px; background: #14161c; border-radius: 3px; overflow: hidden; }
.fa-hud .meter i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #e2362f 0 13px, #14161c 13px 15px); transition: width .15s; }
.fa-hud.hurt .meter i { background: repeating-linear-gradient(90deg, #ffd04a 0 13px, #14161c 13px 15px); }
.fa-hud u { text-decoration: none; font-variant-numeric: tabular-nums; }
.fa-hud .mid { font: 500 14px/1.2 Barlow, sans-serif; letter-spacing: 0; color: rgba(255, 255, 255, .92); text-align: center; }
.fa-hud .mid b { font: 700 22px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ffe45c; margin-right: 8px; vertical-align: -2px; }
.fa-hud .right { display: flex; align-items: center; gap: 14px; }
.fa-hud .ammo { display: flex; align-items: center; gap: 7px; }
.fa-hud .ammo u { min-width: 26px; text-align: right; font-size: 22px; color: #ffe45c; }
.fa-hud .ammo em { font-style: normal; color: #8ff0a0; font-size: 16px; }
.fa-hud .ammo.dry u, .fa-hud .ammo.dry b { color: #ff5a4a; }
.fa-hud .nades { display: flex; align-items: center; gap: 5px; }
.fa-stage.mage .fa-hud .ammo { display: none; }
.fa-hud .nades u { font-size: 22px; color: #ffb35c; }
.fa-hud .nades img { display: block; }

/* THE GRENADE KEY'S TOOLTIP: just above its key, under the plane's line, bobbing; it flies to the next key when that
   one is needed */
.fa-gtip { position: absolute; bottom: 9px; left: 0; z-index: 4; transform: translateX(-50%); display: flex; align-items: center; gap: 3px;
  padding: 3px 8px 3px 6px; border-radius: 999px; background: linear-gradient(#4a3416, #24180a); border: 2px solid #ffb84a; box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 12px rgba(255, 170, 60, .55);
  font: 800 15px/1 "Barlow Condensed", Barlow, sans-serif; color: #ffe2a8; white-space: nowrap; pointer-events: none; animation: fa-bob 1.3s ease-in-out infinite; }
.fa-gtip[hidden] { display: none; }
.fa-gtip::after { content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #ffb84a; border-bottom: 0; }
.fa-gtip img { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.fa-gtip.empty { border-color: #7d6a4d; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); color: #a69a86; }
.fa-gtip.empty img { opacity: .45; }
.fa-gtip.nope { animation: fa-nope .35s ease-in-out; }
@keyframes fa-bob { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 4px; } }
@keyframes fa-nope { 0%, 100% { margin-left: 0; } 25% { margin-left: -5px; } 75% { margin-left: 5px; } }

/* a word across the middle of the field */
.fa-banner { position: absolute; left: 0; right: 0; top: 38%; z-index: 5; text-align: center; pointer-events: none; opacity: 0;
  font: 800 34px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #ffe45c; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 0, 0, .6); }
.fa-banner.on { animation: fa-banner 1.8s ease-out forwards; }
.fa-banner small { display: block; font: 700 17px/1.3 Barlow, sans-serif; letter-spacing: .5px; text-transform: none; color: #fff; margin-top: 6px; }
@keyframes fa-banner { 0% { opacity: 0; transform: scale(.85); } 12% { opacity: 1; transform: scale(1.04); } 22% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }

/* the card before take-off, and when paused */
.fa-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(560px, 90%); text-align: center; padding: 20px 22px 18px; border-radius: 16px;
  background: rgba(16, 18, 24, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); color: #fff; font: 500 15px/1.45 Barlow, sans-serif; }
.fa-card[hidden] { display: none; }
.fa-card .n { font: 800 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); }
.fa-card h2 { font: 800 34px/1.05 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; margin: 6px 0 8px; color: #fff; }
.fa-card p { margin: 6px 0; color: var(--soft); }
.fa-card .legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; text-align: left; margin: 12px auto 4px; max-width: 440px; font-size: 13.5px; color: var(--soft); }
.fa-card .legend i { font-style: normal; text-align: center; min-width: 26px; }
.fa-card .legend .red { display: inline-block; width: 18px; height: 14px; border-radius: 3px; background: #e0483b; box-shadow: 0 0 8px #e0483b; vertical-align: -2px; }
.fa-card .go-line { margin-top: 12px; font: 700 17px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ffe45c; }
.fa-card .loading { color: var(--dim); }

/* the debrief */
.fa-debrief { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 18, .66); }
.fa-debrief[hidden] { display: none; }
.fa-debrief .box { width: min(520px, 92%); text-align: center; padding: 22px 24px 18px; border-radius: 16px; background: #171a21; border: 1px solid #2f3440; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.fa-debrief .title { font: 800 40px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #ffe45c; }
.fa-debrief .title.down { color: #ff7a6b; }
.fa-debrief .stars { font-size: 38px; letter-spacing: 6px; margin: 8px 0 4px; color: #3a3f4c; }
.fa-debrief .stars b { color: #ffd34a; font-weight: 400; text-shadow: 0 0 12px rgba(255, 211, 74, .5); }
.fa-debrief .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.fa-debrief .stats div { background: #20242d; border-radius: 10px; padding: 9px 6px 8px; }
.fa-debrief .stats u { display: block; text-decoration: none; font: 800 26px/1 "Barlow Condensed", Barlow, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.fa-debrief .stats small { display: block; margin-top: 4px; font: 600 11.5px/1.2 Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
.fa-debrief .stats .bad u { color: #ff8a7a; } .fa-debrief .stats .good u { color: #8ff0a0; }
.fa-debrief .why { color: var(--soft); font: 500 14px/1.4 Barlow, sans-serif; margin: 4px 0 0; }
.fa-debrief .row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.fa-debrief .row button { font: 700 14px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg3); color: var(--ink); cursor: pointer; }
.fa-debrief .row button.next { background: var(--gold); color: #2a2010; border-color: var(--gold); }
.fa-debrief .keys { margin-top: 10px; font: 500 12.5px Barlow, sans-serif; color: var(--dim); }

/* ------------------------------------------------------------------- the keys -- */
.fa-keys { position: relative; height: 118px; background: #0b0c10; border: 2px solid #0a0c12; border-top: 3px solid #5b1f1a; border-radius: 0 0 10px 10px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.fa-keys i { position: absolute; top: 0; display: block; font-style: normal; cursor: pointer; }
.fa-keys i.w { bottom: 0; background: linear-gradient(#f7f4ec, #e6e1d4 86%, #cfc8b6); border-right: 1px solid #a9a191; border-radius: 0 0 6px 6px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .08); z-index: 1; }
.fa-keys i.b { height: 62%; background: linear-gradient(#2c2d33, #121317 80%, #050506); border-radius: 0 0 4px 4px; box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .06), 0 2px 3px rgba(0, 0, 0, .6); z-index: 2; }
.fa-keys i s { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; text-decoration: none; font: 700 10px/1 Barlow, sans-serif; color: #b2a98f; letter-spacing: .3px; }
/* a soldier in range on that key: it glows gold, brighter for the nearest */
.fa-keys i.live.w { background: linear-gradient(#fff3c4, #f6dc85 86%, #d9b75a); }
.fa-keys i.live.b { background: linear-gradient(#8a6a1c, #4d3a0e 80%, #2a1f06); }
.fa-keys i.next.w { background: linear-gradient(#ffe48a, #f2c643 86%, #c99a24); }
.fa-keys i.next.b { background: linear-gradient(#c8961f, #7a5a10 80%, #3d2c06); }
/* a musket ball falling down that key's column: red, and pulsing as it nears */
.fa-keys i.danger.w { background: linear-gradient(#ffb1a6, #ef5b4c 70%, #b8261b); }
.fa-keys i.danger.b { background: linear-gradient(#ff6d5c, #b8261b 70%, #6e120b); }
.fa-keys i.danger { animation: fa-danger .32s ease-in-out infinite alternate; }
.fa-keys i.danger.now { animation-duration: .12s; }
@keyframes fa-danger { from { filter: brightness(1); } to { filter: brightness(1.35); } }
/* the grenade key */
.fa-keys i.gkey.w { background: linear-gradient(#ffd9a0, #ffad4a 80%, #d9801c); }
.fa-keys i.gkey.b { background: linear-gradient(#d98a2a, #8a4c0c 80%, #4a2604); }
.fa-keys i.gkey::before { content: "💣"; position: absolute; left: 0; right: 0; text-align: center; font-size: 15px; line-height: 1; }
.fa-keys i.gkey.w::before { top: 34%; } .fa-keys i.gkey.b::before { top: 30%; font-size: 12px; }
.fa-keys i.down.w { background: linear-gradient(#d7d1c2, #c6bea9); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25); }
.fa-keys i.down.b { background: linear-gradient(#45464d, #26272c); }
/* the key the plane is over */
.fa-keys i.here::after { content: ""; position: absolute; left: 50%; top: 4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #3fa9ff; box-shadow: 0 0 8px #3fa9ff; }

/* ------------------------------------------------------------------ the panel -- */
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; position: sticky; top: 10px; }
.ptabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 10px; }
.ptabs button { font: 700 13px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg3); color: var(--soft); cursor: pointer; }
.ptabs button:hover { border-color: var(--gold); }
.ptabs button.on { background: var(--gold); color: #2a2010; border-color: var(--gold); }
.pane { display: none; } .pane.on { display: block; }
.panel .note { font-size: 12.5px; color: var(--dim); margin: 0 0 8px; }
.panel h5 { font-size: 15px; color: var(--gold2); margin: 12px 0 6px; }
.missions { display: grid; gap: 4px; max-height: min(68vh, 760px); overflow-y: auto; padding-right: 4px; }
.missions button { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; text-align: left; font: inherit; color: var(--ink); background: var(--bg3); border: 1px solid transparent; border-radius: 9px; padding: 6px 8px; cursor: pointer; }
.missions button:hover { border-color: var(--gold); }
.missions button.on { border-color: var(--gold); background: #2f2a1f; }
.missions i { font: 700 18px/26px "Barlow Condensed", Barlow, sans-serif; font-style: normal; text-align: center; width: 36px; height: 26px; border-radius: 999px; background: var(--bg); color: var(--gold2); }
.missions b { display: block; font-size: 13px; color: var(--ink); } .missions small { display: block; font-size: 11px; color: var(--dim); }
.missions em { font-style: normal; color: #ffd34a; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.missions em.none { color: #4a4f5c; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { font: 600 13px/1 Barlow, sans-serif; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg3); color: var(--soft); cursor: pointer; }
.seg button.on { background: var(--gold); color: #2a2010; border-color: var(--gold); }
.vols { display: grid; gap: 6px; }
.vols label { display: grid; grid-template-columns: 82px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.vols input { width: 100%; accent-color: var(--gold); }
.vols output { font-variant-numeric: tabular-nums; color: var(--dim); text-align: right; font-size: 12.5px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--soft); margin: 8px 0 0; cursor: pointer; }
.keysline { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* -------------------------------------------- the roguelike layer (2026-10-15) -- */
/* the runes in the HUD: how many, and how near the next card */
.fa-hud .runes { display: flex; align-items: center; gap: 6px; }
.fa-hud .runes u { font-size: 20px; color: #9fd0ff; min-width: 22px; text-align: right; }
.fa-hud .runes .bar { display: block; width: 64px; height: 8px; border-radius: 4px; background: #14161c; overflow: hidden; }
.fa-hud .runes .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3f7fff, #9fd0ff); transition: width .2s; }
.fa-hud .runes.ready .bar i { background: linear-gradient(90deg, #ffd34a, #fff1b0); }
/* the cards held, under the HUD */
.fa-build { position: absolute; left: 10px; top: 52px; z-index: 4; display: flex; flex-wrap: wrap; gap: 5px; max-width: 46%; pointer-events: none; }
.fa-stage.sheet-on .fa-build { top: 168px; }
.fa-build span { display: flex; align-items: center; gap: 3px; padding: 3px 7px 3px 4px; border-radius: 999px; background: rgba(14, 16, 22, .7); border: 1px solid rgba(255, 255, 255, .12);
  font: 800 12px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; color: #ffe9a8; }
.fa-build span.cap { border-color: #ffd34a; box-shadow: 0 0 10px rgba(255, 211, 74, .45); }
.fa-build img { width: 22px; height: 22px; object-fit: contain; display: block; }
.fa-build span.new { animation: fa-new .8s ease-out; }
@keyframes fa-new { 0% { transform: scale(1.8); filter: brightness(2); } 100% { transform: scale(1); filter: none; } }
/* the boss's points, in the HUD's middle (where the mission's name is on any other mission) */
.fa-stage.boss-on .fa-hud .mid { visibility: hidden; }
.fa-boss { position: absolute; left: 50%; top: 7px; z-index: 5; transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 5px 12px 7px; border-radius: 12px;
  background: rgba(30, 8, 8, .8); border: 1px solid #a3312a; pointer-events: none; font: 800 13px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ffd0c4; }
.fa-boss .row { display: flex; justify-content: space-between; gap: 12px; }
.fa-boss[hidden] { display: none; }
.fa-stage.sheet-on .fa-boss { top: 125px; }
.fa-boss .meter { display: block; width: clamp(130px, 17vw, 230px); height: 9px; border-radius: 3px; background: #14161c; overflow: hidden; }
.fa-boss .meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3b2f, #ff9b5a); transition: width .15s; }
.fa-boss u { text-decoration: none; font-variant-numeric: tabular-nums; color: #fff; }
.fa-boss.hit { animation: fa-bosshit .18s ease-out; }
@keyframes fa-bosshit { 0% { filter: brightness(1.9); } 100% { filter: none; } }

/* THE DRAFT: three cards, chosen with F♯, G♯ or A♯: once to select, again to take */
.fa-draft { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(20, 22, 34, .82), rgba(8, 9, 14, .93)); }
.fa-draft[hidden] { display: none; }
.fa-draft h3 { margin: 0; font: 800 30px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #ffe45c; text-shadow: 0 3px 0 #000; }
.fa-draft .sub { font: 600 14px/1.3 Barlow, sans-serif; color: var(--soft); text-align: center; }
.fa-draft .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px; width: 100%; justify-content: center; margin: 18px 0 10px; }
@media (max-width: 640px) { .fa-draft .cards { grid-template-columns: 1fr; } }
.fa-draft .card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 14px 14px; border-radius: 14px; cursor: pointer; text-align: center;
  background: linear-gradient(#2a2e3a, #1b1e27); border: 2px solid #4a5163; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); color: #fff; animation: fa-deal .45s cubic-bezier(.2, .9, .3, 1.2) backwards; }
.fa-draft .card:nth-child(2) { animation-delay: .08s; } .fa-draft .card:nth-child(3) { animation-delay: .16s; }
@keyframes fa-deal { 0% { transform: translateY(60px) rotate(-6deg) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fa-draft .card:hover { border-color: var(--gold); transform: translateY(-3px); }
.fa-draft .card.cap { border-color: #ffd34a; background: linear-gradient(#3b331a, #1f1a0c); box-shadow: 0 0 22px rgba(255, 211, 74, .35), 0 12px 30px rgba(0, 0, 0, .45); }
.fa-draft .card.chosen { animation: fa-chosen .5s ease-in forwards; }
@keyframes fa-chosen { 0% { transform: scale(1.06); } 100% { transform: translateY(-120px) scale(.4); opacity: 0; } }
.fa-draft .key { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); min-width: 42px; padding: 5px 10px; border-radius: 9px; background: #17181d; color: #fff;
  font: 800 20px/1 "Barlow Condensed", Barlow, sans-serif; box-shadow: 0 3px 0 #000, 0 0 0 2px #4a5163; }
.fa-draft .card.sel { border-color: #ffd34a; transform: translateY(-8px) scale(1.03); box-shadow: 0 0 0 3px rgba(255, 211, 74, .35), 0 18px 34px rgba(0, 0, 0, .5); }
.fa-draft .card.sel .key { background: #ffd34a; color: #2a2010; box-shadow: 0 3px 0 #a37a10; }
.fa-draft .confirm { display: none; position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #ffd34a; color: #2a2010;
  font: 800 13px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; animation: fa-pulse .9s ease-in-out infinite alternate; }
.fa-draft .card.sel .confirm { display: block; }
@keyframes fa-pulse { from { filter: brightness(1); } to { filter: brightness(1.25); } }
.fa-draft .card img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); margin-top: 6px; }
.fa-draft .card b { font: 800 22px/1.05 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; }
.fa-draft .card .tier { display: flex; gap: 4px; }
.fa-draft .card .tier i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4c; } .fa-draft .card .tier i.on { background: #ffd34a; } .fa-draft .card .tier i.now { background: #fff; box-shadow: 0 0 6px #fff; }
.fa-draft .card .capname { font: 800 12px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #ffd34a; }
.fa-draft .card p { margin: 2px 0 0; font: 500 14px/1.35 Barlow, sans-serif; color: #e6e3da; }
.fa-draft .card .style { font: 600 12px/1.2 Barlow, sans-serif; color: var(--dim); font-style: italic; }
/* the keys that choose: F♯, G♯ and A♯ in every octave, the one selected brighter */
.fa-keys i.pick.b { background: linear-gradient(#e2b452, #a37a10 80%, #5b4208); box-shadow: 0 0 10px rgba(255, 211, 74, .55); }
.fa-keys i.pick.armed.b { background: linear-gradient(#fff1b0, #ffd34a 70%, #c9971f); box-shadow: 0 0 16px rgba(255, 230, 120, .9); }
.fa-keys i.pick::before { content: attr(data-pick); position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 800 13px/1 "Barlow Condensed", Barlow, sans-serif; color: #fff; text-shadow: 0 1px 0 #000; }
.fa-keys i.pick.armed::before { color: #2a2010; text-shadow: none; }

/* the panel's cycle box */
.cycle { margin: 0 0 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); font-size: 12.5px; color: var(--soft); }
.cycle b { color: var(--gold2); } .cycle .hand { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cycle .hand span { display: flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 999px; background: var(--bg); font: 700 11.5px/1 Barlow, sans-serif; color: #ffe9a8; }
.cycle .hand img { width: 18px; height: 18px; object-fit: contain; }
.missions h6 { margin: 8px 2px 2px; font: 800 12px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.missions button.boss i { background: #3a1410; color: #ff9b8f; }
.missions button.next-up { box-shadow: inset 3px 0 0 #9fd0ff; }
.fa-card .boss { color: #ffd0c4; margin: 8px 0; } .fa-card .boss b { color: #ff9b8f; }
.fa-card .hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 8px 0 2px; }
.fa-card .hand span { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); font: 700 12.5px/1 Barlow, sans-serif; color: #ffe9a8; }
.fa-card .hand img { width: 20px; height: 20px; object-fit: contain; }
.fa-card .none { color: var(--dim); font-size: 13px; }
.fa-card .legend img { display: block; margin: 0 auto; }
