/* Self-hosted game portal. No build, script, font or external resource. */
:root { color-scheme: dark; --bg: #101315; --surface: #1b2023; --border: #363e42; --text: #f3f2eb; --muted: #b7bfc0; --gold: #f3c362; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; overflow-wrap: break-word; }
.wrap { width: min(100%, 1280px); margin: auto; padding: 0 36px; }
a { color: var(--text); text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.sitename { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -1px; }
.langbar { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.langbar a, .langbar span { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.langbar a:hover { background: var(--surface); color: var(--text); }
.langbar [aria-current="true"] { color: var(--text); background: #292f32; }
.intro { padding: 44px 0 30px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.intro h2 { margin: 0; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.14; letter-spacing: -1.7px; font-weight: 700; }
.lede { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 52rem; }
.timeline { display: grid; gap: 36px; position: relative; padding: 0; margin: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 14px; bottom: 24px; left: 36px; width: 1px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; position: relative; }
.year-mark { align-self: start; padding: 9px 0 14px; position: relative; background: var(--bg); }
.year-mark time { font-size: 28px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.year-mark::after { content: ""; display: block; width: 9px; height: 9px; margin: 12px 0 0 32px; border: 2px solid var(--gold); border-radius: 50%; background: var(--bg); }
.tile { --game-accent: var(--gold); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 32px #0003; }
.tile--escape { --game-accent: #78dcd4; }
.preview { position: relative; min-height: 340px; padding: 0; background: #080b0c; border-radius: 15px 0 0 15px; overflow: hidden; border-right: 1px solid var(--border); }
.preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.tile--escape .preview img { image-rendering: pixelated; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 25px 28px 28px; }
.card-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.card-title h3 { margin: 0; font-size: clamp(23px, 2.3vw, 29px); line-height: 1.2; letter-spacing: -0.7px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 20px; color: var(--game-accent); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.card-body .truth { margin-top: 10px; color: #c4cbcd; font-size: 12px; line-height: 1.55; }
.tile-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 17px; min-height: 48px; background: var(--game-accent); color: #141a1b; border-radius: 7px; font-size: 15px; font-weight: 750; text-decoration: none; }
.action-wrap { margin-top: auto; padding-top: 24px; }
.tile-action:hover { filter: brightness(1.09); }
.tile-action span { font-size: 21px; line-height: 1; }
.account { margin-top: 38px; padding: 23px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); }
.account summary { cursor: pointer; min-height: 44px; color: var(--text); }
.account h2 { display: inline; margin: 0; font-size: 17px; font-weight: 600; }
.account details p { max-width: 58rem; margin: 9px 0 20px; font-size: 14px; }
.account > p { margin: 0; max-width: 58rem; font-size: 13px; }
.account a { display: inline-block; padding: 9px 0; }
code { color: var(--text); font-family: ui-monospace, monospace; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 35px; color: var(--muted); font-size: 12px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
@media (max-width: 980px) {
  .tile { display: flex; flex-direction: column; }
  .preview { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); border-radius: 15px 15px 0 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .masthead { padding: 18px 0; }
  .timeline { gap: 28px; }
  .timeline::before { left: 5px; top: 24px; bottom: 24px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 24px; }
  .year-mark { padding: 0; background: transparent; }
  .year-mark time { font-size: 25px; }
  .year-mark::after { position: absolute; left: -23px; top: 15px; margin: 0; }
  .intro { padding: 32px 0 25px; }
  .card-body { padding: 22px; }
  .intro h2 { letter-spacing: -1px; }
  .lede { font-size: 15px; }
  .account { margin-top: 30px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .masthead { gap: 8px; }
  .langbar a, .langbar span { padding: 8px 9px; }
  .card-body { padding: 19px; }
}
@media (forced-colors: active) { .tile-action { border: 1px solid ButtonText; } }

/* Round 389: four responsive groups inside BTC; captions wrap only at word boundaries. */
.compact-badges { --strip-ink: #eee1c7; --strip-gold: #e7b34b; width: 100%; container-type: inline-size; font-family: Arial, Helvetica, sans-serif; }
.compact-badge-strip { display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); column-gap: 6px; max-width: 400px; padding: 12px 0 0; margin: 0 auto; list-style: none; }
.compact-badge-item { display: grid; grid-template-columns: auto; gap: 2px; align-content: start; justify-items: center; min-width: min-content; margin: 0; padding: 0; }
.compact-badge-art { width: 30px; height: 26px; margin: 0; }
.compact-badge-art img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.compact-badge-caption { color: var(--strip-ink); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-align: center; white-space: normal; overflow-wrap: normal; word-break: normal; }
.compact-badge-caption span { display: block; color: var(--strip-gold); }
.compact-badges + .action-wrap { padding-top: 14px; }
