
/* =========================================
   CHKOBBA — VISUAL REDESIGN
   ========================================= */

:root {
  --felt: #09271e;
  --felt2: #124936;
  --gold: #d8b44c;
  --gold-l: #ffe49a;
  --card-bg: #fffdf5;
  --red: #bd3939;
  --black: #202b30;
  --text: #f5f1e6;

  --panel: rgba(5, 24, 17, .88);
  --panel-border: rgba(216, 180, 76, .24);
  --soft-shadow: 0 12px 35px rgba(0, 0, 0, .35);
}

body {
  background:
    radial-gradient(ellipse at center, #17583e 0%, #09271e 75%);
}

#app {
  padding: 10px;
  gap: 10px;
}

/* Scoreboard */

#hud {
  background: linear-gradient(
    135deg,
    rgba(4, 24, 17, .95),
    rgba(17, 57, 41, .95)
  );
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 9px 16px;
  box-shadow: var(--soft-shadow);
}

.team-score .tname {
  font-size: .68rem;
  letter-spacing: 1.5px;
}

.team-score .tval {
  font-size: 1.65rem;
  color: var(--gold-l);
  text-shadow: 0 0 15px rgba(255, 220, 120, .15);
}

#menu-btn {
  border-radius: 10px;
  width: 38px;
  height: 38px;
  transition: .2s;
}

#menu-btn:hover {
  background: rgba(216, 180, 76, .2);
  transform: rotate(8deg);
}

/* Table */

.table-zone {
  background:
    radial-gradient(ellipse at center,
      rgba(30, 104, 69, .3),
      rgba(0, 0, 0, .27));
  border: 1px solid rgba(216, 180, 76, .3);
  border-radius: 20px;
  box-shadow:
    inset 0 0 35px rgba(0, 0, 0, .2),
    0 5px 20px rgba(0, 0, 0, .15);
}

.seat {
  border-radius: 14px;
  transition: background .25s, box-shadow .25s;
}

.seat.active {
  background: rgba(216, 180, 76, .09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 120, .4),
    0 0 20px rgba(216, 180, 76, .08);
}

.seat-head {
  font-weight: 800;
}

/* Cards */

.card {
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  border: 1px solid rgba(0, 0, 0, .12);
}

.card.back {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      rgba(255,255,255,.035) 5px,
      rgba(255,255,255,.035) 7px
    ),
    linear-gradient(135deg, #236346, #092b1c);
  border: 2px solid var(--gold);
}

.card.selected {
  outline: 3px solid var(--gold-l);
  box-shadow: 0 0 22px rgba(255, 220, 120, .55);
}

.card.playable:hover {
  transform: translateY(-9px);
}

/* Capture controls */

#action-bar .sel-info,
#action-bar .sel-btns {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
}

#action-bar .sel-btns {
  padding: 10px;
  gap: 10px;
}

button {
  border-radius: 11px;
  font-weight: 800;
  transition:
    background .2s,
    transform .15s,
    box-shadow .2s;
}

button:not(:disabled):hover {
  box-shadow: 0 4px 15px rgba(212, 175, 55, .2);
}

/* Modals */

.overlay {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(9px);
}

.modal {
  background:
    linear-gradient(160deg, #194936, #0a241b 80%);
  border: 1px solid rgba(255, 220, 120, .35);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .65);
  animation: modalEnter .3s ease-out;
}

.modal h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}

.brand-mark {
  font-size: 2.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.start-modal {
  text-align: center;
}

.opt {
  border-radius: 12px;
  transition: .2s;
}

.opt.selected {
  box-shadow: 0 0 15px rgba(216, 180, 76, .2);
}

/* Score summary */

.sum-team {
  background: rgba(255,255,255,.045);
  border-radius: 14px;
}

.sum-team .stpts {
  color: var(--gold-l);
}

.sum-winner {
  text-shadow: 0 0 22px rgba(255, 220, 120, .4);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */

@media (max-width: 640px) {
  #app {
    padding: 5px;
    gap: 6px;
  }

  #hud {
    padding: 7px 10px;
  }

  .team-score .tval {
    font-size: 1.3rem;
  }

  .modal {
    padding: 20px;
    border-radius: 18px;
  }

  .modal h1 {
    font-size: 1.8rem;
  }

  #action-bar {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
