/* ================================================================
   REVERSI: STONE & SHADOW  v2.0
   Premium Board Rendering · 5 Themes + Custom · Browser Compat
   Custom Grid System · Proper Depth & Lighting
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

/* ══════════════════════════════════════════════════════════════
   CSS CUSTOM GRID SYSTEM
   Usage: .rs-grid, .rs-col-*, .rs-gap-*, .rs-align-*
══════════════════════════════════════════════════════════════ */
.rs-grid          { display: grid; width: 100%; }
.rs-grid-2        { grid-template-columns: repeat(2, 1fr); }
.rs-grid-3        { grid-template-columns: repeat(3, 1fr); }
.rs-grid-4        { grid-template-columns: repeat(4, 1fr); }
.rs-grid-auto     { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.rs-col-1         { grid-column: span 1; }
.rs-col-2         { grid-column: span 2; }
.rs-col-3         { grid-column: span 3; }
.rs-col-4         { grid-column: span 4; }
.rs-gap-xs        { gap: 4px; }
.rs-gap-sm        { gap: 6px; }
.rs-gap-md        { gap: 8px; }
.rs-gap-lg        { gap: 14px; }
.rs-align-center  { align-items: center; }
.rs-align-start   { align-items: start; }
.rs-justify-center{ justify-items: center; }

/* ══════════════════════════════════════════════════════════════
   BASE THEME TOKENS  (Obsidian default)
══════════════════════════════════════════════════════════════ */
:root {
  --bg:             #0d0f0e;
  --surface:        #141916;
  --panel:          #111410;
  --brass:          #c9a84c;
  --brass-light:    #e8c870;
  --brass-dark:     #8a6a20;
  --text-primary:   #e2ddd0;
  --text-muted:     #7a8070;
  --border:         rgba(201,168,76,.2);
  --shadow-deep:    0 20px 60px rgba(0,0,0,.8);
  --radius:         4px;

  /* Board premium vars */
  --board-felt1:    #1a2e20;
  --board-felt2:    #142018;
  --board-felt3:    #0d1810;
  --board-line:     rgba(255,255,255,.06);
  --board-grid-hi:  rgba(255,255,255,.04);
  --board-dot:      rgba(140,200,100,.5);
  --board-frame:    rgba(201,168,76,.3);
  --board-vignette: rgba(0,0,0,.55);
  --hint-fill:      rgba(160,220,140,.18);
  --hint-stroke:    rgba(160,220,140,.55);
  --hover-cell:     rgba(160,220,140,.1);

  /* Piece premium vars */
  --piece-b0: #3e3e50;
  --piece-b1: #1c1c26;
  --piece-b2: #060608;
  --piece-w0: #ffffff;
  --piece-w1: #f2eedd;
  --piece-w2: #ccc8b4;

  --score-active-glow: rgba(201,168,76,.2);
}

/* ── Theme: Crimson Palace ─────────────────────────────────── */
body[data-theme="crimson"] {
  --bg:             #0e0a0a;
  --surface:        #1a1010;
  --panel:          #110808;
  --brass:          #e05a5a;
  --brass-light:    #ff8888;
  --brass-dark:     #8a2020;
  --text-primary:   #f0d8d8;
  --text-muted:     #806060;
  --border:         rgba(220,80,80,.2);

  --board-felt1:    #2a1414;
  --board-felt2:    #1e0e0e;
  --board-felt3:    #140808;
  --board-line:     rgba(255,180,180,.06);
  --board-grid-hi:  rgba(255,100,100,.04);
  --board-dot:      rgba(220,100,100,.5);
  --board-frame:    rgba(220,80,80,.3);
  --board-vignette: rgba(20,0,0,.6);
  --hint-fill:      rgba(240,140,140,.18);
  --hint-stroke:    rgba(240,140,140,.55);
  --hover-cell:     rgba(240,140,140,.1);

  --piece-b0: #2a1010;
  --piece-b1: #180808;
  --piece-b2: #060202;
  --piece-w0: #fff0f0;
  --piece-w1: #f0d0d0;
  --piece-w2: #d8a0a0;
  --score-active-glow: rgba(220,80,80,.2);
}

/* ── Theme: Arctic Frost ───────────────────────────────────── */
body[data-theme="arctic"] {
  --bg:             #080c12;
  --surface:        #0d1520;
  --panel:          #080e18;
  --brass:          #5ab4e8;
  --brass-light:    #88d0ff;
  --brass-dark:     #2a6090;
  --text-primary:   #c8ddf0;
  --text-muted:     #4a6080;
  --border:         rgba(80,160,220,.2);

  --board-felt1:    #0e1e32;
  --board-felt2:    #091626;
  --board-felt3:    #050e18;
  --board-line:     rgba(120,200,255,.07);
  --board-grid-hi:  rgba(80,160,255,.04);
  --board-dot:      rgba(80,180,240,.6);
  --board-frame:    rgba(80,160,220,.3);
  --board-vignette: rgba(0,5,20,.6);
  --hint-fill:      rgba(120,200,255,.18);
  --hint-stroke:    rgba(120,200,255,.55);
  --hover-cell:     rgba(120,200,255,.1);

  --piece-b0: #1a3050;
  --piece-b1: #0e1e38;
  --piece-b2: #04080e;
  --piece-w0: #e8f4ff;
  --piece-w1: #c0d8f0;
  --piece-w2: #90b4d4;
  --score-active-glow: rgba(80,160,220,.2);
}

/* ── Theme: Amber Dusk ─────────────────────────────────────── */
body[data-theme="amber"] {
  --bg:             #0f0d08;
  --surface:        #1a1508;
  --panel:          #100c05;
  --brass:          #e8a830;
  --brass-light:    #ffc840;
  --brass-dark:     #906020;
  --text-primary:   #f0e0c0;
  --text-muted:     #806040;
  --border:         rgba(220,160,40,.2);

  --board-felt1:    #2a1c06;
  --board-felt2:    #1e1404;
  --board-felt3:    #120c02;
  --board-line:     rgba(255,200,80,.06);
  --board-grid-hi:  rgba(220,160,40,.04);
  --board-dot:      rgba(220,160,60,.55);
  --board-frame:    rgba(220,160,40,.3);
  --board-vignette: rgba(20,10,0,.6);
  --hint-fill:      rgba(240,180,80,.18);
  --hint-stroke:    rgba(240,180,80,.55);
  --hover-cell:     rgba(240,180,80,.1);

  --piece-b0: #1e1000;
  --piece-b1: #100800;
  --piece-b2: #060400;
  --piece-w0: #fff8e0;
  --piece-w1: #f0dea0;
  --piece-w2: #d4b860;
  --score-active-glow: rgba(220,160,40,.2);
}

/* ── Theme: Violet Reign ───────────────────────────────────── */
body[data-theme="violet"] {
  --bg:             #0a080f;
  --surface:        #141020;
  --panel:          #0d0a18;
  --brass:          #a878e8;
  --brass-light:    #c8a0ff;
  --brass-dark:     #603890;
  --text-primary:   #d8c8f0;
  --text-muted:     #605878;
  --border:         rgba(160,110,220,.2);

  --board-felt1:    #1a1030;
  --board-felt2:    #120a24;
  --board-felt3:    #0a0618;
  --board-line:     rgba(200,150,255,.07);
  --board-grid-hi:  rgba(160,100,255,.04);
  --board-dot:      rgba(180,120,255,.55);
  --board-frame:    rgba(160,110,220,.3);
  --board-vignette: rgba(10,0,20,.6);
  --hint-fill:      rgba(200,150,255,.18);
  --hint-stroke:    rgba(200,150,255,.55);
  --hover-cell:     rgba(200,150,255,.1);

  --piece-b0: #281040;
  --piece-b1: #180828;
  --piece-b2: #060410;
  --piece-w0: #f0e8ff;
  --piece-w1: #d8c0f0;
  --piece-w2: #b090d4;
  --score-active-glow: rgba(160,110,220,.2);
}

/* ── Custom Theme (user-defined via JS) ────────────────────── */
body[data-theme="custom"] {
  /* All tokens set dynamically by JS */
}

/* ── Theme: Neon Cyberpunk ─────────────────────────────────── */
body[data-theme="neon"] {
  --bg:             #060810;
  --surface:        #0a0d1a;
  --panel:          #060812;
  --brass:          #00ffe0;
  --brass-light:    #80fff0;
  --brass-dark:     #008870;
  --text-primary:   #c0f0e8;
  --text-muted:     #2a6060;
  --border:         rgba(0,255,200,.18);

  --board-felt1:    #080c18;
  --board-felt2:    #050810;
  --board-felt3:    #030408;
  --board-line:     rgba(0,255,200,.12);
  --board-grid-hi:  rgba(0,200,255,.06);
  --board-dot:      rgba(0,255,180,.8);
  --board-frame:    rgba(0,255,200,.4);
  --board-vignette: rgba(0,0,20,.7);
  --hint-fill:      rgba(0,255,200,.15);
  --hint-stroke:    rgba(0,255,200,.7);
  --hover-cell:     rgba(0,255,200,.08);

  --piece-b0: #1a2a3a;
  --piece-b1: #0a1020;
  --piece-b2: #040608;
  --piece-w0: #e0fffa;
  --piece-w1: #00ffe0;
  --piece-w2: #008878;
  --score-active-glow: rgba(0,255,200,.25);
}

/* ── Theme: Sakura ─────────────────────────────────────────── */
body[data-theme="sakura"] {
  --bg:             #1a0e10;
  --surface:        #251418;
  --panel:          #180c10;
  --brass:          #f4a0c0;
  --brass-light:    #ffd0e0;
  --brass-dark:     #a04060;
  --text-primary:   #f8e0e8;
  --text-muted:     #806070;
  --border:         rgba(240,140,170,.2);

  --board-felt1:    #2e1a20;
  --board-felt2:    #201218;
  --board-felt3:    #140a0e;
  --board-line:     rgba(255,180,200,.07);
  --board-grid-hi:  rgba(240,140,170,.04);
  --board-dot:      rgba(240,160,180,.65);
  --board-frame:    rgba(240,140,170,.35);
  --board-vignette: rgba(20,5,10,.65);
  --hint-fill:      rgba(255,180,200,.18);
  --hint-stroke:    rgba(255,180,200,.6);
  --hover-cell:     rgba(255,180,200,.1);

  --piece-b0: #4a1a28;
  --piece-b1: #2e0e18;
  --piece-b2: #0e0408;
  --piece-w0: #fff0f4;
  --piece-w1: #f8d0dc;
  --piece-w2: #e0a0b8;
  --score-active-glow: rgba(240,140,170,.22);
}

/* ── Theme: Gold Marble ────────────────────────────────────── */
body[data-theme="marble"] {
  --bg:             #f5f0e8;
  --surface:        #ede4d4;
  --panel:          #f0e8d8;
  --brass:          #8a6820;
  --brass-light:    #c09840;
  --brass-dark:     #5a4010;
  --text-primary:   #2a1e0a;
  --text-muted:     #8a7850;
  --border:         rgba(138,104,32,.22);

  --board-felt1:    #e8dcc8;
  --board-felt2:    #ddd0b8;
  --board-felt3:    #cfc0a0;
  --board-line:     rgba(90,60,10,.1);
  --board-grid-hi:  rgba(90,60,10,.04);
  --board-dot:      rgba(120,80,20,.5);
  --board-frame:    rgba(120,80,20,.4);
  --board-vignette: rgba(80,50,10,.25);
  --hint-fill:      rgba(180,140,40,.2);
  --hint-stroke:    rgba(150,100,20,.6);
  --hover-cell:     rgba(180,140,40,.12);

  --piece-b0: #2a2030;
  --piece-b1: #1a1020;
  --piece-b2: #080408;
  --piece-w0: #fafaf8;
  --piece-w1: #ede8e0;
  --piece-w2: #c8c0b0;
  --score-active-glow: rgba(138,104,32,.2);
}

/* ══════════════════════════════════════════════════════════════
   RESET + BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Crimson Pro', Georgia, serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s, color .4s;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,74,50,.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,168,76,.06) 0%, transparent 60%);
  pointer-events: none;
  transition: background .4s;
}

/* ══════════════════════════════════════════════════════════════
   BROWSER COMPATIBILITY SCREEN
══════════════════════════════════════════════════════════════ */
#compat-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  padding: 40px 24px;
}

#compat-screen.hidden { display: none; }

.compat-inner {
  max-width: 420px;
  width: 100%;
}

.compat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-size: 1.6rem;
  box-shadow: 0 0 30px rgba(201,168,76,.2);
}

.compat-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--brass);
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(201,168,76,.4);
}

.compat-subtitle {
  font-size: .85rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: .15em;
  margin-bottom: 24px;
}

.compat-message {
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.compat-browsers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.compat-browser-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.compat-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.compat-divider-line { flex: 1; height: 1px; background: var(--border); }
.compat-divider-gem  { width: 5px; height: 5px; background: var(--brass-dark); transform: rotate(45deg); }

.compat-detail {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.compat-detail-title {
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════════════════════════════ */
#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 520px;
  padding: 12px 10px;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
#header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.game-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: .25em;
  color: var(--brass);
  text-shadow: 0 0 20px rgba(201,168,76,.4);
}

.game-subtitle {
  font-size: .7rem; letter-spacing: .3em;
  color: var(--text-muted); text-transform: uppercase;
}

.header-controls { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--brass); color: var(--brass); background: rgba(201,168,76,.06); }
.icon-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════
   SCORE PANEL
══════════════════════════════════════════════════════════════ */
#score-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}

.score-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}

.score-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
}
.score-card.black-card::before { background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 60%); }
.score-card.white-card::before { background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%); }

.score-card.active {
  border-color: var(--brass);
  box-shadow: 0 0 16px var(--score-active-glow), inset 0 0 20px rgba(201,168,76,.04);
}
.score-card.active::before { opacity: 1; }

.score-disc {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
}
.score-disc.black {
  background: radial-gradient(circle at 35% 30%, var(--piece-b0), var(--piece-b2));
  box-shadow: 0 3px 8px rgba(0,0,0,.8), inset 0 1px 2px rgba(255,255,255,.1);
}
.score-disc.white {
  background: radial-gradient(circle at 35% 30%, var(--piece-w0), var(--piece-w2));
  box-shadow: 0 3px 8px rgba(0,0,0,.6), inset 0 1px 3px rgba(255,255,255,.8);
}

.score-info { flex: 1; }
.score-name {
  font-family: 'Cinzel', serif; font-size: .6rem;
  letter-spacing: .15em; color: var(--text-muted);
  text-transform: uppercase; line-height: 1;
}
.score-num {
  font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.1;
}
.score-sep {
  font-family: 'Cinzel', serif; font-size: .7rem;
  color: var(--text-muted); text-align: center;
}

#turn-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 6px var(--brass);
  flex-shrink: 0; opacity: 0; transition: opacity .3s;
}
.score-card.active #turn-dot { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   BOARD  — Premium Rendering Container
══════════════════════════════════════════════════════════════ */
#board-wrap {
  position: relative;
  width: 100%; aspect-ratio: 1;
  max-width: 460px;
}

/* Corner ornaments */
.board-corner {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--brass-dark); border-style: solid;
  opacity: .7; z-index: 2;
}
.board-corner.tl { top: -2px; left: -2px;   border-width: 2px 0 0 2px; }
.board-corner.tr { top: -2px; right: -2px;   border-width: 2px 2px 0 0; }
.board-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.board-corner.br { bottom: -2px; right: -2px;border-width: 0 2px 2px 0; }

/* Premium board outer glow */
#board-wrap::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 4px;
  background: transparent;
  box-shadow:
    0 0 40px rgba(0,0,0,.8),
    0 0 0 1px rgba(201,168,76,.08),
    inset 0 0 60px rgba(0,0,0,.4);
  pointer-events: none;
  z-index: 1;
}

#board-canvas {
  display: block; width: 100%; height: 100%;
  cursor: pointer; border-radius: 2px;
  /* Premium shadow under the board */
  box-shadow:
    0 8px 40px rgba(0,0,0,.7),
    0 2px 8px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

/* ══════════════════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════════════════ */
#status-bar {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 28px;
}

#status-text {
  font-family: 'Crimson Pro', serif;
  font-size: .95rem; font-style: italic;
  color: var(--text-muted); letter-spacing: .05em;
  text-align: center; transition: color .3s;
}
#status-text.highlight { color: var(--brass); }

/* ══════════════════════════════════════════════════════════════
   OVERLAYS — shared base
══════════════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(8,10,9,.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.overlay.show { opacity: 1; pointer-events: all; }

.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 40px;
  text-align: center;
  max-width: 320px; width: 90%;
  position: relative;
  box-shadow: var(--shadow-deep);
  transform: translateY(10px);
  transition: transform .4s;
}
.overlay.show .dialog { transform: translateY(0); }

/* dialog corner ornaments */
.dialog::before, .dialog::after,
.dialog .d-corner-br, .dialog .d-corner-bl {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border-color: var(--brass-dark); border-style: solid;
}
.dialog::before  { top:8px; left:8px;   border-width:1px 0 0 1px; }
.dialog::after   { top:8px; right:8px;  border-width:1px 1px 0 0; }
.dialog .d-corner-br { bottom:8px; right:8px; border-width:0 1px 1px 0; }
.dialog .d-corner-bl { bottom:8px; left:8px;  border-width:0 0 1px 1px; }

.dialog-title {
  font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--brass); letter-spacing: .2em;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(201,168,76,.5);
}
.dialog-subtitle {
  font-size: .9rem; font-style: italic;
  color: var(--text-muted); margin-bottom: 24px;
}

/* ── Game Over result discs ── */
.result-discs {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 24px; align-items: center;
}
.result-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.result-disc-large { width: 44px; height: 44px; border-radius: 50%; }
.result-disc-large.black {
  background: radial-gradient(circle at 35% 30%, var(--piece-b0), var(--piece-b2));
  box-shadow: 0 6px 20px rgba(0,0,0,.9), inset 0 2px 4px rgba(255,255,255,.12);
}
.result-disc-large.white {
  background: radial-gradient(circle at 35% 30%, var(--piece-w0), var(--piece-w2));
  box-shadow: 0 6px 20px rgba(0,0,0,.5), inset 0 2px 4px rgba(255,255,255,.9);
}
.result-score-num {
  font-family: 'Cinzel', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--text-primary);
}
.result-vs {
  font-family: 'Cinzel', serif; font-size: .7rem;
  color: var(--text-muted); letter-spacing: .2em; align-self: center;
}
.winner-badge {
  font-size: .65rem; letter-spacing: .2em;
  color: var(--brass); text-transform: uppercase;
  font-family: 'Cinzel', serif;
}

/* ── Buttons ── */
.primary-btn {
  width: 100%; padding: 11px;
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  color: var(--brass);
  font-family: 'Cinzel', serif; font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; margin-top: 6px;
  transition: all .2s; position: relative; overflow: hidden;
}
.primary-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brass); opacity: 0; transition: opacity .2s;
}
.primary-btn:hover { color: var(--bg); }
.primary-btn:hover::before { opacity: 1; }
.primary-btn span { position: relative; z-index: 1; }

.go-lobby-btn { border-color: var(--border) !important; color: var(--text-muted) !important; }
.go-lobby-btn::before { background: rgba(201,168,76,.08) !important; opacity: 0 !important; }
.go-lobby-btn:hover { color: var(--text-primary) !important; border-color: var(--brass) !important; }
.go-lobby-btn:hover::before { opacity: 1 !important; }

.pause-assign-btn { border-color: rgba(201,168,76,.35) !important; color: var(--text-muted) !important; }
.pause-assign-btn::before { background: rgba(201,168,76,.08) !important; }
.pause-assign-btn:hover { color: var(--brass) !important; border-color: var(--brass) !important; }
.pause-assign-btn:hover::before { opacity: 1 !important; }

.quit-danger-btn  { border-color: rgba(180,60,60,.4) !important; color: rgba(180,80,80,.7) !important; }
.quit-danger-btn::before { background: rgba(180,60,60,.08) !important; opacity: 0 !important; }
.quit-danger-btn:hover { color: #c05050 !important; border-color: rgba(180,60,60,.7) !important; }
.quit-danger-btn:hover::before { opacity: 1 !important; }

.quit-dialog-title { color: #b85050 !important; text-shadow: 0 0 20px rgba(180,60,60,.4) !important; }
.quit-confirm-btn  { border-color: rgba(180,60,60,.7) !important; color: #c05050 !important; }
.quit-confirm-btn::before { background: rgba(180,60,60,.15) !important; }
.quit-confirm-btn:hover { color: #fff !important; }
.quit-confirm-btn:hover::before { opacity: 1 !important; }

/* ── Pause icon ── */
.pause-icon-wrap {
  margin: 16px auto 20px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.pause-icon-wrap svg { width: 52px; height: 52px; }
.pause-icon-wrap svg rect { fill: var(--brass); opacity: .6; }

/* ── Assign overlay ── */
.assign-discs-preview {
  display: flex; justify-content: center;
  align-items: center; gap: 16px;
  margin: 16px 0 20px;
}
.assign-disc-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.assign-disc { width: 38px; height: 38px; border-radius: 50%; }
.assign-disc.black {
  background: radial-gradient(circle at 35% 30%, var(--piece-b0), var(--piece-b2));
  box-shadow: 0 4px 14px rgba(0,0,0,.9), inset 0 1px 3px rgba(255,255,255,.1);
}
.assign-disc.white {
  background: radial-gradient(circle at 35% 30%, var(--piece-w0), var(--piece-w2));
  box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 1px 4px rgba(255,255,255,.9);
}
.assign-disc-label {
  font-family: 'Cinzel', serif; font-size: .58rem;
  letter-spacing: .15em; color: var(--text-muted); text-transform: uppercase;
}
.assign-role-badge {
  font-family: 'Crimson Pro', serif; font-size: .78rem;
  font-style: italic; color: var(--brass);
}
.assign-vs-sep {
  font-family: 'Cinzel', serif; font-size: .65rem;
  color: var(--text-muted); letter-spacing: .2em;
}

.assign-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.assign-cancel-btn {
  padding: 10px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Cinzel', serif; font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.assign-cancel-btn:hover { border-color: rgba(200,60,60,.5); color: #c05050; }

.assign-confirm-btn {
  padding: 10px; background: transparent;
  border: 1px solid var(--brass); border-radius: var(--radius);
  color: var(--brass);
  font-family: 'Cinzel', serif; font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  position: relative; overflow: hidden;
}
.assign-confirm-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brass); opacity: 0; transition: opacity .2s;
}
.assign-confirm-btn:hover { color: var(--bg); }
.assign-confirm-btn:hover::before { opacity: 1; }
.assign-confirm-btn span { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   LOBBY SCREEN
══════════════════════════════════════════════════════════════ */
#lobby-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 200; opacity: 1; transition: opacity .5s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#lobby-screen.hidden { opacity: 0; pointer-events: none; }

.lobby-inner {
  width: 100%; max-width: 460px;
  padding: 24px 20px 28px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
  margin: auto;
}

/* Brand */
.lobby-brand { text-align: center; margin-bottom: 8px; }
.lobby-title {
  font-family: 'Cinzel', serif; font-size: 2.6rem; font-weight: 900;
  letter-spacing: .35em; color: var(--brass); line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(201,168,76,.5), 0 0 80px rgba(201,168,76,.2);
}
.lobby-subtitle {
  font-family: 'Crimson Pro', serif; font-size: .85rem;
  letter-spacing: .4em; color: var(--text-muted);
  text-transform: uppercase; font-style: italic;
}

/* Ornament */
.lobby-ornament { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; width: 100%; }
.lobby-ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }
.lobby-ornament-diamond { width: 6px; height: 6px; background: var(--brass-dark); transform: rotate(45deg); flex-shrink: 0; }

/* Section labels */
.lobby-section { width: 100%; margin-bottom: 14px; }
.lobby-section-label {
  font-family: 'Cinzel', serif; font-size: .55rem;
  letter-spacing: .25em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 8px; padding-left: 2px;
}

/* Mode grid */
.lobby-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lobby-mode-btn {
  padding: 14px 10px;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Cinzel', serif; font-size: .65rem;
  letter-spacing: .12em; cursor: pointer; text-transform: uppercase;
  transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; overflow: hidden;
}
.lobby-mode-btn:hover  { border-color: var(--brass); color: var(--brass); }
.lobby-mode-btn.selected {
  border-color: var(--brass); color: var(--brass);
  background: rgba(201,168,76,.07);
  box-shadow: 0 0 12px rgba(201,168,76,.15);
}
.lobby-mode-icon  { font-size: 1.4rem; line-height: 1; }
.lobby-mode-label { position: relative; z-index: 1; }
.lobby-mode-desc  {
  font-family: 'Crimson Pro', serif; font-size: .72rem;
  font-style: italic; color: var(--text-muted);
  letter-spacing: .02em; text-transform: none;
}
.lobby-mode-btn.selected .lobby-mode-desc { color: var(--brass-dark); }

/* Difficulty */
.lobby-diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lobby-diff-btn {
  padding: 8px 4px;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Crimson Pro', serif; font-size: .82rem;
  letter-spacing: .08em; cursor: pointer; transition: all .2s; text-align: center;
}
.lobby-diff-btn.selected { border-color: rgba(100,180,100,.6); color: #90d890; background: rgba(100,180,100,.07); }
.lobby-diff-btn:hover:not(.selected) { border-color: rgba(100,180,100,.3); color: var(--text-primary); }

.lobby-section.diff-section { transition: opacity .3s, max-height .3s; max-height: 80px; overflow: hidden; }
.lobby-section.diff-section.hidden { opacity: 0; pointer-events: none; max-height: 0; margin-bottom: 0; }

/* ── Theme Grid — 4 cols x 2 rows + custom full width ──────── */
.lobby-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.lobby-theme-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden;
  transition: all .2s; background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 6px;
}
.lobby-theme-btn:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.lobby-theme-btn.selected { border-color: var(--brass); box-shadow: 0 0 16px rgba(201,168,76,.3), inset 0 0 20px rgba(201,168,76,.05); }
.lobby-theme-btn.selected::after {
  content: '✦'; position: absolute; top:4px; right:5px;
  font-size: .5rem; color: var(--brass);
}



.theme-preview {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-template-rows: repeat(4,1fr);
  gap: 1px; padding: 4px;
}
.theme-cell { border-radius: 1px; }
.theme-name {
  position: relative; z-index: 2;
  font-family: 'Cinzel', serif; font-size: .45rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  text-align: center;
}

/* ── Lobby Actions ─────────────────────────────────────────── */
.lobby-actions { width: 100%; margin-top: 4px; }

.lobby-play-btn {
  width: 100%; padding: 14px;
  background: transparent;
  border: 1px solid var(--brass); border-radius: var(--radius);
  color: var(--brass);
  font-family: 'Cinzel', serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden; transition: color .2s;
  box-shadow: 0 0 20px rgba(201,168,76,.15);
}
.lobby-play-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.lobby-play-btn:hover { color: var(--bg); }
.lobby-play-btn:hover::before { transform: scaleX(1); }
.lobby-play-btn span { position: relative; z-index: 1; }

/* ── Custom theme float — small circle pencil button ── */
.lobby-custom-float {
  position: absolute;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .2s, color .2s;
  color: var(--text-muted);
}
.lobby-custom-float svg {
  width: 16px; height: 16px;
  transition: transform .2s;
}
.lobby-custom-float:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,.25);
}
.lobby-custom-float:hover svg {
  transform: rotate(-8deg) scale(1.1);
}
.lobby-custom-float.selected {
  border-color: var(--brass);
  color: var(--brass);
  box-shadow: 0 0 14px rgba(201,168,76,.35);
}
.custom-preview-mini,
.custom-float-icon,
.custom-float-label,
.custom-edit-badge { display: none; }

/* ── Dialog close icon button ─────────────────────────────── */
.dialog-close-icon {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); font-size: .65rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.dialog-close-icon:hover {
  background: rgba(255,255,255,.12);
  color: var(--text-primary);
  border-color: var(--brass);
}

/* ══════════════════════════════════════════════════════════════
   ASSIGN CONFIRMED POPUP
══════════════════════════════════════════════════════════════ */
.assign-confirmed-dialog { position: relative; }
.assign-confirmed-icon {
  font-size: 2rem; color: var(--brass);
  margin-bottom: 4px; display: block;
  animation: spin-in .4s ease;
}
@keyframes spin-in {
  from { transform: rotate(-30deg) scale(.7); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}
.assign-confirmed-roles {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 12px 0;
  padding: 10px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 4px;
}
.acr-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.acr-disc {
  width: 28px; height: 28px; border-radius: 50%;
}
.acr-disc.black { background: radial-gradient(circle at 35% 30%, #4a4a60, #1c1c28, #060608); box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.acr-disc.white { background: radial-gradient(circle at 35% 30%, #fff, #f0eedd, #c8c4b0); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.acr-name {
  font-family: 'Cinzel', serif; font-size: .5rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.acr-you { color: var(--brass); }
.acr-sep { color: var(--text-muted); font-size: .8rem; }
.assign-confirmed-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 4px 0;
}
.acb-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.acb-btn:hover {
  border-color: var(--brass); color: var(--brass);
  background: rgba(201,168,76,.07); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.acb-icon { font-size: 1.1rem; line-height: 1; }
.acb-label {
  font-family: 'Cinzel', serif; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: inherit;
}
.acb-sub {
  font-family: 'Crimson Pro', serif; font-size: .68rem;
  font-style: italic; color: var(--text-muted); text-transform: none;
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM THEME MODAL
══════════════════════════════════════════════════════════════ */
.ctm-dialog {
  max-width: 380px; width: 90%;
  padding: 36px 28px 24px;
  position: relative;
  text-align: center;
}
.ctm-dialog .dialog-subtitle {
  margin-bottom: 16px;
}

/* Live mini board preview */
.ctm-live-preview {
  margin-bottom: 14px;
  display: flex; justify-content: center;
}
.ctm-preview-board {
  width: 120px; height: 120px;
  border-radius: 4px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  position: relative;
  transition: border-color .3s;
}
.ctm-preview-grid {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(8,1fr);
  grid-template-rows: repeat(8,1fr);
}
.ctm-cell {
  transition: background .25s;
}
.ctm-cell.piece-b {
  position: relative;
}
.ctm-cell.piece-b::after, .ctm-cell.piece-w::after {
  content: '';
  position: absolute; inset: 15%;
  border-radius: 50%;
  transition: background .25s, box-shadow .25s;
}
.ctm-cell.piece-b::after {
  background: radial-gradient(circle at 35% 30%, var(--ctm-pb-light,#3e3e50), var(--ctm-pb-mid,#1c1c26), var(--ctm-pb-dark,#06060a));
  box-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.ctm-cell.piece-w::after {
  background: radial-gradient(circle at 35% 30%, var(--ctm-pw-light,#fff), var(--ctm-pw-mid,#f0eedd), var(--ctm-pw-dark,#c8c4b0));
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Controls layout */
.ctm-controls {
  display: flex; gap: 0; align-items: stretch;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  margin-bottom: 10px;
}
.ctm-group {
  flex: 1; padding: 10px 12px;
}
.ctm-group-label {
  font-family: 'Cinzel', serif; font-size: .48rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.ctm-divider {
  width: 1px; background: var(--border); flex-shrink: 0;
}

/* Swatch row */
.ctm-swatches {
  display: flex; gap: 6px; align-items: flex-end;
}
.ctm-swatch-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}
.ctm-swatch-item span {
  font-family: 'Crimson Pro', serif; font-size: .62rem;
  color: var(--text-muted); text-align: center; white-space: nowrap;
}
.ctm-swatch-wrap {
  position: relative; width: 100%; height: 30px;
  border-radius: 3px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.ctm-swatch-wrap:hover { border-color: var(--brass); box-shadow: 0 0 8px rgba(201,168,76,.3); }
.ctm-swatch-wrap input[type="color"] {
  position: absolute; inset: -5px;
  width: calc(100% + 10px); height: calc(100% + 10px);
  border: none; padding: 0; cursor: pointer;
}
.ctm-swatch-shine {
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 100%);
  pointer-events: none;
}
.ctm-swatch-accent { border-color: var(--brass) !important; }

/* Piece orbs */
.ctm-pieces {
  display: flex; gap: 10px; align-items: flex-end; justify-content: center;
}
.ctm-piece-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ctm-piece-item span {
  font-family: 'Crimson Pro', serif; font-size: .62rem;
  color: var(--text-muted); text-align: center;
}
.ctm-piece-orb {
  width: 40px; height: 40px; border-radius: 50%;
  position: relative; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ctm-piece-orb:hover {
  border-color: var(--brass);
  box-shadow: 0 0 14px rgba(201,168,76,.4);
  transform: scale(1.08);
}
.ctm-orb-dark  { background: radial-gradient(circle at 35% 30%, #3e3e50, #1c1c26, #060608); }
.ctm-orb-light { background: radial-gradient(circle at 35% 30%, #fff, #f0eedd, #c8c4b0); }
.ctm-piece-orb input[type="color"] {
  position: absolute; inset: -10px;
  width: calc(100% + 20px); height: calc(100% + 20px);
  border: none; opacity: 0; cursor: pointer;
}

/* Presets strip */
.ctm-presets-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.ctm-presets-label {
  font-family: 'Cinzel', serif; font-size: .48rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); flex-shrink: 0;
}
.ctm-presets { display: flex; gap: 5px; }
.ctm-preset {
  width: 28px; height: 28px; border-radius: 3px;
  border: 1px solid var(--border); cursor: pointer;
  display: flex; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  padding: 0;
}
.ctm-preset span { flex: 1; display: block; }
.ctm-preset:hover {
  border-color: var(--brass); transform: scale(1.15);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* Footer */
.ctm-footer { display: flex; gap: 8px; }
.ctm-btn-apply {
  flex: 1; padding: 11px 8px;
  background: transparent; border: 1px solid var(--brass); border-radius: var(--radius);
  color: var(--brass);
  font-family: 'Cinzel', serif; font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; overflow: hidden;
}
.ctm-btn-apply::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.ctm-btn-apply:hover { color: var(--bg); }
.ctm-btn-apply:hover::before { transform: scaleX(1); }
.ctm-btn-apply span { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #app { padding: 8px; }
  .game-title  { font-size: .9rem; }
  .score-num   { font-size: 1.2rem; }
  #status-text { font-size: .85rem; }
  .lobby-title { font-size: 2rem; letter-spacing: .2em; }
  .lobby-theme-grid { grid-template-columns: repeat(4,1fr); }
  .ctm-dialog { padding: 16px; }
}

@media (max-height: 680px) {
  .lobby-inner  { padding: 16px 18px 24px; }
  .lobby-title  { font-size: 2rem; }
}

@media (max-height: 700px) {
  #app { padding: 6px 10px; }
  #header { padding-bottom: 8px; margin-bottom: 10px; }
  #score-panel { margin-bottom: 10px; }
  #status-bar  { margin-top: 8px; min-height: 22px; }
}

/* ── Hint badge on button ────────────────────────────────── */
.btn-badge {
  position:absolute; top:2px; right:2px;
  min-width:16px; height:16px; padding:0 3px;
  background:#c9a84c; color:#000;
  font-family:'Cinzel',serif; font-size:.52rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  border-radius:0; pointer-events:none; line-height:1;
}
#btn-hint { position:relative; }

/* ── No-Hint popup ───────────────────────────────────────── */
.no-hint-overlay {
  position:fixed; inset:0; z-index:99500;
  background:rgba(3,5,2,.88); backdrop-filter:blur(12px);
  display:flex; align-items:center; justify-content:center;
}
.no-hint-box {
  width:320px; background:#0b0f09;
  border:1px solid rgba(201,168,76,.35);
  box-shadow:0 24px 60px rgba(0,0,0,.98);
  padding:32px 24px 24px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  text-align:center;
}
.no-hint-icon  { font-size:2.4rem; line-height:1; }
.no-hint-title {
  font-family:'Cinzel','Georgia',serif; font-size:.95rem; font-weight:700;
  letter-spacing:.1em; color:#e8c96a;
}
.no-hint-sub {
  font-family:'Crimson Pro','Georgia',serif; font-size:.9rem;
  font-style:italic; color:rgba(201,168,76,.65); line-height:1.5;
}
.no-hint-btns  { display:flex; flex-direction:column; gap:8px; width:100%; margin-top:6px; }
.no-hint-btn {
  width:100%; padding:11px;
  font-family:'Cinzel','Georgia',serif; font-size:.62rem;
  font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  cursor:pointer; transition:all .2s; border:1px solid transparent;
}
.no-hint-btn--store {
  background:rgba(201,168,76,.1); border-color:rgba(201,168,76,.45); color:#e8c96a;
}
.no-hint-btn--store:hover { background:rgba(201,168,76,.2); border-color:#c9a84c; color:#fff; }
.no-hint-btn--ad {
  background:rgba(100,160,255,.08); border-color:rgba(100,160,255,.35); color:#90c0ff;
}
.no-hint-btn--ad:hover { background:rgba(100,160,255,.15); border-color:#90c0ff; color:#fff; }
.no-hint-btn--close {
  background:transparent; border-color:rgba(201,168,76,.15); color:rgba(201,168,76,.4);
}
.no-hint-btn--close:hover { border-color:rgba(201,168,76,.35); color:rgba(201,168,76,.7); }

/* ── Hide shop/watchad/hint during online PVP ────────────── */
#header.pvp-online-active #btn-ingame-shop,
#header.pvp-online-active #btn-watchad { display:none !important; }
