@import url('https://cdn.jsdelivr.net/npm/galmuri/dist/galmuri.css');
@font-face {
  font-family: 'DungGeunMo';
  src: url('https://cdn.jsdelivr.net/gh/neodgm/neodgm-webfont@latest/neodgm/neodgm.woff2') format('woff2');
  font-weight: normal; font-display: swap;
}
:root {
  --bg: #10101c;
  --bg-soft: #161627;
  --panel: #1b1b2e;
  --panel-2: #222238;
  --line: #44446a;
  --line-soft: #2e2e4a;
  --ink: #e8e6df;
  --ink-dim: #a4a2b8;
  --ink-faint: #6a6884;
  --gold: #ffd94a;
  --gold-deep: #d9a62e;
  --gold-glow: rgba(255, 217, 74, .15);
  --mint: #4ade80;
  --red: #ff5d5d;
  --blue: #6ab7ff;
  --shadow: 5px 5px 0 rgba(0,0,0,.55);
  --font-display: 'DungGeunMo', 'Galmuri14', sans-serif;
  --font-body: 'Galmuri14', 'DungGeunMo', 'Malgun Gothic', sans-serif;
  --font-mono: 'DungGeunMo', 'Galmuri11', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: var(--line) var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;          
  overflow-wrap: break-word;     
  min-height: 100vh;
  display: flex; flex-direction: column;  
  background-image:
    radial-gradient(ellipse 900px 400px at 50% -100px, rgba(255,217,74,.06), transparent),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 190px 190px, 290px 290px;
  background-position: 0 0, 0 0, 95px 120px;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; image-rendering: pixelated; }
button { font-family: inherit; }
::selection { background: var(--gold); color: #16130a; }
main > * { animation: rise .35s backwards; }
main > *:nth-child(2) { animation-delay: .05s; }
main > *:nth-child(3) { animation-delay: .1s; }
main > *:nth-child(4) { animation-delay: .15s; }
main > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hue-cycle {
  0%, 100% { color: var(--gold); } 33% { color: var(--mint); } 66% { color: var(--blue); }
}
.ticker-wrap, main, footer.site { position: relative; z-index: 1; }
.deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco .star { position: absolute; width: 3px; height: 3px; background: #fff; opacity: .55; animation: twinkle 2.6s step-end infinite; }
@keyframes twinkle { 0%, 55% { opacity: .55; } 56%, 100% { opacity: .1; } }
.star.s1 { top: 12%; left: 8%; }
.star.s2 { top: 22%; left: 28%; animation-delay: .7s; width: 2px; height: 2px; }
.star.s3 { top: 9%; left: 46%; animation-delay: 1.3s; }
.star.s4 { top: 30%; left: 62%; animation-delay: .3s; width: 2px; height: 2px; }
.star.s5 { top: 14%; left: 78%; animation-delay: 1.8s; }
.star.s6 { top: 38%; left: 12%; animation-delay: 1.1s; width: 2px; height: 2px; }
.star.s7 { top: 44%; left: 88%; animation-delay: .5s; }
.star.s8 { top: 56%; left: 40%; animation-delay: 2s; width: 2px; height: 2px; }
.cloud { position: absolute; width: 6px; height: 6px; opacity: .09; animation: drift linear infinite; box-shadow:
  18px 0 0 #fff, 24px 0 0 #fff, 30px 0 0 #fff, 36px 0 0 #fff, 42px 0 0 #fff,
  6px 6px 0 #fff, 12px 6px 0 #fff, 18px 6px 0 #fff, 24px 6px 0 #fff, 30px 6px 0 #fff, 36px 6px 0 #fff, 42px 6px 0 #fff, 48px 6px 0 #fff, 54px 6px 0 #fff,
  0 12px 0 #fff, 6px 12px 0 #fff, 12px 12px 0 #fff, 18px 12px 0 #fff, 24px 12px 0 #fff, 30px 12px 0 #fff, 36px 12px 0 #fff, 42px 12px 0 #fff, 48px 12px 0 #fff, 54px 12px 0 #fff, 60px 12px 0 #fff; }
@keyframes drift { from { transform: translateX(-80px); } to { transform: translateX(105vw); } }
.cloud.cl1 { top: 15%; animation-duration: 95s; }
.cloud.cl2 { top: 34%; animation-duration: 140s; animation-delay: -60s; transform-origin: left; scale: 1.6; opacity: .06; }
.cloud.cl3 { top: 52%; animation-duration: 115s; animation-delay: -30s; scale: .8; }
.meteor {
  position: absolute; width: 3px; height: 3px; background: #fff; opacity: 0;
  box-shadow: 4px -4px 0 rgba(255,255,255,.7), 8px -8px 0 rgba(255,255,255,.45),
              12px -12px 0 rgba(255,255,255,.25), 16px -16px 0 rgba(255,255,255,.1);
}
.meteor.m1 { top: 10%; left: 72%; animation: meteor 11s linear infinite; }
.meteor.m2 { top: 6%; left: 34%; animation: meteor 17s linear infinite; animation-delay: 6s; }
@keyframes meteor {
  0% { opacity: 0; transform: translate(0, 0); }
  1% { opacity: 1; }
  7% { opacity: 1; transform: translate(-170px, 170px); }
  9% { opacity: 0; transform: translate(-215px, 215px); }
  100% { opacity: 0; transform: translate(-215px, 215px); }
}
.hill { position: absolute; bottom: 0; width: 20px; height: 20px; }
.hill.h1, .hill.h2, .hill.h3 { box-shadow:
  80px 0 0 var(--hill-c),
  60px 20px 0 var(--hill-c), 80px 20px 0 var(--hill-c), 100px 20px 0 var(--hill-c),
  40px 40px 0 var(--hill-c), 60px 40px 0 var(--hill-c), 80px 40px 0 var(--hill-c), 100px 40px 0 var(--hill-c), 120px 40px 0 var(--hill-c),
  20px 60px 0 var(--hill-c), 40px 60px 0 var(--hill-c), 60px 60px 0 var(--hill-c), 80px 60px 0 var(--hill-c), 100px 60px 0 var(--hill-c), 120px 60px 0 var(--hill-c), 140px 60px 0 var(--hill-c),
  0 80px 0 var(--hill-c), 20px 80px 0 var(--hill-c), 40px 80px 0 var(--hill-c), 60px 80px 0 var(--hill-c), 80px 80px 0 var(--hill-c), 100px 80px 0 var(--hill-c), 120px 80px 0 var(--hill-c), 140px 80px 0 var(--hill-c), 160px 80px 0 var(--hill-c); }
.hill.h1 { --hill-c: #1b1b33; left: 4%; bottom: 80px; }
.hill.h2 { --hill-c: #16162b; left: 55%; bottom: 80px; transform: scale(1.7); transform-origin: 90px 100px; }
.hill.h3 { --hill-c: #1b1b33; left: 82%; bottom: 80px; transform: scale(1.15); transform-origin: 90px 100px; }
.ticker-wrap {
  background: #0a0a12;
  border-bottom: 3px solid var(--line-soft);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-dim);
}
.ticker { display: inline-block; padding: 5px 0; animation: ticker 40s linear infinite; }
.ticker:hover { animation-play-state: paused; }
.ticker span { margin: 0 24px; }
.ticker b { color: var(--ink); font-weight: normal; }
.t-up { color: var(--mint); } .t-mid { color: var(--gold); } .t-down { color: var(--red); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
header.site {
  border-bottom: 3px solid var(--line);
  background: linear-gradient(180deg, #1d1d32, #14141f);
  position: sticky; top: 0; z-index: 50;
}
.header-in {
  max-width: 1100px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px;
}
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.logo-coin {
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6));
  flex-shrink: 0;
}
.logo:hover .logo-coin { animation: coin-flip .5s steps(4); }
@keyframes coin-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(-.2); } 100% { transform: scaleX(1); } }
.logo-word {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 1px;
  position: relative; display: flex; align-items: baseline;
}
.logo-word .lw1 { color: #fff; text-shadow: 0 3px 0 var(--gold-deep), 3px 3px 0 rgba(0,0,0,.65); }
.logo-word .lw2 { color: var(--gold); text-shadow: 0 3px 0 #7a5a16, 3px 3px 0 rgba(0,0,0,.65); }
.logo-word .cursor { animation: blink 1s step-end infinite; color: var(--gold); margin-left: 2px; }
.logo-word .sparkle {
  position: absolute; top: -9px; right: 6px; font-size: 11px; color: #fff6c8;
  animation: blink 1.6s step-end infinite; animation-delay: .4s; text-shadow: none;
}
.logo:hover { filter: brightness(1.12); }
.logo small { font-family: var(--font-body); font-size: 11px; color: var(--ink-faint); text-shadow: none; letter-spacing: 0; }
nav.main {
  border-top: 3px solid var(--line-soft);
  background: rgba(0,0,0,.28);
}
.nav-in {
  max-width: 1100px; margin: 0 auto; padding: 0 12px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { display: none; }
nav.main a {
  padding: 9px 15px; font-size: 14px; font-family: var(--font-display); color: var(--ink-dim);
  white-space: nowrap; flex-shrink: 0;
  border-bottom: 3px solid transparent;
}
nav.main a:hover { color: var(--gold); background: var(--gold-glow); border-bottom-color: var(--gold-deep); }
nav.main a.on { color: var(--gold); background: var(--gold-glow); border-bottom-color: var(--gold); }
.auth-area { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-dim); white-space: nowrap; flex-shrink: 0; }
.auth-area .nick { color: var(--ink); font-family: var(--font-display); }
.auth-area .nick em { font-style: normal; color: var(--gold); font-size: 11px; margin-left: 4px; }
main { max-width: 1100px; width: 100%; margin: 0 auto; padding: 26px 18px 70px; flex: 1; }
.page-title {
  font-family: var(--font-display); font-size: 24px;
  margin-bottom: 6px; display: flex; align-items: baseline; gap: 12px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.page-title::before { content: '▶ '; color: var(--gold); font-size: 16px; }
.page-title .desc { font-family: var(--font-body); font-size: 12px; color: var(--ink-faint); text-shadow: none; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; gap: 12px; }
.row-head .page-title { margin-bottom: 0; }
.panel {
  background: var(--panel); border: 3px solid var(--line); border-radius: 0;
  box-shadow: var(--shadow);
  position: relative; z-index: 2; 
}
.panel + .panel { margin-top: 22px; }
.panel-h {
  padding: 10px 16px; border-bottom: 3px solid var(--line-soft);
  font-family: var(--font-display); font-size: 16px;
  background: var(--panel-2);
  display: flex; justify-content: space-between; align-items: center;
}
.panel-h a.more { font-family: var(--font-body); font-size: 12px; color: var(--ink-faint); }
.panel-h a.more:hover { color: var(--gold); }
.btn {
  display: inline-block; padding: 8px 16px; border: 3px solid #000; border-radius: 0;
  background: var(--panel-2); color: var(--ink); font-size: 13px; font-family: var(--font-display);
  cursor: pointer; box-shadow: 3px 3px 0 #000; transition: none; white-space: nowrap;
}
.btn:hover { color: var(--gold); background: #2a2a44; }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.gold { background: var(--gold); color: #16130a; }
.btn.gold:hover { background: #ffe47a; color: #16130a; }
.btn.danger:hover { color: var(--red); }
.btn.sm { padding: 3px 9px; font-size: 12px; box-shadow: 2px 2px 0 #000; }
.btn.sm:active { transform: translate(2px, 2px); box-shadow: none; }
input, select, textarea {
  width: 100%; background: var(--bg-soft); border: 3px solid var(--line); border-radius: 0;
  color: var(--ink); padding: 9px 12px; font-size: 14px; font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-glow); }
textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
label.f { display: block; margin-bottom: 14px; font-size: 13px; color: var(--ink-dim); }
label.f > span { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 13px; }
.form-card { max-width: 440px; margin: 40px auto; padding: 30px; }
.form-card h1 { font-family: var(--font-display); font-size: 22px; margin-bottom: 22px; }
.form-wide { padding: 24px; }
.inline-form { display: inline; }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
table.board th {
  text-align: left; padding: 9px 14px; font-size: 12px; color: var(--ink-faint);
  font-family: var(--font-display);
  border-bottom: 3px solid var(--line-soft); background: rgba(0,0,0,.25);
}
table.board td { padding: 10px 14px; border-bottom: 2px solid var(--line-soft); }
table.board tr:last-child td { border-bottom: none; }
table.board tbody tr:hover td { background: var(--gold-glow); }
td.num, th.num { width: 60px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; }
td.meta, th.meta { width: 100px; color: var(--ink-dim); font-size: 13px; white-space: nowrap; }
td.views, th.views { width: 70px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.pin { color: #16130a; background: var(--gold); font-size: 11px; font-family: var(--font-display); padding: 1px 6px; margin-right: 6px; }
.cmt-n { color: var(--gold); font-size: 12px; font-family: var(--font-mono); margin-left: 6px; }
.cat-tag { font-size: 11px; color: var(--ink-faint); border: 2px solid var(--line); padding: 0 5px; margin-right: 7px; }
.lock-tag { font-size: 11px; color: var(--red); font-family: var(--font-mono); font-weight: bold; margin-right: 5px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  min-width: 34px; text-align: center; padding: 5px 9px; font-size: 13px;
  border: 3px solid var(--line); color: var(--ink-dim); font-family: var(--font-mono);
  background: var(--panel); box-shadow: 2px 2px 0 #000;
}
.pagination .cur { background: var(--gold); color: #16130a; border-color: #000; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination a:active { transform: translate(2px,2px); box-shadow: none; }
.post-head { padding: 18px 22px 14px; border-bottom: 3px solid var(--line-soft); background: var(--panel-2); }
.post-head h1 { font-size: 19px; font-family: var(--font-display); line-height: 1.5; margin-bottom: 8px; }
.post-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-faint); }
.post-meta b { color: var(--ink-dim); }
.post-body { padding: 24px 22px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; min-height: 120px; }
.post-body img.attach { display: block; margin: 16px 0; border: 3px solid var(--line); }
.post-actions { padding: 12px 22px; border-top: 3px solid var(--line-soft); display: flex; gap: 8px; justify-content: flex-end; }
.comments { margin-top: 22px; }
.comment { padding: 12px 18px; border-bottom: 2px solid var(--line-soft); }
.comment:last-child { border-bottom: none; }
.comment .c-meta { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.comment .c-meta b { color: var(--ink-dim); font-size: 13px; font-family: var(--font-display); }
.comment .c-body { white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; }
.comment.reply { margin-left: 34px; border-left: 3px solid var(--line-soft); background: rgba(0,0,0,.12); }
.comment .reply-mark { color: var(--gold); font-family: var(--font-display); }
.reply-toggle { margin-top: 6px; }
.reply-toggle summary {
  cursor: pointer; list-style: none; font-size: 12px; color: var(--ink-faint);
  display: inline-block;
}
.reply-toggle summary:hover { color: var(--gold); }
.reply-toggle summary::-webkit-details-marker { display: none; }
.noti-new { background: var(--gold-glow); }
.comment-form { padding: 16px 18px; display: flex; gap: 10px; border-top: 3px solid var(--line-soft); }
.comment-form textarea { min-height: 54px; flex: 1; }
.hero { padding: 46px 8px 36px; position: relative; }
.hero h1 {
  font-family: var(--font-display); font-size: 36px; line-height: 1.35;
  text-shadow: 3px 3px 0 rgba(0,0,0,.6);
}
.hero h1 .g { animation: hue-cycle 6s step-end infinite; }
.hero p { color: var(--ink-dim); margin-top: 12px; font-size: 14px; max-width: 560px; }
.hero .stats { display: flex; gap: 30px; margin-top: 22px; font-family: var(--font-mono); flex-wrap: wrap; }
.hero .stats div { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.hero .stats b { display: block; font-size: 24px; color: var(--gold); font-weight: normal; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.press-start {
  display: inline-block; margin-top: 24px; font-family: var(--font-display); font-size: 15px;
  color: var(--gold); animation: blink 1.2s step-end infinite;
}
.press-start:hover { animation: none; color: #ffe47a; }
.px-coin {
  position: absolute; width: 4px; height: 4px; background: transparent; pointer-events: none;
  animation: floaty 3s ease-in-out infinite;
  box-shadow:
    8px 0 0 #7a5a16, 12px 0 0 #7a5a16, 16px 0 0 #7a5a16, 20px 0 0 #7a5a16,
    4px 4px 0 #7a5a16, 8px 4px 0 #ffd94a, 12px 4px 0 #ffd94a, 16px 4px 0 #ffd94a, 20px 4px 0 #ffd94a, 24px 4px 0 #7a5a16,
    0 8px 0 #7a5a16, 4px 8px 0 #ffd94a, 8px 8px 0 #fff6c8, 12px 8px 0 #ffd94a, 16px 8px 0 #ffd94a, 20px 8px 0 #d9a62e, 24px 8px 0 #ffd94a, 28px 8px 0 #7a5a16,
    0 12px 0 #7a5a16, 4px 12px 0 #ffd94a, 8px 12px 0 #fff6c8, 12px 12px 0 #ffd94a, 16px 12px 0 #ffd94a, 20px 12px 0 #d9a62e, 24px 12px 0 #ffd94a, 28px 12px 0 #7a5a16,
    0 16px 0 #7a5a16, 4px 16px 0 #ffd94a, 8px 16px 0 #ffd94a, 12px 16px 0 #ffd94a, 16px 16px 0 #ffd94a, 20px 16px 0 #d9a62e, 24px 16px 0 #ffd94a, 28px 16px 0 #7a5a16,
    0 20px 0 #7a5a16, 4px 20px 0 #ffd94a, 8px 20px 0 #ffd94a, 12px 20px 0 #ffd94a, 16px 20px 0 #ffd94a, 20px 20px 0 #d9a62e, 24px 20px 0 #ffd94a, 28px 20px 0 #7a5a16,
    4px 24px 0 #7a5a16, 8px 24px 0 #ffd94a, 12px 24px 0 #ffd94a, 16px 24px 0 #ffd94a, 20px 24px 0 #d9a62e, 24px 24px 0 #7a5a16,
    8px 28px 0 #7a5a16, 12px 28px 0 #7a5a16, 16px 28px 0 #7a5a16, 20px 28px 0 #7a5a16;
}
.px-coin.c1 { top: 36px; right: 120px; }
.px-coin.c2 { top: 110px; right: 50px; animation-delay: .8s; transform: scale(.75); }
.px-coin.c3 { top: 170px; right: 210px; animation-delay: 1.6s; transform: scale(.55); opacity: .7; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; align-items: stretch; }
.home-grid .panel { margin-top: 0; display: flex; flex-direction: column; }
.home-grid .wide { grid-column: 1 / -1; }
ul.mini-list { list-style: none; flex: 1; }
ul.mini-list li {
  height: 42px; padding: 0 16px; border-bottom: 2px solid var(--line-soft);
  display: flex; gap: 10px; align-items: center; font-size: 13px;
}
ul.mini-list li:last-child { border-bottom: none; }
ul.mini-list li:hover { background: var(--gold-glow); }
ul.mini-list li.ghost { color: var(--ink-faint); }
ul.mini-list li.ghost:hover { background: none; }
ul.mini-list .tt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.mini-list .mm { font-size: 11px; color: var(--ink-faint); white-space: nowrap; font-family: var(--font-mono); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card {
  background: var(--panel); border: 3px solid var(--line); border-radius: 0;
  padding: 0; display: block; box-shadow: var(--shadow);
}
.game-card:hover { border-color: var(--gold-deep); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(0,0,0,.55); color: inherit; }
.game-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,.55); }
.cart-top {
  height: 12px; border-bottom: 3px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--panel-2) 0 8px, #2c2c48 8px 16px);
}
.cart-img {
  height: 96px; border-bottom: 3px solid var(--line); overflow: hidden;
  background: #000;
}
.cart-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.market-summary {
  margin: 14px 16px; padding: 12px 16px; border: 2px dashed var(--line);
  background: rgba(0,0,0,.18); font-size: 13px; color: var(--ink-dim); line-height: 1.8;
}
.market-summary .ms-title { font-family: var(--font-display); color: var(--gold); font-size: 13px; margin-bottom: 6px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; margin-left: 12px; height: 22px; vertical-align: middle; }
.spark i { display: inline-block; width: 7px; background: var(--gold-deep); }
.spark i:last-child { background: var(--gold); }
.mk { display: inline-block; min-width: 62px; color: var(--ink-dim); font-size: 12px; }
.price { color: var(--mint); font-weight: bold; }
.price-ref { color: var(--gold-deep); font-weight: bold; }
.cart-label { margin: 12px 12px 8px; border: 3px solid rgba(0,0,0,.55); padding: 10px 12px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08); min-width: 0; }
.cart-label h3 {
  font-family: var(--font-display); font-size: 15px; text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  word-break: keep-all; line-height: 1.4; min-width: 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gc-head { display: flex; gap: 10px; align-items: center; min-height: 52px; }
.gc-icon {
  width: 48px; height: 48px; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.55); background: #000; image-rendering: auto;
}
.gc-head > div { flex: 1; }
details.board-notice {
  border: 3px solid var(--gold-deep); background: var(--gold-glow);
  margin-bottom: 10px; box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}
details.board-notice summary {
  padding: 9px 14px; cursor: pointer; font-family: var(--font-display);
  color: var(--gold); font-size: 14px; list-style: none;
}
details.board-notice summary::-webkit-details-marker { display: none; }
details.board-notice .bn-body {
  padding: 2px 16px 12px; white-space: pre-wrap; font-size: 13px; color: var(--ink-dim);
}
.sec-h {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 24px 0 14px;
  border: 3px solid var(--line); background: var(--panel-2); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 16px;
}
.sec-h form { display: flex; gap: 8px; max-width: 320px; flex: 1; justify-content: flex-end; }
.sec-h form input { max-width: 200px; padding: 6px 10px; font-size: 13px; }
.game-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
a.game-mini {
  display: flex; gap: 9px; align-items: center; padding: 7px 10px;
  border: 2px solid var(--line); background: var(--panel); min-width: 0;
}
a.game-mini:hover { border-color: var(--gold-deep); background: var(--gold-glow); color: inherit; }
a.game-mini img, a.game-mini .gm-ph {
  width: 32px; height: 32px; object-fit: cover; flex-shrink: 0;
  border: 2px solid #000; background: var(--panel-2); image-rendering: auto; display: inline-block;
}
a.game-mini .n { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
a.game-mini .c { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.cart-label .genre {
  font-size: 11px; color: rgba(255,255,255,.75); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-label .sum {
  font-size: 12px; color: rgba(255,255,255,.85); margin-top: 8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px; word-break: keep-all;
}
.game-card .foot {
  display: flex; justify-content: space-between; padding: 6px 14px 12px; align-items: center;
  gap: 8px; white-space: nowrap;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.stars .off { color: var(--line); }
.rv-n { color: var(--ink-faint); font-size: 11px; font-family: var(--font-mono); }
.badge { font-size: 11px; font-family: var(--font-display); padding: 1px 8px; border: 2px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,.4); white-space: nowrap; flex-shrink: 0; }
.badge.hot { color: #06240f; background: var(--mint); }
.badge.mid { color: #241d06; background: var(--gold); }
.badge.low { color: var(--ink-dim); background: var(--line-soft); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th {
  width: 130px; text-align: left; padding: 9px 16px; color: var(--ink-faint); font-size: 12px;
  border-bottom: 2px solid var(--line-soft); background: rgba(0,0,0,.2); font-family: var(--font-display);
}
.info-table td { padding: 9px 16px; border-bottom: 2px solid var(--line-soft); }
.diff-dots { letter-spacing: 3px; color: var(--gold); }
.diff-dots .off { color: var(--line); }
.banner { display: block; margin: 22px 0; border: 3px dashed var(--gold-deep); position: relative; box-shadow: var(--shadow); }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner.txt {
  background: repeating-linear-gradient(135deg, var(--panel) 0 14px, var(--panel-2) 14px 28px);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px;
}
.banner.txt:hover { color: var(--gold); filter: brightness(1.25); }
.banner.box.txt { flex-direction: column; gap: 10px; }
.ph-txt { text-align: left; min-width: 0; }
.banner.box.txt .ph-txt { text-align: center; }
.ph-txt b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: normal; }
.banner.h90 .ph-txt b { font-size: 14px; }
.ph-txt small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.dogeza { position: relative; width: 88px; height: 84px; flex-shrink: 0; margin-top: 18px; }
.dogeza .dz {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  animation-duration: 5.5s; animation-timing-function: step-end; animation-iteration-count: infinite;
  image-rendering: pixelated;
}
.dogeza .dz1 { animation-name: dzf1; }
.dogeza .dz2 { animation-name: dzf2; }
.dogeza .dz3 { animation-name: dzf3; }
.dogeza::after {
  content: ''; position: absolute; left: 18px; bottom: 0; width: 50px; height: 3px; background: rgba(0,0,0,.45);
}
.dogeza .bubble {
  position: absolute; left: 46px; top: -18px; z-index: 5;
  background: #fff; color: #16130a; border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  font-family: var(--font-display); font-size: 12px; line-height: 1.4; padding: 3px 9px;
  white-space: nowrap; opacity: 0;
  animation: dz-bub 5.5s step-end infinite;
}
.dogeza .bubble::after {
  content: ''; position: absolute; left: 6px; bottom: -7px; width: 6px; height: 6px;
  background: #fff; border-left: 2px solid #000; border-bottom: 2px solid #000;
}
@keyframes dz-bub {
  0%, 41% { opacity: 0; transform: scale(.6); }
  42%, 81% { opacity: 1; transform: scale(1); }
  82%, 100% { opacity: 0; }
}
@keyframes dzf1 { 0%, 29% { opacity: 1; } 30%, 89% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes dzf2 { 0%, 29% { opacity: 0; } 30%, 41% { opacity: 1; } 42%, 81% { opacity: 0; } 82%, 89% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes dzf3 { 0%, 41% { opacity: 0; } 42%, 81% { opacity: 1; } 82%, 100% { opacity: 0; } }
.banner-row { display: flex; gap: 14px; justify-content: center; margin: 24px 0; }
.banner-row .banner.box { margin: 0; flex-shrink: 0; }
@media (max-width: 1020px) { .banner-row .banner.box:nth-child(3) { display: none; } }
@media (max-width: 700px) { .banner-row .banner.box:nth-child(2) { display: none; } }
.board-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px;
  position: relative; z-index: 1; 
}
.board-foot .bf-left { grid-column: 1; justify-self: start; }
.board-foot .bf-center { grid-column: 2; }
.board-foot .pagination { margin-top: 0; }
.board-foot .bf-search { grid-column: 3; display: flex; gap: 6px; justify-content: flex-end; }
.board-foot .bf-search input { max-width: 140px; padding: 5px 10px; font-size: 13px; }
.board-foot .bf-search select { width: auto; padding: 5px 8px; font-size: 12px; }
@media (max-width: 700px) {
  .board-foot { grid-template-columns: 1fr; }
  .board-foot .bf-left, .board-foot .bf-center, .board-foot .bf-search { grid-column: 1; justify-self: center; justify-content: center; }
}
.banner.h120 .dogeza { width: 74px; height: 70px; margin-top: 2px; }
.banner.h90 .dogeza { width: 56px; height: 53px; margin-top: 0; }
.banner.h90 .dogeza .bubble { top: -14px; left: 26px; font-size: 10px; padding: 1px 6px; }
.chat-new { display: flex; gap: 10px; margin-bottom: 18px; max-width: 480px; }
.chat-list { display: flex; flex-direction: column; gap: 12px; }
a.chat-room-item {
  position: relative;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: var(--panel); border: 3px solid var(--line); box-shadow: var(--shadow);
}
a.chat-room-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(0,0,0,.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(0,0,0,.55) 0 2px, transparent 3px);
  background-repeat: no-repeat; background-size: 8px 8px;
  background-position: 4px 4px, calc(100% - 4px) 4px, 4px calc(100% - 4px), calc(100% - 4px) calc(100% - 4px);
}
a.chat-room-item:hover { border-color: var(--gold-deep); color: inherit; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(0,0,0,.55); }
a.chat-room-item:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,.55); }
a.chat-room-item .cr-icon {
  font-size: 20px; width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), 2px 2px 0 rgba(0,0,0,.4);
}
a.chat-room-item .cr-main { flex: 1; min-width: 0; }
a.chat-room-item .cr-main b { font-family: var(--font-display); font-size: 15px; display: block; }
a.chat-room-item .cr-main small { color: var(--ink-faint); font-size: 12px; }
a.chat-room-item .cr-go { font-family: var(--font-display); color: var(--gold); font-size: 13px; white-space: nowrap; }
a.chat-room-item .cr-online { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
a.chat-room-item .cr-online.on { color: var(--mint); }
.chat-layout { display: grid; grid-template-columns: 1fr 250px; gap: 16px; align-items: start; }
.chat-layout .chat-side { min-width: 0; }
@media (max-width: 860px) { .chat-layout { grid-template-columns: 1fr; } }
.csys {
  align-self: center; text-align: center; font-size: 12px; color: var(--ink-faint);
  background: rgba(0,0,0,.25); border: 1px dashed var(--line); padding: 3px 12px; max-width: 90%;
}
.cm-media img, .cm-media video {
  max-width: 260px; max-height: 200px; display: block; border: 2px solid var(--line);
  image-rendering: auto;
}
.cm-media { padding: 4px !important; background: transparent !important; border: none !important; box-shadow: none !important; }
.chat-members li { height: auto; min-height: 36px; padding: 5px 12px; gap: 7px; flex-wrap: wrap; }
.chat-members .tt { font-size: 13px; flex: 1; }
.cm-manage { position: relative; }
.cm-manage summary { cursor: pointer; list-style: none; color: var(--ink-faint); padding: 0 4px; }
.cm-manage summary::-webkit-details-marker { display: none; }
.cm-manage[open] summary { color: var(--gold); }
.cm-manage .cm-menu {
  position: absolute; right: 0; top: 100%; z-index: 20; width: 170px;
  background: var(--panel-2); border: 3px solid var(--line); box-shadow: 4px 4px 0 #000;
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.cm-manage .cm-menu form { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.cm-manage .cm-menu label { font-size: 11px; color: var(--ink-dim); display: flex; gap: 3px; align-items: center; }
.cm-manage .cm-menu input[type="checkbox"] { width: auto; }
.cm-manage .cm-menu select { width: 70px; padding: 2px 4px; font-size: 11px; }
.cm-manage .cm-menu .btn.sm { text-align: center; white-space: nowrap; }
.cm-manage .cm-menu form .btn.sm { flex: 1; }
.cm-manage .cm-menu input { padding: 3px 6px; font-size: 12px; }
.chat-panel { display: flex; flex-direction: column; }
#chat-box {
  height: 460px; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-soft);
}
.cmsg { max-width: 75%; align-self: flex-start; }
.cmsg.mine { align-self: flex-end; }
.cmsg .cm-head { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--ink-faint); margin-bottom: 3px; }
.cmsg .cm-head b { color: var(--ink-dim); font-size: 12px; }
.cmsg .cm-head time { font-family: var(--font-mono); font-size: 10px; }
.cmsg.mine .cm-head { justify-content: flex-end; }
.cmsg .cm-body {
  display: inline-block; padding: 7px 12px; font-size: 13px; line-height: 1.6;
  background: var(--panel-2); border: 2px solid var(--line); box-shadow: 2px 2px 0 rgba(0,0,0,.4);
  white-space: pre-wrap; word-break: break-word;
}
.cmsg.mine .cm-body { background: #3d3415; border-color: var(--gold-deep); }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 3px solid var(--line-soft); }
.chat-input input { flex: 1; }
.px-toast {
  position: fixed; right: 18px; bottom: 24px; z-index: 1001;
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 3px solid var(--gold-deep); box-shadow: 5px 5px 0 #000;
  padding: 12px 16px; max-width: 300px; cursor: pointer;
  animation: toast-in .25s both;
}
.px-toast .pt-icon { font-size: 22px; animation: floaty 1.6s ease-in-out infinite; }
.px-toast .pt-msg { font-size: 13px; line-height: 1.5; }
.px-toast .pt-msg b { font-family: var(--font-display); color: var(--gold); display: block; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }
.px-toast.out { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(16px); }
.banner.h120 { aspect-ratio: 3 / 1; } .banner.h90 { height: 90px; font-size: 14px; }
.banner.box { width: 300px; height: 250px; margin: 24px auto; }
.banner .ad-mark {
  position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--ink-faint);
  font-family: var(--font-mono); letter-spacing: 1px;
}
.social-row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.social-row a {
  display: block; text-align: center; padding: 10px; font-size: 14px; font-family: var(--font-display);
  border: 3px solid #000; box-shadow: 3px 3px 0 #000;
}
.social-row a:active { transform: translate(3px,3px); box-shadow: none; }
.social-row a.google { background: #fff; color: #222; }
.social-row a.kakao { background: #fee500; color: #191919; }
.social-row a.naver { background: #03c75a; color: #fff; }
.social-row a:hover { filter: brightness(.92); }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; margin: 18px 0 2px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.avatar {
  object-fit: cover; border: 2px solid var(--line); background: var(--panel-2);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; image-rendering: auto;
}
.avatar.ph {
  font-family: var(--font-display); color: var(--gold);
  background: linear-gradient(135deg, #34345a, #1e1e33);
  text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.lv {
  font-family: var(--font-mono); font-size: 10px; color: #16130a; background: var(--gold);
  padding: 0 5px; margin-left: 5px; border: 1px solid #000; vertical-align: middle; white-space: nowrap;
}
.exp-bar {
  position: relative; height: 18px; background: var(--bg-soft); border: 2px solid var(--line);
  margin-top: 8px; overflow: hidden;
}
.exp-bar.mini { height: 6px; max-width: 160px; margin-top: 4px; display: block; }
.vote-row { display: flex; gap: 12px; justify-content: center; padding: 6px 0 18px; }
.vote-btn b { font-family: var(--font-mono); margin-left: 4px; }
.vote-btn.on { background: var(--gold); color: #16130a; }
.vote-btn.down.on { background: var(--red); color: #fff; }
.exp-bar i {
  position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  background-size: 8px 100%;
}
.exp-bar span {
  position: relative; z-index: 1; font-family: var(--font-mono); font-size: 10px; color: var(--ink);
  display: block; text-align: center; line-height: 14px; text-shadow: 1px 1px 0 rgba(0,0,0,.7);
}
.author-box {
  display: flex; gap: 10px; align-items: center; font-size: 13px;
}
.ucard {
  position: relative; display: inline-flex; align-items: center; gap: 0; cursor: pointer;
  user-select: none; caret-color: transparent;   
}
.ucard:focus { outline: none; }
.ucard .uname { color: var(--ink); font-size: 13px; }
.ucard:hover .uname { color: var(--gold); }
.ucard-pop {
  display: none; position: absolute; top: calc(100% + 6px); left: -8px; z-index: 500;
  width: 256px; padding: 0; background: var(--panel); border: 3px solid var(--gold-deep);
  box-shadow: 5px 5px 0 #000; font-size: 13px; animation: rise .15s both;
  text-align: left; white-space: normal; line-height: 1.6; cursor: default;
  font-weight: normal; font-family: var(--font-body);
}
.ucard:hover .ucard-pop, .ucard:focus .ucard-pop, .ucard:focus-within .ucard-pop { display: block; }
.ucard-pop::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.ucard-pop .up-head {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 2px solid var(--line-soft);
}
.ucard-pop .up-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ucard-pop .up-id b {
  font-family: var(--font-display); font-size: 15px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ucard-pop .up-id .lv { margin-left: 0; align-self: flex-start; }
.ucard-pop .up-body { display: block; padding: 12px 14px; }
.ucard-pop .up-exp-label { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }
.ucard-pop .up-body .exp-bar { margin-top: 3px; height: 8px; }
.ucard-pop .up-body .exp-bar span { display: none; }
.ucard-pop .up-bio {
  display: block; margin-top: 10px; color: var(--ink-dim); font-size: 12px; line-height: 1.6;
  border-left: 3px solid var(--gold-deep); padding-left: 8px;
}
.ucard-pop .up-bio.dim { color: var(--ink-faint); border-left-color: var(--line); }
.ucard-pop .up-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.ucard-pop .up-actions .btn.sm { width: 100%; text-align: center; box-sizing: border-box; }
.ucard-pop .up-actions .inline-form { display: block; }
.ucard-pop .up-actions .inline-form .btn.sm { width: 100%; }
.ucard-pop .up-actions .up-bio.dim { grid-column: 1 / -1; margin: 0; border: none; padding: 0; }
table.board td { position: relative; }
.auth-area .mail { position: relative; font-size: 16px; padding: 2px 4px; }
.auth-area .mail i {
  position: absolute; top: -6px; right: -8px; font-style: normal;
  background: var(--red); color: #fff; font-size: 10px; font-family: var(--font-mono);
  padding: 0 4px; border: 2px solid #000;
}
.author-box .author-bio { font-size: 12px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-area .nick .avatar { margin-right: 2px; }
.admin-layout { display: grid; grid-template-columns: 185px 1fr; gap: 22px; align-items: start; }
.admin-side {
  position: sticky; top: 118px; background: var(--panel); border: 3px solid var(--line);
  box-shadow: var(--shadow); padding: 12px 0 14px; display: flex; flex-direction: column;
}
.admin-side .as-title {
  font-family: var(--font-display); color: var(--gold); font-size: 15px; padding: 2px 16px 10px;
  border-bottom: 3px solid var(--line-soft); margin-bottom: 6px; text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.admin-side .as-group {
  font-size: 10px; color: var(--ink-faint); font-family: var(--font-mono); letter-spacing: 1px;
  padding: 10px 16px 3px;
}
.admin-side a {
  padding: 6px 16px; font-size: 13px; color: var(--ink-dim); border-left: 3px solid transparent;
  white-space: nowrap;
}
.admin-side a:hover { color: var(--gold); background: var(--gold-glow); }
.admin-side a.on { color: var(--gold); background: var(--gold-glow); border-left-color: var(--gold); }
.admin-main { min-width: 0; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 10px; }
  .admin-side .as-title, .admin-side .as-group { display: none; }
  .admin-side a { border-left: none; border: 2px solid var(--line); padding: 5px 10px; font-size: 12px; }
}
.admin-nav { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-nav a {
  padding: 6px 13px; border: 3px solid var(--line); font-size: 13px; font-family: var(--font-display);
  color: var(--ink-dim); background: var(--panel); box-shadow: 2px 2px 0 #000; white-space: nowrap;
}
.admin-nav a.on, .admin-nav a:hover { border-color: var(--gold-deep); color: var(--gold); background: var(--gold-glow); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--panel); border: 3px solid var(--line); padding: 14px 18px; box-shadow: var(--shadow); }
.stat-card .k { font-size: 12px; color: var(--ink-faint); font-family: var(--font-display); }
.stat-card .v { font-size: 26px; font-family: var(--font-mono); color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.tag { font-size: 11px; padding: 0 7px; border: 2px solid var(--line); color: var(--ink-dim); font-family: var(--font-display); }
.tag.red { color: var(--red); border-color: var(--red); }
.tag.gold { color: var(--gold); border-color: var(--gold-deep); }
.tag.mint { color: var(--mint); border-color: var(--mint); }
.qblock {
  position: absolute; width: 44px; height: 44px;
  background: var(--gold); border: 3px solid #000;
  box-shadow: inset -5px -5px 0 var(--gold-deep), inset 5px 5px 0 #fff6c8, 3px 3px 0 rgba(0,0,0,.5);
  font-family: var(--font-display); font-size: 22px; color: #7a3a00;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 2px 2px 0 rgba(255,255,255,.35);
  animation: block-bump 5s infinite; pointer-events: none;
}
@keyframes block-bump {
  0%, 88%, 100% { transform: translateY(0); }
  92% { transform: translateY(-7px); }
  96% { transform: translateY(1px); }
}
.qblock.qb1 { top: 86px; right: 112px; }
.qblock.qb2 { top: 160px; right: 252px; animation-delay: 2.5s; }
.px-coin.c1 { top: 24px; right: 118px; }
.px-coin.c3 { top: 100px; right: 258px; }
footer.site {
  border-top: none; margin-top: 56px; padding: 72px 0 0; 
  text-align: center; font-size: 12px; color: var(--ink-faint);
  overflow: hidden;
}
footer.site .ground {
  height: 26px; border-top: 3px solid #000; border-bottom: 3px solid rgba(0,0,0,.6);
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.45) 24px 27px),
    linear-gradient(180deg, #9a6a38 0 5px, #7a5128 5px 14px, #5e3d1d 14px 100%);
}
footer.site .foot-in {
  padding: 22px 18px 30px;
  background:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    #221710;
  background-size: 26px 26px;
}
footer.site b { font-family: var(--font-display); color: var(--ink-dim); }
.runner {
  position: absolute; top: 39px; left: 0; width: 30px; height: 36px; z-index: 2;
  animation: run-across 26s linear infinite; pointer-events: none;
}
@keyframes run-across {
  0%   { transform: translate(-60px, 0); }
  38%  { transform: translate(calc(38vw - 15px), 0); }
  41%  { transform: translate(calc(41vw - 11px), -26px); }
  44%  { transform: translate(calc(44vw - 7px), 0); }
  72%  { transform: translate(calc(72vw + 26px), 0); }
  75%  { transform: translate(calc(75vw + 30px), -26px); }
  78%  { transform: translate(calc(78vw + 34px), 0); }
  100% { transform: translate(calc(100vw + 60px), 0); }
}
.runner::before, .runner .f1, .runner .f2 {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 3px; background: transparent;
  animation: run-bob .32s step-end infinite;
}
@keyframes run-bob { 0%, 49% { transform: translateY(0); } 50%, 100% { transform: translateY(-2px); } }
.runner::before { box-shadow:
  9px 0 0 #b8860b, 12px 0 0 #b8860b, 15px 0 0 #b8860b, 18px 0 0 #b8860b,
  6px 3px 0 #b8860b, 9px 3px 0 #ffd94a, 12px 3px 0 #ffd94a, 15px 3px 0 #ffd94a, 18px 3px 0 #ffd94a, 21px 3px 0 #b8860b,
  6px 6px 0 #b8860b, 9px 6px 0 #ffd94a, 12px 6px 0 #ffd94a, 15px 6px 0 #ffd94a, 18px 6px 0 #ffd94a, 21px 6px 0 #b8860b,
  6px 9px 0 #b8860b, 9px 9px 0 #ffd1a0, 12px 9px 0 #222222, 15px 9px 0 #ffd1a0, 18px 9px 0 #222222, 21px 9px 0 #b8860b,
  6px 12px 0 #b8860b, 9px 12px 0 #ffd1a0, 12px 12px 0 #ffd1a0, 15px 12px 0 #ffd1a0, 18px 12px 0 #ffd1a0, 21px 12px 0 #b8860b,
  6px 15px 0 #ff5d5d, 9px 15px 0 #ff5d5d, 12px 15px 0 #ff5d5d, 15px 15px 0 #ff5d5d, 18px 15px 0 #ff5d5d, 21px 15px 0 #ff5d5d,
  9px 18px 0 #cfd6e3, 12px 18px 0 #cfd6e3, 15px 18px 0 #cfd6e3, 18px 18px 0 #cfd6e3,
  9px 21px 0 #cfd6e3, 12px 21px 0 #aeb8cc, 15px 21px 0 #cfd6e3, 18px 21px 0 #cfd6e3,
  9px 24px 0 #cfd6e3, 12px 24px 0 #cfd6e3, 15px 24px 0 #cfd6e3, 18px 24px 0 #cfd6e3,
  9px 27px 0 #7a5a16, 12px 27px 0 #7a5a16, 15px 27px 0 #7a5a16, 18px 27px 0 #7a5a16; }
.runner .f1 { box-shadow:
  0 15px 0 #d94848, 3px 15px 0 #d94848,
  0 18px 0 #d94848, 3px 18px 0 #d94848,
  0 21px 0 #d94848, 3px 21px 0 #d94848,
  3px 24px 0 #d94848,
  24px 18px 0 #ffd1a0, 24px 21px 0 #ffd1a0,
  9px 30px 0 #3a4a6b, 18px 30px 0 #3a4a6b,
  6px 33px 0 #222222, 9px 33px 0 #222222, 18px 33px 0 #222222, 21px 33px 0 #222222;
  animation-name: run-bob, frame-a; animation-duration: .32s, .32s; animation-timing-function: step-end, step-end; animation-iteration-count: infinite, infinite; }
.runner .f2 { box-shadow:
  3px 15px 0 #d94848,
  3px 18px 0 #d94848, 6px 18px 0 #d94848,
  3px 21px 0 #d94848,
  21px 21px 0 #ffd1a0,
  12px 30px 0 #3a4a6b, 15px 30px 0 #3a4a6b,
  12px 33px 0 #222222, 15px 33px 0 #222222;
  animation-name: run-bob, frame-b; animation-duration: .32s, .32s; animation-timing-function: step-end, step-end; animation-iteration-count: infinite, infinite; }
@keyframes frame-a { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes frame-b { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.panel, .stat-card { position: relative; }
.panel::after, .stat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(0,0,0,.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(0,0,0,.55) 0 2px, transparent 3px);
  background-repeat: no-repeat;
  background-size: 8px 8px;
  background-position: 4px 4px, calc(100% - 4px) 4px, 4px calc(100% - 4px), calc(100% - 4px) calc(100% - 4px);
}
.px-modal-back {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,10,.72);
}
.px-modal-back[hidden] { display: none; }
.px-modal {
  background: var(--panel); border: 3px solid var(--gold-deep); box-shadow: 6px 6px 0 #000;
  padding: 26px 28px 22px; max-width: 420px; width: calc(100% - 40px); text-align: center;
  animation: rise .18s both;
}
.px-modal .pm-icon {
  font-family: var(--font-display); font-size: 30px; margin-bottom: 10px;
}
.px-modal .pm-icon.error { color: var(--red); }
.px-modal .pm-icon.ok { color: var(--mint); }
.px-modal .pm-icon.ask { color: var(--gold); }
.px-modal .pm-msg { font-size: 14px; line-height: 1.7; margin-bottom: 18px; white-space: pre-wrap; }
.px-modal .pm-btns { display: flex; gap: 10px; justify-content: center; }
.ed-toolbar {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border: 3px solid var(--line);
  border-bottom: none; background: var(--panel-2);
}
.ed-toolbar button {
  padding: 4px 10px; border: 2px solid #000; background: var(--bg-soft); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; cursor: pointer; box-shadow: 2px 2px 0 #000;
}
.ed-toolbar button:hover { color: var(--gold); }
.ed-toolbar button:active { transform: translate(2px,2px); box-shadow: none; }
.ed-area {
  min-height: 220px; background: var(--bg-soft); border: 3px solid var(--line);
  padding: 12px 14px; line-height: 1.8; overflow-y: auto; max-height: 560px;
}
.ed-area:focus { outline: none; border-color: var(--gold-deep); }
.ed-area img, .post-body img { max-width: 100%; border: 2px solid var(--line); }
.ed-area video, .post-body video { max-width: 100%; border: 2px solid var(--line); }
.ed-area table, .post-body table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.ed-area td, .ed-area th, .post-body td, .post-body th {
  border: 2px solid var(--line); padding: 6px 10px; min-width: 40px; font-size: 13px;
}
.ed-area blockquote, .post-body blockquote {
  border-left: 4px solid var(--gold-deep); padding: 4px 14px; margin: 10px 0; color: var(--ink-dim);
  background: rgba(0,0,0,.18);
}
.post-body a { color: var(--gold); text-decoration: underline; }
.ed-uploading {
  margin-top: 8px; padding: 8px 12px; border: 2px dashed var(--gold-deep); color: var(--gold);
  font-size: 13px; animation: blink 1s step-end infinite;
}
.file-box {
  display: flex; align-items: center; gap: 14px; margin: 4px 22px 16px;
  padding: 12px 16px; border: 3px solid var(--gold-deep); background: var(--gold-glow);
  box-shadow: 3px 3px 0 rgba(0,0,0,.4);
}
.file-box .fb-ic { font-size: 24px; }
.file-box .fb-main { flex: 1; min-width: 0; }
.file-box .fb-main b { display: block; font-family: var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-box .fb-main small { color: var(--ink-dim); font-size: 12px; }
.write-extra {
  border: 2px dashed var(--line); padding: 12px 14px 2px; margin-bottom: 14px;
  background: rgba(0,0,0,.12);
}
.bar-chart { display: flex; align-items: flex-end; gap: 4px; padding: 14px 16px 10px; height: 100px; }
.bar-chart .bc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bar-chart .bc-col i { display: block; width: 100%; max-width: 22px; border: 1px solid rgba(0,0,0,.4); }
.bar-chart .bc-col small { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); }
.alert { padding: 10px 16px; font-size: 13px; margin-bottom: 18px; border: 3px solid; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.alert.err { color: var(--red); border-color: var(--red); background: rgba(255,93,93,.08); }
.alert.ok { color: var(--mint); border-color: var(--mint); background: rgba(74,222,128,.08); }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-faint); font-size: 13px; }
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-mini-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .header-in { gap: 10px; }
  .hero h1 { font-size: 26px; }
  .px-coin.c3, .qblock.qb2 { display: none; }
  td.views, th.views, td.num, th.num { display: none; }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
  .logo small { display: none; }
  .px-coin, .qblock { display: none; }
  .hill.h2 { display: none; }
}
