@import url("/clubroom/club-shell.css");
:root {
  color-scheme: dark;
  --bg: #101613;
  --surface: #19251d;
  --ink: #eeeae0;
  --muted: #a1afa3;
  --gold: #dac18b;
  --line: #cdd7c51b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font: 14px var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 16px;
  background: var(--gold);
  color: var(--bg);
  clip-path: none;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1.6;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 7px;
  background: var(--gold);
  color: #24291e;
  font-weight: 650;
  box-shadow: inset 0 1px #f4dfb3;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button-primary:hover:not(:disabled) {
  background: #ead29a;
  transform: translateY(-1px);
}
.button-primary:active:not(:disabled) {
  transform: translateY(1px);
}
.button-primary:disabled {
  box-shadow: none;
}
.button-quiet {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 8px 18px;
  color: #c3cbbd;
}
.button-quiet:hover:not(:disabled) {
  background: var(--surface);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  min-height: 44px;
}
.text-button:hover {
  color: #f1dbac;
}
.text-button svg {
  width: 17px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 10px;
  gap: 16px;
}
.table-heading h1 {
  font: 27px/1.3 var(--serif);
  letter-spacing: 0.2px;
  margin-top: 4px;
}
.table-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 2.5px;
}
.table-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.game-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 44px 24px;
}
.club-dialog {
  color: var(--ink);
  border: 1px solid #6b70553d;
  box-shadow: 0 32px 140px #000b;
  border-radius: 16px;
  padding: 30px;
  width: min(480px, calc(100vw - 32px));
  max-height: 85dvh;
  background: #1b2720;
}
.club-dialog::backdrop {
  background: #050b08ae;
  backdrop-filter: blur(9px);
}
.club-dialog h2 {
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 12px 32px 20px 0;
  font-weight: 500;
}
.club-dialog p {
  font-size: 13px;
  line-height: 1.8;
  color: #b9c4b6;
  margin: 16px 0;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 26px;
  color: var(--muted);
}
input:not([type="range"]),
select {
  border: 1px solid #657b634d;
  background: #111b14;
  color: var(--ink);
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
  max-width: 100%;
}
.field-label {
  display: block;
  font-size: 12px;
  margin: 18px 0 8px;
  color: #b5c1b0;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  min-width: 0;
  font-size: 12px;
  flex: 1;
}
.copy-row .button-primary {
  flex-shrink: 0;
}
.form-error {
  color: #e6a299;
  line-height: 1.7;
  margin: 12px 0;
  font-size: 13px;
}
.form-error:empty {
  display: none;
}
.toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 16px);
  background: #e8ddc5;
  color: #202d23;
  padding: 14px 22px;
  box-shadow: 0 12px 50px #0008;
  border-radius: 8px;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 28px);
  text-align: center;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lobby-page {
  background: radial-gradient(ellipse at 73% 23%, #263d2c75, transparent 46%), #121b15;
}
.lobby-main {
  max-width: 1400px;
  margin: auto;
  padding: 0 64px;
}
.lobby-intro {
  min-height: 402px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 30px;
  padding: 34px 8px 8px;
}
.lobby-intro h1 {
  font-size: clamp(34px, 3.45vw, 51px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -2.5px;
  margin: 20px 0;
}
.lobby-intro h1 em {
  font-style: normal;
  color: #d4c6a5;
}
.intro-copy {
  font-size: 13px;
  color: #a3b09f;
  line-height: 1.85;
  margin-bottom: 18px;
}
.hero-still {
  position: relative;
  height: 355px;
  isolation: isolate;
  perspective: 900px;
}
.hero-orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #a7ac7840;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.hero-orbit.inner {
  width: 290px;
  height: 290px;
  top: 30px;
  opacity: 0.3;
}
.hero-card {
  position: absolute;
  width: 145px;
  filter: drop-shadow(8px 18px 15px #0007);
  top: 62px;
  left: calc(50% - 130px);
  transform: rotate(-17deg) rotateX(17deg);
}
.hero-card.c2 {
  top: 91px;
  left: calc(50% - 15px);
  transform: rotate(15deg) rotateX(17deg);
}
.hero-chip {
  position: absolute;
  width: 100px;
  filter: drop-shadow(4px 10px 7px #0007);
}
.hc1 {
  left: calc(50% - 142px);
  top: 239px;
  width: 112px;
}
.hc2 {
  left: calc(50% - 60px);
  top: 256px;
  transform: rotate(15deg);
}
.hc3 {
  left: calc(50% + 81px);
  top: 234px;
  width: 84px;
}
.game-selection {
  padding: 34px 0 0;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  position: relative;
  overflow: hidden;
  background: #1c3227;
  border: 1px solid #4b634435;
  border-radius: 12px;
  min-width: 0;
  height: 314px;
  padding: 22px 24px;
  transition:
    transform 0.25s,
    border-color 0.25s;
  isolation: isolate;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #aeae7c80;
}
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #abb9a5;
}
.game-card-bottom {
  position: absolute;
  bottom: 23px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-card h2 {
  font: 26px var(--serif);
  color: #eeebdf;
  letter-spacing: -0.5px;
}
.game-card p {
  font-size: 11px;
  color: #aab79f;
  margin-top: 8px;
}
.round-arrow {
  width: 35px;
  height: 35px;
  border: 1px solid #b9b6a24d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d7c69d;
}
.round-arrow svg {
  width: 17px;
}
.game-card-art {
  height: 183px;
  position: relative;
  perspective: 600px;
}
.art-poker img {
  position: absolute;
  width: 81px;
  top: 24px;
  filter: drop-shadow(5px 9px 6px #0006);
}
.art-poker .a1 {
  left: calc(50% - 55px);
  transform: rotate(-14deg);
}
.art-poker .a2 {
  left: calc(50% + 0px);
  top: 32px;
  transform: rotate(12deg);
}
.art-poker .art-chip {
  width: 84px;
  left: calc(50% - 86px);
  top: 100px;
  filter: drop-shadow(0 7px 6px #0008);
}
.baccarat-card {
  background: #273226;
}
.billiards-card {
  background: #19392f;
}
.lobby-ball {
  position: absolute;
  border-radius: 50%;
  box-shadow: 9px 18px 12px #06110c80;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
}
.ball-eight {
  width: 88px;
  height: 88px;
  left: calc(50% - 48px);
  top: 61px;
  color: #242a21;
  background: radial-gradient(circle at 30% 23%, #6f776d 0, #212c22 25%, #080f0a 70%);
  font-size: 25px;
  isolation: isolate;
}
.ball-eight::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 39px;
  border-radius: 50%;
  background: #e8e2d0;
  z-index: -1;
  transform: rotate(16deg);
}
.ball-cue {
  width: 55px;
  height: 55px;
  left: calc(50% + 38px);
  top: 116px;
  background: radial-gradient(circle at 30% 23%, #fffdf0, #e5ddc8 35%, #a9af8e 72%, #465c43);
}
.lobby-cue {
  position: absolute;
  top: 112px;
  left: 0;
  width: 98%;
  height: 7px;
  background: linear-gradient(90deg, #263027 0 42%, #c4a277 43% 95%, #b7bda1 96%);
  transform: rotate(-26deg);
  transform-origin: right center;
  z-index: -1;
  box-shadow: 0 5px 8px #0006;
}
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #19271d;
  border: 1px solid #87946c20;
  padding: 4px;
  border-radius: 7px;
}
.mode-switch button {
  min-height: 36px;
  padding: 7px 18px;
  color: #a5b096;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.mode-switch button.selected {
  background: #52614546;
  color: #ead5a8;
}
.online-panel {
  border-radius: 10px;
  background: #1b2b207a;
  padding: 10px 16px;
  margin: 6px 0 10px;
}
.online-status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 44px;
}
.online-status-row strong {
  font-size: 12px;
  font-weight: 500;
  margin-right: auto;
}
.online-options {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.online-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.online-name input {
  width: 160px;
}
.online-options form {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.online-options form input {
  width: 145px;
  font-variant-numeric: tabular-nums;
}
.online-status-row .text-button {
  font-variant-numeric: tabular-nums;
}
.table-chat {
  max-width: 850px;
  margin: 16px auto;
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.table-chat summary {
  cursor: pointer;
  padding: 10px 0;
}
.table-chat form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.table-chat input {
  flex: 1;
  min-width: 0;
}
#chat-messages {
  max-height: 180px;
  overflow: auto;
  line-height: 1.8;
}
#chat-messages p {
  overflow-wrap: anywhere;
}
#chat-messages b {
  color: var(--gold);
  font-weight: 500;
  margin-right: 10px;
}
@media (max-width: 1050px) {
  .lobby-main {
    padding: 0 40px;
  }
  .game-card {
    padding: 20px;
    height: 290px;
  }
  .game-card-bottom {
    left: 20px;
    right: 20px;
  }
  .game-card h2 {
    font-size: 23px;
  }
  .game-card p {
    font-size: 10px;
  }
  .lobby-intro {
    grid-template-columns: 1fr 1fr;
  }
  .hero-still {
    transform: scale(0.88);
  }
}
@media (max-width: 760px) {
  .game-main {
    padding: 0 20px 20px;
  }
  .table-toolbar {
    padding-top: 16px;
  }
  .table-tools {
    gap: 12px;
    font-size: 11px;
  }
  .table-tools .button-quiet {
    padding: 8px 12px;
  }
  .lobby-main {
    padding: 0 24px;
  }
  .lobby-intro {
    min-height: 330px;
    gap: 0;
    padding: 16px 0;
  }
  .lobby-intro h1 {
    font-size: 34px;
    letter-spacing: -2px;
  }
  .hero-still {
    height: 310px;
    transform: scale(0.72);
    margin-left: -25px;
    margin-right: -40px;
  }
  .game-cards {
    gap: 12px;
  }
  .game-card {
    height: 270px;
    padding: 16px;
  }
  .game-card-bottom {
    left: 16px;
    right: 16px;
    bottom: 17px;
  }
  .game-card h2 {
    font-size: 20px;
  }
  .game-card p {
    max-width: 140px;
    line-height: 1.6;
  }
  .round-arrow {
    display: none;
  }
  .game-card-meta {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .art-poker img {
    width: 65px;
    top: 25px;
  }
  .art-poker .a2 {
    top: 35px;
  }
  .art-poker .art-chip {
    top: 100px;
    width: 66px;
  }
  .game-card-art {
    transform: scale(0.85);
    margin: 0 -15px;
  }
  .online-options .button-primary,
  .online-options .button-quiet {
    flex: 1;
  }
  .online-options form {
    width: 100%;
    margin-left: 0;
  }
  .online-options form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .online-name {
    flex: 1;
  }
  .online-name input {
    width: 100%;
  }
  .online-options form button {
    flex: 0;
  }
  .online-status-row {
    gap: 8px;
  }
  .online-status-row .button-quiet {
    padding: 7px 12px;
  }
  .online-status-row .text-button {
    font-size: 11px;
  }
  .online-panel {
    padding: 8px 12px;
  }
}
@media (max-width: 520px) {
  .game-main {
    padding: 0 16px 16px;
  }
  .table-heading h1 {
    font-size: 23px;
  }
  .table-tools {
    gap: 8px;
  }
  .table-tools .text-button {
    font-size: 11px;
  }
  .table-toolbar .eyebrow {
    font-size: 7px;
  }
  .lobby-intro {
    min-height: 260px;
    grid-template-columns: 1fr 0.75fr;
  }
  .lobby-intro h1 {
    font-size: 31px;
  }
  .lobby-intro .eyebrow {
    font-size: 8px;
  }
  .lobby-intro .intro-copy {
    font-size: 11px;
  }
  .lobby-intro .text-button {
    font-size: 11px;
  }
  .hero-still {
    transform: scale(0.55);
    transform-origin: 50% 50%;
    margin-left: -60px;
    margin-right: -40px;
    height: 310px;
  }
  .lobby-main {
    padding: 0 20px;
    overflow: hidden;
  }
  .game-selection {
    padding-top: 8px;
  }
  .game-cards {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .game-card {
    height: 171px;
    padding: 18px 22px;
  }
  .game-card-meta {
    justify-content: start;
    gap: 17px;
  }
  .game-card-art {
    position: absolute;
    width: 190px;
    right: -5px;
    top: 4px;
    transform: scale(0.78);
    height: 150px;
  }
  .game-card-bottom {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }
  .game-card h2 {
    font-size: 25px;
  }
  .game-card p {
    font-size: 11px;
    max-width: 190px;
  }
  .game-card-bottom > div {
    max-width: 60%;
  }
  .game-card-bottom .round-arrow {
    display: none;
  }
  .lobby-footer {
    padding: 27px 0;
    font-size: 10px;
  }
  .club-dialog {
    padding: 25px;
  }
  .online-status-row strong {
    flex-basis: 100%;
  }
  .mode-switch button {
    min-height: 40px;
    padding: 7px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
