/* ============ LIKA — sleek green OLED gaming theme ============ */

:root[data-theme="dark"] {
  --bg: #060A08;
  --bg-grad-top: #0A1410;
  --elev: #0C1310;
  --card: #0E1714;
  --card-2: #13201B;
  --card-hi: #16271F;
  --line: #1E2C26;
  --line-2: #284036;
  --text: #EAF4EE;
  --muted: #8094895c;
  --muted-solid: #87998F;
  --green: #1FE886;
  --green-2: #00C46A;
  --green-bright: #4CFFA0;
  --green-ink: #042014;
  --bad: #FF5C7A;
  --good: #1FE886;
  --shadow: 0 16px 40px rgba(0,0,0,.55);
  --glow: 0 0 24px rgba(31,232,134,.35);
  --glow-soft: 0 0 0 1px rgba(31,232,134,.12), 0 8px 28px rgba(31,232,134,.10);
}
:root[data-theme="light"] {
  --bg: #EEF4F0;
  --bg-grad-top: #FFFFFF;
  --elev: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F3F8F4;
  --card-hi: #ECF5EF;
  --line: #DCE7E0;
  --line-2: #C5D6CC;
  --text: #0C1813;
  --muted: #4C5C54;
  --muted-solid: #5A6A62;
  --green: #0FB86A;
  --green-2: #079B57;
  --green-bright: #0FB86A;
  --green-ink: #FFFFFF;
  --bad: #E11D55;
  --good: #0FB86A;
  --shadow: 0 12px 30px rgba(16,40,28,.12);
  --glow: 0 0 20px rgba(15,184,106,.18);
  --glow-soft: 0 0 0 1px rgba(15,184,106,.14), 0 8px 22px rgba(15,184,106,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* low-specificity default so bare inline icons are sized; class rules below override */
svg { width: 1.1em; height: 1.1em; vertical-align: middle; flex: none; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(130% 90% at 50% -10%, var(--bg-grad-top) 0%, var(--bg) 52%);
  color: var(--text);
  font-family: 'Chakra Petch', system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
  transition: background .35s ease, color .35s ease;
}

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* scattered LIKA logo watermark — screen blend hides the logo's dark backdrop,
   so only the leaf + controller glow softly over the OLED background */
#watermark { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url(./logo.jpg); background-repeat: repeat; background-size: 132px;
  opacity: .14; mix-blend-mode: screen; }
:root[data-theme="light"] #watermark { mix-blend-mode: multiply; opacity: .06; }
#vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%); }
:root[data-theme="light"] #vignette { background: radial-gradient(120% 80% at 50% 50%, transparent 60%, rgba(120,150,135,.18) 100%); }

#app {
  position: relative; z-index: 1;
  height: 100dvh; max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  overflow: hidden;
}

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; animation: in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 18px; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 14px; text-align: center; }
.spacer { flex: 1; }
.muted { color: var(--muted-solid); }
.tiny { font-size: 12px; letter-spacing: .3px; }
.label { font-family: 'Chakra Petch'; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted-solid); text-transform: uppercase; padding: 0 2px 10px; }

/* ---------- brand / type ---------- */
.head { font-family: 'Russo One', sans-serif; letter-spacing: 1px; }
.brand { font-family: 'Russo One', sans-serif; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(31,232,134,.25); }
.logo-xl { font-size: 52px; }
.logo-md { font-size: 22px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px 12px; }
.topbar .right { display: flex; align-items: center; gap: 10px; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s, transform .08s; }
.icon-btn:hover { background: var(--card-hi); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }

.balance-pill { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s, transform .08s; }
.balance-pill:hover { background: var(--card-hi); border-color: var(--green); box-shadow: var(--glow-soft); }
.balance-pill:active { transform: scale(.97); }
.balance-pill svg { width: 18px; height: 18px; color: var(--green); }
.balance-pill .amt { font-family: 'Russo One'; font-size: 16px; }
.balance-pill .cap { font-size: 9px; letter-spacing: 1.5px; color: var(--muted-solid); text-transform: uppercase; line-height: 1; }

/* deposit-landed celebration: the balance pill pulses green + a floating "+$X" rises */
.balance-pill.deposit-pop { animation: depositPop .9s ease; }
@keyframes depositPop {
  0%   { transform: scale(1); border-color: var(--green); }
  25%  { transform: scale(1.13); border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(0,224,122,.35), 0 0 24px rgba(0,224,122,.55); }
  60%  { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(0,224,122,0), 0 0 30px rgba(0,224,122,.3); }
  100% { transform: scale(1); box-shadow: none; }
}
.deposit-float {
  position: fixed; z-index: 60; pointer-events: none;
  font-family: 'Russo One'; font-size: 18px; color: var(--green-bright);
  text-shadow: 0 2px 12px rgba(0,224,122,.65);
  animation: depositFloat 1.6s ease-out forwards;
}
@keyframes depositFloat {
  0%   { opacity: 0; transform: translateY(8px) scale(.8); }
  20%  { opacity: 1; transform: translateY(-4px) scale(1.12); }
  100% { opacity: 0; transform: translateY(-48px) scale(1); }
}

/* admin: per-account game record */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 2px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; }
.stat-box .sv { font-family: 'Russo One'; font-size: 20px; line-height: 1; }
.stat-box .sl { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-solid); margin-top: 5px; }

/* ---------- buttons ---------- */
.btn { font-family: 'Chakra Petch'; font-weight: 700; font-size: 16px; letter-spacing: .4px;
  border: none; border-radius: 16px; padding: 16px 18px; width: 100%; cursor: pointer;
  color: var(--green-ink); background: linear-gradient(135deg, var(--green-bright), var(--green-2));
  box-shadow: 0 10px 26px rgba(31,232,134,.28); transition: transform .08s, filter .2s, opacity .2s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .4; box-shadow: none; cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--card-hi); border-color: var(--line-2); filter: none; }
.btn.danger { background: linear-gradient(135deg, #FF6B86, #E11D55); color: #fff; box-shadow: 0 10px 26px rgba(225,29,85,.25); }
.btn.sm { padding: 12px 14px; font-size: 14px; border-radius: 13px; }
.btn .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.btn-row { display: flex; gap: 10px; }

.input { width: 100%; background: var(--elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px; color: var(--text); font-family: 'Chakra Petch'; font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--green); box-shadow: var(--glow-soft); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.hello { display: flex; align-items: center; gap: 12px; padding: 4px 2px 16px; }
.hello .avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink);
  font-family: 'Russo One'; font-size: 20px; box-shadow: var(--glow); }
.hello .avatar.logo-av { background: #0c1a13 url(./logo.jpg) center/cover no-repeat; }
.hello .who { line-height: 1.2; }
.hello .who b { font-family: 'Russo One'; font-size: 17px; font-weight: 400; }
.hello .who span { font-size: 12px; color: var(--muted-solid); }

/* ---------- game grid ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; overflow: hidden;
  transition: border-color .2s, background .2s, transform .08s, box-shadow .2s; }
.tile:hover { border-color: var(--green); box-shadow: var(--glow-soft); }
.tile:active { transform: scale(.97); }
.tile .ico-well { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line); color: var(--green); }
.tile .ico-well svg { width: 30px; height: 30px; }
.tile .name { font-family: 'Russo One'; font-size: 14px; letter-spacing: .3px; }
.tile .play { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green); }
.tile .play svg { width: 14px; height: 14px; }
.tile.soon { opacity: .62; cursor: default; }
.tile.soon:hover { border-color: var(--line); box-shadow: none; }
.tile.soon .ico-well { color: var(--muted-solid); }
.tile.soon .play { color: var(--muted-solid); }
.tile .lock { position: absolute; top: 12px; right: 12px; color: var(--muted-solid); }
.tile .lock svg { width: 16px; height: 16px; }
.tile .glin { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(31,232,134,.06), transparent 60%); pointer-events: none; }

/* ---------- stake chips ---------- */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { padding: 16px 0; border-radius: 14px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); font-family: 'Russo One'; font-size: 17px;
  transition: border-color .2s, background .2s, transform .08s; }
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: scale(.96); }
.chip.active { background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink); border-color: transparent; box-shadow: var(--glow); }
.chip.custom { font-family: 'Chakra Petch'; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.chip.custom svg { width: 16px; height: 16px; }

.kv { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 4px 0; }
.kv + .kv { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.kv .v { font-family: 'Russo One'; }
.win { color: var(--good); } .lose { color: var(--bad); }

/* ---------- matchmaking ---------- */
.radar { width: 168px; height: 168px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(31,232,134,.10), transparent 70%); border: 1px solid var(--line); }
.radar::before, .radar::after { content: ""; position: absolute; border-radius: 50%; }
.radar::before { inset: 0; border: 2px solid transparent; border-top-color: var(--green); animation: spin 1.1s linear infinite; box-shadow: var(--glow); }
.radar::after { inset: 26px; border: 1px solid var(--line); }
.radar .core { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--green); }
.radar .core svg { width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toggles / settings ---------- */
.list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list .item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); }
.list .item .lic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); color: var(--green); flex: none; }
.list .item .lic svg { width: 20px; height: 20px; }
.list .item .tx { flex: 1; min-width: 0; }
.list .item .tx .t { font-weight: 700; font-size: 15px; }
.list .item .tx .s { font-size: 12px; color: var(--muted-solid); }

.switch { width: 50px; height: 30px; border-radius: 30px; background: var(--line-2); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch.on { background: linear-gradient(135deg, var(--green-bright), var(--green-2)); }
.switch.on::after { transform: translateX(20px); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; transition: border-color .2s; }
.radio.on { border-color: var(--green-bright); }
.radio.on::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(135deg, var(--green-bright), var(--green-2)); }

.seg { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: none; background: transparent; color: var(--muted-solid); font-family: 'Chakra Petch'; font-weight: 700; font-size: 13px; padding: 9px 0; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: color .2s; }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: var(--card-hi); color: var(--green); box-shadow: var(--glow-soft); }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(2,6,4,.66); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; padding: 14px; animation: fade .22s; }
:root[data-theme="light"] .overlay { background: rgba(20,40,30,.4); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { background: var(--elev); border: 1px solid var(--line); border-radius: 24px; padding: 20px; max-width: 460px; width: 100%; box-shadow: var(--shadow); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { font-family: 'Russo One'; font-weight: 400; margin: 0 0 6px; font-size: 19px; }
.sheet p { color: var(--muted-solid); font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -6px auto 14px; }

/* ---------- wallet ---------- */
.wallet-balance { text-align: center; padding: 6px 0 16px; }
.wallet-balance .cap { font-size: 11px; letter-spacing: 2px; color: var(--muted-solid); text-transform: uppercase; }
.wallet-balance .big { font-family: 'Russo One'; font-size: 40px; margin-top: 4px; }
.tabs { display: flex; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin: 14px 0; }
.tabs button { flex: 1; border: none; background: transparent; color: var(--muted-solid); font-family: 'Chakra Petch'; font-weight: 700; font-size: 13px; padding: 10px 0; border-radius: 10px; cursor: pointer; transition: color .2s; }
.tabs button.on { background: var(--card-hi); color: var(--green); }
.hist { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.hist .row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.hist .row .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--card-2); }
.hist .row .ic svg { width: 18px; height: 18px; }
.hist .row .ic.pos { color: var(--good); } .hist .row .ic.neg { color: var(--bad); }
.hist .row .mid { flex: 1; min-width: 0; }
.hist .row .mid .t { font-weight: 700; font-size: 14px; }
.hist .row .mid .s { font-size: 11px; color: var(--muted-solid); }
.hist .row .amt { font-family: 'Russo One'; font-size: 15px; }
.empty { text-align: center; color: var(--muted-solid); padding: 30px 10px; font-size: 14px; }

/* ---------- game host ---------- */
.gbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; }
.gbar .vs { font-family: 'Russo One'; font-size: 14px; }
.gbar .stake { font-size: 12px; color: var(--green); font-weight: 700; }
.gamehost { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scoreboard { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 0 10px; }
.scoreboard .side { text-align: center; }
.scoreboard .side .nm { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-solid); }
.scoreboard .side .sc { font-family: 'Russo One'; font-size: 34px; line-height: 1; }
.scoreboard .me .sc { color: var(--green); }
.scoreboard .dash { color: var(--muted-solid); font-family: 'Russo One'; }
.banner { text-align: center; font-family: 'Russo One'; font-size: 16px; min-height: 24px; color: var(--green); padding: 2px 0 10px; }

/* canvas games (basket hoops, fruit slice) */
.canvas-wrap { flex: 1; min-height: 240px; position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, #0e3322 0%, #08231685 55%, #051811 100%); touch-action: none; }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.canvas-wrap.court { background: radial-gradient(120% 90% at 50% 8%, #14422c 0%, #0a2a1b 55%, #061811 100%); }
.canvas-wrap.dojo { background: radial-gradient(130% 100% at 50% 0%, #0f3a26 0%, #082015 60%, #04120c 100%); }
.blur-veil { position: absolute; inset: 0; display: grid; place-items: center; backdrop-filter: blur(14px);
  background: rgba(4, 16, 11, .55); -webkit-backdrop-filter: blur(14px); }
.veil-txt { text-align: center; }
.veil-h { font-family: 'Russo One'; font-size: 19px; color: var(--green); }
.veil-s { color: var(--muted-solid); font-size: 13px; margin-top: 6px; }
.soon-note { text-align: center; color: var(--muted-solid); font-size: 13px; margin: 14px 4px 2px; line-height: 1.5; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; margin-right: 5px; vertical-align: middle; box-shadow: 0 0 6px #ff4d4d; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.astat { background: var(--card, #0c1410); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.astat .an { font-family: 'Russo One'; font-size: 16px; color: var(--green-bright); }
.astat .al { font-size: 11px; color: var(--muted-solid); margin-top: 3px; }

/* abuse cooldown veil — blocks all interaction */
#freezeveil { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 12, 8, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.freeze-card { max-width: 340px; text-align: center; background: var(--card, #0c1410); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px 22px; }
.freeze-ico { font-size: 40px; margin-bottom: 6px; }
.freeze-card h3 { font-family: 'Russo One'; color: var(--green); margin: 6px 0 10px; font-size: 20px; }
.freeze-card p { color: var(--muted-solid); font-size: 14px; line-height: 1.55; }
.freeze-clock { font-family: 'Russo One'; font-size: 38px; color: var(--text); margin: 16px 0 4px; letter-spacing: 1px; }
.freeze-sub { font-size: 12.5px !important; }

/* penalty */
.pitch { flex: 1; min-height: 230px; position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c2e1d 0%, #08231697 60%, #061a11 100%); }
.pitch .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 28px, transparent 28px 56px); }
.goal { position: absolute; top: 16px; left: 7%; right: 7%; height: 116px; border: 4px solid rgba(255,255,255,.9); border-bottom: none; border-radius: 8px 8px 0 0; }
.goal .net { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 15px 15px; }
.pk-keeper { position: absolute; top: 66px; left: 50%; width: 30px; height: 46px; border-radius: 10px;
  background: linear-gradient(180deg, var(--green-bright), var(--green-2)); transform: translateX(-50%);
  transition: left .35s cubic-bezier(.2,.8,.3,1), top .35s; box-shadow: var(--glow); }
.pk-ball { position: absolute; bottom: 16px; left: 50%; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #cdd6d0); transform: translateX(-50%);
  transition: left .42s cubic-bezier(.3,.7,.3,1), bottom .42s cubic-bezier(.3,.7,.3,1); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.targets { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.target { padding: 16px 0; border-radius: 14px; text-align: center; cursor: pointer; font-family: 'Russo One'; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); transition: background .15s, border-color .15s, transform .08s; }
.target:hover { border-color: var(--green); }
.target:active { transform: scale(.96); background: var(--card-hi); }
.targets.lock { opacity: .4; pointer-events: none; }

/* x & o */
.board { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; aspect-ratio: 1; width: 100%; max-width: 320px; margin: auto; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center;
  font-family: 'Russo One'; font-size: 48px; cursor: pointer; transition: background .15s, border-color .15s; }
.cell:hover { border-color: var(--line-2); }
.cell.x { color: var(--green); } .cell.o { color: var(--bad); }
/* bigger Connect-4 board (4 wide × 5 tall) */
.board.big { aspect-ratio: 4 / 5; max-width: 300px; gap: 7px; flex: 1; min-height: 0; }
.board.big .cell { border-radius: 12px; font-size: clamp(22px, 8vw, 38px); }

/* ---------- rules tab ---------- */
.rules-list { margin: 4px 0 6px; padding-left: 0; list-style: none; }
.rules-list li { position: relative; padding: 9px 0 9px 26px; font-size: 14px; line-height: 1.5; color: var(--text); border-bottom: 1px solid var(--line); }
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2)); }

/* ---------- result ---------- */
.verdict { font-family: 'Russo One'; font-size: 26px; letter-spacing: 2px; }
.matched-badge { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink);
  box-shadow: 0 0 30px rgba(33,192,107,.6); animation: pop .4s ease; }
.matched-badge svg { width: 42px; height: 42px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.result-amt { font-family: 'Russo One'; font-size: 46px; }
.breakdown { width: 100%; }
.breakdown .kv { font-size: 14px; }

/* ---------- splash ---------- */
.splash { align-items: center; justify-content: center; gap: 18px; text-align: center; }
.logo-splash { font-size: 66px; animation: glowpulse 1.7s ease-in-out infinite; }
@keyframes glowpulse {
  0%, 100% { text-shadow: 0 0 22px rgba(31,232,134,.25); transform: scale(1); }
  50% { text-shadow: 0 0 50px rgba(31,232,134,.6); transform: scale(1.045); }
}
.loadbar { width: 180px; height: 6px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green-bright), var(--green-2)); animation: load 1.9s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes load { to { width: 100%; } }
.splash .dots::after { content: '…'; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '·'; } 50% { content: '··'; } 75% { content: '···'; } }

/* wallet brand chips on login */
.wbrand { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; font-family: 'Russo One'; font-size: 11px; }
.wbrand.mm { background: #F6851B; color: #fff; }
.wbrand.ph { background: #AB9FF2; color: #2a1d5e; }

/* ---------- in-game clock + decision timer ---------- */
.gclock { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; font-family: 'Russo One'; }
.gclock .ph { font-size: 12px; letter-spacing: 1px; color: var(--green); }
.gclock .ck { font-size: 18px; }
.timerwrap { height: 7px; background: var(--card-2); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin: 0 0 10px; }
.timerbar { height: 100%; width: 0%; border-radius: 7px; background: linear-gradient(90deg, var(--green-bright), var(--green-2)); }

/* ---------- deposit / withdraw ---------- */
.choice { display: flex; align-items: center; gap: 13px; padding: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .08s; }
.choice + .choice { margin-top: 10px; }
.choice:hover { border-color: var(--green); box-shadow: var(--glow-soft); }
.choice:active { transform: scale(.98); }
.choice .tk { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: 'Russo One'; font-size: 12px; flex: none; }
.choice .tk.sol { background: linear-gradient(135deg, #14F195, #9945FF); color: #06140d; }
.choice .tk.base { background: #0052FF; color: #fff; }
.choice .tk.bnb { background: #F0B90B; color: #1a1a1a; }
.choice .mid { flex: 1; min-width: 0; }
.choice .mid .t { font-weight: 700; font-size: 15px; }
.choice .mid .s { font-size: 12px; color: var(--muted-solid); }
.choice .chev { color: var(--muted-solid); }

.addr { display: flex; align-items: center; gap: 10px; background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.addr code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; word-break: break-all; flex: 1; color: var(--text); }
.copy-btn { flex: none; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--green); font-family: 'Chakra Petch'; font-weight: 700; cursor: pointer; }
.copy-btn:active { transform: scale(.96); }
.free-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-weight: 700; font-size: 13px; margin-top: 6px; }
.warn-note { font-size: 12px; color: var(--muted-solid); text-align: center; line-height: 1.5; margin-top: 10px; }

/* ---------- $sLIKA rewards + check-in ---------- */
.reward-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(31,232,134,.12), rgba(0,196,106,.06)); border: 1px solid var(--line-2); }
.reward-card .rc-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink); box-shadow: var(--glow); }
.reward-card .rc-ic svg { width: 24px; height: 24px; }
.points-big { font-family: 'Russo One'; font-size: 26px; color: var(--green); line-height: 1.1; }
.rc-streak { font-family: 'Russo One'; font-size: 18px; text-align: right; }

.checkin-reward { text-align: center; padding: 10px 0 4px; }
.checkin-reward .ci-coin { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink); box-shadow: var(--glow); }
.checkin-reward .ci-coin svg { width: 34px; height: 34px; }
.checkin-reward .ci-coin.spin { animation: spin360 .7s cubic-bezier(.2,.8,.2,1); }
@keyframes spin360 { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }
.checkin-reward .plus { font-family: 'Russo One'; font-size: 36px; color: var(--green); }
.checkin-reward .plus.pop { animation: popbig .5s cubic-bezier(.2,.8,.2,1); }
@keyframes popbig { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

.mini-week { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; margin-top: 14px; }
.mw-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mw-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--green-ink); }
.mw-dot svg { width: 16px; height: 16px; }
.mw-dot.in { background: linear-gradient(135deg, var(--green-bright), var(--green-2)); border-color: transparent; }
.mw-dot.today { border-color: var(--green); box-shadow: var(--glow-soft); }
.mw-dot.missed { border-color: rgba(255,92,122,.3); }
.mw-lbl { font-size: 10px; color: var(--muted-solid); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal-dows { margin-bottom: 6px; }
.cal-dow { text-align: center; font-size: 10px; color: var(--muted-solid); font-weight: 700; }
.cal-cell { aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; font-family: 'Chakra Petch'; font-weight: 700;
  font-size: 13px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted-solid); animation: popbig .3s backwards; }
.cal-cell svg { width: 16px; height: 16px; }
.cal-cell.in { background: linear-gradient(135deg, var(--green-bright), var(--green-2)); color: var(--green-ink); border-color: transparent; }
.cal-cell.today { border-color: var(--green); color: var(--green); box-shadow: var(--glow-soft); }
.cal-cell.missed { color: var(--bad); border-color: rgba(255,92,122,.22); }
.cal-cell.future { opacity: .45; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--card-hi); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); font-weight: 700; font-size: 14px; max-width: 88%; text-align: center; animation: in .22s; }
.toast.bad { border-color: var(--bad); color: var(--bad); }
.toast.good { border-color: var(--green); }

.fineprint { font-size: 11px; color: var(--muted-solid); text-align: center; line-height: 1.7; padding: 12px 0 4px; }
.link { color: var(--green); cursor: pointer; font-weight: 700; }

::-webkit-scrollbar { width: 0; height: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
