/* ===== PokéCyrus Online — shared theme ===== */
:root {
  --bg: #0c0a0b; --bg2: #0a0809;
  --surface: #16181c; --surface2: #1b1e23;
  --line: rgba(255,255,255,0.08); --line2: rgba(255,255,255,0.14);
  --red: #e11d2a; --red-bright: #ec2530; --red-deep: #b3121e; --red-glow: rgba(225,29,42,0.35);
  --text: #eef1f4; --muted: #aab3bd; --steel: #6f8aa3; --dim: #7d8894;
  --gold: #f2c14e;
  --shadow: rgba(0,0,0,0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; background: var(--bg); overflow-x: hidden; min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% -8%, rgba(225,29,42,0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(225,29,42,0.08), transparent 30%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.016) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #0e0b0c, var(--bg2));
}
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
a { color: var(--text); text-decoration: none; }
.wrap { width: min(1120px, 92%); margin: auto; position: relative; z-index: 1; }

/* ===== buttons ===== */
.btn {
  display: inline-block; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-size: .82rem; padding: .9rem 1.6rem; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}
.btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red-deep)); color: #fff;
  box-shadow: 0 6px 18px rgba(225,29,42,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(225,29,42,.45); }
.btn-outline { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line2); }
.btn-outline:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: .95rem; }
.btn-sm { padding: .55rem 1rem; font-size: .74rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: grayscale(.2); }
.btn.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--line2); }

/* ===== topbar (injected) ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(10,8,9,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { width: min(1120px,92%); margin: auto; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 800; font-style: italic; font-size: 1.12rem; white-space: nowrap; }
.brand .pc { color: #fff; } .brand .on { color: var(--red); }
.links { display: flex; gap: 1.25rem; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.links a { color: var(--muted); } .links a:hover { color: #fff; } .links a.active { color: #fff; }
.nav .btn { padding: .55rem 1.1rem; font-size: .72rem; }

/* ===== hero ===== */
header.hero-head { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 7rem 1rem 4rem; position: relative; }
.hero { position: relative; z-index: 1; width: min(880px, 100%); animation: reveal 800ms ease-out both; }
.eyebrow-hero { color: var(--steel); letter-spacing: .28em; font-size: .72rem; text-transform: uppercase; margin-bottom: 1.1rem; }
.logo { font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .95; margin: 0; }
.logo .pc { color: #fff; text-shadow: 0 2px 30px rgba(255,255,255,.12); }
.logo .on { color: var(--red); text-shadow: 0 0 34px var(--red-glow); }
.hero-title { font-size: clamp(1.3rem, 3vw, 2rem); color: #fff; margin: 1.4rem 0 .5rem; font-weight: 700; }
.hero-sub { font-style: italic; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 auto; max-width: 620px; }

/* ===== countdown ===== */
.cd-caption { margin: 2.4rem 0 .9rem; color: var(--steel); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; }
.countdown { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.cd-unit { min-width: 92px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid rgba(225,29,42,.75);
  border-radius: 12px; padding: 1rem .6rem .8rem; box-shadow: 0 12px 30px var(--shadow); }
.cd-num { display: block; font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: .5rem; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.cd-live { margin: 1.5rem 0 2.2rem; font-size: 1.35rem; color: #fff; }
.cd-live strong { color: var(--red); }

/* ===== page head (subpages) ===== */
.page-head { padding: 8rem 0 1.2rem; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; margin-bottom: .5rem; }
h1.title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 0 0 .5rem; color: #fff; }
.lede { color: var(--muted); max-width: 760px; margin: 0; }
.crumb { margin-bottom: 1rem; font-size: .8rem; color: var(--dim); }
.crumb a { color: var(--steel); } .crumb a:hover { color: #fff; }

/* ===== sections ===== */
section.section { padding: 3.5rem 0; position: relative; }
.section-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 .5rem; letter-spacing: .01em; font-weight: 800; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .7rem; background: linear-gradient(90deg, var(--red), transparent); border-radius: 2px; }
.section-sub { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; font-weight: 700; margin: 0 0 1rem; }
.section-intro { color: var(--muted); max-width: 820px; margin: 0 0 1.4rem; }
.section-note { color: var(--dim); font-size: .85rem; margin-top: 1.4rem; }

/* ===== cards / grid ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--surface2));
  border-radius: 14px; padding: 1.5rem; box-shadow: 0 18px 45px rgba(0,0,0,.32);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(225,29,42,.4); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card h3 { color: #fff; margin: 0 0 .6rem; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 .6rem; }
.card p:last-child { margin-bottom: 0; }
.label { color: var(--steel); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .45rem; }
.big { font-size: 1.35rem; color: #fff; }

/* hub cards (home) */
a.hubcard { display: block; }
a.hubcard h3 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
a.hubcard h3 .arw { color: var(--red); transition: transform .2s ease; }
a.hubcard:hover h3 .arw { transform: translateX(4px); }

/* mission callout */
.mission { text-align: center; background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 14px; padding: 1.6rem; margin: 0 0 1.75rem; }
.mission .big { font-size: 1.7rem; color: #fff; }
.quote { font-style: italic; color: var(--text); max-width: 820px; }

/* status list */
.status { display: grid; gap: .8rem; }
.status div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; color: var(--muted); }
.status strong { color: #fff; white-space: nowrap; }
.status .active { color: var(--red); text-shadow: 0 0 16px var(--red-glow); }

/* dispatch */
.dispatch { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: stretch; }
.dispatch .card:first-child { border-left: 3px solid var(--red); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .9rem 0 .9rem 1.6rem; border-left: 1px solid var(--line2); position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 1.3rem; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red-glow); }

/* play cards */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.play-card { text-align: center; display: flex; flex-direction: column; }
.play-card .play-icon { width: 58px; height: 58px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,42,.18), rgba(225,29,42,.05)); border: 1px solid rgba(225,29,42,.4); color: var(--red); font-size: 1.5rem; }
.play-card p { flex: 1; }
.play-card .btn { margin-top: 1.2rem; }
.dl-list { display: grid; gap: .5rem; margin-top: 1.1rem; width: 100%; }
.dl-list .btn { margin-top: 0; }
.dl-btn { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: .62rem 1rem; }
.dl-btn small { font-weight: 600; opacity: .82; text-transform: none; letter-spacing: 0; font-size: .66rem; margin-top: .12rem; }
.dl-note { color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .55rem; text-align: center; }

/* notice */
.notice { margin: 1.3rem 0 0; padding: .85rem 1.1rem; border-radius: 10px;
  background: rgba(225,29,42,.08); border: 1px solid rgba(225,29,42,.28); border-left: 3px solid var(--red); color: var(--muted); font-size: .9rem; }
.notice strong { color: #fff; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin: 1.6rem 0 1rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tab { padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--line2); background: rgba(255,255,255,.02);
  color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.tab:hover { color: #fff; border-color: var(--red); }
.tab.active { background: linear-gradient(180deg, var(--red-bright), var(--red-deep)); color: #fff; border-color: transparent; }
.search { flex: 1; min-width: 200px; max-width: 340px; background: var(--surface); border: 1px solid var(--line2);
  border-radius: 8px; padding: .7rem .95rem; color: var(--text); font-size: .95rem; font-family: inherit; }
.search::placeholder { color: var(--dim); }
.search:focus { outline: none; border-color: var(--red); }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.gtable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
table.gtable th, table.gtable td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.gtable thead th { color: var(--steel); text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; background: rgba(255,255,255,.02); position: sticky; top: 0; }
table.gtable tbody tr:hover { background: rgba(225,29,42,.06); }
table.gtable td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.gtable td.zero { color: var(--dim); }
table.gtable .name { color: #fff; font-weight: 600; }

/* chips / rarity badges */
.chip { display: inline-block; font-size: .66rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); margin: 0 .15rem .15rem 0; }
.rt { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .12rem .45rem; border-radius: 999px; }
.rt-common { color: #cfe0ee; background: rgba(111,138,163,.16); border: 1px solid rgba(111,138,163,.4); }
.rt-uncommon { color: #bfe6c6; background: rgba(90,180,120,.16); border: 1px solid rgba(90,180,120,.4); }
.rt-rare, .rt-mega { color: #ffd7db; background: rgba(225,29,42,.16); border: 1px solid rgba(225,29,42,.4); }
.rt-ultra, .rt-legendary { color: #f2d79a; background: rgba(242,193,78,.16); border: 1px solid rgba(242,193,78,.45); }

/* ===== footer (injected) ===== */
footer.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
  position: relative; z-index: 1; background: rgba(8,6,7,.6); margin-top: 3rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .8rem 0; font-size: .82rem; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: #fff; }
footer.site-footer .discord { color: var(--gold); }
.disclaimer { margin-top: 1rem; font-size: .74rem; color: #8b8288; max-width: 980px; }

@media (max-width: 760px) {
  .links a:not(.btn) { display: none; }
  .dispatch { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: 1fr; }
  .status div { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .controls { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .cd-unit { min-width: 68px; padding: .8rem .4rem .6rem; }
  .cd-num { font-size: 1.8rem; }
}
