/* PlayPage — dark arcade theme (evolved from the 即玩页 prototype) */
:root {
  --bg: #07080d; --bg-elev: #10131c; --surface: #141823; --surface-2: #1d2231;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --text: #eef1f7; --muted: #8f96aa; --faint: #5c6378;
  --mint: #3ef0c8; --mint-dim: #1aa888; --amber: #ffb020; --violet: #8b7cff; --rose: #ff5d7a;
  --shadow: 0 20px 50px rgba(0,0,0,.45); --radius: 16px; --nav-h: 64px;
  --font: "Inter", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --display: "Syne", "Inter", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(62,240,200,.08), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(139,124,255,.10), transparent 45%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px; background-attachment: fixed;
}
main { flex: 1; }
a { color: var(--mint); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
h1, h2, h3 { line-height: 1.2; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.mock-banner { background: rgba(255,176,32,.12); color: var(--amber); border-bottom: 1px solid rgba(255,176,32,.3); text-align: center; font-size: 12px; padding: 6px 10px; }
.mock-banner a { color: var(--amber); text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(7,8,13,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--mint), #1ec8ff 60%, var(--violet)); display: grid; place-items: center; box-shadow: 0 0 20px rgba(62,240,200,.35); }
.brand-mark svg { width: 16px; height: 16px; fill: #07110e; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .01em; color: var(--text); }
.brand-name span { color: var(--mint); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.nav-search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px 9px 34px; outline: none; }
.nav-search input:focus { border-color: var(--mint-dim); }
.nav-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.nav-ghost { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.user-menu { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; font-weight: 800; color: #06241c; background: linear-gradient(135deg, var(--mint), var(--violet)); overflow: hidden; flex-shrink: 0; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
.menu { position: absolute; right: 0; top: 46px; min-width: 200px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: grid; }
.menu[hidden] { display: none; }
.menu a, .menu button { text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu-head { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { color: var(--muted); font-size: 12px; }

/* Layout */
.wrap { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 60px; }
.page-title { font-family: var(--display); font-size: 30px; margin: 6px 0 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-h { font-family: var(--display); margin: 28px 0 14px; }
.empty-page { text-align: center; padding-top: 80px; }
.empty-page h1 { font-family: var(--display); font-size: 64px; margin: 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; grid-column: 1 / -1; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.center { text-align: center; }
.spacer { flex: 1; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--mint); color: #06241c; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost[aria-pressed="true"] { color: var(--rose); border-color: rgba(255,93,122,.45); }
.btn-danger { background: rgba(255,93,122,.15); color: #ff8da0; border: 1px solid rgba(255,93,122,.3); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; padding: 18px 0 30px; }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 5.4vw, 70px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), #1ec8ff, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 24px; max-width: 580px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; height: 260px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, #101629, #170c2e 60%, #062a25); overflow: hidden; box-shadow: var(--shadow); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 6s ease-in-out infinite; }
.o1 { width: 120px; height: 120px; left: 12%; top: 18%; background: radial-gradient(circle at 30% 30%, #9ffbe6, var(--mint) 45%, transparent 70%); }
.o2 { width: 80px; height: 80px; right: 14%; top: 12%; background: radial-gradient(circle at 30% 30%, #fff, var(--violet) 45%, transparent 70%); animation-delay: -2s; }
.o3 { width: 60px; height: 60px; right: 30%; bottom: 10%; background: radial-gradient(circle at 30% 30%, #fff3d0, var(--amber) 45%, transparent 70%); animation-delay: -4s; }
.hero-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; color: #fff; text-shadow: 0 0 30px rgba(62,240,200,.8); }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } .card { transition: none; } }

/* Toolbar / tabs / chips */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 12px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab { border: 0; background: none; color: var(--muted); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tab.active { background: var(--mint); color: #06241c; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chip.active, .chip:hover { border-color: var(--mint-dim); color: var(--text); background: rgba(62,240,200,.08); }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--bg-elev); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-gen { background: radial-gradient(120% 120% at 15% 10%, var(--c1), var(--c2) 70%); display: grid; place-items: center; }
.cover-gen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); }
.cover-gen span { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); color: rgba(255,255,255,.92); letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0,0,0,.35); z-index: 1; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: 11.5px; color: #c9c4ff; background: rgba(139,124,255,.15); padding: 2px 8px; border-radius: 6px; }
a.tag:hover { background: rgba(139,124,255,.3); }
.skel .cover, .skel h3, .skel .meta { background: linear-gradient(90deg, var(--surface-2), #252b3c, var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 6px; }
@keyframes sh { to { background-position: -200% 0; } }
.more { display: grid; place-items: center; padding: 24px 0; }

/* Game page */
.game-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.game-main { display: grid; gap: 14px; min-width: 0; }
.stage { background: #000; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
.stage-cover { position: absolute; inset: 0; }
.stage-cover .cover { height: 100%; aspect-ratio: auto; }
.cover-stage.cover-gen span { font-size: clamp(48px, 9vw, 110px); }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--mint); color: #06241c; font-size: 34px; padding-left: 6px; box-shadow: 0 0 0 10px rgba(62,240,200,.18), 0 20px 40px rgba(0,0,0,.5); transition: transform .15s; z-index: 2; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.07); }
.stage-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stage-bar h1 { font-family: var(--display); font-size: 26px; margin: 0; }
.about .desc { line-height: 1.7; color: #d4d8e3; }
.about .meta b { color: var(--text); }
.about .credit { margin: 8px 0 0; }
.about .credit a { text-decoration: underline; text-underline-offset: 2px; }
.game-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.board { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; counter-reset: r; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-elev); font-size: 14px; }
.board li.me { outline: 1px solid var(--mint-dim); }
.board .rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.board li:nth-child(1) .rank { color: #ffd34d; } .board li:nth-child(2) .rank { color: #d7dbe6; } .board li:nth-child(3) .rank { color: #e8a36a; }
.board .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-form { display: grid; gap: 8px; margin-bottom: 10px; justify-items: end; }
.c-list .comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment .who { font-weight: 700; } .comment .when { color: var(--faint); font-size: 12px; margin-left: 8px; }
.comment p { margin: 6px 0 0; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); font-weight: 700; z-index: 2; }
.owner-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .c-form textarea { width: 100%; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none; }
.field input:focus, .field textarea:focus, .c-form textarea:focus { border-color: var(--mint-dim); }
.field input[type=file] { padding: 8px; }
.form-err { color: #ff8da0; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.auth-wrap { display: grid; place-items: center; padding-top: 50px; }
.auth { width: min(420px, 100%); }
.auth h1 { font-family: var(--display); margin: 0; }
.upload { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.up-preview { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 10px; }
.drop { display: grid; gap: 6px; place-items: center; border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 34px 20px; text-align: center; color: var(--muted); background: var(--bg-elev); margin-bottom: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--mint); color: var(--text); background: rgba(62,240,200,.05); }
.drop b { color: var(--text); }
.drop-ico { font-size: 30px; color: var(--mint); }
.file-pill { margin-top: 8px; background: rgba(62,240,200,.12); color: var(--mint); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.progress { position: relative; height: 28px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--mint-dim), var(--mint)); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; line-height: 28px; font-size: 12.5px; font-weight: 700; }

/* Dashboard / tables */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi b { font-size: 28px; display: block; font-family: var(--display); }
.kpi span { color: var(--muted); font-size: 12.5px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td.wrap-cell { white-space: normal; min-width: 220px; }
table.data th { color: var(--muted); font-weight: 500; }
.profile { display: flex; gap: 20px; align-items: center; }
.profile h1 { margin: 0 0 6px; font-family: var(--display); }

/* Modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 80; padding: 20px; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 12px; font-family: var(--display); }
.modal textarea { width: 100%; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #111522; border: 1px solid var(--mint-dim); padding: 10px 16px; border-radius: 999px; z-index: 90; font-size: 13.5px; transition: .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--rose); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-inner { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-inner nav { display: flex; gap: 18px; }
.foot-inner nav a { color: var(--muted); font-size: 13px; }
.foot-inner nav a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero, .game-page, .upload { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .game-side, .up-preview { position: static; }
  .nav-links { display: none; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); padding-top: 16px; }
  .nav { padding: 0 12px; gap: 8px; }
  .brand-name { display: none; }
  .nav .brand-name { display: none; }
  .nav-search { max-width: none; min-width: 0; flex: 1; }
  .nav-random { padding: 7px 9px; }
  .hide-sm { display: none !important; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 9px 10px 11px; } .card-body h3 { font-size: 14px; } .meta { font-size: 11.5px; gap: 6px; }
  .card .tags { display: none; }
  .hero h1 { font-size: 40px; } .lead { font-size: 15px; }
  .stage { aspect-ratio: 4 / 3; border-radius: 14px; }
  .stage-bar h1 { font-size: 21px; width: 100%; }
  .stage-bar .spacer { display: none; }
  .profile { flex-direction: column; text-align: center; }
  .foot-inner { justify-content: center; text-align: center; }
  .foot-inner .brand-name { display: inline; }
}

/* ---- screenshots (v2) ---- */
.cover-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover .cover-alt, .card:focus-visible .cover-alt { opacity: 1; } }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: thin; }
.g-thumb { flex: 0 0 auto; width: clamp(150px, 22%, 220px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--bg-elev); scroll-snap-align: start; cursor: zoom-in; transition: transform .15s, border-color .15s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb:hover, .g-thumb:focus-visible { transform: translateY(-2px); border-color: var(--mint); outline: none; }
.stage-cover .cover img { filter: saturate(1.05); }
.stage-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.05), rgba(0,0,0,.45)); pointer-events: none; z-index: 1; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(3,4,8,.92); display: grid; place-items: center; padding: 24px; animation: lbIn .15s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1280px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: var(--muted); font-size: 13px; }
.lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 16px; right: 16px; font-size: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.drop-sm { padding: 16px; margin-bottom: 10px; font-size: 14px; }
.shot-manage { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; display: grid; gap: 10px; }
.shot-manage .row-between { display: flex; justify-content: space-between; align-items: center; }
.shot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.shot-item { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev); cursor: grab; }
.shot-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.shot-item.dragging { opacity: .4; }
.shot-item.drop-target { outline: 2px solid var(--mint); outline-offset: 2px; }
.shot-n { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.shot-tools { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.shot-b { border: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; cursor: pointer; }
.shot-b:disabled { opacity: .35; cursor: default; }
.shot-b:hover:not(:disabled) { background: var(--mint); color: #06241c; }

/* --- categories, related games, mobile badge, player controls (2026-11-13) --- */
.card { position: relative; }
.badge-mobile { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(7,8,13,.78); color: #bff8e8; border: 1px solid rgba(62,240,200,.45); backdrop-filter: blur(4px); }
.badge-inline { font-size: 12px; color: #bff8e8; border: 1px solid rgba(62,240,200,.4); border-radius: 999px; padding: 1px 8px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip-mobile { border-color: rgba(62,240,200,.35); }
.cat-head .page-title { margin-bottom: 4px; }
.cat-head p { margin: 0 0 14px; max-width: 70ch; }
.cat-head:empty { display: none; }
.related h2 { margin-top: 0; }
.grid-related { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.grid-related .card-body h3 { font-size: 14.5px; }
.stage-ctrl { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 8px; opacity: .55; transition: opacity .2s; }
.stage:hover .stage-ctrl, .stage-ctrl:focus-within, .stage:fullscreen .stage-ctrl, .stage.pseudo-fs .stage-ctrl { opacity: 1; }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; justify-content: center; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(7,8,13,.72); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; backdrop-filter: blur(4px); }
.sc-btn:hover { border-color: var(--mint-dim, #2ee6b6); }
.sc-next span { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.stage:not(:fullscreen):not(.pseudo-fs) .sc-next { display: none; }
.stage.pseudo-fs { position: fixed; inset: 0; z-index: 1000; border-radius: 0; border: 0; aspect-ratio: auto; width: 100vw; height: 100dvh; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.ssr-list { padding-left: 18px; line-height: 1.7; }
.row-removed td { opacity: .65; }
@media (max-width: 640px) {
  .grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .badge-mobile span { display: none; }
  .stage-ctrl { opacity: .85; }
}

/* --- share panel + random (2026-11-13) --- */
.nav-random { flex-shrink: 0; }
.share-actions { display: grid; gap: 8px; margin-top: 12px; }
.share-actions .btn { width: 100%; justify-content: flex-start; }
.share-qr { margin-top: 14px; padding: 16px 16px 12px; background: #fff; border-radius: 16px; display: grid; justify-items: center; }
.share-qr[hidden] { display: none; }
.share-qr canvas { width: 192px; height: 192px; image-rendering: pixelated; }
.share-qr .hint { color: #3b4154; text-align: center; margin: 8px 0 0; }
@media (max-width: 600px) {
  .share-qr canvas { width: 168px; height: 168px; }
  .stage-bar #randomBtnPage { margin-left: 0; }
}
