/* WishGame design system. Paper, ink, and one loud colour. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fonts/bricolage.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jbmono.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-2: #e9e1d2;
  --card: #fffdf8;
  --ink: #16130f;
  --ink-2: #4a443b;
  --ink-3: #6f675b;
  --hair: #d6ccba;
  --accent: #ff4d1c;
  --yellow: #ffd23f;
  --blue: #2b63f0;
  --green: #17a35a;
  --pink: #ff9fbd;
  --danger: #c4290a;
  --r: 14px;
  --r-sm: 10px;
  --bw: 2px;
  --sh: 4px 4px 0 var(--ink);
  --sh-sm: 2px 2px 0 var(--ink);
  --sh-lg: 7px 7px 0 var(--ink);
  --font: 'Bricolage Grotesque', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
  --wrap: 1180px;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 19, 15, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sh-sm);
  transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--sh-sm); }
.btn-primary { background: var(--accent); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--accent); }
.btn-dark:hover { box-shadow: 3px 3px 0 var(--accent); }
.btn-yellow { background: var(--yellow); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; box-shadow: var(--sh); }
.btn-lg:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-plain { border-color: transparent; background: transparent; box-shadow: none; padding: 0 10px; font-weight: 600; }
.btn-plain:hover { background: var(--paper-2); transform: none; box-shadow: none; }
.btn-plain:active { transform: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { background: var(--yellow); }
.textbtn { color: var(--ink-3); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; min-height: 32px; padding: 0 6px; border-radius: 6px; }
.textbtn:hover { color: var(--ink); background: var(--paper-2); }
.textbtn .ico { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 40; background: rgba(244, 239, 230, .94); border-bottom: var(--bw) solid var(--ink); backdrop-filter: saturate(1.2) blur(6px); }
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; }
.brand:hover svg { transform: rotate(-8deg); }
.brand svg { transition: transform .15s ease; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.head-act { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 13.5px; font-weight: 700; padding: 7px 10px; border-radius: 8px; text-decoration: none; border: var(--bw) solid transparent; }
.lang:hover { border-color: var(--ink); background: var(--card); }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; border-radius: 999px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--sh); padding: 6px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 14.5px; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--yellow); }
.menu-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.menu-who b { display: block; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.menu-m { display: none; }
.menu > summary.burger { width: 42px; height: 42px; align-items: center; justify-content: center; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: var(--card); }
.only-m { display: none !important; }

.avatar { --h: 20; width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--h) 85% 78%); border: var(--bw) solid var(--ink); font-weight: 800; font-size: 14px; line-height: 1; text-transform: uppercase; }
.avatar-sm { width: 22px; height: 22px; font-size: 10.5px; border-width: 1.5px; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 38px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 6px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 6.2vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { display: block; }
.hero h1 .hl { position: relative; width: fit-content; z-index: 0; }
.hero h1 .hl::after { content: ''; position: absolute; left: -6px; right: -10px; bottom: .06em; height: .38em; background: var(--yellow); z-index: -1; transform: rotate(-.8deg); border-radius: 4px; }
:lang(zh-Hans) .hero h1 { letter-spacing: -.01em; line-height: 1.12; font-size: clamp(36px, 5.6vw, 68px); }
.hero-sub { margin-top: 22px; max-width: 540px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); }
.wishbar { margin-top: 28px; display: flex; gap: 10px; max-width: 600px; }
.wishbar input { flex: 1; min-width: 0; height: 58px; padding: 0 18px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: var(--card); font-size: 17px; box-shadow: var(--sh); }
.wishbar input::placeholder { color: var(--ink-3); }
.wishbar input:focus { outline: none; box-shadow: var(--sh), 0 0 0 4px rgba(43, 99, 240, .35); }
.wishbar .btn { min-height: 58px; }
.hero-hint { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.loop { position: relative; display: grid; gap: 12px; }
.loop li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 14px 16px 14px 14px; box-shadow: var(--sh); }
.loop li:nth-child(1) { transform: rotate(-1.2deg); margin-right: 26px; }
.loop li:nth-child(2) { transform: rotate(.9deg); margin-left: 26px; }
.loop li:nth-child(3) { transform: rotate(-.6deg); margin-right: 14px; margin-left: 8px; }
.loop li:nth-child(4) { transform: rotate(1.1deg); margin-left: 34px; }
.loop-n { width: 54px; height: 54px; border: var(--bw) solid var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; }
.loop li:nth-child(1) .loop-n { background: var(--accent); }
.loop li:nth-child(2) .loop-n { background: var(--yellow); }
.loop li:nth-child(3) .loop-n { background: var(--blue); color: #fff; }
.loop li:nth-child(4) .loop-n { background: var(--green); color: #fff; }
.loop b { display: block; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; }
.loop b + span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }

/* ---------- Section head + toolbar ---------- */
.board { padding: 18px 0 72px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h1, .sec-head h2 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
.stats { display: flex; gap: 16px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.stats b { font-family: var(--mono); color: var(--ink); font-size: 15px; margin-right: 4px; }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.toolbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: inline-flex; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.tabs a { padding: 9px 14px; font-size: 14.5px; font-weight: 700; text-decoration: none; border-right: var(--bw) solid var(--ink); white-space: nowrap; }
.tabs a:last-child { border-right: 0; }
.tabs a:hover { background: var(--paper-2); }
.tabs a[aria-current='true'] { background: var(--ink); color: var(--paper); }
.search { display: flex; flex: 1; min-width: 180px; max-width: 320px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 42px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: var(--card); padding: 0 42px 0 12px; font-size: 14.5px; }
.search button { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 40px; display: flex; align-items: center; justify-content: center; border-radius: 7px; }
.search button:hover { background: var(--yellow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: var(--bw) solid var(--ink); border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip:hover { background: var(--card); }
.chip[aria-current='true'] { background: var(--yellow); box-shadow: var(--sh-sm); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.select { height: 34px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--card); padding: 0 30px 0 12px; font-size: 13.5px; font-weight: 700; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316130f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.filter-note { display: flex; align-items: center; gap: 12px; font-size: 14.5px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Status + tags ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; background: var(--card); }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.st-open { background: var(--yellow); }
.st-planned { background: var(--pink); }
.st-building { background: var(--blue); color: #fff; }
.st-building::before { background: #fff; animation: blink 1.2s steps(2) infinite; }
.st-released { background: var(--green); color: #fff; }
.st-released::before { background: #fff; }
.st-declined { background: var(--paper-2); color: var(--ink-3); border-color: var(--ink-3); }
.st-declined::before { background: var(--ink-3); }
.chip .dot-open { background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.chip .dot-planned { background: var(--pink); box-shadow: 0 0 0 1.5px var(--ink); }
.chip .dot-building { background: var(--blue); }
.chip .dot-released { background: var(--green); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--paper-2); font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
a.tag:hover { background: var(--ink); color: var(--paper); }
.tag-pin { background: var(--ink); color: var(--paper); }
.tag-staff { background: var(--accent); color: var(--ink); height: 18px; padding: 0 6px; font-size: 10.5px; border-radius: 4px; }

/* ---------- Wish card ---------- */
.wishes { display: grid; gap: 14px; }
.wish { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); position: relative; transition: transform .1s ease, box-shadow .1s ease; }
.wish:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.vote { width: 74px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px 8px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--paper); position: relative; z-index: 2; transition: transform .08s ease, background-color .12s ease; }
.vote:hover:not([disabled]) { background: var(--yellow); transform: translateY(-2px); }
.vote:active:not([disabled]) { transform: translateY(1px); }
.vote svg { width: 20px; height: 20px; }
.vote-n { font-family: var(--mono); font-weight: 700; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vote-l { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.vote.is-on { background: var(--accent); }
.vote.is-on .vote-l { color: var(--ink); }
.vote.is-on svg path { fill: var(--ink); }
.vote[disabled] { cursor: default; background: var(--paper-2); color: var(--ink-3); border-color: var(--ink-3); }
.vote[disabled].is-on { background: var(--paper-2); }
.vote.pop { animation: pop .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.14) rotate(-3deg); } 100% { transform: scale(1); } }
.wish-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 7px; }
.wish h3 { font-size: 19.5px; line-height: 1.28; letter-spacing: -.015em; font-weight: 750; overflow-wrap: anywhere; }
.wish h3 a { text-decoration: none; }
.wish h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); z-index: 1; }
.wish h3 a:hover { text-decoration: underline; }
.wish-body { margin-top: 5px; color: var(--ink-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wish-meta { margin-top: 11px; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.wish-meta .who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; max-width: 100%; }
.wish-meta .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.wish-meta .cm { display: inline-flex; align-items: center; gap: 4px; }
.wish-meta .cm .ico { width: 14px; height: 14px; }
.wish-play { position: relative; z-index: 2; margin-left: auto; }

.empty { border: var(--bw) dashed var(--ink); border-radius: var(--r); padding: 40px 24px; text-align: center; background: rgba(255, 253, 248, .6); }
.empty > svg { width: 62px; height: 62px; margin: 0 auto 14px; }
.empty h3 { font-size: 22px; letter-spacing: -.02em; }
.empty p { color: var(--ink-2); margin: 8px auto 18px; max-width: 420px; }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Sidebar ---------- */
.side { display: grid; gap: 18px; position: sticky; top: calc(var(--head-h) + 18px); }
.panel { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px; }
.panel h2, .panel h3 { font-size: 13px; font-family: var(--mono); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h2 i, .panel h3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.panel-empty { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.mini { display: grid; gap: 10px; }
.mini li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.35; }
.mini a { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.mini a:hover { text-decoration: underline; }
.mini .n { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--paper-2); border-radius: 5px; padding: 2px 6px; min-width: 34px; text-align: center; margin-top: 1px; }
.panel-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 14px; }
.panel-cta { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.panel-cta h3 { color: var(--yellow); }
.panel-cta p { font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; color: #e8e0d0; }
.gmini { display: grid; gap: 10px; }
.gmini a { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; text-decoration: none; padding: 4px; margin: -4px; border-radius: 10px; }
.gmini a:hover { background: var(--paper-2); }
.gmini .cover { border-width: 1.5px; border-radius: 8px; }
.gmini b { display: block; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.gmini span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Games ---------- */
.page { padding: 38px 0 72px; }
.page-head { margin-bottom: 26px; max-width: 720px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.04em; line-height: 1.04; font-weight: 800; }
:lang(zh-Hans) .page-head h1 { letter-spacing: -.01em; line-height: 1.2; }
.page-head p { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 18px; padding: 4px 8px 4px 4px; border-radius: 6px; }
.crumb:hover { background: var(--paper-2); }
.crumb .ico { width: 16px; height: 16px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game { display: flex; flex-direction: column; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--sh); transition: transform .1s ease, box-shadow .1s ease; }
.game:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.cover { --h: 20; aspect-ratio: 16 / 10; width: 100%; background: hsl(var(--h) 80% 72%); border: var(--bw) solid var(--ink); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.game .cover { border: 0; border-bottom: var(--bw) solid var(--ink); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; background-image: linear-gradient(135deg, rgba(22, 19, 15, .16) 25%, transparent 25%, transparent 50%, rgba(22, 19, 15, .16) 50%, rgba(22, 19, 15, .16) 75%, transparent 75%); background-size: 28px 28px; }
.cover-t { position: relative; margin: 10px; padding: 4px 9px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15px; line-height: 1.25; border-radius: 6px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmini .cover-t { display: none; }
.game-in { padding: 14px 16px 16px; display: grid; gap: 6px; }
.game-in h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.2; }
.game-in p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.game-flag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 6px; font-size: 11.5px; font-weight: 800; padding: 2px 7px; }

.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.gd-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gd-title h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.035em; line-height: 1.05; font-weight: 800; }
.gd-title p { margin-top: 6px; font-size: 17px; color: var(--ink-2); }
.stage { position: relative; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); }
.stage-box { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; background: #0d0b09; }
.stage[data-o='portrait'] .stage-box { aspect-ratio: 9 / 16; max-height: min(78vh, 760px); width: auto; }
.stage[data-o='square'] .stage-box { aspect-ratio: 1 / 1; max-height: min(78vh, 760px); width: auto; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0d0b09; }
.stage-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; color: #fff; width: 100%; }
.stage-cover .cover { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border: 0; }
.stage-cover::after { content: ''; position: absolute; inset: 0; background: rgba(13, 11, 9, .52); }
.stage-cover > * { z-index: 1; }
.stage-cover .cover { z-index: 0; }
.playbtn { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 30px 0 24px; background: var(--accent); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 20px; box-shadow: 4px 4px 0 #fff; transition: transform .08s ease, box-shadow .08s ease; }
.stage-cover:hover .playbtn { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #fff; }
.playbtn svg { width: 24px; height: 24px; }
.stage-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--ink); color: var(--paper); border-top: 1px solid #3a342c; flex-wrap: wrap; }
.stage-bar .sp { flex: 1; }
.sbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 8px; color: var(--paper); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.sbtn:hover { background: #3a342c; }
.sbtn.is-on { background: var(--accent); color: var(--ink); }
.sbtn .ico { width: 17px; height: 17px; }
.stage.is-full { position: fixed; inset: 0; z-index: 90; border-radius: 0; border: 0; display: flex; flex-direction: column; }
.stage.is-full .stage-box { flex: 1; width: 100%; max-height: none; aspect-ratio: auto; }
.stage:fullscreen { display: flex; flex-direction: column; border-radius: 0; border: 0; }
.stage:fullscreen .stage-box { flex: 1; width: 100%; max-height: none; aspect-ratio: auto; }
body.no-scroll { overflow: hidden; }

.block { margin-top: 30px; }
.block > h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; font-weight: 800; }
.text { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.origin { display: grid; gap: 8px; background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); text-decoration: none; }
.origin:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.origin small { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.origin b { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.origin span { font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.facts { display: grid; gap: 10px; font-size: 14.5px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--ink-3); }
.facts dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* ---------- Wish detail ---------- */
.wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.wd { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 26px; }
.wd h1 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.16; letter-spacing: -.03em; font-weight: 800; margin-top: 12px; overflow-wrap: anywhere; }
:lang(zh-Hans) .wd h1 { letter-spacing: -.005em; line-height: 1.3; }
.wd-body { margin-top: 14px; }
.wd-by { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-3); flex-wrap: wrap; }
.wd-by b { color: var(--ink); }
.tr-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-orig { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--hair); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 15px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.wd-act { margin-top: 22px; padding-top: 20px; border-top: var(--bw) dashed var(--hair); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.votebig { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 16px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--yellow); font-weight: 800; font-size: 17px; box-shadow: var(--sh); transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease; }
.votebig:hover:not([disabled]) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.votebig:active:not([disabled]) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.votebig svg { width: 22px; height: 22px; }
.votebig .vote-n { font-size: 24px; padding-right: 12px; border-right: var(--bw) solid var(--ink); }
.votebig.is-on { background: var(--accent); }
.votebig[disabled] { background: var(--paper-2); color: var(--ink-3); border-color: var(--ink-3); box-shadow: none; cursor: default; }
.votebig[disabled] .vote-n { border-color: var(--ink-3); }
.wd-act .sp { flex: 1; }

.track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.track li { position: relative; padding-top: 30px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.track li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 4px; background: var(--hair); }
.track li:first-child::before { display: none; }
.track li::after { content: ''; position: absolute; top: 0; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--hair); }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--ink); }
.track li.done::after { background: var(--ink); border-color: var(--ink); }
.track li.now::after { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 77, 28, .25); }
.track small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-family: var(--mono); }
.note { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.log { display: grid; gap: 0; border-left: var(--bw) solid var(--ink); margin-left: 8px; }
.log li { position: relative; padding: 0 0 18px 20px; }
.log li:last-child { padding-bottom: 0; }
.log li::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: var(--bw) solid var(--ink); }
.log time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.log p { margin-top: 3px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Comments ---------- */
.cform { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 20px; }
.cform textarea { width: 100%; min-height: 76px; resize: vertical; }
.cform-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.clist { display: grid; gap: 16px; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.comment-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.comment-h b { color: var(--ink); font-size: 14.5px; }
.comment-b { margin-top: 3px; font-size: 15.5px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-a { margin-left: auto; display: flex; gap: 2px; opacity: .65; }
.comment:hover .comment-a, .comment-a:focus-within { opacity: 1; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.field > label.check { justify-content: flex-start; font-weight: 500; align-items: flex-start; }
.field > label small, .label small { font-weight: 500; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.input, .field input[type='text'], .field input[type='email'], .field input[type='url'], .field input[type='number'], .field textarea, .field select, textarea.input {
  width: 100%; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: #fff; padding: 11px 13px; font-size: 16px; line-height: 1.45;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus, .search input:focus, .select:focus { outline: none; box-shadow: 0 0 0 4px rgba(43, 99, 240, .32); }
.field input[readonly] { background: var(--paper-2); color: var(--ink-3); }
.help { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.ferr { background: #ffe3da; border: var(--bw) solid var(--danger); color: #7a1703; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.fok { background: #dff5e7; border: var(--bw) solid var(--green); color: #0b5a30; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: var(--bw) solid var(--ink); border-radius: 999px; font-size: 13.5px; font-weight: 700; background: #fff; }
.pills input:checked + span { background: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pills span:hover { background: var(--yellow); }
.pills input:checked + span:hover { background: var(--ink); }

/* ---------- Dialogs ---------- */
dialog.dlg { border: var(--bw) solid var(--ink); border-radius: 18px; padding: 0; background: var(--card); color: var(--ink); width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 8px 8px 0 var(--ink); overflow: auto; }
dialog.dlg-wide { width: min(580px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(22, 19, 15, .55); }
dialog.dlg[open] { animation: dlg .16s ease-out; }
@keyframes dlg { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.dlg-in { padding: 26px 26px 24px; position: relative; }
.dlg-x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.dlg-x:hover { background: var(--paper-2); }
.dlg h2 { font-size: 25px; letter-spacing: -.025em; line-height: 1.15; padding-right: 36px; font-weight: 800; }
.dlg-lead { margin: 7px 0 20px; color: var(--ink-2); font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--hair); }
.gbtn svg { width: 20px; height: 20px; }
.code-input { font-family: var(--mono) !important; font-size: 28px !important; letter-spacing: .32em; text-align: center; font-weight: 700; padding: 12px 8px !important; }
.dlg-fine { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.dlg-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.similar { background: var(--paper); border: var(--bw) dashed var(--ink); border-radius: var(--r-sm); padding: 12px; margin: -4px 0 16px; font-size: 14px; }
.similar p { font-weight: 700; margin-bottom: 8px; }
.similar a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.similar a:hover { background: var(--yellow); }
.similar a span:last-child { font-family: var(--mono); font-size: 12.5px; flex: none; }
.done { text-align: center; padding: 10px 0 4px; }
.done > svg { width: 76px; height: 76px; margin: 0 auto 14px; }
.done-link { display: flex; gap: 8px; margin: 18px 0 14px; }
.done-link input { flex: 1; min-width: 0; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 0 12px; height: 44px; background: var(--paper); font-family: var(--mono); font-size: 13px; }
.cf-turnstile { margin-bottom: 14px; min-height: 0; }

.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 11px 16px; font-size: 14.5px; font-weight: 600; box-shadow: 3px 3px 0 var(--accent); animation: toast .2s ease-out; max-width: 100%; }
.toast.err { background: var(--danger); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
@keyframes toast { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 25px; letter-spacing: -.025em; margin: 38px 0 12px; line-height: 1.2; font-weight: 800; }
.prose h3 { font-size: 18px; margin: 22px 0 6px; }
.prose p { margin-bottom: 14px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose ul.dots { margin: 0 0 16px; display: grid; gap: 8px; }
.prose ul.dots li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.prose ul.dots li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 2px; }
.prose a { font-weight: 600; }
.lead { font-size: 21px !important; line-height: 1.5 !important; color: var(--ink) !important; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 8px; max-width: none; }
.steps4 li { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.steps4 .loop-n { width: 42px; height: 42px; font-size: 15px; margin-bottom: 12px; border-radius: 10px; }
.steps4 li:nth-child(1) .loop-n { background: var(--accent); }
.steps4 li:nth-child(2) .loop-n { background: var(--yellow); }
.steps4 li:nth-child(3) .loop-n { background: var(--blue); color: #fff; }
.steps4 li:nth-child(4) .loop-n { background: var(--green); color: #fff; }
.steps4 b { display: block; font-size: 18px; letter-spacing: -.01em; }
.steps4 b + span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-52%); font-family: var(--mono); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--hair); }
.faq details p { padding: 12px 16px 16px; margin: 0; font-size: 16px; }
.rules { counter-reset: r; display: grid; gap: 12px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 46px 1fr; gap: 14px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 14px 16px; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-weight: 700; font-size: 15px; width: 46px; height: 46px; border: var(--bw) solid var(--ink); border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.rules b { display: block; font-size: 17.5px; }
.rules span { display: block; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin-top: 2px; }
.cta-band { margin-top: 44px; background: var(--accent); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band b { font-size: 26px; letter-spacing: -.03em; line-height: 1.15; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 44px; align-items: start; }
.formcard { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 24px; position: sticky; top: calc(var(--head-h) + 18px); }
.formcard h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 16px; font-weight: 800; }
.reqs { display: grid; gap: 10px; counter-reset: q; }
.reqs li { counter-increment: q; position: relative; padding-left: 38px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.reqs li::before { content: counter(q); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border: var(--bw) solid var(--ink); border-radius: 7px; background: var(--card); font-family: var(--mono); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* ---------- Me ---------- */
.me-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 10px 14px; text-decoration: none; }
a.row:hover { background: #fff; box-shadow: var(--sh-sm); }
.row .n { font-family: var(--mono); font-weight: 700; font-size: 14px; min-width: 40px; text-align: center; background: var(--paper-2); border-radius: 6px; padding: 3px 6px; }
.row b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger { margin-top: 26px; border: var(--bw) dashed var(--danger); border-radius: var(--r-sm); padding: 14px; }
.danger h3 { font-size: 15px; margin-bottom: 4px; }
.danger p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; line-height: 1.5; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: none; transform: none; }

/* ---------- Footer ---------- */
.foot { border-top: var(--bw) solid var(--ink); background: var(--ink); color: #d9d0bf; padding: 44px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.foot .brand { color: var(--paper); }
.foot p { margin-top: 12px; font-size: 14.5px; max-width: 300px; line-height: 1.55; }
.foot h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; font-weight: 700; }
.foot ul { display: grid; gap: 8px; }
.foot li a { text-decoration: none; font-size: 14.5px; }
.foot li a:hover { color: #fff; text-decoration: underline; }
.foot-end { margin-top: 34px; padding-top: 18px; border-top: 1px solid #3a342c; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9c9384; }
.fab { display: none; }

/* ---------- Admin ---------- */
.adm { padding: 26px 0 70px; }
.adm h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 14px; font-weight: 800; }
.adm-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-nav .chip b { font-family: var(--mono); background: var(--accent); border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.adm-cards a { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 14px; text-decoration: none; }
.adm-cards a:hover { box-shadow: var(--sh-sm); }
.adm-cards b { display: block; font-family: var(--mono); font-size: 28px; line-height: 1.1; }
.adm-cards span { font-size: 13.5px; color: var(--ink-2); }
.adm-item { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); margin-bottom: 12px; }
.adm-item > summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.adm-item > summary::-webkit-details-marker { display: none; }
.adm-item > summary b { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.adm-item[open] > summary { border-bottom: 1px solid var(--hair); }
.adm-body { padding: 14px; }
.adm-body .field { margin-bottom: 12px; }
.adm-body .field textarea { min-height: 64px; }
.adm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.adm-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-quote { background: var(--paper); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
.adm-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); overflow: hidden; font-size: 14.5px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.adm-table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--paper-2); }
.adm-scroll { overflow-x: auto; }
.inline { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop li, .loop li:nth-child(n) { transform: none; margin: 0; box-shadow: var(--sh-sm); grid-template-columns: 44px 1fr; padding: 12px; }
  .loop-n { width: 44px; height: 44px; font-size: 15px; }
  .board-grid, .gd-grid, .wd-grid, .two, .me-grid { grid-template-columns: minmax(0, 1fr); }
  .side, .formcard { position: static; }
  .side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --head-h: 58px; }
  .wrap { padding: 0 16px; }
  .nav, .head-act .hide-m { display: none; }
  .head-in { gap: 10px; }
  .head-act { margin-left: auto; }
  .menu-m { display: block; }
  .only-m { display: flex !important; }
  .menu-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--head-h) + 8px); min-width: 0; }
  .hero { padding: 30px 0 24px; }
  .hero-sub { font-size: 17px; margin-top: 16px; }
  .wishbar { flex-direction: column; margin-top: 22px; }
  .wishbar input { height: 54px; flex: none; }
  .wishbar .btn { width: 100%; }
  .loop b { font-size: 16px; }
  .loop b + span { font-size: 13px; }
  .sec-head h1, .sec-head h2 { font-size: 26px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 10px 6px; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chips > * { flex: none; }
  .chips::-webkit-scrollbar { display: none; }
  .wish { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .vote { width: 58px; padding: 7px 2px 6px; border-radius: 10px; }
  .vote-n { font-size: 17px; }
  .vote-l { font-size: 10px; }
  .wish h3 { font-size: 17.5px; }
  .wish-body { font-size: 14.5px; }
  .page { padding: 24px 0 90px; }
  .board { padding-bottom: 90px; }
  .wd { padding: 18px; box-shadow: var(--sh); }
  .votebig { flex: 1; justify-content: center; }
  .wd-act .sp { display: none; }
  .track li { font-size: 12px; }
  .games { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .game-in { padding: 11px 12px 13px; }
  .game-in h3 { font-size: 16.5px; }
  .stage { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .playbtn { min-height: 56px; font-size: 18px; }
  .sbtn span { display: none; }
  .dlg-in { padding: 22px 18px 20px; }
  dialog.dlg { margin: auto auto 12px; }
  .steps4 { grid-template-columns: 1fr; }
  .cta-band { padding: 22px; }
  .cta-band b { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .fab { display: inline-flex; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35; min-height: 52px; border-radius: 999px; padding: 0 20px 0 16px; box-shadow: var(--sh); }
  .toasts { bottom: 80px; }
  .adm-2, .adm-3 { grid-template-columns: 1fr; }
  .cform { grid-template-columns: 1fr; }
  .cform > .avatar { display: none; }
}
@media (max-width: 420px) {
  .loop { grid-template-columns: 1fr; }
  .brand { font-size: 19px; }
  .lang { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .head, .foot, .fab, .side { display: none; }
  body { background: #fff; }
}
