/* ==========================================================================
   Oasis Chess — styles (Bootstrap 5 base, dark felt + gold theme)
   ========================================================================== */
:root {
  --gold: #d4a537;
  --gold-2: #f1cf72;
  --gold-dark: #9c7420;
  --felt: #0b1f1c;
  --felt-2: #12302b;
  --ink: #eef3f1;
  --muted: rgba(238, 243, 241, .6);
  --glass: rgba(255, 255, 255, .055);
  --glass-border: rgba(255, 255, 255, .1);
  --radius: 18px;
}

html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: transparent;
}
html {
  min-height: 100%;
  background-color: #08171a;
  background-image:
    radial-gradient(1100px 600px at 50% -15%, rgba(54, 140, 120, .35), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(212, 165, 55, .08), transparent 70%),
    linear-gradient(180deg, #0e2724 0%, #08171a 100%);
}
.text-loss { color: #ff8f7e !important; }
a { color: var(--gold-2); }
.text-gold { color: var(--gold-2) !important; }
.link-gold { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.link-gold:hover { color: #fff; }
.text-white-50 { color: var(--muted) !important; }
.display-title { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .02em; }

/* ---------- glass surfaces ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.glass-modal {
  background: linear-gradient(180deg, #17352f, #0d211e);
  border: 1px solid rgba(212, 165, 55, .35);
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.glass-alert { background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-border); color: var(--ink); }

/* ---------- buttons & forms ---------- */
.btn-gold {
  --bs-btn-color: #2a1e05;
  --bs-btn-hover-color: #2a1e05;
  --bs-btn-active-color: #2a1e05;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  border: 1px solid #f6dc8c;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(212, 165, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-outline-gold {
  --bs-btn-color: var(--gold-2);
  --bs-btn-border-color: rgba(212, 165, 55, .6);
  --bs-btn-hover-bg: rgba(212, 165, 55, .15);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-bg: var(--gold);
  --bs-btn-active-color: #2a1e05;
  --bs-btn-active-border-color: var(--gold);
  font-weight: 600;
}
.form-control, .form-select {
  background-color: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  background-color: rgba(0, 0, 0, .35);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(212, 165, 55, .2);
}
.form-control:disabled { background-color: rgba(255, 255, 255, .06); color: var(--muted); }
.form-control::placeholder { color: rgba(255, 255, 255, .35); }
.form-floating > label { color: rgba(255, 255, 255, .55); }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--gold-2); }
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after { background: transparent; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 5; }

/* ---------- top bar ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(53, 31, 12, .95), rgba(37, 22, 9, .95));
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.brand { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold-2) !important; display: flex; align-items: center; gap: .5rem; }
.brand img { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); object-fit: contain; }
.topbar .nav-link { color: rgba(255, 255, 255, .75); font-weight: 500; border-radius: 10px; }
.topbar .nav-link.active, .topbar .nav-link:hover { color: var(--gold-2); background: rgba(255, 255, 255, .06); }
.score-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(212, 165, 55, .14); border: 1px solid rgba(212, 165, 55, .45);
  color: var(--gold-2); font-weight: 700;
}
.score-pill.big { font-size: 1.05rem; padding: .5rem 1rem; }
.site-footer { text-align: center; padding: 2rem 0 1.5rem; }
.footer-note { color: rgba(255, 255, 255, .35); }
.footer-note a { color: rgba(255, 255, 255, .5); }
.social-links { display: flex; justify-content: center; gap: .6rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); background: rgba(255, 255, 255, .05); border: 1px solid rgba(212, 165, 55, .35); text-decoration: none; transition: .15s; }
.social-links a:hover { background: var(--gold); color: #2a1e05; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; }
.footer-links a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.page-auth .site-footer { grid-column: 1 / -1; }
.announce { border-color: rgba(212, 165, 55, .5) !important; }
/* content pages */
.page-content { max-width: 820px; margin: 0 auto; padding: 2rem; }
.page-content h1 { color: var(--gold-2); }
.page-content h2, .page-content h3 { margin-top: 1.6rem; font-size: 1.3rem; }
.page-content p, .page-content li { color: rgba(238, 243, 241, .85); line-height: 1.75; }
.page-content a { color: var(--gold-2); }
.page-content img, .page-content iframe { max-width: 100%; border-radius: 10px; }

.avatar {
  --c: #c9a227;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000));
  color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  border: 2px solid var(--gold-2);
  vertical-align: middle;
}
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; border-width: 1.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2rem; border-width: 3px; }

/* ---------- auth ---------- */
.page-auth .auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 1.25rem; gap: 2rem; }
@media (min-width: 992px) { .page-auth .auth-wrap { grid-template-columns: 1.1fr .9fr; padding: 2rem 4rem; } }
.auth-card { width: 100%; max-width: 440px; padding: 2rem; }
.auth-hero { flex-direction: column; align-items: flex-start; max-width: 520px; }
.auth-hero .display-title { font-size: 3.2rem; color: var(--gold-2); }
.hero-pieces { position: relative; height: 280px; width: 100%; margin-bottom: 1rem; }
.hero-pieces .hp { position: absolute; bottom: 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.hp1 { left: 0; height: 200px; transform: rotate(-6deg); }
.hp2 { left: 110px; height: 280px; z-index: 2; }
.hp3 { left: 220px; height: 240px; transform: rotate(5deg); }

/* ---------- lobby ---------- */
.lobby-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.lobby-hero .display-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.stat-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { min-width: 78px; padding: .55rem .8rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); text-align: center; }
.chip-gold { border-color: rgba(212, 165, 55, .5); }
.chip-gold .v { color: var(--gold-2); }
.chip .v { display: block; font-size: 1.35rem; font-weight: 800; }
.chip .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.resume-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; border-color: rgba(212, 165, 55, .5); }
.resume-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(212, 165, 55, .18); color: var(--gold-2); font-size: 1.4rem; }
.mode-card { padding: 1.5rem; display: block; }
.mode-head { display: flex; align-items: center; gap: 1rem; }
.mode-art { width: 64px; height: 128px; object-fit: contain; margin: -40px 0 -10px -6px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
@media (max-width: 575px) { .level-grid { grid-template-columns: repeat(3, 1fr); } }
.level-opt {
  cursor: pointer; text-align: center; padding: .7rem .3rem; border-radius: 14px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: .15rem; transition: .15s;
}
.level-opt:hover { border-color: rgba(212, 165, 55, .6); }
.btn-check:checked + .level-opt { background: linear-gradient(180deg, rgba(212, 165, 55, .28), rgba(212, 165, 55, .1)); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.lvl-n { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lvl-name { font-weight: 700; }
.lvl-dots { font-size: .42rem; color: var(--gold-2); letter-spacing: 2px; }
.lvl-pts { font-size: .75rem; color: var(--gold-2); font-weight: 600; }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.color-opt {
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600;
  height: 58px; overflow: hidden;
}
.color-opt img { height: 64px; margin-top: 18px; }
.btn-check:checked + .color-opt { border-color: var(--gold); background: rgba(212, 165, 55, .16); }

/* ---------- play layout ---------- */
.play-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) { .play-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.board-col { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1rem 1.1rem; }
.status-text { font-size: 1.15rem; font-weight: 700; }
.win-points { text-align: right; line-height: 1.1; }
.win-points span { display: block; font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.win-points b { font-size: 1.4rem; color: var(--gold-2); }

.player-bar {
  width: 100%; max-width: calc(var(--bar-w, 680px));
  display: flex; align-items: center; gap: .7rem;
  padding: .45rem .7rem; border-radius: 14px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .2s, box-shadow .2s;
}
.player-bar.active { border-color: rgba(212, 165, 55, .7); box-shadow: 0 0 0 1px rgba(212, 165, 55, .35), 0 0 18px rgba(212, 165, 55, .15); }
.pb-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; border: 2px solid var(--gold-2); flex: none; font-size: .95rem; }
.pb-info { min-width: 0; }
.pb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sub { font-size: .78rem; color: var(--muted); }
.pb-sub .to-move { color: var(--gold-2); font-weight: 600; }
.pb-captured { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.pb-captured img { width: 20px; height: 20px; margin-left: -6px; }
.pb-captured .adv { margin-left: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.thinking i { animation: blink 1.2s infinite; font-style: normal; }
.thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }

/* ---------- board ---------- */
.board-wrap { width: 100%; display: flex; justify-content: center; }
.board-frame {
  --size: 560px; --sq: 70px;
  --light: #ecd3a8; --dark: #a8703f; --frame: #5b3a1e; --frame-2: #3e2611; --coord-l: #a8703f; --coord-d: #f3e2c4;
  position: relative;
  padding: calc(var(--sq) * .16);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--frame), var(--frame-2));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 0 2px rgba(212, 165, 55, .55);
  transition: margin-top .25s;
}
.board-frame.style-3d { margin-top: calc(var(--sq) * .8); }
.theme-emerald-tournament { --light: #eeeed2; --dark: #6f9a52; --frame: #2f4a24; --frame-2: #1d3117; --coord-l: #6f9a52; --coord-d: #eeeed2; }
.theme-midnight-slate { --light: #c9d3de; --dark: #4f6a86; --frame: #1c2533; --frame-2: #111823; --coord-l: #4f6a86; --coord-d: #dce4ec; }
.board { position: relative; width: var(--size); height: var(--size); touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .18s; }
.board-frame.flipping .board { opacity: 0; }
.sq { position: absolute; width: 12.5%; height: 12.5%; }
.sq.light { background: linear-gradient(135deg, var(--light), color-mix(in srgb, var(--light) 92%, #000)); }
.sq.dark  { background: linear-gradient(135deg, var(--dark), color-mix(in srgb, var(--dark) 88%, #000)); }
.theme-classic-walnut .sq.dark {
  background:
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, var(--dark), color-mix(in srgb, var(--dark) 85%, #000));
}
.theme-classic-walnut .sq.light {
  background:
    repeating-linear-gradient(100deg, rgba(120, 70, 20, .05) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, var(--light), color-mix(in srgb, var(--light) 94%, #000));
}
.coord { position: absolute; font-size: calc(var(--sq) * .16); font-weight: 700; line-height: 1; pointer-events: none; z-index: 2; }
.coord.rank { top: 4%; left: 5%; }
.coord.file { bottom: 4%; right: 6%; }
.sq.light .coord { color: var(--coord-l); }
.sq.dark .coord { color: var(--coord-d); }

.sq::after, .sq::before { content: ''; position: absolute; pointer-events: none; }
.sq.last::after { inset: 0; background: rgba(246, 214, 84, .42); }
.sq.sel::after { inset: 0; background: rgba(246, 214, 84, .6); }
.sq.target::before { left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 50%; background: rgba(0, 0, 0, .24); z-index: 3; }
.sq.capture-target::before { inset: 4%; border-radius: 50%; border: calc(var(--sq) * .07) solid rgba(0, 0, 0, .24); z-index: 3; }
.sq.drop::after { inset: 0; box-shadow: inset 0 0 0 calc(var(--sq) * .06) rgba(255, 255, 255, .75); }
.sq.check::after { inset: 0; background: radial-gradient(circle, rgba(255, 40, 40, .95) 0%, rgba(230, 20, 20, .6) 35%, rgba(200, 0, 0, 0) 75%); }
.sq.hint::after { inset: 0; box-shadow: inset 0 0 0 calc(var(--sq) * .07) #3fb6ff; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .45 } to { opacity: 1 } }

.piece-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.piece { position: absolute; width: 12.5%; height: 12.5%; transition: left .22s ease, top .22s ease, opacity .2s, transform .2s; will-change: left, top; }
.piece img { position: absolute; pointer-events: none; -webkit-user-drag: none; }
.style-2d .piece img { left: 2%; top: 2%; width: 96%; height: 96%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.style-3d .piece img { left: 5%; width: 90%; height: 180%; top: -82%; }
.piece.dragging { z-index: 200 !important; transition: none; }
.piece.dragging img { filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .45)); }
.piece.no-anim { transition: none !important; }
.piece.captured { opacity: 0; transform: scale(.6); }

/* ---------- controls ---------- */
.controls { display: flex; justify-content: center; gap: clamp(.5rem, 3vw, 1.4rem); margin-top: .4rem; }
.ctl { background: none; border: 0; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 0; }
.ctl-ic {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.45rem; color: #fff3d0;
  background: radial-gradient(circle at 50% 35%, #a5622b, #6e3a14 70%);
  border: 3px solid var(--gold);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 6px rgba(0, 0, 0, .35);
  transition: transform .12s, filter .12s;
}
.ctl:hover:not(:disabled) .ctl-ic { transform: translateY(-2px); filter: brightness(1.1); }
.ctl:active:not(:disabled) .ctl-ic { transform: translateY(1px) scale(.96); }
.ctl:disabled { opacity: .45; }
.badge-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 10px; background: #d62d2d; color: #fff; font-size: .72rem; display: grid; place-items: center; border: 2px solid #1a0c04; }
.badge-count.wallet { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1e05; }
.ctl.empty .ctl-ic { filter: grayscale(.6) brightness(.8); }
.no-hints-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: var(--gold-2); background: rgba(212, 165, 55, .15); border: 1px solid rgba(212, 165, 55, .5); }
.hint-ways { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.hint-ways li { padding: .6rem .8rem; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.hint-ways li i { color: var(--gold-2); margin-right: .35rem; }
.over-points .earned { display: block; margin-top: .5rem; color: var(--gold-2); font-weight: 600; font-size: .9rem; }
.parent-link { color: rgba(255, 255, 255, .6) !important; font-size: .85rem; text-decoration: none; border-right: 1px solid rgba(255, 255, 255, .15); padding-right: .8rem; margin-right: .2rem; }
.parent-link:hover { color: var(--gold-2) !important; }
.style-label { font-size: .95rem; font-weight: 800; }

/* ---------- the only ad ---------- */
.ad-slot { width: 100%; display: flex; justify-content: center; min-height: 50px; margin-top: .6rem; }
.adsbygoogle.ad-320x50 { display: inline-block; width: 320px; height: 50px; }
.adsbygoogle.ad-468x60 { display: inline-block; width: 468px; height: 60px; max-width: 100%; }
.adsbygoogle.ad-728x90 { display: inline-block; width: 728px; height: 90px; }
@media (max-width: 767px) { .adsbygoogle.ad-728x90, .adsbygoogle.ad-468x60 { width: 320px; height: 50px; } }
.ad-placeholder span { font-size: .65rem; opacity: .7; }
.ad-placeholder { width: 320px; height: 56px; text-align: center; line-height: 1.3; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 8px; display: grid; place-items: center; color: rgba(255, 255, 255, .35); font-size: .75rem; }

/* ---------- side panel ---------- */
.move-list { list-style: none; counter-reset: mv; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; font-variant-numeric: tabular-nums; }
.move-list li { counter-increment: mv; display: grid; grid-template-columns: 34px 1fr 1fr; padding: .2rem .3rem; border-radius: 6px; font-weight: 600; font-size: .92rem; }
.move-list li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.move-list li::before { content: counter(mv) '.'; color: var(--muted); font-weight: 500; }
.move-list:empty::after { content: 'No moves yet'; color: var(--muted); font-size: .85rem; }
.theme-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.theme-swatches button, .theme-swatches label {
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; color: var(--ink);
  padding: .45rem; font-size: .78rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer;
}
.theme-swatches span { width: 100%; aspect-ratio: 2 / 1; border-radius: 6px; background: conic-gradient(var(--d) 0 25%, var(--l) 0 50%, var(--d) 0 75%, var(--l) 0) 0 0 / 50% 100%; }
.theme-swatches button.active, .theme-swatches .btn-check:checked + label { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.theme-swatches.big label { font-size: .85rem; }

/* ---------- modals ---------- */
.promo-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.promo-btn { background: rgba(255, 255, 255, .92); border: 2px solid transparent; border-radius: 14px; padding: .5rem; display: flex; flex-direction: column; align-items: center; font-weight: 700; color: #333; font-size: .8rem; }
.promo-btn img { width: 64px; height: 64px; }
.promo-btn:hover { border-color: var(--gold); }
.over-art { display: flex; justify-content: center; gap: .5rem; margin-top: -90px; }
.over-art img { height: 170px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); }
.over-card[data-kind="win"] .display-title { color: var(--gold-2); }
.over-card[data-kind="loss"] .display-title { color: #ff9b8a; }
.over-points .pts { display: block; font-size: 2.6rem; font-weight: 800; color: var(--gold-2); line-height: 1; }
.over-points .tot { color: var(--muted); font-size: .9rem; }
#overModal .modal-dialog { margin-top: 110px; }

/* ---------- toasts ---------- */
.toast-zone { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.oc-toast { background: rgba(10, 25, 22, .95); border: 1px solid rgba(212, 165, 55, .5); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; transform: translateY(10px); transition: .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.oc-toast.show { opacity: 1; transform: none; }
.oc-toast.error { border-color: #e05a4a; }

/* ---------- profile & leaderboard ---------- */
.profile-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.profile-score .v { display: block; font-size: 1.6rem; font-weight: 800; }
.profile-score .l { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.badge-best { display: inline-block; padding: .4rem .8rem; border-radius: 999px; background: rgba(212, 165, 55, .15); border: 1px solid rgba(212, 165, 55, .5); color: var(--gold-2); font-weight: 600; font-size: .85rem; }
.table-dark-glass { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: rgba(255, 255, 255, .08); }
.table-dark-glass thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.table-dark-glass tr.me td { background: rgba(212, 165, 55, .12); }
.lvl-tag { display: inline-block; min-width: 28px; text-align: center; padding: .1rem .35rem; border-radius: 6px; background: rgba(212, 165, 55, .18); color: var(--gold-2); font-weight: 700; font-size: .75rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; align-items: end; max-width: 560px; margin: 0 auto; }
.podium-spot { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.podium-block { width: 100%; margin-top: .5rem; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; color: #2a1e05; background: linear-gradient(180deg, var(--gold-2), var(--gold-dark)); }
.p1 .podium-block { height: 110px; }
.p2 .podium-block { height: 80px; background: linear-gradient(180deg, #e6e9ee, #8d96a3); }
.p3 .podium-block { height: 60px; background: linear-gradient(180deg, #e7b089, #8a5530); }

/* ---------- mobile play page ---------- */
@media (max-width: 991px) {
  .page-play main { padding-top: .5rem !important; }
  .page-play .site-footer { display: none; }
  .page-play .side-col { order: 2; }
}
@media (max-width: 575px) {
  .ctl-ic { width: 48px; height: 48px; font-size: 1.25rem; }
  .ctl { font-size: .68rem; }
  .player-bar { padding: .35rem .55rem; }
  .pb-avatar { width: 34px; height: 34px; }
}
