/* Midnight Arcade v2: a modern take on the night-sky arcade.
   Glass panels over a painted night sky, gold and violet accents, Lilita One for the arcade voice. */
:root {
  --bg: #07061a; --bg2: #110c33;
  --glass: rgba(26, 19, 68, .66); --glass2: rgba(40, 30, 98, .55); --glass-hi: rgba(60, 46, 140, .55);
  --line: rgba(196, 178, 255, .16); --line2: rgba(196, 178, 255, .28);
  --ink: #f5f1ff; --muted: #aaa3d8; --dim: #7d76ad;
  --gold: #ffc845; --gold2: #ff9f1c; --violet: #8f6bff; --violet2: #b9a0ff; --cyan: #7ee8ff; --green: #6ee7a0; --pink: #ff6fa8;
  --r: 20px; --r-sm: 14px;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --ui: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.55 var(--ui); min-height: 100vh; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- the sky ---------- */
#sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at 80% -10%, #3b2a8f 0, rgba(59, 42, 143, 0) 55%), radial-gradient(ellipse at 10% 10%, #2a1d6e 0, rgba(42, 29, 110, 0) 50%), linear-gradient(180deg, #1a1250, var(--bg) 70%); }
/* the painted sky (made with Higgsfield) fades into the page */
#sky .art { position: absolute; left: 0; right: 0; top: 0; height: max(70vh, 460px); background: url(/static/img/sky.jpg) 50% 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 45%, rgba(0, 0, 0, .35) 75%, transparent); mask-image: linear-gradient(#000 45%, rgba(0, 0, 0, .35) 75%, transparent); }
#sky .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 6, 26, .1), rgba(7, 6, 26, .45)); }
#sky::before, #sky::after { z-index: 1; content: ""; position: absolute; inset: -50%; background-image:
  radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90px 120px, #e8e2ff 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 170px 60px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 240px 180px, #ffe9a8 50%, transparent 51%);
  background-size: 260px 220px; opacity: .45; animation: twinkle 6s ease-in-out infinite alternate; }
#sky::after { background-size: 380px 330px; animation-delay: -3s; opacity: .3; }
@keyframes twinkle { to { opacity: .12; } }

#wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 28px; }

/* ---------- header ---------- */
#head { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 10px 14px 10px 10px;
  background: rgba(16, 11, 46, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mascot { width: 54px; height: 54px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(255, 200, 69, .35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-3deg); } }
.word { display: flex; gap: 7px; align-items: baseline; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.w1, .w2 { background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.w1 { background-image: linear-gradient(180deg, #fff3b8, var(--gold) 55%, var(--gold2)); }
.w2 { background-image: linear-gradient(180deg, #ffffff, var(--violet2)); }
.head-r { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.search { flex: 0 1 340px; display: flex; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--gold); background: rgba(255, 255, 255, .11); }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); padding: 10px 4px 10px 16px; font: 15px var(--ui); outline: none; }
.search input::placeholder { color: var(--muted); }
.search button { flex: none; width: 40px; height: 40px; margin: 2px; border: 0; border-radius: 50%; background: linear-gradient(180deg, #ffe07a, var(--gold2)); color: #2a1600; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 18px; height: 18px; }
.counter { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); white-space: nowrap; }
.lcd { font: 700 15px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 2px; color: var(--green); background: #050a12; padding: 5px 8px; border-radius: 8px; text-shadow: 0 0 8px rgba(110, 231, 160, .7); box-shadow: inset 0 0 0 1px rgba(110, 231, 160, .2); }
.counter small { color: var(--muted); font-size: 12px; }

/* ---------- section tabs ---------- */
#tabs { display: flex; gap: 8px; margin: 14px 0 0; padding: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
#tabs::-webkit-scrollbar { display: none; }
#tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px;
  background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, border-color .2s, transform .15s; }
#tabs a img { width: 22px; height: 22px; object-fit: contain; }
#tabs a:hover { border-color: var(--line2); background: var(--glass-hi); transform: translateY(-1px); }
#tabs a.on { background: linear-gradient(180deg, #ffe07a, var(--gold2)); color: #2a1600; border-color: transparent; box-shadow: 0 6px 20px rgba(255, 170, 40, .3); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; margin: 12px 0 0; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); font-size: 13.5px; color: #e9e3ff; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tick-in { display: inline-flex; gap: 48px; padding: 7px 0 7px 100%; animation: tick 46s linear infinite; }
.tick-in span::before { content: "★"; color: var(--gold); margin-right: 10px; }
.tick-in b { color: var(--gold); }
@keyframes tick { to { transform: translateX(-100%); } }
.top-ad { display: flex; justify-content: center; margin: 14px 0 0; }

/* ---------- layout ---------- */
#main { padding-top: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cols.one { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; }
.col-main, #side { display: grid; gap: 18px; min-width: 0; }

/* ---------- panels ---------- */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); overflow: hidden; }
.ptitle { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px 4px; font: 22px/1.1 var(--display); letter-spacing: .02em; color: var(--ink); }
.ptitle svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: #2a1600; background: linear-gradient(180deg, #ffe07a, var(--gold2)); flex: none; }
.orange .ptitle svg { background: linear-gradient(180deg, #ffd27a, #ff7a3c); }
.green .ptitle svg { background: linear-gradient(180deg, #a6f5c8, #36c27a); color: #06301a; }
.ptitle.big { font-size: 30px; flex-wrap: wrap; gap: 4px 12px; padding: 16px 18px 12px; }
.ptitle.big small { font: 500 15px var(--ui); color: var(--muted); letter-spacing: 0; }
.pbody { padding: 14px 18px 18px; }
.empty { color: var(--muted); margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line2); color: var(--ink); font-size: 13.5px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; border-radius: 26px; border: 1px solid var(--line2); background-size: cover; background-position: center; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 200, 69, .08) inset; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 6, 26, .85) 0, rgba(7, 6, 26, .15) 55%, rgba(7, 6, 26, 0)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; padding: 28px; max-width: 560px; }
.hero h1 { margin: 0; font: 64px/.95 var(--display); letter-spacing: .01em; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.hero .tag { margin: 6px 0 8px; font-weight: 700; font-size: 17px; color: var(--gold); }
.hero p { margin: 0 0 16px; color: #ece7ff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0;
  font: 18px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #2a1600; background: linear-gradient(180deg, #ffe58a, var(--gold) 45%, var(--gold2));
  box-shadow: 0 8px 24px rgba(255, 160, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .7); transition: transform .15s, box-shadow .2s, filter .2s; }
.btn-play:hover { color: #2a1600; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 160, 30, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-play:active { transform: translateY(1px); }
.btn-play svg { width: 18px; height: 18px; }
.btn-play.big { font-size: 22px; padding: 14px 30px; }
.btn-play.huge { font-size: 32px; padding: 18px 46px; }
.btn-play.huge svg { width: 28px; height: 28px; }
.btn-play.small { font-size: 14px; padding: 8px 15px; }
.btn-play.small svg { width: 14px; height: 14px; }

/* ---------- stickers ---------- */
.burst { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font: 13px/1 var(--display); letter-spacing: .06em; color: #2a1600; background: linear-gradient(180deg, #ffe58a, var(--gold2)); box-shadow: 0 4px 14px rgba(255, 160, 30, .5); transform: rotate(-6deg); }
.burst.big { top: 20px; left: auto; right: 20px; padding: 8px 16px; font-size: 16px; background: linear-gradient(180deg, #ff9bc3, var(--pink)); color: #fff; box-shadow: 0 6px 24px rgba(255, 111, 168, .5); transform: rotate(6deg); }

/* ---------- game grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: #120c33; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); outline: 1px solid var(--line); outline-offset: -1px; transition: transform .2s, box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .thumb, .tile:focus-visible .thumb { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold), 0 0 30px rgba(255, 200, 69, .25); }
.tile:hover .thumb img { transform: scale(1.06); }
.hover-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; background: radial-gradient(circle, rgba(10, 6, 40, .25), rgba(10, 6, 40, .7)); color: #fff; font: 15px var(--display); letter-spacing: .08em; opacity: 0; transition: opacity .2s; }
.hover-play svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; color: #2a1600; background: linear-gradient(180deg, #ffe58a, var(--gold2)); box-shadow: 0 6px 20px rgba(255, 160, 30, .5); }
.tile:hover .hover-play, .tile:focus-visible .hover-play { opacity: 1; }
.t-title { margin-top: 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.tile:hover .t-title { color: var(--gold); }
.t-meta { font-size: 13px; color: var(--muted); text-transform: capitalize; }
.tile.soon .thumb { display: grid; place-items: center; background: rgba(255, 255, 255, .03); outline: 2px dashed var(--line2); outline-offset: -2px; box-shadow: none; }
.tile.soon .q { font: 56px var(--display); color: rgba(185, 160, 255, .35); }
.tile.soon .t-title { color: var(--dim); }

/* ---------- rankings and lists ---------- */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranks li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .2s; }
.ranks li:hover { background: rgba(255, 255, 255, .08); }
.rk { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 17px var(--display); color: #2a1600; background: linear-gradient(180deg, #ffe58a, var(--gold2)); }
.ranks li:nth-child(n+4) .rk { background: rgba(255, 255, 255, .12); color: var(--ink); }
.ranks a, .mini a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.ranks img, .mini img { width: 68px; height: 51px; object-fit: cover; border-radius: 10px; flex: none; }
.ranks b, .mini b { display: block; font-weight: 700; }
.ranks small, .mini small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranks a span, .mini a span { min-width: 0; }
.pl { font-size: 13px; color: var(--green); font-weight: 700; white-space: nowrap; }

/* ---------- sidebar ---------- */
.gotd { display: grid; gap: 8px; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.gotd img { border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.gotd b { font: 24px/1 var(--display); color: var(--gold); margin-top: 4px; }
.gotd span { color: #ddd6ff; font-size: 14px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini a:hover b { color: var(--gold); }
.news { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.news:last-child { border: 0; margin: 0; padding: 0; }
.news time { display: block; font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.news b { display: block; margin: 2px 0; }
.news p { margin: 0; color: #d4cdf6; font-size: 14px; }

/* ---------- ad slots ---------- */
.ad { position: relative; display: block; margin: 0 auto; }
.ad-label { position: absolute; top: 4px; left: 10px; z-index: 2; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ad-leader { width: 100%; max-width: 728px; min-height: 90px; }
.ad-wide { width: 100%; min-height: 90px; }
.ad-rect { width: 320px; max-width: 100%; min-height: 250px; }
.ad ins { min-height: inherit; }
.house { text-decoration: none; color: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s; }
.house:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 200, 69, .4); }
.ad-leader.house, .ad-wide.house { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 88px; }
.ad-leader.house::before, .ad-wide.house::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 26, .92) 0, rgba(7, 6, 26, .6) 60%, rgba(7, 6, 26, .2)); }
.house > * { position: relative; }
.house .h-burst { position: absolute; left: 16px; top: 50%; translate: 0 -50%; padding: 5px 10px; border-radius: 999px; font: 13px/1 var(--display); letter-spacing: .06em; color: #fff; background: linear-gradient(180deg, #ff9bc3, var(--pink)); transform: rotate(-6deg); }
.house .h-text { flex: 1; font-size: 14.5px; color: #e9e3ff; min-width: 0; }
.house .h-text b { font: 30px/1 var(--display); color: var(--gold); margin-right: 8px; }
.ad-rect.house { display: grid; gap: 8px; justify-items: center; align-content: start; padding: 32px 16px 18px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: center; }
.ad-rect.house img { width: 100%; border-radius: 14px; }
.h-title { font: 30px/1 var(--display); color: var(--gold); }
.h-sub { color: var(--muted); }

/* ---------- game page ---------- */
.crumbs { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.game-panel { margin-bottom: 18px; }
.game-panel .pbody { padding: 0; }
.game-panel { scroll-margin-top: 96px; }
.game-panel .stage { max-height: calc(100vh - 230px); min-height: 300px; }
.stage { position: relative; width: 100%; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage:fullscreen { max-height: none; }
.cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; }
.cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 6, 40, .2), rgba(10, 6, 40, .78)); }
.cover-in { position: relative; display: grid; gap: 12px; justify-items: center; }
.cover:hover .btn-play { transform: scale(1.05); }
.cover-sub { color: #fff; font-weight: 600; text-shadow: 0 1px 8px #000; }
.gbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; background: rgba(0, 0, 0, .25); border-top: 1px solid var(--line); }
.gsp { flex: 1; }
.gbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .07); color: var(--ink); font: 600 14px var(--ui); cursor: pointer; transition: background .2s, border-color .2s, transform .1s; }
.gbtn:hover { background: rgba(255, 255, 255, .14); border-color: var(--gold); }
.gbtn:active { transform: translateY(1px); }
.gbtn svg { width: 17px; height: 17px; }
.gbtn.mine { background: rgba(110, 231, 160, .2); border-color: var(--green); color: #d8ffe8; }
#b-down.mine { background: rgba(255, 111, 140, .2); border-color: #ff6f8c; color: #ffe0e6; }
.vote { display: inline-flex; gap: 8px; }
.gstat { font-size: 14px; font-weight: 600; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpill { padding: 4px 12px; border-radius: 999px; background: rgba(143, 107, 255, .16); border: 1px solid rgba(185, 160, 255, .3); color: #e2d9ff; font-size: 13px; }
.meta { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.meta svg { width: 17px; height: 17px; }
.ctl { width: 100%; border-collapse: collapse; }
.ctl th, .ctl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctl tr:last-child th, .ctl tr:last-child td { border-bottom: 0; }
.ctl th { width: 36%; color: var(--gold); font-weight: 600; }
.prose { font-size: 15.5px; line-height: 1.7; color: #e4defa; }
.prose h3 { font: 20px var(--display); color: var(--gold); margin: 18px 0 4px; letter-spacing: .02em; }
.pbody > p:first-child { margin-top: 0; }

/* ---------- not found / empty art ---------- */
.lost { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 0; }
.lost img { width: min(220px, 60%); filter: drop-shadow(0 10px 30px rgba(143, 107, 255, .35)); }
.ptitle img.cat-ico { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(255, 200, 69, .3)); }

/* ---------- footer ---------- */
#foot { margin-top: 28px; padding: 20px 14px; text-align: center; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.foot-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  #side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .ad-rect { margin: 0 auto; }
}
@media (max-width: 680px) {
  #sky .art { background-image: url(/static/img/sky-sm.jpg); background-position: 84% 0; height: 62vh; }
  #wrap { padding: 0 10px 20px; }
  #head { position: relative; top: auto; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 18px; }
  .game-panel { scroll-margin-top: 8px; }
  .game-panel .stage { max-height: calc(100vh - 140px); }
  .logo { flex: 1; min-width: 0; }
  .mascot { width: 44px; height: 44px; }
  .word { font-size: 24px; gap: 5px; }
  .head-r { display: contents; }
  .counter { order: 2; padding: 4px 8px 4px 5px; }
  .counter small { display: none; }
  .lcd { font-size: 13px; letter-spacing: 1px; padding: 4px 6px; }
  .search { order: 3; flex: 1 1 100%; }
  .search input { padding: 9px 4px 9px 14px; font-size: 16px; }
  .search button { width: 36px; height: 36px; }
  #tabs { margin-top: 10px; }
  #tabs a { padding: 7px 13px; font-size: 14px; }
  .hero { min-height: 300px; border-radius: 22px; }
  .hero-in { padding: 20px; }
  .hero h1 { font-size: 46px; }
  .burst.big { top: 14px; right: 14px; font-size: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .t-title { font-size: 15px; }
  .ptitle { font-size: 20px; padding: 14px 14px 2px; }
  .ptitle.big { font-size: 24px; }
  .pbody { padding: 12px 14px 16px; }
  .ad-leader.house, .ad-wide.house { padding: 10px 12px 10px 74px; }
  .house .h-burst { left: 10px; }
  .house .h-text { font-size: 12.5px; }
  .house .h-text b { font-size: 22px; display: block; }
  .house .btn-play.small { display: none; }
  .gbar { gap: 8px; padding: 8px 10px; }
  .gstat { font-size: 13px; }
  .ranks li { grid-template-columns: 32px minmax(0, 1fr); }
  .pl { grid-column: 2; font-size: 12px; margin-top: -4px; }
  .ranks img { width: 56px; height: 42px; }
}
/* ----- support / tip jar ----- */
:root { --pink2: #e0468f; }
.sup-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; text-decoration: none; font: 700 14px var(--ui); color: #fff;
  background: linear-gradient(180deg, rgba(255, 126, 182, .32), rgba(224, 70, 143, .22)); border: 1px solid rgba(255, 126, 182, .55); transition: background .2s, transform .1s, box-shadow .2s; }
.sup-btn svg { width: 16px; height: 16px; color: var(--pink); animation: beat 2.4s ease-in-out infinite; }
.sup-btn:hover, .sup-btn.on { background: linear-gradient(180deg, var(--pink), var(--pink2)); color: #fff; box-shadow: 0 6px 22px rgba(255, 90, 160, .4); }
.sup-btn:hover svg, .sup-btn.on svg { color: #fff; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } }
.btn-sup { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font: 700 15px var(--ui); color: #fff;
  background: linear-gradient(180deg, var(--pink), var(--pink2)); box-shadow: 0 8px 24px rgba(224, 70, 143, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .1s, box-shadow .2s; }
.btn-sup:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224, 70, 143, .5), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-sup svg { width: 17px; height: 17px; }
.btn-sup.big { font-size: 18px; padding: 13px 26px; }
.sup-side .pbody { display: flex; gap: 12px; align-items: flex-start; }
.sup-side img { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 4px 12px rgba(255, 200, 69, .3)); }
.sup-side b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--gold); }
.sup-side p { margin: 4px 0 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.sup-side .btn-sup { font-size: 14px; padding: 8px 14px; }
.support { padding: 26px; }
.sup-hero { display: flex; gap: 22px; align-items: center; }
.sup-hero img { width: 132px; height: 132px; flex: none; filter: drop-shadow(0 8px 26px rgba(255, 200, 69, .4)); animation: bob 4s ease-in-out infinite; }
.sup-hero h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--gold); }
.sup-hero p { margin: 0; line-height: 1.6; color: var(--ink); }
.sup-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.sup-card { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; text-align: center;
  border-radius: 20px; background: rgba(255, 126, 182, .08); border: 1px solid rgba(255, 126, 182, .35); }
.sup-k { font: 700 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.sup-tag { font: 700 20px var(--ui); color: var(--ink); letter-spacing: .02em; }
.sup-qr { width: 180px; height: 180px; border-radius: 14px; background: #fff; padding: 8px; margin-top: 4px; }
.sup-card small { color: var(--muted); font-size: 13px; }
.sup-free { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sup-free h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--violet2); }
.sup-free ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sup-free li { line-height: 1.5; }
.sup-free svg.inl { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold); }
.sup-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 680px) {
  .search { flex: 1 1 calc(100% - 54px); }
  .sup-btn { order: 4; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .sup-btn svg { width: 20px; height: 20px; }
  .sup-btn span { display: none; }
  .support { padding: 18px 16px; }
  .sup-hero { flex-direction: column; text-align: center; gap: 12px; }
  .sup-hero img { width: 104px; height: 104px; }
  .sup-hero h1 { font-size: 32px; }
  .sup-qr { display: none; }
  .sup-card small { display: none; }
}
@media (pointer: coarse) { .sup-qr, .sup-card small { display: none; } }
/* ----- Nox rests while a game is running (her own files are left as they are) ----- */
body.nox-rest #nox, body.nox-rest #noxBack { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility 0s linear .6s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
