/* =============================================
   Amiral Battı — Ana Stil Dosyası
   Koyu lacivert/deniz teması
   ============================================= */

/* ─── Değişkenler ─────────────────────────── */
:root {
  --navy-900: #050e1f;
  --navy-800: #091628;
  --navy-700: #0d2040;
  --navy-600: #112a54;
  --navy-500: #1a3a6e;
  --navy-400: #254f96;
  --accent:   #00d4ff;
  --accent-2: #0099cc;
  --gold:     #f0c040;
  --red:      #ff4455;
  --green:    #00e676;
  --miss-col: #2c3e6b;
  --text-primary:   #e8f4ff;
  --text-secondary: #8baac8;
  --border:   rgba(0,212,255,.18);
  --shadow:   0 8px 40px rgba(0,0,0,.5);
  --radius:   12px;
  --cell:     clamp(28px, 4vw, 42px);
}

/* ─── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-900);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
button { cursor: pointer; border: none; background: none; font: inherit; }
input  { font: inherit; }
.hidden { display: none !important; }

/* ─── Arka plan animasyonları ─────────────── */
.ocean-bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--navy-900) 0%, #051a3a 60%, #040d1c 100%);
  overflow: hidden;
}
.wave {
  position: absolute; width: 200%; height: 120px;
  bottom: 0; left: -50%;
  border-radius: 40%;
  animation: wave-anim linear infinite;
  opacity: .12;
}
.wave1 { background: var(--accent); animation-duration: 9s; bottom: -10px; }
.wave2 { background: var(--navy-400); animation-duration: 13s; bottom: -25px; }
.wave3 { background: var(--accent-2); animation-duration: 17s; bottom: -40px; }
@keyframes wave-anim {
  0%   { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(50%) rotate(360deg); }
}

.radar-sweep {
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,.1);
  background: conic-gradient(
    from 0deg,
    rgba(0,212,255,.06) 0deg,
    transparent 60deg,
    transparent 360deg
  );
  animation: radar 6s linear infinite;
}
@keyframes radar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.ocean-bg-subtle {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--navy-900) 0%, #051a3a 100%);
}

/* ─── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: all .2s; white-space: nowrap;
  letter-spacing: .02em;
}
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-icon { font-size: 1.1em; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--navy-900); font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,212,255,.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,212,255,.5);
}
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: rgba(0,212,255,.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,.3);
}
.btn-secondary:hover { background: rgba(0,212,255,.22); }

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }

.btn-danger {
  background: rgba(255,68,85,.15);
  color: var(--red);
  border: 1px solid rgba(255,68,85,.3);
}
.btn-danger:hover { background: rgba(255,68,85,.25); }

/* ─── Card ────────────────────────────────── */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem; color: var(--accent);
  margin-bottom: 1.3rem; letter-spacing: .05em;
}

/* ─── Form ────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.form-group label {
  font-size: .82rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-secondary);
}
.form-group input {
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 8px; padding: .7rem 1rem;
  color: var(--text-primary); font-size: 1rem;
  outline: none; transition: border-color .2s;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}
.form-actions { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.form-error {
  color: var(--red); font-size: .88rem;
  margin-top: .6rem; padding: .5rem .8rem;
  background: rgba(255,68,85,.1); border-radius: 6px;
}

/* ─── Spinner ─────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 2px solid rgba(0,212,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width: 14px; height: 14px; }
.spinner-row { display: flex; align-items: center; gap: .7rem; color: var(--text-secondary); margin-top: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Divider ─────────────────────────────── */
.divider {
  text-align: center; color: var(--text-secondary);
  font-size: .82rem; position: relative;
  margin: 1.2rem 0;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%; width: 40%;
  height: 1px; background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ─── HOME PAGE ──────────────────────────── */
.home-page { position: relative; }
.home-container {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.home-header { text-align: center; margin-bottom: 2.5rem; }
.logo { display: flex; align-items: center; gap: .8rem; justify-content: center; }
.logo-icon { font-size: 2.5rem; }
.logo h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .1em;
}
.tagline { color: var(--text-secondary); margin-top: .5rem; font-size: .95rem; letter-spacing: .15em; }

.home-main { width: 100%; max-width: 440px; }
.action-card { display: flex; flex-direction: column; gap: .5rem; }

/* How to play */
.how-to-card { max-width: 520px; width: 100%; }
.howto-content { display: flex; flex-direction: column; gap: 1.2rem; }
.howto-step {
  display: flex; gap: 1rem; align-items: flex-start;
}
.step-num {
  min-width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--navy-900);
  font-size: .9rem;
}
.howto-step strong { color: var(--text-primary); display: block; margin-bottom: .2rem; }
.howto-step p { color: var(--text-secondary); font-size: .9rem; }
.howto-ships h3 { color: var(--accent); font-size: .9rem; margin-bottom: .7rem; letter-spacing: .05em; }
.ship-list { display: flex; flex-direction: column; gap: .5rem; }
.ship-info { display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--text-secondary); }
.ship-cells { font-size: .8rem; letter-spacing: .05em; }
.ship-cells.c5 { color: #ff6b35; }
.ship-cells.c4 { color: var(--gold); }
.ship-cells.c3 { color: var(--green); }
.ship-cells.c2 { color: var(--accent); }

/* ─── WAITING SCREEN ──────────────────────── */
.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.waiting-container { width: 100%; max-width: 480px; padding: 1rem; position: relative; z-index: 1; }
.waiting-card { text-align: center; }
.waiting-icon { font-size: 3rem; margin-bottom: 1rem; }
.waiting-card h2 {
  font-family: 'Orbitron', monospace;
  color: var(--accent); font-size: 1.4rem; margin-bottom: .4rem;
}
.waiting-sub { color: var(--text-secondary); margin-bottom: 1.5rem; }

.room-code-display {
  background: rgba(0,212,255,.08);
  border: 2px dashed rgba(0,212,255,.3);
  border-radius: 10px; padding: 1rem;
  margin-bottom: 1rem;
}
.code-label { font-size: .7rem; letter-spacing: .15em; color: var(--text-secondary); display: block; margin-bottom: .3rem; }
.code-value {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem; font-weight: 900;
  letter-spacing: .3em; color: var(--accent);
  text-shadow: 0 0 20px rgba(0,212,255,.4);
}

.share-box { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.share-box input {
  flex: 1; background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 6px; padding: .5rem .7rem;
  color: var(--text-secondary); font-size: .8rem;
}

.waiting-players {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem; justify-content: center;
}
.w-player { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; }
.w-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,212,255,.1);
  border: 2px solid rgba(0,212,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.vs-badge {
  font-family: 'Orbitron', monospace;
  color: var(--gold); font-size: 1.1rem; font-weight: 700;
}
.badge { font-size: .7rem; }
.badge-you {
  background: rgba(0,212,255,.15);
  color: var(--accent);
  padding: .1rem .5rem; border-radius: 20px;
  border: 1px solid rgba(0,212,255,.3);
}

/* ─── PLACING SCREEN ──────────────────────── */
.placing-container {
  width: 100%; max-width: 1000px; padding: 1rem;
  position: relative; z-index: 1;
}
.placing-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.logo-sm {
  font-family: 'Orbitron', monospace;
  font-size: 1rem; color: var(--accent); letter-spacing: .08em;
}
.player-badge-sm {
  background: rgba(0,212,255,.12);
  color: var(--accent); border: 1px solid rgba(0,212,255,.3);
  padding: .3rem .8rem; border-radius: 20px;
  font-size: .85rem; font-weight: 600;
}
.placing-body {
  display: grid; grid-template-columns: auto 280px; gap: 1.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .placing-body { grid-template-columns: 1fr; }
}
.section-label {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-secondary);
  margin-bottom: .6rem;
}

/* ─── BOARD ───────────────────────────────── */
.board-wrapper, .board-wrapper-game {
  display: inline-flex; flex-direction: column;
}
.board-with-side { display: flex; }
.board-labels-top, .board-col-labels {
  display: flex; padding-left: 24px;
}
.board-labels-side, .board-row-labels {
  display: flex; flex-direction: column;
  width: 24px; justify-content: space-around;
}
.board-label-cell {
  width: var(--cell); height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--text-secondary);
  font-weight: 600; letter-spacing: .05em;
}
.board-label-side {
  height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--text-secondary);
  font-weight: 600;
}

.board {
  display: grid;
  grid-template-columns: repeat(10, var(--cell));
  grid-template-rows: repeat(10, var(--cell));
  border: 2px solid rgba(0,212,255,.25);
  border-radius: 6px; overflow: hidden;
  position: relative;
}
.board .cell {
  width: var(--cell); height: var(--cell);
  border-right: 1px solid rgba(0,212,255,.08);
  border-bottom: 1px solid rgba(0,212,255,.08);
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: .9em;
  transition: background .15s;
}
.board .cell:nth-child(10n) { border-right: none; }
.board .cell:nth-last-child(-n+10) { border-bottom: none; }

/* Yerleştirme tahtası hücre renkleri */
.place-board .cell { background: rgba(0,30,70,.7); }
.place-board .cell.ship-preview { background: rgba(0,212,255,.2); border-color: rgba(0,212,255,.4); }
.place-board .cell.ship-preview.invalid { background: rgba(255,68,85,.2); border-color: rgba(255,68,85,.4); }
.place-board .cell.placed { background: rgba(0,212,255,.15); }
.place-board .cell.placed::after {
  content: ''; position: absolute;
  width: 60%; height: 60%; border-radius: 3px;
  background: var(--accent); opacity: .6;
}

/* Oyun tahtası */
.game-board .cell { background: rgba(0,20,55,.8); cursor: default; }
.my-board .cell { cursor: default; }
.enemy-board .cell { cursor: crosshair; }
.enemy-board .cell:hover:not(.fired) {
  background: rgba(0,212,255,.12);
}

/* Atış sonuçları */
.cell.miss {
  background: var(--miss-col) !important;
  animation: miss-anim .4s ease;
}
.cell.miss::after {
  content: '●'; color: rgba(140,170,210,.5); font-size: .7em;
}
.cell.hit {
  background: rgba(255,68,85,.25) !important;
  animation: hit-anim .5s ease;
}
.cell.hit::after {
  content: '✕'; color: var(--red); font-size: 1em; font-weight: 700;
}
.cell.sunk {
  background: rgba(255,68,85,.4) !important;
}
.cell.sunk::after {
  content: '✕'; color: #ff2233; font-size: 1em; font-weight: 700;
}

/* Kendi tahtamda görünen gemiler */
.cell.my-ship { background: rgba(0,212,255,.18) !important; }
.cell.my-ship.hit { background: rgba(255,68,85,.3) !important; }
.cell.my-ship.sunk { background: rgba(255,68,85,.45) !important; }

/* Animasyonlar */
@keyframes hit-anim {
  0%  { transform: scale(1); }
  30% { transform: scale(1.3); background: rgba(255,68,85,.6) !important; }
  100%{ transform: scale(1); }
}
@keyframes miss-anim {
  0%  { transform: scale(1); }
  30% { transform: scale(1.1); }
  100%{ transform: scale(1); }
}
@keyframes sunk-pulse {
  0%, 100% { box-shadow: inset 0 0 8px rgba(255,68,85,.5); }
  50%       { box-shadow: inset 0 0 18px rgba(255,68,85,.9); }
}
.cell.sunk { animation: sunk-pulse 1s ease 3; }

/* ─── SHIP TRAY ───────────────────────────── */
.ship-panel { display: flex; flex-direction: column; gap: 1rem; }
.panel-title { font-size: .9rem; letter-spacing: .05em; color: var(--accent); }
.ship-tray { display: flex; flex-direction: column; gap: .6rem; }
.tray-ship {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .7rem; border-radius: 6px;
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.15);
  cursor: grab; transition: all .2s; user-select: none;
}
.tray-ship:hover { background: rgba(0,212,255,.14); }
.tray-ship.selected {
  border-color: var(--accent);
  background: rgba(0,212,255,.18);
  box-shadow: 0 0 0 2px rgba(0,212,255,.2);
}
.tray-ship.placed { opacity: .35; cursor: default; pointer-events: none; text-decoration: line-through; }
.tray-ship-name { font-size: .85rem; }
.tray-ship-cells { display: flex; gap: 3px; }
.tray-cell {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--accent);
}

.place-controls { display: flex; gap: .5rem; }
.ready-section { border-top: 1px solid var(--border); padding-top: 1rem; }
.ready-status { font-size: .82rem; color: var(--text-secondary); margin-bottom: .6rem; }
.enemy-ready-row { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-secondary); }

/* ─── GAME SCREEN ─────────────────────────── */
.game-container {
  width: 100%; max-width: 1100px; padding: 1rem;
  min-height: 100vh; display: flex;
  flex-direction: column; gap: 1rem;
  position: relative; z-index: 1;
}
.game-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.turn-indicator {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 600;
}
.turn-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-secondary);
  animation: pulse 1.5s infinite;
}
.turn-dot.my-turn { background: var(--green); }
.turn-dot.enemy-turn { background: var(--red); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
.room-code-sm { font-size: .82rem; color: var(--text-secondary); }

.boards-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 700px) {
  .boards-row { grid-template-columns: 1fr; }
}
.board-section {}
.board-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .5rem;
}
.board-label {
  font-family: 'Orbitron', monospace;
  font-size: .75rem; letter-spacing: .08em;
}
.my-label    { color: var(--green); }
.enemy-label { color: var(--red); }
.ship-status { font-size: .78rem; color: var(--text-secondary); }
.board-col-labels { display: flex; padding-left: 22px; }
.board-row-wrap { display: flex; }
.board-row-labels { width: 22px; display: flex; flex-direction: column; }

/* ─── GAME BOTTOM ─────────────────────────── */
.game-bottom {
  display: grid; grid-template-columns: 1fr 300px; gap: 1rem;
}
@media (max-width: 700px) {
  .game-bottom { grid-template-columns: 1fr; }
}
.game-info-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; min-height: 120px;
}
.event-log { display: flex; flex-direction: column; gap: .3rem; max-height: 130px; overflow-y: auto; }
.log-entry { font-size: .85rem; padding: .3rem .5rem; border-radius: 4px; }
.log-system { color: var(--text-secondary); font-style: italic; }
.log-hit    { color: var(--red); background: rgba(255,68,85,.08); }
.log-sunk   { color: #ff2233; background: rgba(255,34,51,.12); font-weight: 600; }
.log-miss   { color: var(--text-secondary); }
.log-turn   { color: var(--accent); background: rgba(0,212,255,.06); }

/* Chat */
.chat-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-header {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem; color: var(--text-secondary);
  font-weight: 600;
}
.chat-messages {
  flex: 1; padding: .7rem; overflow-y: auto;
  max-height: 130px;
  display: flex; flex-direction: column; gap: .4rem;
}
.chat-msg { font-size: .82rem; line-height: 1.4; }
.chat-msg .chat-name {
  font-weight: 600; margin-right: .3rem;
}
.chat-msg.mine .chat-name { color: var(--accent); }
.chat-msg.theirs .chat-name { color: var(--gold); }
.chat-msg .chat-text { color: var(--text-primary); }
.chat-input-row {
  display: flex; gap: .4rem; padding: .6rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: .4rem .7rem;
  color: var(--text-primary); font-size: .82rem;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--accent); }

/* ─── MODAL ───────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,14,31,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadein .3s ease;
}
.modal-box {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  text-align: center; max-width: 400px; width: 90%;
  animation: scalein .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.modal-box h2 {
  font-family: 'Orbitron', monospace;
  color: var(--accent); font-size: 1.5rem; margin-bottom: .5rem;
}
.modal-box p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
@keyframes fadein  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scalein { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ─── TOAST ───────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 2000; display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.toast {
  padding: .75rem 1.2rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  animation: toast-in .3s ease, toast-out .3s ease 2.7s forwards;
  pointer-events: none; min-width: 200px;
  border: 1px solid transparent;
}
.toast-hit  { background: rgba(255,68,85,.2);  border-color: rgba(255,68,85,.4);  color: var(--red); }
.toast-miss { background: rgba(44,62,107,.6);  border-color: rgba(0,212,255,.2);  color: var(--text-secondary); }
.toast-sunk { background: rgba(255,34,51,.3);  border-color: rgba(255,34,51,.5);  color: #ff2233; font-weight: 700; }
.toast-info { background: rgba(0,212,255,.15); border-color: rgba(0,212,255,.3);  color: var(--accent); }
.toast-win  { background: rgba(240,192,64,.2); border-color: rgba(240,192,64,.4); color: var(--gold); font-weight: 700; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ─── UTILS ───────────────────────────────── */
kbd {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: .1rem .4rem; font-size: .75em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,.3); border-radius: 3px; }

/* ─── MOBILE ──────────────────────────────── */
@media (max-width: 480px) {
  :root { --cell: 28px; }
  .placing-container, .game-container { padding: .5rem; }
  .card { padding: 1.2rem; }
  .game-topbar { flex-wrap: wrap; gap: .5rem; }
}
