@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #11131c;
  --panel: #1a1c29;
  --paper: #f4dfb6;
  --gold: #f6be62;
  --edge: #654b38;
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
body {
  background: radial-gradient(ellipse at 45% 0%, #282137, transparent 62rem);
}
header, main { max-width: 1460px; margin-inline: auto; }
header { border-bottom-color: #a6754947; }
.brand b { color: #ff825e; }
.brand b span { color: var(--gold); }
.brand small { color: var(--paper); letter-spacing: .22em; }
.welcome h1 {
  margin: 0 0 3px;
  font: 800 clamp(1.7rem, 4vw, 3.5rem)/.91 "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  color: var(--paper);
}
.welcome p { color: #d5bda2; }
.lobby-bar, .poker-controls, .chat-panel, .action-log, .hand-history, .felt-settings {
  border-color: var(--edge);
  background-color: var(--panel);
}
.lobby-bar input, select, #raise-amount { background: #11131d; }
.table { box-shadow: 0 6px 0 #08090e, 0 16px 40px #08090eb0; }
.poker-felt {
  min-height: 560px;
  border: 2px solid #d0ad747d;
  border-radius: 100px / 135px;
  background-image: radial-gradient(circle, #e4b06e24 1px, transparent 1.5px);
  background-size: 6px 6px;
  box-shadow: inset 0 0 65px #0006, 0 0 0 5px #0002;
}
.poker-seat {
  width: 182px;
  max-width: 29%;
  min-height: 160px;
  background: linear-gradient(150deg, #2b2636, #151823 74%);
  border-radius: 11px;
  box-shadow: 0 5px 0 #08090d88;
}
.poker-seat.mine { border-color: #68b2c0; background: #1a2938; }
.poker-seat.acting { box-shadow: 0 0 0 3px #ffd67355, 0 4px 17px #0009; }
.poker-seat.winner { border-color: #f8c267; box-shadow: 0 0 0 2px #e5a94888, 0 0 25px #e5a94844; }
.poker-seat.folded { opacity: .7; }
.seat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border-color: #f2c47c80;
  background: #352a38 center / cover no-repeat;
}
.portrait-duchess { background-image: url("assets/duchess.webp"); }
.portrait-angelica { background-image: url("assets/angelica.webp"); }
.portrait-blue { background-image: url("assets/blue.webp"); }
.portrait-zoe { background-image: url("assets/zoe.webp"); }
.portrait-gracie { background-image: url("assets/gracie.webp"); }
.portrait-guest { background-image: url("assets/guest.webp"); }
.seat-name { color: #fff3db; font-size: 13px; }
.seat-type { color: #b4d5d9; }
.seat-status { color: #dfceb7; font-size: 10px; }
.poker-seat .card.back, .card.back {
  background: repeating-linear-gradient(45deg, #38253e 0 4px, #4e3148 4px 8px);
}
.poker-seat .back-logo { font-size: 10px; }
.community { max-width: 410px; }
.hand-street, .table-caption { font-weight: 700; }
.pot-badge strong { font: 800 2rem/1 "Barlow Condensed", Impact, sans-serif; }
.poker-controls { box-shadow: 0 -5px 18px #08090e66; }
.primary { background: var(--gold); }
.move-buttons #call { color: #211529; font: 700 1.05rem "Instrument Sans", sans-serif; }
.npc-guide h2 { font: 800 1.35rem "Barlow Condensed", Impact, sans-serif; letter-spacing: .04em; margin: 0; }
.npc-guide p, #table-message { font-size: 12px; }

@media (max-width: 1000px) {
  .poker-felt { min-height: 545px; }
  .seat-name { max-width: 76px; }
}
@media (max-width: 580px) {
  header { padding-bottom: 11px; }
  .table { padding: 10px 5px; border-width: 5px; }
  .poker-side .balance { min-height: 70px; padding-block: 6px; gap: 4px; }
  .poker-felt { min-height: 440px; border-radius: 25px; }
  .poker-seat { width: 31%; max-width: 31%; min-height: 122px; padding-top: 7px; }
  .poker-seat.pos-0, .poker-seat.pos-2 { top: 13px; }
  .poker-seat.pos-3, .poker-seat.pos-5 { bottom: 13px; }
  .seat-avatar { width: 29px; height: 29px; border-radius: 5px; }
  .seat-name { font-size: 9px; max-width: clamp(35px, 12vw, 64px); }
  .seat-status { font-size: 8px; }
  .poker-seat .back-logo { font-size: 7px; }
  .poker-seat .back-logo span { font-size: 8px; }
  .poker-controls { position: static; }
}

.header-links {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
@media (max-width: 700px) {
  .header-links { justify-content: flex-start; }
  .header-links nav { margin-inline-end: auto; }
}
