:root {
  color-scheme: dark;
  --fed-ink: #06101b;
  --fed-line: #2b3d4e;
  --fed-soft-line: rgba(115, 153, 185, 0.24);
  --fed-copy: #eef7ff;
  --fed-muted: #8fa6b9;
  --fed-green: #65ed9a;
  --fed-red: #ff655e;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #080e14; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 25% 10%, rgba(49, 89, 118, 0.16), transparent 34rem),
    linear-gradient(180deg, #111b23, #080d12 70%);
  color: var(--fed-copy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: white;
  color: #050a0e;
  font-weight: 900;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fed-site-topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 10px clamp(14px, 3vw, 42px);
  border-bottom: 1px solid #273540;
  background: rgba(8, 14, 20, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.fed-site-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.fed-site-brand img { width: 36px; height: 36px; border-radius: 7px; }
.fed-site-lockup { display: grid; justify-items: center; gap: 2px; }
.fed-site-lockup strong { color: white; font-size: 15px; letter-spacing: 0.15em; }
.fed-site-lockup span { color: #8195a6; font-size: 8px; font-weight: 900; letter-spacing: 0.1em; }

.fed-preview-pill {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 231, 152, 0.35);
  border-radius: 999px;
  background: rgba(19, 75, 47, 0.25);
  color: #93f4b7;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.fed-preview-pill i { width: 7px; height: 7px; border-radius: 2px; background: #60e992; box-shadow: 0 0 12px #60e992; }

.fed-topbar-actions { position: relative; display: flex; justify-self: end; align-items: center; gap: 7px; }
.fed-audio-toggle, .fed-audio-mixer > summary { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; border: 1px solid #34495b; border-radius: 999px; background: rgba(12, 26, 38, 0.9); color: #87a3b8; cursor: pointer; font-size: 8px; font-weight: 950; letter-spacing: 0.09em; }
.fed-audio-toggle { gap: 7px; padding: 0 10px; }
.fed-audio-toggle i { width: 7px; height: 7px; border-radius: 50%; background: #637484; box-shadow: 0 0 0 transparent; }
.fed-audio-toggle.is-on { border-color: rgba(101, 237, 154, 0.46); color: #a7f6c2; }
.fed-audio-toggle.is-on i { background: #65ed9a; box-shadow: 0 0 12px rgba(101, 237, 154, 0.92); animation: fed-audio-pulse 1.2s ease-in-out infinite; }
.fed-audio-mixer { position: relative; }
.fed-audio-mixer > summary { min-width: 42px; padding: 0 9px; list-style: none; }
.fed-audio-mixer > summary::-webkit-details-marker { display: none; }
.fed-audio-mixer[open] > summary { border-color: #ff766d; color: white; }
.fed-audio-menu { position: absolute; z-index: 120; top: calc(100% + 11px); right: 0; display: grid; width: 248px; gap: 11px; padding: 15px; border: 2px solid #34495c; border-radius: 10px; background: linear-gradient(160deg, rgba(22, 35, 48, 0.99), rgba(5, 12, 20, 0.995)); box-shadow: 0 14px 0 rgba(2, 6, 11, 0.84), 0 28px 70px rgba(0, 0, 0, 0.62); }
.fed-audio-menu::before { position: absolute; top: -7px; right: 18px; width: 12px; height: 12px; border-top: 2px solid #34495c; border-left: 2px solid #34495c; background: #142330; content: ""; transform: rotate(45deg); }
.fed-audio-menu-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid rgba(107, 148, 180, 0.25); }
.fed-audio-menu-title strong { color: #fff; font-size: 9px; letter-spacing: 0.11em; }
.fed-audio-menu-title span { color: #62e796; font-size: 7px; font-weight: 900; letter-spacing: 0.08em; }
.fed-audio-menu > label:not(.fed-audio-check) { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; color: #91a9bb; font-size: 8px; font-weight: 900; letter-spacing: 0.08em; }
.fed-audio-menu input[type="range"] { width: 100%; accent-color: #62e796; cursor: pointer; }
.fed-audio-check { display: flex; align-items: center; gap: 9px; color: #a7bdcd; cursor: pointer; font-size: 8px; font-weight: 900; letter-spacing: 0.07em; }
.fed-audio-check input { width: 15px; height: 15px; margin: 0; accent-color: #ff655e; }
.fed-audio-menu p { margin: 0; padding-top: 8px; border-top: 1px solid rgba(107, 148, 180, 0.2); color: #71899b; font-size: 8px; line-height: 1.35; }

.fed-page-shell { width: min(1520px, 100%); margin: 0 auto; padding: 24px clamp(12px, 2.8vw, 42px) 36px; }

.fed-hud {
  overflow: hidden;
  border: 3px solid #2a3640;
  border-radius: 13px;
  background: #12181c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.fed-hud-title {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid #2a3640;
}

.fed-hud-title h1 { margin: 0; font-size: 18px; }
.fed-hud-title span { color: #71828e; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }

.fed-layout { display: grid; height: clamp(700px, 46vw, 860px); grid-template-columns: 340px minmax(0, 1fr); }

.the-fed-panel {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
  padding: 17px;
  border-right: 3px solid #2a3640;
  background: #11181c;
  color: #eef6fd;
}

.fed-panel-brand { display: flex; flex-direction: column; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid var(--fed-soft-line); }
.fed-panel-brand > p { margin: 0; color: #dbeaf6; font-size: 16px; font-weight: 900; letter-spacing: -0.025em; }
.fed-live-chip { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: #ff756c; font-size: 10px; font-weight: 950; letter-spacing: 0.13em; }
.fed-live-chip span, .fed-broadcast-live i { width: 7px; height: 7px; border-radius: 2px; background: #ff3f3f; box-shadow: 0 0 12px rgba(255, 63, 63, 0.95); animation: fed-pulse 1.35s steps(2, end) infinite; }
.fed-panel-view { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }

.fed-briefing-card, .fed-risk-card, .fed-result-card, .fed-current-return {
  border: 1px solid #33495f;
  border-radius: 9px;
  background: linear-gradient(145deg, #1b2b3c, #091522 68%);
  box-shadow: 0 7px 0 #030811, inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.fed-briefing-card { display: flex; flex-direction: column; gap: 6px; padding: 15px; }
.fed-kicker { color: #78acd5; font-size: 10px; font-weight: 950; letter-spacing: 0.12em; }
.fed-briefing-card strong { color: #fff; font-size: 15px; line-height: 1.18; }
.fed-briefing-card p, .fed-fine-print, .fed-instruction, .fed-panel-footer p { margin: 0; color: var(--fed-muted); font-size: 11px; line-height: 1.42; }
.fed-bet-section { display: flex; flex-direction: column; gap: 9px; }
.fed-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #849db3; font-size: 9px; font-weight: 900; letter-spacing: 0.08em; }

.fed-bet-input { display: grid; grid-template-columns: 38px 1fr auto 38px; align-items: center; overflow: hidden; border: 1px solid #3b5268; border-radius: 7px; background: #06101c; box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 5px 0 #03070c; }
.fed-bet-input input { min-width: 0; height: 42px; border: 0; background: transparent; color: #fff; font-size: 18px; font-weight: 950; outline: none; text-align: right; }
.fed-bet-input b { padding: 0 11px; color: #7e9bb3; font-size: 11px; }
.fed-bet-input button { height: 43px; border: 0; background: linear-gradient(180deg, #26384a, #142230); color: #fff; cursor: pointer; font-size: 18px; font-weight: 900; }
.fed-bet-input button:hover { background: linear-gradient(180deg, #3b5369, #203244); }
.fed-chip-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.fed-chip-row button { padding: 8px 0; border: 1px solid #334a60; border-radius: 6px; background: linear-gradient(180deg, #1c2c3c, #0a1521); box-shadow: 0 4px 0 #02070d; color: #a9bfd1; cursor: pointer; font-size: 11px; font-weight: 900; }
.fed-chip-row button.is-selected, .fed-chip-row button:hover { border-color: #ff7168; color: #fff; box-shadow: 0 4px 0 #5a1115, 0 0 14px rgba(255, 64, 64, 0.2); }

.fed-terms-grid, .fed-result-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fed-terms-grid > div, .fed-result-ledger > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid rgba(94, 129, 159, 0.31); border-radius: 7px; background: rgba(3, 10, 18, 0.5); }
.fed-terms-grid dt, .fed-result-ledger dt { color: #7f97aa; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fed-terms-grid dd, .fed-result-ledger dd { margin: 0; overflow: hidden; color: #fff; font-size: 12px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }

.fed-primary-button, .fed-secondary-button { min-height: 46px; cursor: pointer; border-radius: 7px; font-size: 12px; font-weight: 950; letter-spacing: 0.06em; }
.fed-primary-button { border: 1px solid #ff8f86; background: linear-gradient(180deg, #ff5b55, #c92731); box-shadow: 0 6px 0 #6f1018, 0 14px 22px rgba(146, 14, 25, 0.28); color: #fff; }
.fed-primary-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.fed-primary-button:active:not(:disabled) { box-shadow: 0 3px 0 #6f1018; transform: translateY(3px); }
.fed-primary-button:disabled { cursor: not-allowed; filter: saturate(0.5); opacity: 0.62; }
.fed-secondary-button { border: 1px solid #416078; background: linear-gradient(180deg, #263c50, #0d1b29); box-shadow: 0 5px 0 #03080e; color: #e5f2fc; }
.fed-text-button { border: 0; background: transparent; color: #7893aa; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 3px; }

.fed-current-return { display: flex; flex-direction: column; align-items: center; padding: 17px; text-align: center; }
.fed-current-return span { color: #83a0b8; font-size: 10px; font-weight: 950; letter-spacing: 0.11em; }
.fed-current-return strong { color: var(--fed-green); font-size: 36px; font-weight: 950; letter-spacing: -0.05em; line-height: 1; text-shadow: 0 3px 0 #0b4f2b, 0 0 18px rgba(70, 255, 139, 0.35); }
.fed-current-return small { margin-top: 6px; color: #d9ebf8; font-size: 12px; font-weight: 800; }
.fed-round-meter { display: flex; flex-direction: column; gap: 9px; }
.fed-cube-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.fed-cube-track i { aspect-ratio: 1.5; border: 1px solid #2d4356; border-radius: 3px; background: linear-gradient(145deg, #243747, #0c1823); box-shadow: 0 3px 0 #02070d; }
.fed-cube-track i.is-lit { border-color: #8ff2b3; background: linear-gradient(145deg, #75eca3, #1d844e); box-shadow: 0 3px 0 #0c4d2b, 0 0 10px rgba(66, 239, 133, 0.45); }
.fed-risk-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 13px; }
.fed-risk-card > div:not(.fed-risk-bar) { display: flex; flex-direction: column; gap: 3px; }
.fed-risk-card span { color: #7f99af; font-size: 9px; font-weight: 900; }
.fed-risk-card strong { color: #6ceba0; font-size: 14px; }
.fed-risk-card strong.is-danger { color: #ff746b; }
.fed-risk-bar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 3px; background: #7e1d26; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5); }
.fed-risk-bar span { display: block; width: 76%; height: 100%; background: linear-gradient(90deg, #2ba764, #6ef3a2); transition: width 240ms ease; }
.fed-instruction, .fed-fine-print { text-align: center; }

.fed-result-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 17px; text-align: center; }
.fed-result-card.is-win { border-color: #56d889; background: linear-gradient(145deg, #174d34, #061b12 68%); }
.fed-result-card.is-loss { border-color: #dc504d; background: linear-gradient(145deg, #642126, #21070b 68%); }
.fed-result-card > span { color: #b5cce0; font-size: 10px; font-weight: 950; letter-spacing: 0.12em; }
.fed-result-card > strong { color: #fff; font-size: 38px; font-weight: 950; line-height: 1; }
.fed-result-card > b { color: #dff8e8; font-size: 13px; }
.fed-result-card > p { margin: 0; color: #9cb1c2; font-size: 11px; }
.fed-panel-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(108, 146, 178, 0.2); }
.fed-panel-footer > span { color: #5ed58d; font-size: 9px; font-weight: 950; letter-spacing: 0.1em; }
.fed-panel-footer p { margin-top: 5px; text-align: left; }

.the-fed-stage {
  --fed-tension: 0;
  --fed-tension-color: 70, 145, 210;
  --fed-tension-speed: 3.4s;
  container-type: inline-size;
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  background-color: #071528;
  background-image: url("/assets/the-fed/background.png");
  background-position: center;
  background-size: cover;
  color: #f6fbff;
  isolation: isolate;
  transition: box-shadow 500ms ease, filter 500ms ease;
}

.the-fed-stage::before, .the-fed-stage::after { position: absolute; inset: 0; z-index: 3; content: ""; pointer-events: none; }
.the-fed-stage::before { background: radial-gradient(circle at 50% 48%, transparent 0 26%, rgba(var(--fed-tension-color), calc(var(--fed-tension) * 0.035)) 62%, rgba(1, 5, 12, calc(0.28 + var(--fed-tension) * 0.07)) 100%); opacity: calc(0.42 + var(--fed-tension) * 0.1); transition: background 450ms ease, opacity 450ms ease; }
.the-fed-stage::after { z-index: 4; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(116, 174, 219, calc(0.012 + var(--fed-tension) * 0.004)) 4px), linear-gradient(90deg, rgba(255, 45, 50, calc(var(--fed-tension) * 0.012)), transparent 24% 76%, rgba(255, 45, 50, calc(var(--fed-tension) * 0.012))); mix-blend-mode: screen; opacity: calc(0.22 + var(--fed-tension) * 0.08); }
.fed-stage-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(3, 11, 23, 0.05), rgba(3, 8, 18, 0.12) 45%, rgba(2, 7, 16, 0.7)), radial-gradient(circle at 50% 52%, transparent 0 30%, rgba(1, 7, 16, 0.25) 75%); pointer-events: none; transition: background 500ms ease; }
.the-fed-stage[data-tension="1"] { --fed-tension: 1; --fed-tension-color: 82, 190, 139; --fed-tension-speed: 3s; }
.the-fed-stage[data-tension="2"] { --fed-tension: 2; --fed-tension-color: 230, 173, 65; --fed-tension-speed: 2.5s; }
.the-fed-stage[data-tension="3"] { --fed-tension: 3; --fed-tension-color: 238, 112, 62; --fed-tension-speed: 2s; }
.the-fed-stage[data-tension="4"] { --fed-tension: 4; --fed-tension-color: 245, 67, 57; --fed-tension-speed: 1.45s; box-shadow: inset 0 0 7cqmin rgba(255, 48, 48, 0.19); }
.the-fed-stage[data-tension="5"], .the-fed-stage[data-tension="6"] { --fed-tension: 5; --fed-tension-color: 255, 39, 49; --fed-tension-speed: 0.86s; box-shadow: inset 0 0 10cqmin rgba(255, 29, 39, 0.28); }
.the-fed-stage[data-tension="3"] .fed-stage-shade, .the-fed-stage[data-tension="4"] .fed-stage-shade, .the-fed-stage[data-tension="5"] .fed-stage-shade { background: linear-gradient(180deg, rgba(34, 5, 12, 0.04), rgba(26, 4, 10, 0.2) 55%, rgba(2, 5, 12, 0.78)), radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(80, 3, 10, 0.34) 100%); }
.the-fed-stage[data-tension="4"] .fed-broadcast-live i, .the-fed-stage[data-tension="5"] .fed-broadcast-live i { animation-duration: 0.55s; }
.the-fed-stage[data-tension="4"] .fed-news-chyron > span, .the-fed-stage[data-tension="5"] .fed-news-chyron > span { animation: fed-alarm var(--fed-tension-speed) steps(2, end) infinite; }
.the-fed-stage.is-committing .fed-board-shell { animation: fed-board-lock 620ms cubic-bezier(0.22, 0.9, 0.28, 1); }
.the-fed-stage.is-committing::after { animation: fed-scan-lock 620ms ease-out; }

.fed-broadcast-topbar { position: absolute; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: clamp(36px, 7.2cqmin, 60px); padding: 0 2.2cqw; border-bottom: max(1px, 0.24cqmin) solid rgba(125, 173, 219, 0.35); background: linear-gradient(180deg, rgba(3, 12, 26, 0.94), rgba(4, 15, 31, 0.78)); box-shadow: 0 0.7cqmin 0 rgba(0, 0, 0, 0.25); font-size: clamp(0.48rem, 1.45cqmin, 0.78rem); font-weight: 900; letter-spacing: 0.12em; }
.fed-broadcast-topbar > strong { color: #fff; font-size: clamp(0.72rem, 2.4cqmin, 1.2rem); letter-spacing: 0.18em; text-shadow: 0 0.22cqmin 0 #05090f; }
.fed-broadcast-topbar > span:last-child { justify-self: end; color: #9eb7cc; }
.fed-broadcast-live { display: inline-flex; align-items: center; gap: 0.65em; color: #ff8a80; }

.fed-stage-stats { position: absolute; top: 9.4%; left: 50%; z-index: 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(58cqw, 70cqmin); transform: translateX(-50%); overflow: hidden; border: max(1px, 0.28cqmin) solid rgba(95, 142, 183, 0.48); border-radius: 0.65cqmin; background: rgba(4, 13, 26, 0.87); box-shadow: 0 0.72cqmin 0 rgba(1, 5, 12, 0.78), 0 1.3cqmin 3.8cqmin rgba(0, 0, 0, 0.28); backdrop-filter: blur(0.55cqmin); }
.fed-stage-stats > div { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; padding: 0.65cqmin 0.8cqw; border-right: 1px solid rgba(100, 148, 189, 0.25); }
.fed-stage-stats > div:last-child { border-right: 0; }
.fed-stage-stats span { color: #8da7bd; font-size: clamp(0.35rem, 1.1cqmin, 0.62rem); font-weight: 900; letter-spacing: 0.08em; white-space: nowrap; }
.fed-stage-stats strong { color: #fff; font-size: clamp(0.6rem, 2cqmin, 1.05rem); font-weight: 950; text-shadow: 0 0.18cqmin 0 #04070b; }

.fed-board-shell { position: absolute; top: 22.5%; left: 50%; z-index: 10; width: min(60cqmin, 60cqw, 34rem); transform: translateX(-50%); transform-origin: center bottom; }
.fed-board-plaque { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin: 0 auto 1.05cqmin; padding: 0.65cqmin 1.2cqw; border: max(1px, 0.24cqmin) solid rgba(98, 141, 179, 0.5); border-radius: 0.45cqmin; background: linear-gradient(180deg, rgba(21, 32, 46, 0.96), rgba(6, 13, 24, 0.96)); box-shadow: 0 0.65cqmin 0 #050b14; font-size: clamp(0.42rem, 1.35cqmin, 0.75rem); font-weight: 950; letter-spacing: 0.08em; }
.fed-board-plaque b { color: #ff796f; }
.fed-tile-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.05cqmin; padding: 1.25cqmin; border: max(2px, 0.45cqmin) solid #1b2735; border-radius: 0.75cqmin; background: linear-gradient(145deg, rgba(16, 27, 39, 0.98), rgba(4, 10, 18, 0.98)); box-shadow: 0 1.15cqmin 0 #02060c, 0 1.7cqmin 4cqmin rgba(0, 0, 0, 0.58), inset 0 0 0 0.45cqmin rgba(86, 118, 148, 0.16); transform: perspective(110cqmin) rotateX(4deg); }
.fed-tile { position: relative; aspect-ratio: 1; min-width: 0; cursor: pointer; border: max(1px, 0.22cqmin) solid #394654; border-radius: 0.45cqmin; background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0 9%, transparent 10%), linear-gradient(145deg, #303b48, #141d27 58%, #0a111a); box-shadow: 0 0.72cqmin 0 #050a10, 0 0.9cqmin 1.7cqmin rgba(0, 0, 0, 0.42), inset 0 0 0 0.22cqmin rgba(255, 255, 255, 0.03); color: #d9e8f5; outline: none; transform: translateY(0); transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease; }
.fed-tile:not(:disabled):hover { z-index: 3; border-color: #87bce7; filter: brightness(1.18); transform: translateY(-0.45cqmin); }
.fed-tile:not(:disabled):active { box-shadow: 0 0.25cqmin 0 #050a10, inset 0 0 0 0.25cqmin rgba(255, 255, 255, 0.04); transform: translateY(0.45cqmin); }
.fed-tile:focus-visible { border-color: #fff; box-shadow: 0 0.72cqmin 0 #050a10, 0 0 0 0.45cqmin rgba(112, 190, 255, 0.9); }
.fed-tile:disabled { cursor: default; }
.fed-tile-face { position: absolute; inset: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.08em; overflow: hidden; text-align: center; text-shadow: 0 0.17cqmin 0 #03070c; }
.fed-tile-face b { font-size: clamp(0.52rem, 2.2cqmin, 1.05rem); font-weight: 950; letter-spacing: -0.02em; line-height: 1; }
.fed-tile-face small { width: 100%; overflow: hidden; color: #8fa6ba; font-size: clamp(0.28rem, 0.95cqmin, 0.55rem); font-weight: 850; line-height: 1.05; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.fed-tile.is-safe { border-color: #b5ffd1; background: linear-gradient(145deg, rgba(255, 255, 255, 0.42) 0 10%, transparent 11%), linear-gradient(145deg, #8ff7b5, #33b96c 56%, #12643a); box-shadow: 0 0.72cqmin 0 #0b3c23, 0 0 2.2cqmin rgba(73, 255, 139, 0.72), inset 0 0 0 0.3cqmin rgba(255, 255, 255, 0.17); color: #fff; animation: fed-safe-pop 330ms cubic-bezier(0.2, 1.5, 0.4, 1); }
.fed-tile.is-committed { z-index: 6; border-color: #ffb068; background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0 10%, transparent 11%), linear-gradient(145deg, #5b382d, #301921 58%, #110b13); box-shadow: 0 0.72cqmin 0 #28070b, 0 0 2.4cqmin rgba(255, 72, 55, 0.88), inset 0 0 0 0.3cqmin rgba(255, 205, 142, 0.15); animation: fed-tile-commit 620ms ease-in-out; }
.fed-tile.is-committed::after { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.42) 44%, transparent 72%); content: ""; transform: translateX(-120%); animation: fed-tile-scan 620ms ease-in-out; }
.the-fed-stage[data-tension="4"] .fed-tile.is-hidden:not(:disabled), .the-fed-stage[data-tension="5"] .fed-tile.is-hidden:not(:disabled) { animation: fed-tile-danger var(--fed-tension-speed) ease-in-out infinite; }
.fed-tile.is-safe small { color: #eafff1; }
.fed-tile.is-mine, .fed-tile.is-proof { border-color: #ff8c81; background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0 10%, transparent 11%), linear-gradient(145deg, #ff6b5e, #d52f32 52%, #75141d); box-shadow: 0 0.72cqmin 0 #3b0910, 0 0 2.8cqmin rgba(255, 50, 50, 0.85), inset 0 0 0 0.3cqmin rgba(255, 255, 255, 0.12); color: #fff; }
.fed-tile.is-mine { animation: fed-break 480ms cubic-bezier(0.2, 0.9, 0.35, 1.2); }
.fed-tile.is-proof { filter: saturate(0.66) brightness(0.7); }
.fed-tile.is-mine small, .fed-tile.is-proof small { color: #fff0ed; }

.fed-stage-callout { position: absolute; top: 50%; left: 50%; z-index: 30; display: flex; width: min(60cqw, 72cqmin); transform: translate(-50%, -50%); flex-direction: column; align-items: center; gap: 0.35em; padding: 1.6cqmin 2.4cqw; border: max(2px, 0.42cqmin) solid #3d4c5e; border-radius: 0.8cqmin; background: linear-gradient(165deg, rgba(28, 41, 56, 0.97), rgba(4, 10, 19, 0.98)); box-shadow: 0 1.1cqmin 0 #02050a, 0 2cqmin 6cqmin rgba(0, 0, 0, 0.7); text-align: center; pointer-events: none; }
.fed-stage-callout span { color: #82b7e6; font-size: clamp(0.42rem, 1.3cqmin, 0.72rem); font-weight: 950; letter-spacing: 0.14em; }
.fed-stage-callout strong { font-size: clamp(0.78rem, 2.9cqmin, 1.75rem); font-weight: 950; letter-spacing: -0.02em; line-height: 1.05; }
.fed-stage-callout b { color: #fff; font-size: clamp(1rem, 4.3cqmin, 2.5rem); line-height: 1; text-shadow: 0 0.25cqmin 0 #02050a; }
.fed-stage-callout.is-result.is-win { border-color: #64df92; background: linear-gradient(165deg, rgba(20, 75, 50, 0.97), rgba(3, 21, 15, 0.98)); }
.fed-stage-callout.is-result.is-loss { border-color: #f0645c; background: linear-gradient(165deg, rgba(105, 29, 32, 0.97), rgba(30, 4, 10, 0.98)); }
.fed-stage-callout.is-result { animation: fed-result-in 380ms cubic-bezier(0.2, 1.2, 0.3, 1); }

.fed-loading-curtain { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55em; background: rgba(2, 8, 18, 0.84); backdrop-filter: blur(0.7cqmin); font-size: clamp(0.62rem, 1.8cqmin, 1rem); letter-spacing: 0.12em; }
.fed-loading-curtain span { color: #88a7c1; font-size: 0.72em; letter-spacing: 0.06em; }
.fed-printer-loader { display: flex; align-items: end; gap: 0.65cqmin; height: 5cqmin; margin-bottom: 0.6cqmin; }
.fed-printer-loader i { display: block; width: 2.5cqmin; height: 2.5cqmin; border-radius: 0.32cqmin; background: #62df93; box-shadow: 0 0.55cqmin 0 #185f38, 0 0 1.5cqmin rgba(80, 255, 145, 0.55); animation: fed-printer 780ms steps(3, end) infinite; }
.fed-printer-loader i:nth-child(2) { animation-delay: 130ms; }
.fed-printer-loader i:nth-child(3) { animation-delay: 260ms; }
.fed-news-chyron { position: absolute; inset: auto 0 0; z-index: 35; display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; min-height: clamp(32px, 6.7cqmin, 58px); border-top: max(1px, 0.25cqmin) solid #28425a; background: rgba(3, 10, 21, 0.95); box-shadow: 0 -0.8cqmin 2.8cqmin rgba(0, 0, 0, 0.42); }
.fed-news-chyron > span { display: flex; align-items: center; padding: 0 1.5cqw; background: #d72d32; font-size: clamp(0.42rem, 1.25cqmin, 0.7rem); font-weight: 950; letter-spacing: 0.08em; }
.fed-news-chyron p { align-self: center; overflow: hidden; margin: 0; padding: 0 1.4cqw; font-size: clamp(0.42rem, 1.35cqmin, 0.76rem); font-weight: 800; letter-spacing: 0.025em; text-overflow: ellipsis; white-space: nowrap; }
.fed-news-chyron b { display: flex; align-items: center; padding: 0 1.4cqw; color: #7f9ab2; font-size: clamp(0.36rem, 1.05cqmin, 0.6rem); letter-spacing: 0.08em; }

.fed-game-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px 0; color: #7f919f; font-size: 10px; }
.fed-game-footer a { color: #9ad1ee; font-weight: 900; text-decoration: none; }
.fed-game-footer p { margin: 0; }

@keyframes fed-pulse { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0.4; } }
@keyframes fed-audio-pulse { 0%, 100% { opacity: 0.58; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes fed-alarm { 0%, 48% { filter: brightness(1); } 49%, 100% { filter: brightness(1.42); } }
@keyframes fed-board-lock { 0% { filter: brightness(1); transform: translateX(-50%) scale(1); } 35% { filter: brightness(1.24); transform: translateX(-50%) scale(1.012); } 100% { filter: brightness(0.88); transform: translateX(-50%) scale(1); } }
@keyframes fed-scan-lock { 0% { background-color: rgba(255, 74, 59, 0); } 28% { background-color: rgba(255, 74, 59, 0.12); } 100% { background-color: rgba(255, 74, 59, 0); } }
@keyframes fed-tile-commit { 0%, 100% { filter: brightness(1); transform: translateY(0); } 28% { filter: brightness(1.65); transform: translateY(0.5cqmin) scale(0.96); } 62% { filter: brightness(0.78); transform: translateY(0.22cqmin) scale(0.985); } }
@keyframes fed-tile-scan { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes fed-tile-danger { 0%, 100% { border-color: #394654; } 50% { border-color: rgba(255, 88, 75, 0.74); } }
@keyframes fed-safe-pop { 0% { transform: scale(0.82) translateY(0.55cqmin); filter: brightness(1.8); } 100% { transform: scale(1) translateY(0); filter: brightness(1); } }
@keyframes fed-break { 0% { transform: scale(0.82) rotate(-2deg); filter: brightness(2); } 45% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes fed-result-in { from { opacity: 0; transform: translate(-50%, -42%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fed-printer { 0%, 100% { transform: translateY(0); filter: brightness(0.7); } 50% { transform: translateY(-1.2cqmin); filter: brightness(1.35); } }

@media (max-width: 1023px) {
  .fed-page-shell { padding: 18px 0 30px; }
  .fed-hud { border-right: 0; border-left: 0; border-radius: 0; }
  .fed-layout { height: auto; grid-template-columns: 1fr; }
  .the-fed-stage { order: 1; min-height: 0; aspect-ratio: 1; background-image: url("/assets/the-fed/background-mobile.png"); }
  .the-fed-panel { order: 2; min-height: 600px; padding: 22px clamp(16px, 6vw, 34px); border-top: 3px solid #2a3640; border-right: 0; }
  .fed-board-shell { top: 21.5%; width: min(64cqmin, 78cqw); }
  .fed-stage-stats { top: 8.8%; width: min(76cqw, 82cqmin); }
  .fed-board-plaque { margin-bottom: 0.75cqmin; padding-block: 0.5cqmin; }
  .fed-tile-grid { gap: 0.78cqmin; padding: 0.95cqmin; }
  .fed-news-chyron b { display: none; }
  .fed-news-chyron { grid-template-columns: auto 1fr; }
  .fed-panel-footer p { text-align: center; }
}

@media (max-width: 680px) {
  .fed-site-topbar { grid-template-columns: 1fr auto; }
  .fed-site-brand span, .fed-site-lockup { display: none; }
  .fed-preview-pill { display: none; }
  .fed-topbar-actions { gap: 5px; }
  .fed-audio-toggle { padding-inline: 9px; }
  .fed-audio-menu { position: fixed; top: 62px; right: 10px; width: min(270px, calc(100vw - 20px)); }
  .fed-hud-title { min-height: 56px; }
  .fed-hud-title h1 { font-size: 26px; }
  .fed-hud-title span { display: none; }
  .fed-game-footer { display: grid; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fed-broadcast-live i, .fed-live-chip span, .fed-printer-loader i, .fed-tile.is-safe, .fed-tile.is-mine, .fed-stage-callout.is-result { animation: none; }
  .fed-tile, .fed-risk-bar span, .fed-primary-button { transition: none; }
  .fed-audio-toggle.is-on i, .the-fed-stage .fed-news-chyron > span, .the-fed-stage.is-committing .fed-board-shell, .the-fed-stage.is-committing::after, .fed-tile.is-committed, .fed-tile.is-committed::after, .the-fed-stage .fed-tile.is-hidden:not(:disabled) { animation: none; }
}
