:root,
[data-theme="dark"] {
  --bg: #070b18;
  --bg2: #0e1530;
  --panel: #121a36;
  --panel2: #182044;
  --line: #2a3670;
  --text: #f4f7ff;
  --muted: #9aa6d4;
  --primary: #ff2bd6;
  --secondary: #2de2ff;
  --accent: #b8ff3b;
  --gold: #ffd84d;
  --warn: #ff6b4a;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --card-bg: #151d3d;
  --hit: #1ad67a;
  --locked: rgba(8,12,28,.72);
}

[data-theme="light"] {
  --bg: #eaf4ff;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #fff7e6;
  --line: #c9d8f0;
  --text: #12203a;
  --muted: #5b6b88;
  --primary: #ff4d1a;
  --secondary: #2563ff;
  --accent: #12c48b;
  --gold: #f5b400;
  --warn: #e11d48;
  --shadow: 0 10px 28px rgba(37,99,255,.12);
  --card-bg: #ffffff;
  --hit: #12c48b;
  --locked: rgba(255,255,255,.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: ui-rounded, "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 400px at 10% -10%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 50%),
    radial-gradient(700px 360px at 90% 0%, color-mix(in srgb, var(--secondary) 24%, transparent), transparent 55%),
    var(--bg);
  color: var(--text);
}

a { color: var(--secondary); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site {
  min-height: 100vh;
  min-width: 600px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(160px, 200px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header header"
    "nav main ads"
    "footer footer footer";
}

.top {
  grid-area: header;
  background: color-mix(in srgb, var(--bg2) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
  overflow: visible;
}
.top-brand { display: flex; align-items: center; gap: 12px; }
.top-play { display: flex; align-items: center; gap: 8px; }
.header-cards { display: flex; align-items: center; gap: 6px; }
.burger {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer;
  display: none;
  place-items: center;
}
.burger span, .burger span:before, .burger span:after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.burger span:before, .burger span:after {
  content: ""; position: absolute; left: 0;
}
.burger span:before { top: -6px; }
.burger span:after { top: 6px; }

.logo {
  display: flex; align-items: center; justify-content: center;
  width: 220px; margin-left: -14px; flex: 0 0 220px;
}
.logo img {
  height: 56px; width: auto; max-width: 200px;
  object-fit: contain; display: block;
}

.top-stats { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; flex-wrap: wrap; }
@media (min-width: 1101px) {
  .top-stats { flex-wrap: nowrap; }
  .top-play { flex: 0 0 auto; }
}
.meters {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.meter {
  width: fit-content;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.meter .lbl { display: block; font-size: .68rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.meter .val { font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.side-ads { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 12px; align-items: center; }
.side-ads.right { grid-template-columns: minmax(0, 1fr) 300px; }
.side-300 { width: 300px; min-height: 250px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; overflow: hidden; background: var(--panel2); }
@media (max-width: 900px) { .side-ads { grid-template-columns: 1fr; } .side-300 { display: none; } }
.dash-board { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 12px; }
.dash-side .dash-300 { width: 100%; max-width: 340px; }
.dash-ptc { display: flex; flex-direction: column; gap: 10px; }
.dash-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.dash-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-weight: 800; background: var(--panel);
}
.dash-pill-form { margin: 0; }
.dash-pill-btn { cursor: pointer; color: inherit; font: inherit; }
.dash-pill-btn:disabled { opacity: .55; cursor: not-allowed; }
.dash-cards { justify-content: center; }
.card-col { display: flex; flex-direction: column; align-items: center; }
.card-action { margin: 14px 0 0; text-align: center; }
.card-action .btn,
.card-action .btn.ghost,
.card-action button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}
.dash-ptc-card .short-head { padding-right: 0; }
.dash-ptc-card .pill-blue { margin-left: auto; }
@media (max-width: 1100px) { .dash-board { grid-template-columns: 1fr; } }
.dash-game-row { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 12px; align-items: center; margin-bottom: 12px; }
.dash-300 { width: 300px; min-height: 250px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; overflow: hidden; background: var(--panel2); }
.dash-300 img { width: auto; max-width: 300px; height: auto; max-height: 250px; object-fit: contain; display: block; }
@media (max-width: 800px) { .dash-game-row { grid-template-columns: 1fr; } .dash-300 { width: 100%; max-width: 300px; } }
.banner-slot img { width: auto; max-width: 100%; height: auto; display: block; border-radius: 8px; }
.drawn-ball {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; line-height: 1; color: #fff; cursor: help; gap: 1px;
  box-shadow: inset -6px -8px 10px rgba(0,0,0,.35), inset 4px 5px 8px rgba(255,255,255,.55), 0 4px 8px rgba(0,0,0,.28);
}
.drawn-ball .bl { font-size: .72rem; }
.drawn-ball .bn { font-size: 1.05rem; }
.drawn-ball.L-B { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), #ff4d6d; }
.drawn-ball.L-I { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), #b14dff; }
.drawn-ball.L-N { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), #2563ff; }
.drawn-ball.L-G { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), #12c48b; }
.drawn-ball.L-O { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), #f5b400; color: #2a1d00; }
.drawn-ball .tip {
  display: none; position: absolute; top: calc(100% + 8px); left: auto; right: 0; z-index: 50;
  width: min(280px, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.drawn-ball:hover .tip, .drawn-ball:focus .tip { display: flex; flex-wrap: wrap; gap: 4px; }
.drawn-ball .tip-head { flex: 1 0 100%; text-align: center; font-weight: 800; margin: 0 0 6px; }
.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 5px);
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: help;
}
.mini-card .tip {
  display: none; position: absolute; top: calc(100% + 8px); left: auto; right: 0; transform: none;
  z-index: 50; padding: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.mini-card:hover .tip, .mini-card:focus .tip { display: block; }
.mini-card .tip .card { width: min(220px, calc(100vw - 40px)); }
.mini-card .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line);
}
.mini-card .dot.L-B { background: #ff4d6d; }
.mini-card .dot.L-I { background: #b14dff; }
.mini-card .dot.L-N { background: #2563ff; }
.mini-card .dot.L-G { background: #12c48b; }
.mini-card .dot.L-O { background: #f5b400; }
.bingo-win {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.62);
  display: grid; place-items: center;
  padding: 16px;
}
#confirm-modal[hidden], .bingo-win[hidden] { display: none !important; }
.bingo-win-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  width: min(92vw, 420px);
  text-align: center;
  box-shadow: var(--shadow);
}
.bingo-win-card h2 { margin: 0 0 6px; letter-spacing: .08em; }
.win-type { font-weight: 800; margin: 0 0 4px; }
.win-pay { color: var(--gold); font-weight: 800; font-size: 1.2rem; margin: 0 0 8px; }
.win-card { margin: 12px auto; }
.win-card td.flash {
  animation: bingo-flash .55s steps(2, end) infinite;
}
@keyframes bingo-flash {
  50% { background: var(--gold); color: #1a1200; }
}
.actions { display: flex; gap: 8px; align-items: center; }
.hero-play { display: grid; grid-template-columns: 260px minmax(200px, 1fr); gap: 20px; align-items: center; margin-bottom: 20px; }
.cage {
  position: relative; width: 260px; height: 260px; min-width: 260px; min-height: 260px;
  flex-shrink: 0; display: block;
  border-radius: 50%;
  border: 10px solid color-mix(in srgb, var(--secondary) 70%, #fff);
  background:
    radial-gradient(circle at 32% 24%, #ffffff33, transparent 28%),
    radial-gradient(circle at 50% 50%, #1a2455, #070b18 72%);
  overflow: hidden;
  box-shadow: inset 0 0 30px #0008, var(--shadow);
  animation: cage-tilt 7s ease-in-out infinite;
}
.cage-wire, .cage-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--secondary) 45%, transparent);
  pointer-events: none;
}
.cage-wire { inset: -10% 46%; border-radius: 40%; border-left-width: 3px; border-right-width: 3px; }
.cage-wire.w2 { transform: rotate(60deg); }
.cage-wire.w3 { transform: rotate(-60deg); }
.cage-ring.r1 { inset: 18%; opacity: .7; }
.cage-ring.r2 { inset: 32%; opacity: .55; transform: rotateX(65deg); }
.cage-ring.r3 { inset: 8% 8% 42% 8%; border-radius: 50%; opacity: .4; }
.cage-ball {
  position: absolute; width: 32px; height: 32px; border-radius: 50%;
  left: 50%; top: 50%; margin: -16px 0 0 -16px;
  display: grid; place-items: center;
  font-size: .58rem; font-weight: 800; color: #fff;
  box-shadow: inset -4px -5px 8px #0004, inset 3px 3px 6px #fff6, 0 4px 8px #0005;
  animation: ball-a 3.2s linear infinite;
}
.cage-ball:nth-child(7)  { animation-name: ball-a; animation-duration: 2.8s; animation-delay: -.2s; }
.cage-ball:nth-child(8)  { animation-name: ball-b; animation-duration: 3.4s; animation-delay: -.6s; }
.cage-ball:nth-child(9)  { animation-name: ball-c; animation-duration: 2.6s; animation-delay: -1.1s; }
.cage-ball:nth-child(10) { animation-name: ball-d; animation-duration: 3.8s; animation-delay: -.4s; }
.cage-ball:nth-child(11) { animation-name: ball-e; animation-duration: 3.1s; animation-delay: -1.7s; }
.cage-ball:nth-child(12) { animation-name: ball-a; animation-duration: 4.2s; animation-delay: -.9s; }
.cage-ball:nth-child(13) { animation-name: ball-b; animation-duration: 2.9s; animation-delay: -2.0s; }
.cage-ball:nth-child(14) { animation-name: ball-c; animation-duration: 3.6s; animation-delay: -.3s; }
.cage-ball:nth-child(15) { animation-name: ball-d; animation-duration: 3.0s; animation-delay: -1.4s; }
.cage-ball:nth-child(16) { animation-name: ball-e; animation-duration: 4.0s; animation-delay: -.8s; }
.cage-ball:nth-child(17) { animation-name: ball-a; animation-duration: 2.7s; animation-delay: -1.9s; }
.cage-ball:nth-child(18) { animation-name: ball-b; animation-duration: 3.3s; animation-delay: -.1s; }
.cage-ball:nth-child(19) { animation-name: ball-c; animation-duration: 3.7s; animation-delay: -2.2s; }
.cage-ball:nth-child(20) { animation-name: ball-d; animation-duration: 2.5s; animation-delay: -1.5s; }
@keyframes cage-tilt {
  0%,100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}
@keyframes ball-a {
  0%   { transform: translate(-18px, -52px); }
  20%  { transform: translate(48px, -20px); }
  40%  { transform: translate(36px, 50px); }
  60%  { transform: translate(-42px, 44px); }
  80%  { transform: translate(-50px, -8px); }
  100% { transform: translate(-18px, -52px); }
}
@keyframes ball-b {
  0%   { transform: translate(40px, 8px); }
  25%  { transform: translate(-10px, 54px); }
  50%  { transform: translate(-52px, -6px); }
  75%  { transform: translate(8px, -50px); }
  100% { transform: translate(40px, 8px); }
}
@keyframes ball-c {
  0%   { transform: translate(6px, 46px); }
  30%  { transform: translate(-48px, 18px); }
  55%  { transform: translate(-22px, -48px); }
  80%  { transform: translate(50px, -16px); }
  100% { transform: translate(6px, 46px); }
}
@keyframes ball-d {
  0%   { transform: translate(-44px, 28px); }
  20%  { transform: translate(-8px, -46px); }
  45%  { transform: translate(52px, -28px); }
  70%  { transform: translate(30px, 48px); }
  100% { transform: translate(-44px, 28px); }
}
@keyframes ball-e {
  0%   { transform: translate(22px, -44px); }
  35%  { transform: translate(-36px, -30px); }
  60%  { transform: translate(-28px, 50px); }
  85%  { transform: translate(46px, 22px); }
  100% { transform: translate(22px, -44px); }
}
.hero-card-wrap { position: relative; }
#hero-bingo {
  position: absolute; inset: 18% 6%;
  display: grid; place-items: center;
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: .06em;
  color: #f5b400; text-shadow: 4px 4px 0 #1a1200, -2px 2px 0 #ff2bd6;
  transform: rotate(-12deg) scale(1.1);
  animation: pow .45s cubic-bezier(.2,1.6,.4,1);
  pointer-events: none;
}
#hero-bingo[hidden] { display: none !important; }
@keyframes pow { from { transform: rotate(-12deg) scale(.2); opacity: 0; } to { transform: rotate(-12deg) scale(1.1); opacity: 1; } }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  min-width: 140px; padding: 14px 18px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line); text-align: center;
}
.stat .lbl { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.stat .val { font-weight: 800; color: var(--gold); font-size: 1.2rem; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.feat { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.feat input[name="address"], .feat input[name="cwallet_user"] { margin-bottom: 14px; }
.feat .btn.wd-go { margin: 6px auto 0; display: inline-flex; }
.retry-form { margin: -6px 0 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pager a { display: inline-block; min-width: 32px; padding: 6px 8px; text-align: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager a.on { background: var(--gold); color: #1a1200; font-weight: 800; }
@media (max-width: 700px) { .hero-play { grid-template-columns: 1fr; } }

.token-bubble {
  background: color-mix(in srgb, var(--gold) 22%, var(--panel));
  border-radius: 999px;
  padding: 6px 12px;
}
#payout-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  display: grid; place-items: center; z-index: 80;
}
#payout-modal[hidden] { display: none !important; }
#payout-modal .ptc-modal-card { width: min(94vw, 520px); max-height: 80vh; overflow: auto; }
.theme-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 700;
}

.side {
  grid-area: nav;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.side a, .side .who {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); margin-bottom: 4px;
}
.side a.btn { color: #fff; }
.side a:hover, .side a.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--secondary) 25%, transparent));
}
.side .who { color: var(--muted); font-size: .85rem; }

.content {
  grid-area: main;
  padding: 18px 18px 40px;
  min-width: 0;
}
.ads {
  grid-area: ads;
  padding: 14px 10px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  display: flex; flex-direction: column; gap: 12px;
}
.adslot {
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel2);
  display: grid; place-items: center;
  color: var(--muted); font-size: .75rem; text-align: center; padding: 8px;
}
.adslot.tall { min-height: 300px; }

.foot {
  grid-area: footer;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  padding: 14px 16px;
}

h1,h2,h3 { margin-top: 0; text-transform: capitalize; }
.muted { color: var(--muted); }
.hot-bar { height: 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 2px; }
.hot-bar span { display: block; height: 100%; background: linear-gradient(90deg, #12c48b, #f5b400); }
.ok { color: var(--accent); }
.bad { color: var(--warn); }

.flash {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  border: 1px solid var(--accent);
  padding: 10px 12px; border-radius: 12px; margin-bottom: 14px;
}
.safety {
  background: color-mix(in srgb, var(--warn) 16%, var(--panel));
  border: 1px solid var(--warn);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0 0 14px;
  font-weight: 700;
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff; border: 0; border-radius: 12px; padding: 10px 14px;
  cursor: pointer; font-weight: 800;
}
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
}
input[type="checkbox"] { width: auto; padding: 0; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: .85rem; }
label:has(input[type="checkbox"]) {
  display: flex; align-items: center; gap: 8px; width: fit-content;
}

table.data, table:not(.card) {
  width: 100%; border-collapse: collapse;
}
table:not(.card) th, table:not(.card) td {
  border-bottom: 1px solid var(--line); padding: 8px; text-align: left;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.card-wrap {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  width: 284px;
  flex: 0 0 284px;
  max-width: 100%;
}
.card-wrap h3 { margin: 0 0 8px; font-size: .95rem; }
.card-wrap.locked { filter: grayscale(1) contrast(.85); }
.card-wrap.locked .veil {
  position: absolute; inset: 0; border-radius: 16px;
  background: var(--locked);
  display: grid; place-items: center;
  padding: 16px;
  text-align: center;
  font-weight: 800; letter-spacing: .02em; color: var(--text);
  text-transform: none;
}
.card-wrap.locked .veil span {
  max-width: 220px;
  line-height: 1.3;
}

table.card {
  width: 260px;
  max-width: 260px;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}
table.card th {
  text-align: center; border: 0; padding: 0; color: #fff;
  border-radius: 999px; font-size: 1.05rem;
  height: 40px;
}
table.card th:nth-child(1) { background: #ff4d6d; }
table.card th:nth-child(2) { background: #b14dff; }
table.card th:nth-child(3) { background: #2563ff; }
table.card th:nth-child(4) { background: #12c48b; }
table.card th:nth-child(5) { background: #f5b400; }
table.card td {
  width: 20%;
  height: 40px;
  max-width: 48px;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #fff8, transparent 36%), var(--panel2);
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.18);
}
table.card td.hit {
  background: radial-gradient(circle at 30% 25%, #fff9, transparent 40%), var(--hit);
  border-color: color-mix(in srgb, var(--hit) 40%, #fff);
  color: #072014;
}
table.card td.free { font-size: .62rem; letter-spacing: .04em; }

.balls { display: flex; flex-wrap: wrap; gap: 6px; }
.ball {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; color: #fff; line-height: 1;
  border: 0; gap: 1px;
  box-shadow: inset -6px -8px 10px rgba(0,0,0,.35), inset 4px 5px 8px rgba(255,255,255,.55), 0 4px 8px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 70% 78%, rgba(0,0,0,.28), rgba(0,0,0,0) 42%),
    var(--panel2);
}
.ball .bl { font-size: .72rem; letter-spacing: .02em; }
.ball .bn { font-size: 1.05rem; }
.ball.pulled { color: #fff; }
.ball.L-B { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.3), rgba(0,0,0,0) 42%), #ff4d6d; }
.ball.L-I { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.3), rgba(0,0,0,0) 42%), #b14dff; }
.ball.L-N { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.3), rgba(0,0,0,0) 42%), #2563ff; }
.ball.L-G { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.3), rgba(0,0,0,0) 42%), #12c48b; }
.ball.L-O { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%), radial-gradient(circle at 70% 78%, rgba(0,0,0,.25), rgba(0,0,0,0) 42%), #f5b400; color: #2a1d00; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.geo-grid label { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--text); }
.geo-grid input { width: auto; }

#ptc-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  display: grid; place-items: center; z-index: 80;
}
#ptc-modal[hidden], #extra-modal[hidden], #extra-toast[hidden] { display: none !important; }
#extra-modal { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: grid; place-items: center; z-index: 80; }
.ptc-modal-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; width: min(92vw, 360px);
  box-shadow: var(--shadow);
}
.ptc-captcha-card { width: min(96vw, 520px); max-height: 92vh; overflow: auto; text-align: center; }
.ptc-captcha-card h3, .ptc-captcha-card p, .ptc-captcha-card .btn { text-align: center; }
.ptc-captcha-card #ptc-widget { display: flex; justify-content: center; }
.ptc-captcha-card #ptc-widget, .ptc-captcha-card .iconcaptcha-widget, .ptc-captcha-card .cf-turnstile { margin-left: auto; margin-right: auto; }
.ptc-captcha-card .iconcaptcha-widget { width: min(330px, 100%) !important; max-width: 330px; }
.faucet-card { text-align: center; }
.faucet-card form { display: flex; flex-direction: column; align-items: center; }
.faucet-card .iconcaptcha-widget { margin-left: auto; margin-right: auto; }
.ptc-captcha-card input { text-align: center; }
.ball-lg { width: 96px; height: 96px; font-size: 1.7rem; }
.ball-lg .bl { font-size: 1.2rem; }
.ball-lg .bn { font-size: 2rem; }
.ptc-q { font-size: 1.6rem; font-weight: 800; color: var(--gold); }

@media (max-width: 1100px) {
  .site {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
    grid-template-areas:
      "header header"
      "main ads"
      "footer footer";
  }
  .burger { display: grid; }
  .side {
    position: fixed; inset: 58px auto 0 0; width: min(84vw, 280px);
    transform: translateX(-110%); transition: transform .2s ease;
    z-index: 50; box-shadow: var(--shadow);
  }
  body.nav-open .side { transform: none; }
  .top-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .top-brand { justify-content: space-between; }
  .top-brand .logo { margin-left: 0; width: auto; flex: 1; }
  .top-stats { flex-direction: column; align-items: stretch; }
  .meters { justify-content: center; }
  .top-play { justify-content: center; }
}
@media (max-width: 760px) {
  .site {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }
  .ads { display: none !important; }
  .meters { justify-content: center; }
}

.theme-btn { min-width: 42px; font-size: 1.2rem; line-height: 1; }
html[data-theme="light"] .today-card { background: #fff; }
html[data-theme="light"] .meter.token-bubble { background: #fff; }
.content h1 { text-align: left; margin: 12px 0; }
html[data-theme="light"] .icon-moon { display: none; }
.home-auth { display: flex; justify-content: center; gap: 10px; padding: 8px 16px 12px; }
body.home .site {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "main"
    "footer";
}
body.home .side,
body.home .ads,
body.home .burger { display: none !important; }
body.home .content { max-width: 1100px; margin: 0 auto; }

.legal-links { display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:center; margin-top:8px; }
.legal-links a { color: var(--muted); }
.legal-doc h2 { margin-top: 1.2em; }
.legal-doc ul { margin: 0 0 1em 1.2em; }
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-actions { display:inline-flex; gap:8px; }
.cookie-choice { min-width: 96px; text-align:center; }

.feed-scroll { display:flex; gap:10px; overflow-x:auto; padding:6px 2px 12px; scroll-snap-type:x mandatory; }
.feed-card { flex:0 0 180px; scroll-snap-align:start; display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid var(--line); border-radius:14px; background:var(--panel); color:inherit; text-decoration:none; min-height:160px; }
html[data-theme="light"] .cpx-logo-light { display: none; }
html[data-theme="dark"] .cpx-logo-dark { display: none; }
html[data-theme="light"] .ogg-dark { display: none; }
html[data-theme="dark"] .ogg-light { display: none; }
.ogg-wall-btn { display:inline-block; margin: 4px 0 14px; }
.ogg-wall-btn .ogg-badge { width:180px; height:auto; }
.ogg-card .ogg-card-badge { display:grid; place-items:center; width:100%; height:90px; border-radius:10px; background:transparent; }
.ogg-card .ogg-card-badge .ogg-badge { width:100%; height:auto; }
.feed-card img, .feed-ph { width:100%; height:90px; object-fit:contain; border-radius:10px; background:#fff; }
.feed-ph { display:grid; place-items:center; font-weight:800; font-size:1.6rem; color:var(--gold); }
.feed-card .pay { color:var(--gold); font-weight:700; }
.feed-note { margin:0 0 10px; }
.feed-card .award { color:#12c48b; font-weight:800; font-size:.85rem; }
.feed-card .award.card { color:#b14dff; }
.ref-banner { margin: 16px 0 20px; }
.ref-banner img { max-width: 100%; height: auto; display: block; }
.ref-banner code { word-break: break-all; }
.ref-link { font-size: 1.25rem; line-height: 1.4; }
.ref-link code { display: block; padding: 10px 12px; background: var(--panel2); border-radius: 10px; word-break: break-all; }
.balance-tip { position: relative; }
.balance-tip .tip {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 170px; padding: 8px 10px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .82rem;
}
.balance-tip:hover .tip, .balance-tip:focus-within .tip { display: block; }
.short-summary { width: 100%; }
.short-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.short-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; min-height: 180px; position: relative; }
.short-card form:not(.short-corner), .short-card .btn { margin-top: auto; width: 100%; }
.short-corner { position: absolute; top: 6px; right: 6px; z-index: 3; width: auto; margin: 0; }
.short-corner.featured { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #2a1d00; background: #f5b400; border-radius: 999px; padding: 3px 8px; }
.thumb { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.thumb svg { width: 28px; height: 28px; fill: var(--gold); stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }
.thumb.on svg, .thumb.on svg path { fill: #32cd32 !important; }
.short-card.done { opacity: .72; }
.short-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding-right: 42px; }
.daily-wrap { text-align: center; }
.today-card {
  max-width: 520px; margin: 16px auto; padding: 22px 18px;
  border: 2px solid var(--gold); border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 70%, #000);
  color: var(--text);
}
.today-kicker { color: var(--gold); letter-spacing: .16em; font-weight: 800; }
.today-day { margin-top: 6px; }
.today-pay { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1.1; margin: 8px 0; }
.today-split { margin-bottom: 12px; }
.day-path {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0;
}
.day-step { width: 86px; text-align: center; }
.day-node {
  width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  border: 2px solid var(--line); color: var(--text); background: var(--panel);
}
.day-step.done .day-node { background: var(--gold); color: #1a1200; border-color: var(--gold); font-size: 2.4rem; }
.day-step.now .day-node { border-color: var(--gold); color: var(--gold); }
.day-label { font-size: 1rem; font-weight: 700; }
.day-amt { font-size: 1rem; color: var(--text); }
.ptc-desc { margin: 0 0 10px; }
.short-pay { font-size: 1.35rem; font-weight: 800; color: #12c48b; }
.short-bar { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.short-bar > span { display: block; height: 100%; background: #2563ff; }
.short-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.short-ad { min-height: 250px; border: 1px dashed var(--line); border-radius: 14px; display: grid; place-items: center; background: var(--panel2); overflow: hidden; }
.short-ad .banner-slot, .short-ad img { width: auto; max-width: 300px; height: auto; max-height: 250px; object-fit: contain; }
.short-ad:has(.banner-slot),
.side-300:has(.banner-slot),
.dash-300:has(.banner-slot),
.ad-468:has(.banner-slot),
.adslot:has(.banner-slot),
.ad-leader .ad-desktop:has(.banner-slot),
.ad-leader .ad-mobile:has(.banner-slot) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.pill-green { display: inline-block; background: #12c48b; color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; }
.pill-blue { display: inline-block; background: #2563ff; color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; white-space: nowrap; }
.ad-728, .ad-leader { width: 100%; max-width: 728px; margin: 12px auto; }
.ad-468 { width: 100%; max-width: 468px; min-height: 60px; margin: 12px auto; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; }
.ad-leader .ad-desktop { min-height: 90px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; }
.ad-leader .ad-mobile { display: none; min-height: 60px; max-width: 468px; margin: 0 auto; place-items: center; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; }
.ad-preload { position: absolute; left: -12000px; top: 0; width: 468px; height: auto; overflow: hidden; }
@media (max-width: 700px) {
  .ad-leader .ad-desktop { display: none; }
  .ad-leader .ad-mobile { display: grid; }
}
@media (max-width: 900px) { .short-grid { grid-template-columns: 1fr; } }
