:root {
  --bg: #0e1116;
  --panel: #151a22;
  --text: #e8eaed;
  --muted: #9aa4b2;
  --accent: #7cc4ff;
  --border: #263040;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.brand { font-weight: 700; color: var(--text); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; }
h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 18px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 12px 0; color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
th { background: var(--panel); color: var(--muted); font-weight: 600; }
pre { background: var(--panel); padding: 12px; border-radius: 8px; overflow: auto; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.note { border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--panel); color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); padding: 20px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 6px 0; color: var(--muted); }

/* game stage */
.hero h1 { font-size: clamp(26px, 4vw, 38px); }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b0e13; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 10px 0 12px; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 400px at 50% 30%, #1b2533 0%, #0b0e13 70%); }
.cover-inner { text-align: center; padding: 20px; }
.cover-title { display: block; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: .5px; }
.cover-sub { display: block; color: var(--muted); margin: 8px 0 18px; font-size: 14px; }
.btn-play { font-size: 16px; font-weight: 600; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: #071018; }
.btn-play:hover { filter: brightness(1.1); }
.loader { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(11,14,19,.92); color: var(--muted); font-size: 14px; }
.stage[data-gf-state="loading"] .loader { display: flex; }
.stage-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 20px; }
.btn-mini { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.btn-mini[aria-pressed="true"], .btn-mini[data-gf-liked] { border-color: var(--accent); color: var(--accent); }
.mini-msg { color: var(--muted); font-size: 13px; }
/* comments */
.comments { margin-top: 34px; border-top: 1px solid var(--border); padding-top: 18px; }
.comment { border-left: 2px solid var(--border); padding: 4px 12px; margin: 10px 0; }
.comment p { margin: 4px 0 0; }
.comment-form { display: grid; gap: 8px; margin-top: 14px; max-width: 560px; }
.comment-form input, .comment-form textarea { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font: inherit; }
.comment-form button { justify-self: start; background: var(--accent); color: #071018; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; }

.tier{display:inline-block;min-width:22px;text-align:center;font-weight:700;border-radius:6px;padding:2px 6px;font-size:13px;color:#071018}
.tier-s{background:#f6ad55}
.tier-a{background:#f6e05e}
.tier-b{background:#68d391}
.tier-c{background:#90cdf4}
.tier-d{background:#a0aec0}
