/* ==============================
   TS-Pool — Neutral UI with TS-inspired colors (no branding)
   Palette: Blue #187ABD, charcoal #1b1f24, gunmetal #0f141a, slate #2b3138
   ============================== */

:root{
  --ts-blue:#187ABD;
  --ts-blue-600:#146AA5;
  --bg:#0f141a;
  --panel:#1b1f24;
  --panel-2:#232a32;
  --text:#e7eef7;
  --muted:#a9b7c6;
  --accent:#29b6f6;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(24,122,189,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(24,122,189,.10), transparent 60%),
    var(--bg);
  color:var(--text);
  font:16px/1.45 "SofiaSans-Regular", "Montserrat", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Slim neutral header just to give a top edge; no content */
.ts-header{
  position:sticky; top:0; z-index:10; height:44px;
  background: linear-gradient(180deg, rgba(15,20,26,.9) 0%, rgba(15,20,26,.75) 100%);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

.ts-main{
  max-width:1400px; margin:18px auto 30px; padding:0 20px;
}

/* UI panel that game.js augments */
.ui-panel{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:12px;
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  box-shadow: var(--shadow);
}
.turn-indicator{
  margin-right:auto;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  font-weight:600; color:#fff;
}

/* Buttons (including #new-game-btn) */
.ts-btn{
  appearance:none; border:0; cursor:pointer;
  font:600 14px/1 "Montserrat",system-ui,sans-serif;
  padding:10px 14px; border-radius:999px;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow);
}
.ts-btn--ghost{
  color:#fff; background: transparent;
  border:1px solid rgba(255,255,255,.18);
}
.ts-btn--ghost:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* Canvas wrapper */
.canvas-wrap{
  margin-top:16px;
  background:#10161d;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding:14px;
}
#pool-canvas{
  display:block;
  width:100%;
  max-width:100%;
  border-radius: var(--radius-sm);
  image-rendering: -webkit-optimize-contrast;
}

/* Desktop note */
.desktop-note{
  margin:12px 4px 0;
  color:var(--muted);
  font-size:13px;
  user-select:none;
}

/* Footer */
.ts-footer{
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.35);
}
.ts-footer__inner{
  max-width:1400px; margin:0 auto; padding:16px 20px;
  color:var(--muted); font-size:13px;
}

/* Narrow screens — keep tidy even though game is desktop-first */
@media (max-width: 920px){
  .ui-panel{ gap:8px }
  .turn-indicator{ width:100%; order:3; margin-top:6px }
}
