/* ============ BLOKVERSE - modern voxel oyun arayuzu ============ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Press+Start+2P&display=swap');

:root {
  --bg: #0a0b14;
  --bg-2: #10121f;
  --panel: rgba(23, 26, 43, 0.72);
  --panel-solid: #161930;
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #e9ecff;
  --muted: #9aa0c3;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --green: #34d399;
  --pink: #f472b6;
  --amber: #fbbf24;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10, 11, 20, 0.9), rgba(10, 11, 20, 0.4));
  border-bottom: 1px solid var(--stroke);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 15px; letter-spacing: 1px;
}
.brand .cube {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(145deg, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
  transform: rotate(8deg);
}
.brand b { background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--stroke);
  font-weight: 600; font-size: 14px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill.balance { color: var(--amber); }
.pill.balance b { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--panel-solid); color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none; color: #07111a;
  box-shadow: 0 14px 34px -12px rgba(34, 211, 238, 0.7);
}
.btn.green { background: linear-gradient(135deg, var(--green), #10b981); border: none; color: #04140d; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(251, 113, 133, 0.14); border-color: rgba(251, 113, 133, 0.4); color: var(--danger); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.full { width: 100%; }

/* ---------- hero / auth ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; padding: 70px 0 48px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 46ch; line-height: 1.6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--stroke); color: var(--muted);
}

.card {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.card h2 { font-size: 22px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.25); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 10px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14px;
  transition: all 0.15s ease;
}
.tabs button.active { background: var(--panel-solid); color: var(--text); box-shadow: 0 6px 18px -8px rgba(0,0,0,0.6); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.input {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--stroke); color: var(--text);
  font-family: inherit; font-size: 15px; outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16); }
.input::placeholder { color: #5b6187; }

.msg { margin-top: 12px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(251, 113, 133, 0.14); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.3); }
.msg.ok { background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }

/* ---------- dashboard ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat .v { font-size: 30px; font-weight: 800; }
.stat .v.amber { color: var(--amber); }
.stat .v.cyan { color: var(--cyan); }
.stat .v.green { color: var(--green); }

.section-title { font-size: 18px; font-weight: 700; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--purple)); }

.redeem-row { display: flex; gap: 10px; }
.redeem-row .input { flex: 1; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-item {
  background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.shop-item::before {
  content: ''; position: absolute; inset: -40% 60% 60% -40%;
  background: radial-gradient(circle, var(--glow, var(--cyan)), transparent 70%);
  opacity: 0.25; filter: blur(20px);
}
.shop-item .icn { width: 42px; height: 42px; border-radius: 10px; background: var(--glow, var(--cyan)); box-shadow: 0 0 20px var(--glow, var(--cyan)); position: relative; }
.shop-item h4 { font-size: 16px; position: relative; }
.shop-item p { font-size: 13px; color: var(--muted); flex: 1; position: relative; line-height: 1.5; }
.shop-item .price { font-weight: 800; font-size: 17px; color: var(--amber); position: relative; }
.shop-item .owned-tag { position: relative; font-size: 12px; color: var(--green); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--stroke); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td.amount.pos { color: var(--green); font-weight: 700; }
td.amount.neg { color: var(--danger); font-weight: 700; }
.table-scroll { overflow: auto; border-radius: 12px; border: 1px solid var(--stroke); max-height: 420px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.07); }
.tag.on { background: rgba(52, 211, 153, 0.16); color: var(--green); }
.tag.off { background: rgba(251, 113, 133, 0.16); color: var(--danger); }
.code-cell { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--cyan); letter-spacing: 0.5px; }

.center-min { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }

.hidden { display: none !important; }
.spacer { height: 40px; }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 14px 22px; font-weight: 600; box-shadow: var(--shadow); opacity: 0;
  transition: all 0.3s ease; z-index: 100; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.ok { border-color: rgba(52, 211, 153, 0.5); }
#toast.err { border-color: rgba(251, 113, 133, 0.5); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* ===================== OYUN (game.html) ===================== */
#game-root { position: fixed; inset: 0; background: #87b7e8; }
#game-root canvas { display: block; }

.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-family: 'Outfit', sans-serif; }

#crosshair {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px;
  transform: translate(-50%, -50%); opacity: 0.85;
}
#crosshair::before, #crosshair::after {
  content: ''; position: absolute; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,0.6);
}
#crosshair::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
#crosshair::after { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-50%); }

#hotbar {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px; border-radius: 14px;
  background: rgba(10, 11, 20, 0.55); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(8px);
}
.slot {
  width: 52px; height: 52px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.15);
  display: grid; place-items: center; position: relative; background: rgba(255,255,255,0.04);
}
.slot .sw { width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 -8px 12px rgba(0,0,0,0.28); }
.slot .num { position: absolute; top: 2px; left: 5px; font-size: 10px; color: rgba(255,255,255,0.6); font-weight: 700; }
.slot.active { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, 0.6); transform: translateY(-4px); }
.slot .lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; background: rgba(0,0,0,0.55); border-radius: 8px; }

.hud-top-left { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; }
.hud-top-right { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; pointer-events: auto; }
.chip {
  padding: 8px 14px; border-radius: 10px; background: rgba(10, 11, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.12); font-weight: 700; font-size: 14px; backdrop-filter: blur(8px);
}
.chip.amber { color: var(--amber); }
.chip.small { font-size: 12px; font-weight: 600; color: var(--muted); }

.overlay {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(6, 7, 14, 0.82); backdrop-filter: blur(6px);
}
.overlay .panel {
  width: min(560px, 92vw); max-height: 86vh; overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow);
}
.overlay h2 { font-family: 'Press Start 2P', cursive; font-size: 18px; margin-bottom: 8px; }
.overlay .sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; color: var(--muted); margin: 18px 0; }
.keys b { color: var(--text); font-family: monospace; background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 6px; }
.overlay .row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.loading {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: var(--bg);
}
.loading .inner { text-align: center; }
.loading .bar { width: 240px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; margin: 18px auto 0; }
.loading .bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--cyan), var(--purple)); animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* ---- can bari ---- */
#healthbar {
  position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%);
  width: 240px; height: 14px; border-radius: 999px; overflow: hidden;
  background: rgba(10,11,20,0.6); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px);
}
#healthbar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316, #22c55e);
  background-size: 240px 100%; transition: width 0.2s ease;
}
#healthbar span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.7); letter-spacing: 0.5px;
}

/* ---- ekranda ucusan yazi (odul / hasar) ---- */
#floaters { position: absolute; inset: 0; overflow: hidden; }
.floater {
  position: absolute; font-weight: 800; font-size: 20px; text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  animation: floatUp 1s ease-out forwards; white-space: nowrap;
}
.floater.gain { color: var(--amber); }
.floater.hurt { color: var(--danger); }
@keyframes floatUp { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-60px) scale(1.25); } }

/* ---- damage vignette ---- */
#hurt-vig {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 140px 40px rgba(220, 38, 38, 0.75); transition: opacity 0.15s ease;
}

/* ---- ayarlar (menu) ---- */
.settings { display: grid; gap: 14px; margin: 4px 0 6px; }
.settings .set-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.settings input[type="range"] { width: 100%; accent-color: var(--cyan); }
.settings .val { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.hint {
  position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%);
  font-size: 13px; color: rgba(255,255,255,0.85); background: rgba(10,11,20,0.55);
  border: 1px solid rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease;
}
.hint.show { opacity: 1; }

.chip.hp { color: #fb7185; }
.chip.gem { color: var(--amber); }

/* ============================================================
   HUB — oyun kitapligi
   ============================================================ */
.hub-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 8px 0 26px; }
.hub-head h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; }
.hub-head h1 span { background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-head p { color: var(--muted); margin-top: 4px; }

.char-strip {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
}
.char-strip .ava { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; box-shadow: var(--shadow); }
.char-strip .meta { flex: 1; min-width: 0; }
.char-strip .meta b { font-size: 15px; }
.char-strip .lv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.char-strip .lv span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--muted); }

/* Trendyol magaza afisi */
.ty-banner {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  padding: 16px 20px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(100deg, rgba(243, 124, 0, 0.22), rgba(243, 124, 0, 0.06) 55%, var(--panel));
  border: 1px solid rgba(243, 124, 0, 0.45);
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ty-banner:hover { transform: translateY(-2px); border-color: #f37c00; box-shadow: 0 16px 36px -16px rgba(243, 124, 0, 0.5); }
.ty-banner .ty-ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: #000; box-shadow: 0 0 18px rgba(243, 124, 0, 0.55);
}
.ty-banner .ty-ico img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06);
}
.ty-banner .ty-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ty-banner .ty-txt b { font-size: 15px; }
.ty-banner .ty-txt small { color: var(--muted); font-size: 12.5px; }
.ty-banner .ty-cta {
  flex-shrink: 0; padding: 10px 16px; border-radius: 10px; font-weight: 800; font-size: 13px;
  background: #f37c00; color: #1a0e00; white-space: nowrap;
}
@media (max-width: 620px) {
  .ty-banner { flex-wrap: wrap; }
  .ty-banner .ty-cta { width: 100%; text-align: center; }
}

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.game-card {
  position: relative; overflow: hidden; border-radius: 16px; padding: 18px;
  background: var(--panel-solid); border: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 8px; min-height: 190px;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--acc, var(--cyan)); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); }
.game-card .thumb {
  height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 46px;
  background: radial-gradient(120px 80px at 30% 20%, var(--acc, #22d3ee), transparent 70%), #0e1120;
  border: 1px solid var(--stroke); margin-bottom: 4px;
}
.game-card .tag {
  position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,0.4); color: var(--acc, var(--cyan));
  border: 1px solid var(--stroke);
}
.game-card h3 { font-size: 17px; }
.game-card p { font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.5; }
.game-card .row { display: flex; gap: 8px; align-items: center; }
.game-card .best { font-size: 11px; color: var(--muted); font-weight: 700; }
.game-card .play {
  flex: 1; text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #07111a;
}
.game-card .lb {
  padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke); cursor: pointer; font-size: 13px;
}

/* ============================================================
   KARAKTER sayfasi
   ============================================================ */
.ava-preview { width: 140px; height: 140px; border-radius: 24px; box-shadow: var(--shadow); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.up-card { background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.up-card .ic { font-size: 28px; }
.up-card h4 { font-size: 16px; }
.up-card p { font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.5; }
.pips { display: flex; gap: 5px; flex-wrap: wrap; }
.pips i { width: 20px; height: 8px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.pips i.on { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.up-card .eff { font-size: 12px; color: var(--green); font-weight: 700; }
.up-card .buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.up-card .cost { font-weight: 800; color: var(--amber); }

/* ============================================================
   ARKADE oyun kabugu (arcade.js)
   ============================================================ */
#arc-shell { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
#arc-header {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--stroke); background: rgba(10,11,20,0.7); backdrop-filter: blur(10px); z-index: 5;
}
#arc-header .back { font-weight: 700; color: var(--muted); font-size: 14px; }
#arc-header .gname { font-family: 'Press Start 2P', cursive; font-size: 12px; letter-spacing: 0.5px; }
#arc-header .sp { flex: 1; }
#arc-header .stat { font-size: 13px; font-weight: 700; color: var(--muted); }
#arc-header .stat b { color: var(--text); }
#arc-header .stat.rbx b { color: var(--amber); }
#arc-header .pausebtn { padding: 7px 12px; border-radius: 9px; background: var(--panel-solid); border: 1px solid var(--stroke); color: var(--text); font-weight: 700; cursor: pointer; }
#arc-stage { flex: 1; display: grid; place-items: center; overflow: hidden; padding: 12px; }
#arc-canvas { background: #0e1120; border-radius: 14px; box-shadow: var(--shadow); touch-action: none; }

.arc-overlay {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(6,7,14,0.8); backdrop-filter: blur(6px);
}
.arc-overlay .box {
  width: min(420px, 92vw); text-align: center; padding: 30px;
  background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 20px; box-shadow: var(--shadow);
}
.arc-overlay h2 { font-family: 'Press Start 2P', cursive; font-size: 17px; margin-bottom: 10px; }
.arc-overlay .big { font-size: 40px; font-weight: 800; margin: 8px 0; }
.arc-overlay .sub { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.arc-overlay .reward { color: var(--amber); font-weight: 800; font-size: 20px; margin: 10px 0 4px; }
.arc-overlay .row { display: flex; gap: 10px; margin-top: 18px; }
.arc-overlay .row .btn { flex: 1; }
.arc-help { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0 2px; }

/* leaderboard modal */
#lb-modal .box { width: min(420px, 92vw); }
.lb-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; text-align: left; }
.lb-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); font-size: 14px; }
.lb-row .r { font-weight: 800; color: var(--muted); }
.lb-row .s { font-weight: 800; color: var(--amber); }
.lb-row .av { width: 18px; height: 18px; border-radius: 6px; display: inline-block; vertical-align: middle; margin-right: 8px; }
