/* DayOneDrop: game launches shown like an airport departures board.
   Layout idea: a big split-flap board up top, then calendar strips and game "boarding pass" cards. */
:root {
  --bg: #0c0d10;
  --panel: #14161b;
  --flap: #1b1e24;
  --flap-hi: #23272f;
  --rule: #2a2e37;
  --amber: #ffc629;
  --text: #f1eee6;
  --muted: #9aa0ab;
  --go: #4ade80;
  --late: #ff5a4e;
  --sky: #6ec1ff;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--display); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(900px 500px at 80% -10%, rgba(255,198,41,0.08), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px); }
main, header, footer, nav { position: relative; z-index: 1; }
a { color: var(--amber); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.topbar { border-bottom: 1px solid var(--rule); background: rgba(12,13,16,0.86); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-mark { display: grid; grid-template-columns: repeat(3, 12px); gap: 2px; }
.logo-mark i { height: 18px; background: var(--flap-hi); border-radius: 2px; position: relative; }
.logo-mark i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.logo-mark i:nth-child(2) { background: var(--amber); }
.logo b { color: var(--amber); }
.links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.links a { display: block; padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.92rem; border-radius: 6px; }
.links a:hover { color: var(--text); background: var(--panel); }
.links a[aria-current="page"] { color: var(--bg); background: var(--amber); }
.menu-btn { display: none; font: inherit; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--panel); padding: 10px 16px 16px; border-bottom: 1px solid var(--rule); }
  .topbar.open .links { display: flex; }
}

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--rule); background: #0f1014; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.ticker-run { display: flex; gap: 40px; width: max-content; padding: 8px 0; animation: run 50s linear infinite; }
.ticker-run b { color: var(--amber); font-weight: 600; }
@keyframes run { to { transform: translateX(-50%); } }

/* hero */
.hero { padding: 44px 0 24px; }
.kicker { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.lead { font-size: 1.15rem; color: #d7d3ca; max-width: 58ch; }

/* split flap */
.flaps { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.fl { position: relative; display: inline-grid; place-items: center; width: 0.78em; height: 1.18em; background: linear-gradient(180deg, var(--flap-hi) 0 49%, #000 49% 51%, var(--flap) 51%); border-radius: 0.09em; color: var(--text); font-family: var(--mono); font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.03); }
.fl.sp { background: transparent; box-shadow: none; }
.fl.flip { animation: flip .09s linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
.next-drop { margin: 26px 0 8px; padding: 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; display: grid; gap: 14px; }
.next-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.next-title { font-size: clamp(1.3rem, 3.6vw, 2.4rem); }
.next-title .fl { color: var(--amber); }
.cd { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.cd-unit { display: grid; gap: 4px; }
.cd-unit .flaps { font-size: clamp(1.8rem, 5vw, 3rem); }
.cd-unit > span:last-child { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font: inherit; font-weight: 800; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: var(--amber); color: #111; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-2px); color: #111; background: #ffd65e; }
.btn.line { background: transparent; color: var(--text); border-color: var(--rule); }
.btn.line:hover { border-color: var(--amber); color: var(--amber); }
.btn.sm { padding: 7px 12px; font-size: 0.85rem; }

/* departures board */
section { padding: 40px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head p { margin: 0; }
.board { background: #08090b; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #111318; border-bottom: 1px solid var(--rule); }
.board-title { font-family: var(--mono); font-weight: 600; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--amber); }
.clock { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chip[aria-pressed="true"] { color: #111; background: var(--amber); border-color: var(--amber); }
.board-scroll { overflow-x: auto; }
table.dep { width: 100%; border-collapse: collapse; font-family: var(--mono); min-width: 760px; }
.dep th { text-align: left; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--rule); text-transform: uppercase; }
.dep td { padding: 12px 14px; border-bottom: 1px solid #16181d; vertical-align: middle; font-size: 0.95rem; }
.dep tr:hover td { background: #0e1014; }
.dep .t { font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
.dep .t a { color: var(--text); text-decoration: none; }
.dep .t a:hover { color: var(--amber); }
.dep .d { color: var(--amber); white-space: nowrap; }
.dep .p { color: var(--muted); font-size: 0.82rem; }
.stat { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.stat.dated { color: var(--go); background: rgba(74,222,128,0.1); }
.stat.delayed { color: var(--late); background: rgba(255,90,78,0.12); animation: blink 1.6s ease-in-out infinite; }
.stat.window { color: var(--sky); background: rgba(110,193,255,0.1); }
.star { font: inherit; background: none; border: 0; cursor: pointer; color: #555b66; font-size: 1.15rem; line-height: 1; padding: 4px; }
.star[aria-pressed="true"] { color: var(--amber); }
.tminus { color: var(--text); white-space: nowrap; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.pass { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; overflow: hidden; transition: transform .2s, border-color .2s; }
.pass:hover { transform: translateY(-4px); border-color: var(--amber); color: var(--text); }
.pass::after { content: ""; position: absolute; right: 64px; top: 0; bottom: 0; border-left: 2px dashed var(--rule); }
.pass .code { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--muted); }
.pass .big { font-family: var(--mono); font-size: 1.8rem; color: var(--amber); font-weight: 600; line-height: 1; }
.pass h3 { margin: 0; padding-right: 76px; }
.pass .stub { position: absolute; right: 0; top: 0; bottom: 0; width: 64px; display: grid; place-items: center; writing-mode: vertical-rl; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted); }
.tile { height: 90px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 2.2rem; letter-spacing: -0.04em; color: rgba(0,0,0,0.55); margin-right: 76px; }

/* calendar */
.months { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.month { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; }
.month h3 { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.18em; color: var(--amber); text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.month h3 small { color: var(--muted); letter-spacing: 0; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-family: var(--mono); font-size: 0.72rem; }
.days b { color: var(--muted); font-weight: 500; text-align: center; padding-bottom: 2px; }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; color: #5f6570; }
.day.has { background: var(--amber); color: #111; font-weight: 700; cursor: pointer; }
.day.today { outline: 1px solid var(--sky); color: var(--text); }
.mlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.mlist li { display: flex; gap: 8px; }
.mlist .dd { font-family: var(--mono); color: var(--amber); min-width: 46px; }
.mlist a { color: var(--text); text-decoration: none; }
.mlist a:hover { color: var(--amber); }

/* game page */
.gp-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .gp-head { grid-template-columns: 1fr; } }
.ticket { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.ticket-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px dashed var(--rule); }
.ticket-row > div { padding: 14px 16px; }
.ticket-row > div + div { border-left: 1px solid var(--rule); }
.ticket .lbl { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
.ticket .val { font-weight: 800; }
.ticket .cdw { padding: 16px; }
.ticket .cdw .flaps { font-size: 1.9rem; }
.ticket .acts { padding: 14px 16px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.facts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts-list li { padding: 14px 16px 14px 44px; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; position: relative; }
.facts-list li::before { content: "✓"; position: absolute; left: 16px; top: 14px; color: var(--go); font-weight: 900; }
.hist { border-left: 2px solid var(--rule); margin-left: 6px; padding-left: 18px; display: grid; gap: 12px; }
.hist div { position: relative; }
.hist div::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }
.hist small { font-family: var(--mono); color: var(--muted); display: block; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* tools */
.tool { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.tool select, .tool input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; width: 100%; }
.tool label { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.out { margin-top: 14px; display: grid; gap: 8px; }
.out .row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.95rem; }
.out .row b { font-family: var(--mono); color: var(--amber); font-weight: 600; white-space: nowrap; }
.empty { padding: 18px; border: 1px dashed var(--rule); border-radius: 10px; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #d4d0c7; }

.ad-slot { margin: 24px auto; text-align: center; }
.ad-slot:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--amber); color: #111; font-weight: 800; padding: 10px 16px; border-radius: 8px; transition: all .25s; z-index: 99; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { border-top: 1px solid var(--rule); padding: 34px 0 28px; margin-top: 30px; font-size: 0.9rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--amber); }
.legal { font-size: 0.8rem; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
