:root {
  color-scheme: dark;
  --paper: oklch(95% 0.022 87);
  --ink: oklch(95% 0.022 87);
  --muted: oklch(70% 0.023 163);
  --night: oklch(22% 0.028 220);
  --panel: oklch(27% 0.029 200);
  --line: oklch(40% 0.027 180);
  --green: oklch(70% 0.14 156);
  --green-light: oklch(35% 0.065 160);
  --coral: oklch(67% 0.17 29);
  --blue: oklch(70% 0.12 232);
  --gold: oklch(83% 0.15 84);
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --display: "Avenir Next", "Arial Black", "Segoe UI", sans-serif;
  --serif: Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--night);
  background-image: radial-gradient(
    ellipse at 39% 43%,
    #294d48 0,
    #182d32 44%,
    #101c27 82%
  );
  background-attachment: fixed;
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
a {
  color: inherit;
}
svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  padding: 12px;
  background: var(--night);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.room-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.room-atmosphere span {
  position: absolute;
  font: 230px var(--serif);
  color: #b9d8c006;
  transform: rotate(-20deg);
  top: 38%;
  left: -55px;
}
.room-atmosphere span:nth-child(2) {
  left: auto;
  right: -45px;
  top: 14%;
  transform: rotate(15deg);
}
.room-atmosphere span:nth-child(3) {
  left: auto;
  right: 3%;
  top: 72%;
  font-size: 150px;
}
.topbar {
  height: 88px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c5decb12;
  background: #101d27b0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand > span:last-child {
  font: 900 29px/0.9 var(--display);
  font-style: italic;
  letter-spacing: -1.5px;
}
.brand-second {
  color: var(--gold);
  margin-left: 5px;
}
.brand small {
  display: block;
  font: 700 6.5px var(--sans);
  letter-spacing: 2.45px;
  margin-top: 10px;
  color: #9cafa9;
}
.brand-mark {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 3px;
  padding: 9px;
  width: 49px;
  height: 49px;
  background: #e8b943;
  border: 1px solid #ffe39c;
  border-radius: 12px;
  transform: rotate(-9deg);
  box-shadow:
    0 4px 0 #916922,
    0 7px 17px #06121877,
    inset 0 1px 0 #ffe6a8;
}
.brand-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c3932;
  box-shadow: 0 1px 0 #f9e2a4;
}
.brand-mark i:nth-child(2) {
  grid-column: 3;
}
.brand-mark i:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.brand-mark i:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}
.brand-mark i:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}
.table-location {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #7e9d8a2b;
  border-radius: 6px;
  color: #a9bcb2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px #5dde9c44;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-button {
  width: 37px;
  height: 37px;
  border: 1px solid #58736b50;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1e3037;
  box-shadow: 0 2px 0 #09151c;
  color: #b3c5bc;
  position: relative;
}
.icon-button:hover {
  background: #2d4449;
  transform: translateY(-2px);
  color: var(--paper);
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.rules-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  padding: 8px 14px 8px 0;
  color: #becbc0;
}
.rules-button svg {
  width: 16px;
  height: 16px;
}
.sound-light {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #62736c;
}
.sound-light.on {
  background: var(--gold);
}
.profile-button {
  width: 37px;
  height: 37px;
  margin-left: 8px;
  border-radius: 12px;
  border: 1px solid #659c82;
  background: #315c4d;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 0 #0b2019;
}
.workspace {
  max-width: 1000px;
  margin: auto;
  padding: 24px 28px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b9b89c;
  margin-bottom: 5px;
}
h1 {
  font: 900 31px/1.16 var(--display);
  font-style: italic;
  letter-spacing: -1px;
  margin: 0;
  color: #f1edda;
}
.page-heading p {
  color: #9cafa5;
  margin: 7px 0 0;
  font-size: 11px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #79561e;
}
.button svg {
  width: 17px;
  height: 17px;
}
.button-primary {
  background: linear-gradient(#f5d16e, #e9b748);
  color: #2a3027;
  border: 1px solid #ffe49a;
  box-shadow:
    0 4px 0 #97702a,
    0 7px 20px #0a15183d,
    inset 0 1px 0 #ffecb5;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.button-primary:hover:not(:disabled) {
  background: linear-gradient(#ffe18a, #f1c359);
  box-shadow:
    0 6px 0 #97702a,
    0 9px 24px #10181155;
}
.button-outline {
  background: #233b3c;
  border: 1px solid #6e8b7159;
  box-shadow: 0 3px 0 #101e24;
  color: #dfdfc5;
}
.button-outline:hover:not(:disabled) {
  background: #2d4945;
}
.button-soft {
  background: #2b5043;
  color: #a4e7bd;
  border: 1px solid #587b5a;
  box-shadow: 0 3px 0 #162d28;
}
.button-full {
  width: 100%;
}
.button .push {
  margin-left: auto;
}
.invite-top {
  font-size: 10px;
  min-height: 38px;
  padding: 9px 13px;
  white-space: nowrap;
}
.invite-top > span:last-child {
  margin-left: 11px;
}
.table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 40px;
  align-items: start;
}
.play-area {
  min-width: 0;
  position: relative;
}
.table-players {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 49px;
  margin: 0 5px 18px;
}
.player {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  min-width: 0;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #62bb8c, #387653);
  color: #edffe9;
  border: 2px solid #81d19e;
  outline: 3px solid #122c27;
  box-shadow:
    0 5px 0 #0b211d,
    0 7px 13px #09161855,
    inset 0 2px 0 #bcf1bd66;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
}
.avatar.team-1 {
  background: linear-gradient(145deg, #ed9674, #bd5147);
  border-color: #efae93;
  outline-color: #3e2c2d;
}
.avatar.team-2 {
  background: linear-gradient(145deg, #7fbbd8, #397398);
  border-color: #a5d7e7;
  outline-color: #18323c;
}
.avatar svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8px;
}
.avatar.thinking {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.avatar.thinking:after {
  content: "•••";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 5px;
  font: 900 10px/13px var(--sans);
  letter-spacing: 1px;
  color: #273b2d;
  background: var(--gold);
  border: 2px solid #263b31;
  border-radius: 8px;
  animation: thinking 1.5s ease-in-out infinite;
}
.avatar.offline {
  opacity: 0.45;
}
.player-name {
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 135px;
}
.player-name small {
  font-size: 9px;
  font-weight: 500;
  color: #a2b6a8;
}
.player-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #98b2a3;
  margin-top: 3px;
}
.player-subtitle .status-dot {
  width: 4px;
  height: 4px;
}
.turn-badge {
  color: #e7cf8c;
  font: 800 9px var(--sans);
  letter-spacing: 1.4px;
  text-align: center;
  padding: 9px 13px;
  border-radius: 20px;
  background: #213c33;
  border: 1px solid #8e8e4f4d;
  white-space: nowrap;
}
.turn-badge.your-turn {
  background: #eec45d;
  color: #273f30;
  box-shadow:
    0 3px 0 #8f702e,
    0 0 22px #d2b65716;
  border-color: #ffdc83;
}
.table-players.many {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 17px;
}
.many .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
}
.many .avatar svg {
  width: 22px;
  height: 22px;
}
.many .player-name {
  font-size: 10px;
  max-width: 100px;
}
.many .player-subtitle {
  font-size: 8px;
}
.board-wrap {
  position: relative;
  padding: 0 19px;
  border: 2px solid #a38f57;
  border-radius: 20px;
  background-color: #224d3f;
  background-image:
    radial-gradient(ellipse at 50% 30%, #39705a66, transparent 80%),
    repeating-linear-gradient(
      40deg,
      #eaf4b903 0px,
      #eaf4b903 1px,
      transparent 1px,
      transparent 3px
    );
  box-shadow:
    0 0 0 5px #2c382c,
    0 0 0 6px #706c4359,
    0 9px 0 5px #101f1a,
    0 12px 0 6px #06150f88,
    0 25px 48px #020d1477,
    inset 0 2px 0 #bacc8b24;
  isolation: isolate;
}
.board-wrap:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 7px;
  border: 1px solid #bdd29d24;
  border-radius: 13px;
  z-index: -1;
}
.board-topline,
.board-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b4bd8a;
  font-weight: 800;
  font-size: 6px;
  letter-spacing: 1.8px;
  height: 29px;
  padding: 0 2px;
}
.board-topline > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7px;
}
.board-topline i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dfce8c;
}
.board-stars {
  font-size: 10px;
  letter-spacing: 3px;
  color: #e6c777;
}
.board-bottomline {
  height: 30px;
  font-size: 5px;
  color: #9eaf84;
}
.table-emblem {
  font: 900 italic 9px var(--display);
  letter-spacing: 2px;
  opacity: 0.7;
}
.board-surface {
  position: relative;
}
.board {
  display: grid;
  grid-template: repeat(10, minmax(0, 1fr)) / repeat(10, minmax(0, 1fr));
  gap: 5px;
  aspect-ratio: 1.24;
}
.board-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid #fcf8dc;
  background: linear-gradient(135deg, #fcf8e9, #e8e8ce);
  border-radius: 4px;
  box-shadow:
    0 2px 0 #acb397,
    0 3px 2px #102c2677;
  isolation: isolate;
  cursor: default;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s,
    box-shadow 0.2s;
}
.red {
  color: #c34b43;
}
.black {
  color: #294343;
}
.board-cell .cell-rank {
  font: 700 11px/1 var(--serif);
  position: absolute;
  left: 4px;
  top: 3px;
}
.board-cell .suit {
  width: 20px;
  height: 23px;
  fill: currentColor;
  margin: 5px 0 0 6px;
}
.board-cell .cell-bottom {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font: 700 7px/1 var(--serif);
  transform: rotate(180deg);
  opacity: 0.6;
}
.board-cell.corner {
  background: linear-gradient(135deg, #edd794, #b8b074);
  border-color: #e7cf87;
  color: #406442;
  box-shadow:
    0 2px 0 #777e4f,
    inset 0 0 0 3px #d7c58a,
    inset 0 0 0 4px #5f764166;
}
.corner-art {
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 1px 0 #fcdf9b;
}
.corner-label {
  position: absolute;
  bottom: 3px;
  font-size: 4px;
  letter-spacing: 1.5px;
  font-weight: 800;
}
.board.has-selection .board-cell:not(.legal):not(.corner):not(.last-cell) {
  opacity: 0.51;
}
.board-cell.legal {
  background: #fff1b7;
  cursor: pointer;
  opacity: 1;
  z-index: 4;
  box-shadow:
    0 0 0 2px #f4ce65,
    0 3px 0 #b89135,
    0 0 20px #f2d36d66;
  transform: translateY(-1px);
}
.board-cell.legal:after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #6f651f;
  background: #e9cd7744;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
}
.board-cell.legal:hover {
  transform: translateY(-3px) scale(1.07);
  z-index: 6;
}
.board-cell.legal:hover:after {
  opacity: 1;
}
.board-cell.legal.removable {
  background: #ffd4bf;
  box-shadow:
    0 0 0 2px #f19273,
    0 0 15px #e86e4b55;
}
.board-cell.legal.removable:after {
  content: "×";
  color: #923d33;
}
.chip {
  --chip: #38a875;
  --rim: #92e7b0;
  --edge: #126745;
  position: absolute;
  width: 77%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 10deg,
    var(--rim) 0deg 13deg,
    var(--chip) 13deg 45deg
  );
  border: 1px solid var(--rim);
  box-shadow:
    0 3px 0 var(--edge),
    0 5px 5px #10251f88,
    inset 0 0 0 2px #d8ffd526;
  z-index: 3;
  pointer-events: none;
}
.chip:before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff16, transparent), var(--chip);
  border: 1px solid var(--rim);
  box-shadow:
    inset 0 1px 3px #1439244d,
    0 0 0 1px #14392422;
}
.chip:after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 20px var(--sans);
  color: #e8ffe4d9;
  text-shadow: 0 2px 0 #14442b55;
}
.chip.team-1 {
  --chip: #e76f58;
  --rim: #ffd1ab;
  --edge: #a33b31;
}
.chip.team-2 {
  --chip: #4e9bc7;
  --rim: #b2e0f0;
  --edge: #285e8c;
}
.chip.protected {
  outline: 2px solid #f8d45f;
  outline-offset: 1px;
}
.chip.protected:after {
  color: #ffe499;
  content: "★";
}
.chip.drop {
  animation: chip-drop 0.52s var(--ease);
}
.board-cell.last-cell { z-index: 5; }
.last-play-marker {
  position: absolute; width: 100%; height: 100%; inset: 0;
  display: grid; place-items: center; z-index: 7; pointer-events: none;
}
.last-play-marker svg { width: 100%; height: 100%; overflow: visible; }
.last-play-brackets {
  animation: last-move-pulse 3.8s cubic-bezier(.37, 0, .63, 1) infinite;
  transform-origin: center;
}
.last-play-brackets path:last-child {
  filter: drop-shadow(0 0 1px #fff0ba99) drop-shadow(0 0 3px #e9b94c80);
}
.sequence-lines {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.sequence-lines line {
  stroke: #fce39f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.8;
  filter: drop-shadow(0 0 3px #edc353);
}
.hand-area {
  margin: 25px -2px 0;
  padding: 0 14px 12px;
  position: relative;
}
.hand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #ded7b5;
}
.hand-heading > span:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}
.small-count {
  display: inline-grid;
  place-items: center;
  background: #3e5c44;
  border: 1px solid #6b85524d;
  border-radius: 4px;
  min-width: 17px;
  height: 17px;
  font-size: 8px;
  color: #cedcaf;
  letter-spacing: 0;
}
.hand-hint {
  font-size: 10px;
  color: #9eb3a4;
  font-weight: 500;
  letter-spacing: 0;
}
.hand-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 127px;
  gap: 6px;
  padding: 23px 0 8px;
  perspective: 800px;
}
.playing-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 101px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #fbf2cf;
  background: linear-gradient(145deg, #fcf8e9, #e8e7d3);
  box-shadow:
    0 2px 0 #bcc2a8,
    0 4px 0 #949f86,
    0 7px 15px #071a1c66,
    inset 0 0 0 3px #f4efd9;
  transform: rotate(var(--angle, 0deg));
  transform-origin: 50% 140%;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.playing-card .card-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  font: 700 18px/1 var(--serif);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}
.playing-card .card-rank .suit {
  width: 9px;
  height: 10px;
}
.playing-card > .suit {
  width: 29px;
  height: 34px;
  margin-top: 7px;
}
.playing-card .suit {
  fill: currentColor;
}
.playing-card .card-bottom {
  position: absolute;
  bottom: 6px;
  right: 6px;
  transform: rotate(180deg);
  font: 700 17px/1 var(--serif);
}
.playing-card .jack-art {
  width: 35px;
  height: 45px;
  margin-top: 5px;
}
.jack-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  font-size: 6px;
  letter-spacing: 1.3px;
  font-weight: 900;
}
.playing-card:disabled {
  opacity: 1;
  cursor: default;
}
.hand-cards .playing-card:hover:not(:disabled) {
  transform: translateY(-13px) rotate(0deg) scale(1.04);
  z-index: 3;
  box-shadow:
    0 4px 0 #abb793,
    0 14px 22px #071a1c66;
}
.playing-card.selected {
  transform: translateY(-16px) rotate(0deg) scale(1.04);
  outline: 3px solid #f3ce6c;
  outline-offset: 3px;
  box-shadow:
    0 4px 0 #b6b68d,
    0 10px 30px #efc25930;
  z-index: 4;
}
.hand-note {
  font-size: 10px;
  color: #c7d6bc;
  min-height: 18px;
  margin: 12px 0 0;
  text-align: center;
}
.text-link {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--gold);
  font-size: inherit;
}
.table-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8ca898;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 3px 10px 0;
}
.table-caption svg {
  width: 12px;
  height: 12px;
}
.table-caption button {
  font: inherit;
  color: #a3b79f;
  margin-left: auto;
}
.game-panel {
  padding-top: 6px;
}
.welcome-panel,
.lobby-panel,
.score-panel {
  padding: 23px;
  border-radius: 15px;
  border: 1px solid #79957a55;
  background: linear-gradient(145deg, #2e4643, #213637);
  box-shadow:
    inset 0 1px 0 #c7d2a718,
    0 5px 0 #11272a,
    0 13px 24px #091b214d;
  position: relative;
}
.welcome-panel:before,
.lobby-panel:before,
.score-panel:before {
  content: "✦";
  position: absolute;
  right: 17px;
  top: 13px;
  font-size: 13px;
  color: #d5b668;
}
.panel-tag {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #e3c77e;
  font-size: 7px;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 12px;
}
.panel-tag .status-dot {
  background: var(--gold);
  width: 5px;
  height: 5px;
}
.panel-title {
  margin: 0 0 8px;
  font: 900 italic 37px/1.03 var(--display);
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #f6efd8;
}
.panel-description {
  color: #b5c2ae;
  font-size: 11px;
  line-height: 1.65;
  margin: 12px 0 20px;
}
.mode-tabs {
  display: flex;
  gap: 5px;
  background: #142b2b;
  border: 1px solid #526e5a;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}
.mode-tab {
  flex: 1;
  border-radius: 5px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  color: #9bb5a3;
}
.mode-tab svg {
  width: 14px;
  height: 14px;
}
.mode-tab.active {
  color: #f7e5ae;
  background: #425846;
  box-shadow:
    0 2px 0 #101e1a,
    inset 0 1px 0 #9aab6e33;
}
.field {
  display: block;
  font-size: 9px;
  font-weight: 750;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: #c8d0bb;
}
.field input,
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  background: #172e2e;
  border: 1px solid #59765c;
  border-radius: 7px;
  padding: 11px 12px;
  margin-top: 7px;
  color: #eeefd9;
  font-size: 11px;
  font-weight: 500;
  box-shadow: inset 0 2px 3px #061b2144;
}
.field input::placeholder {
  color: #819e8c;
}
.field input:focus,
.field select:focus {
  border-color: var(--gold);
}
.colors-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #c9d0bd;
  margin: 4px 0 11px;
}
.colors-label > span:last-child {
  color: #94b099;
  font-size: 9px;
  font-weight: 500;
}
.color-options {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding-left: 3px;
}
.color-option {
  width: 31px;
  height: 31px;
  border: 2px solid #87d7a4;
  border-radius: 50%;
  background: #3ca16d;
  box-shadow:
    0 3px 0 #1c533e,
    inset 0 0 0 3px #339262,
    inset 0 0 0 4px #bde0ae55;
  font-size: 14px;
  font-weight: 900;
  color: #f7f6d8;
}
.color-option[data-team="1"] {
  background: #d9785e;
  border-color: #f6b18d;
  box-shadow:
    0 3px 0 #844339,
    inset 0 0 0 3px #cf684e,
    inset 0 0 0 4px #f2c9a455;
}
.color-option[data-team="2"] {
  background: #559bc2;
  border-color: #a4d0e3;
  box-shadow:
    0 3px 0 #2e617d,
    inset 0 0 0 3px #4388ac,
    inset 0 0 0 4px #c0e0ed55;
}
.color-option:not(.selected) {
  color: transparent;
}
.color-option.selected {
  outline: 2px solid #ead286;
  outline-offset: 4px;
}
.color-option:hover {
  transform: translateY(-3px);
}
.panel-fineprint {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  font-size: 8px;
  color: #a7b49b;
  margin: 16px 0 0;
  text-align: center;
}
.panel-fineprint svg {
  width: 11px;
  height: 11px;
}
.or-divider {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #92a88f;
  margin: 18px 0 13px;
}
.or-divider:before,
.or-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #6a815247;
}
.join-row {
  display: flex;
  gap: 9px;
}
.join-row input {
  min-width: 0;
  width: 100%;
  background: #172e2e;
  border: 1px solid #59765c;
  border-radius: 6px;
  color: #f4e9bc;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.join-row .button {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 10px;
}
.how-preview {
  padding: 24px 10px 20px;
  text-align: center;
}
.connection-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin: 4px 0 18px;
}
.connection-art:before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #aeab59;
  opacity: 0.5;
}
.mini-chip {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #8bcf9a;
  border-radius: 50%;
  background: #3c8d5f;
  color: #c9f3b3;
  box-shadow:
    0 3px 0 #1b543b,
    inset 0 0 0 3px #3b885c,
    inset 0 0 0 4px #b3d49188;
  position: relative;
  font-size: 16px;
}
.mini-chip:last-child {
  background: #b5a14d;
  border-color: #eed581;
  color: #fff0ad;
  box-shadow:
    0 3px 0 #706532,
    inset 0 0 0 3px #a99448,
    inset 0 0 0 4px #e8d68b;
}
.how-preview h3 {
  font: 900 18px var(--display);
  color: #e4dec0;
  text-transform: uppercase;
  letter-spacing: -0.4px;
  margin: 0 0 5px;
}
.how-preview p {
  font-size: 10px;
  line-height: 1.7;
  color: #a2b5a1;
  margin: 0;
}
.how-preview button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 750;
  color: #ddc784;
  margin-top: 10px;
  padding: 5px;
}
.how-preview button svg {
  width: 12px;
  height: 12px;
}
.jack-tip {
  display: flex;
  align-items: center;
  gap: 17px;
  border-top: 1px solid #6b805f3b;
  padding: 21px 7px 0;
  margin: 0 7px;
}
.jack-tip .playing-card {
  width: 44px;
  height: 64px;
  transform: rotate(-12deg);
  pointer-events: none;
}
.jack-tip .card-rank {
  font-size: 12px;
  top: 4px;
  left: 4px;
}
.jack-tip .card-rank .suit {
  width: 7px;
  height: 8px;
}
.jack-tip .card-bottom {
  font-size: 11px;
  right: 4px;
  bottom: 4px;
}
.jack-tip .jack-art {
  width: 24px;
  height: 32px;
  margin-top: 2px;
}
.jack-tip .jack-label {
  font-size: 4px;
  bottom: 12px;
}
.tip-eyebrow {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #d9bf76;
  margin-bottom: 7px;
}
.jack-tip p {
  font-size: 10px;
  line-height: 1.65;
  color: #9fb19c;
  margin: 0;
}
.jack-tip p strong {
  color: #e3ddbf;
  font-weight: 700;
}
.panel-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 8px;
  color: #809c89;
  margin-top: 26px;
}
.panel-bottom svg {
  width: 12px;
  height: 12px;
}
.setup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.setup-fields .field {
  margin-bottom: 9px;
}
.setup-fields select {
  font-size: 10px;
  padding: 8px 7px;
}
.room-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-block: 1px solid #6d825752;
  margin: 16px 0 20px;
}
.room-code {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--gold);
}
.room-code-row small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #99af94;
}
.room-code-row button {
  font-size: 10px;
  color: #d5c385;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lobby-roster {
  margin: 15px 0;
}
.lobby-seat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid #6e855c40;
  font-size: 11px;
}
.team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #66c490;
  box-shadow: 0 0 0 2px #66c49017;
  flex-shrink: 0;
}
.team-dot.team-1 {
  background: #eb8b70;
  box-shadow: 0 0 0 2px #eb8b7017;
}
.team-dot.team-2 {
  background: #79bbd9;
  box-shadow: 0 0 0 2px #79bbd917;
}
.seat-status {
  margin-left: auto;
  font-size: 8px;
  color: #94a58e;
}
.seat-status.ready {
  color: #a0d49b;
}
.lobby-actions {
  display: grid;
  gap: 11px;
}
.lobby-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.tiny-button {
  font-size: 9px;
  color: #a1b393;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.score-panel {
  padding: 22px;
}
.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.score-header h2 {
  font: 900 italic 25px var(--display);
  letter-spacing: -0.8px;
  margin: 0;
  text-transform: uppercase;
}
.round-label {
  border: 1px solid #6e815150;
  border-radius: 4px;
  padding: 5px;
  font-size: 7px;
  font-weight: 800;
  color: #c8c494;
  white-space: nowrap;
}
.score-description {
  font-size: 10px;
  color: #a5b69e;
  margin: 5px 0 14px;
}
.team-score {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid #77895d30;
  font-size: 11px;
  font-weight: 650;
}
.sequence-pips {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.sequence-pip {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  transform: rotate(45deg);
  border: 1px solid #6f825b;
  background: #142c2b;
  box-shadow: inset 0 2px 2px #091d1a55;
}
.sequence-pip.earned {
  background: #e9c565;
  border-color: #ffe49c;
  box-shadow:
    0 0 10px #dfc76440,
    inset 0 0 0 3px #b39a50;
}
.turn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  background: #142e2a;
  border: 1px solid #65885b;
  border-radius: 9px;
  padding: 13px 11px;
}
.turn-card h3 {
  font-size: 12px;
  font-weight: 850;
  color: #e9d69b;
  margin: 0;
}
.turn-card p {
  font-size: 9px;
  color: #8eab91;
  margin: 4px 0 0;
}
.timer-ring {
  height: 41px;
  width: 41px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--gold) var(--timer-progress, 100%),
    #35533b 0
  );
  box-shadow: 0 0 14px #d4c3650a;
}
.timer-ring:before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #16332b;
  border-radius: 50%;
}
.timer-ring span {
  position: relative;
  font-size: 12px;
  font-weight: 900;
  color: #eeda94;
}
.timer-ring.urgent {
  --gold: #f58e6b;
}
.deck-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 33px;
  padding: 23px 0 18px;
}
.deck-stack {
  text-align: center;
}
.deck-stack .playing-card {
  width: 44px;
  height: 62px;
  margin: 0 auto 10px;
  pointer-events: none;
}
.card-back {
  border: 3px solid #d9d6b3;
  background-color: #2d6862;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      #b1cab52a 4px,
      #b1cab52a 5px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 4px,
      #b1cab52a 4px,
      #b1cab52a 5px
    );
  box-shadow:
    0 3px 0 #a1ad8d,
    0 5px 0 #44694d,
    0 8px 12px #0e252b88;
}
.card-back:after {
  content: "✦";
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  background: #2e5d54;
  border: 1px solid #b9d2a8;
  border-radius: 50%;
  color: #c7d7a2;
  font-size: 23px;
}
.deck-stack .card-rank {
  font-size: 12px;
  left: 4px;
  top: 4px;
}
.deck-stack .card-rank .suit {
  width: 6px;
  height: 7px;
}
.deck-stack .playing-card > .suit {
  width: 18px;
  height: 21px;
}
.deck-stack .card-bottom {
  font-size: 10px;
  right: 4px;
  bottom: 4px;
}
.deck-stack .jack-art {
  width: 24px;
  height: 32px;
}
.deck-stack .jack-label {
  bottom: 11px;
  font-size: 4px;
}
.deck-stack label {
  display: block;
  font-size: 8px;
  color: #9eb197;
}
.empty-discard {
  width: 44px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px dashed #73916c;
  border-radius: 6px;
  color: #8fa578;
  font-size: 25px;
}
.deck-arrow {
  color: #8f9f6e;
  padding-bottom: 19px;
  font-size: 19px;
}
.social-panel {
  margin-top: 17px;
}
.social-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #7c8e5f3b;
}
.social-tabs button {
  padding: 0 0 11px;
  font-size: 10px;
  color: #8fa88f;
  border-bottom: 2px solid transparent;
}
.social-tabs button.active {
  color: #e0c57b;
  border-color: #e0c57b;
  font-weight: 750;
}
.chat-count {
  font-size: 8px;
  background: #415c3e;
  color: #d6daa2;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
}
.feed {
  height: 128px;
  overflow: auto;
  padding: 5px 0;
  font-size: 10px;
  scrollbar-width: thin;
  scrollbar-color: #516c4d transparent;
}
.feed-empty {
  padding: 36px 12px;
  text-align: center;
  color: #819e8a;
  font-size: 11px;
}
.feed-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid #66805024;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #c9d1b9;
}
.feed-item .team-dot {
  width: 5px;
  height: 5px;
}
.feed-item time {
  font-size: 8px;
  color: #78917f;
  margin-left: auto;
  white-space: nowrap;
}
.feed-item strong {
  color: #f2db98;
  font-weight: 700;
}
.chat-form {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #65805966;
  border-radius: 7px;
  background: #152d2e;
  padding-right: 8px;
  margin-top: 10px;
}
.chat-form input {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  font-size: 10px;
  color: var(--paper);
  border: 0;
  background: none;
}
.chat-form input::placeholder {
  color: #819e8b;
}
.chat-form button {
  color: #d9cb85;
  padding: 4px;
}
.chat-form svg {
  width: 15px;
  height: 15px;
}
.reactions {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 14px 0;
}
.reactions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #5c795243;
  background: #223c37;
  border-radius: 8px;
  font-size: 19px;
  box-shadow: 0 2px 0 #132c28;
}
.reactions button:hover {
  transform: translateY(-4px) rotate(-7deg);
  background: #335442;
}
.room-details {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #72905e33;
  font-size: 8px;
  color: #8ba286;
}
.room-details button {
  font-size: 8px;
  color: #c4bf8b;
  padding: 0;
}
.reaction-layer {
  position: absolute;
  inset: -20px -10px;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}
.floating-reaction {
  position: absolute;
  bottom: 10%;
  font-size: 39px;
  animation: reaction-float 3.5s var(--ease) forwards;
  text-shadow: 0 4px 10px #06201855;
}
.floating-reaction small {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--paper);
}
.flying-card {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  margin: 0 !important;
  transition:
    transform 0.7s var(--ease),
    opacity 0.7s;
}
.game-announcement {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) rotate(-4deg);
  min-width: 220px;
  max-width: 85%;
  text-align: center;
  padding: 15px 25px;
  border: 2px solid #ffdf89;
  border-radius: 10px;
  background: #e5b747;
  color: #23432f;
  box-shadow:
    0 5px 0 #936e27,
    0 14px 38px #071b1d88;
  z-index: 20;
  pointer-events: none;
  animation: announcement 0.4s var(--ease);
}
.game-announcement strong {
  display: block;
  font: 900 italic 28px var(--display);
  text-transform: uppercase;
  line-height: 1.1;
}
.game-announcement span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
}
.board-overlay {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  background: #0b231ce3;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
  z-index: 25;
}
.result-card {
  position: relative;
  max-width: 360px;
  padding: 28px;
  border: 2px solid #b9a558;
  border-radius: 17px;
  background: #263f33;
  box-shadow:
    0 7px 0 #10231b,
    0 0 80px #e8cf5322;
}
.result-flower {
  color: var(--gold);
  font-size: 58px;
  line-height: 1.2;
  text-shadow: 0 4px 0 #736b2b;
}
.result-card .eyebrow {
  margin-top: 17px;
  color: #dcc985;
  font-size: 7px;
}
.result-card h2 {
  font: 900 italic 34px/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 10px 0 15px;
}
.result-card p {
  font-size: 11px;
  color: #aebf9f;
  margin: 0 0 20px;
}
.result-card .button {
  margin-top: 12px;
}
.confetti-piece {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 7px;
  height: 12px;
  background: var(--confetti-color);
  z-index: 30;
  pointer-events: none;
  animation: confetti 1.7s var(--ease) forwards;
}
.spectator-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: #a2b69e;
  min-height: 112px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #6a8b582b;
  margin-top: 24px;
  padding: 19px 0;
  font-size: 7px;
  color: #78987d;
  letter-spacing: 1px;
}
.page-footer button {
  font: inherit;
  padding: 0;
  color: #91aa8d;
}
.connection-state {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
  font-size: 8px;
}
.connection-state .status-dot {
  height: 4px;
  width: 4px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  color: #f4e9be;
  border: 1px solid #b9a76b;
  background: #263f33;
  padding: 13px 21px;
  border-radius: 10px;
  z-index: 100;
  box-shadow:
    0 4px 0 #101f1c,
    0 10px 30px #081b2277;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s;
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast.error {
  background: #593b33;
  border-color: #da9b78;
}
dialog {
  width: min(510px, calc(100% - 32px));
  max-height: 90dvh;
  border: 1px solid #8e9961;
  border-radius: 17px;
  background: #223b32;
  color: var(--paper);
  padding: 30px;
  box-shadow:
    0 7px 0 #10221d,
    0 30px 100px #071921bb;
}
dialog::backdrop {
  background: #08151bd9;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font: 900 italic 28px/1.1 var(--display);
  letter-spacing: -0.6px;
  margin: 0;
}
.dialog-description {
  color: #afc0a5;
  font-size: 12px;
  line-height: 1.8;
}
.rules-list {
  padding: 0;
  margin: 18px 0 25px;
  list-style: none;
  counter-reset: rule;
}
.rules-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #81925d40;
  color: #adc09f;
  font-size: 11px;
  line-height: 1.8;
  counter-increment: rule;
}
.rules-list li:before {
  content: "0" counter(rule);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.rules-list strong {
  color: #e5deb9;
  font-weight: 750;
}
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid #81925d40;
  font-size: 12px;
}
.preference-row small {
  display: block;
  color: #92ac91;
  font-size: 10px;
  margin-top: 4px;
}
.preference-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.dialog-bottom {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.dialog-bottom .button {
  flex: 1;
}
.copy-link {
  display: flex;
  gap: 9px;
}
.copy-link input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid #7c966a;
  border-radius: 6px;
  background: #142d28;
  color: #d9d7b1;
  font-size: 10px;
}
.large-code {
  text-align: center;
  font-size: 43px;
  letter-spacing: 9px;
  color: var(--gold);
  font-weight: 900;
  margin: 24px 0;
}
.color-symbols .chip:after {
  content: "●";
  font-size: 13px;
}
.color-symbols .chip.team-1:after {
  content: "▲";
}
.color-symbols .chip.team-2:after {
  content: "■";
}
.color-symbols .chip.protected {
  outline-width: 3px;
}
@keyframes chip-drop {
  0% {
    transform: translateY(-65px) scale(1.2);
    opacity: 0;
  }
  60% {
    transform: translateY(0) scale(0.9);
    opacity: 1;
  }
  78% {
    transform: translateY(-5px) scale(1.03);
  }
  100% {
    transform: none;
  }
}
@keyframes thinking {
  50% {
    opacity: 0.5;
  }
}
@keyframes reaction-float {
  0% {
    transform: translateY(0) rotate(-8deg) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-30px) rotate(7deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(-330px) rotate(-8deg) scale(1.1);
    opacity: 0;
  }
}
@keyframes announcement {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) rotate(-4deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }
}
@keyframes confetti {
  from {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  to {
    transform: translate(var(--confetti-x), var(--confetti-y))
      rotate(var(--confetti-rotation));
    opacity: 0;
  }
}
@media (min-width: 1200px) and (max-height: 1050px) {
  .topbar {
    height: 74px;
  }
  .workspace {
    max-width: 950px;
    padding-top: 20px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p {
    margin-top: 5px;
  }
  .table-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 278px;
  }
  .table-players {
    margin-bottom: 17px;
    min-height: 43px;
  }
  .avatar {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .board {
    aspect-ratio: 1.3;
    gap: 5px;
  }
  .board-wrap {
    padding-inline: 16px;
  }
  .board-topline {
    height: 26px;
  }
  .board-bottomline {
    height: 26px;
  }
  .hand-area {
    margin-top: 23px;
  }
  .hand-cards {
    min-height: 110px;
    padding-top: 21px;
    gap: 6px;
  }
  .playing-card {
    width: 61px;
    height: 87px;
  }
  .hand-note {
    margin-top: 9px;
  }
  .welcome-panel {
    padding: 21px;
  }
  .panel-title {
    font-size: 33px;
  }
  .panel-description {
    margin-bottom: 17px;
  }
  .mode-tabs {
    margin-bottom: 18px;
  }
  .page-footer {
    margin-top: 15px;
    padding-block: 14px;
  }
}
@media (max-width: 1199px) {
  .topbar {
    padding-inline: 27px;
    height: 77px;
  }
  .workspace {
    max-width: 1000px;
    padding: 25px 30px 0;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }
  .table-location {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .board-wrap {
    padding-inline: 14px;
    border-radius: 17px;
  }
  .board {
    gap: 4px;
    aspect-ratio: 1.2;
  }
  .board-cell .cell-rank {
    font-size: 10px;
    left: 3px;
    top: 3px;
  }
  .board-cell .suit {
    width: 17px;
    height: 20px;
  }
  .board-cell .cell-bottom {
    font-size: 6px;
  }
  .playing-card {
    width: 61px;
    height: 88px;
  }
  .hand-cards {
    min-height: 112px;
    gap: 5px;
  }
  .hand-hint {
    font-size: 9px;
  }
  .welcome-panel {
    padding: 21px;
  }
  .panel-title {
    font-size: 33px;
  }
  .player-name {
    max-width: 105px;
  }
  .table-players {
    gap: 10px;
  }
  .turn-badge {
    font-size: 8px;
    padding: 8px 10px;
  }
}
@media (max-width: 900px) {
  .workspace {
    padding-inline: 24px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 25px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .brand > span:last-child {
    font-size: 24px;
  }
  .brand small {
    font-size: 5px;
    letter-spacing: 2px;
  }
  .brand-mark {
    width: 43px;
    height: 43px;
    padding: 7px;
  }
  .brand-mark i {
    width: 7px;
    height: 7px;
  }
  .header-actions {
    gap: 7px;
  }
  .rules-button {
    padding-right: 5px;
    font-size: 10px;
  }
  .profile-button {
    margin-left: 0;
  }
  .board-wrap {
    padding-inline: 11px;
  }
  .board {
    gap: 3px;
    aspect-ratio: 1.1;
  }
  .board-cell .suit {
    width: 15px;
    height: 17px;
    margin: 5px 0 0 4px;
  }
  .board-cell .cell-rank {
    font-size: 9px;
    top: 2px;
    left: 2px;
  }
  .board-cell .cell-bottom {
    font-size: 5px;
    bottom: 2px;
    right: 2px;
  }
  .corner-label {
    display: none;
  }
  .corner-art {
    font-size: 23px;
  }
  .chip:after {
    font-size: 15px;
  }
  .board-topline > span:first-child {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .board-topline > span:nth-child(2) {
    font-size: 5px;
    letter-spacing: 0.7px;
  }
  .board-stars {
    letter-spacing: 1px;
    font-size: 8px;
  }
  .board-bottomline {
    font-size: 4px;
    letter-spacing: 1px;
  }
  .table-emblem {
    font-size: 7px;
  }
  .playing-card {
    width: calc((100% - 24px) / 7);
    max-width: 61px;
    height: 80px;
  }
  .hand-cards {
    gap: 4px;
    min-height: 107px;
  }
  .playing-card .card-rank {
    font-size: 15px;
    left: 4px;
    top: 5px;
  }
  .playing-card .card-rank .suit {
    width: 7px;
    height: 8px;
  }
  .playing-card > .suit {
    width: 23px;
    height: 27px;
  }
  .playing-card .card-bottom {
    font-size: 14px;
    right: 4px;
    bottom: 5px;
  }
  .playing-card .jack-art {
    width: 29px;
    height: 36px;
  }
  .jack-label {
    font-size: 5px;
    bottom: 15px;
  }
  .hand-area {
    padding-inline: 0;
  }
  .hand-heading {
    font-size: 8px;
  }
  .hand-hint {
    max-width: 190px;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-name {
    font-size: 11px;
    max-width: 90px;
  }
  .player-subtitle {
    font-size: 8px;
  }
  .avatar {
    width: 35px;
    height: 35px;
    font-size: 17px;
    border-radius: 11px;
  }
  .avatar svg {
    width: 24px;
    height: 24px;
  }
  .table-players {
    gap: 8px;
  }
  .turn-badge {
    padding: 6px 8px;
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .welcome-panel,
  .lobby-panel,
  .score-panel {
    padding: 19px;
  }
  .panel-tag {
    font-size: 6px;
  }
  .panel-title {
    font-size: 30px;
  }
  .panel-description {
    font-size: 10px;
  }
  .score-header h2 {
    font-size: 21px;
  }
  .panel-bottom {
    font-size: 7px;
    gap: 6px;
  }
  .jack-tip {
    gap: 13px;
    margin-inline: 0;
  }
  .jack-tip p {
    font-size: 9px;
  }
  .table-caption {
    font-size: 6px;
    margin-inline: 0;
  }
  .page-footer {
    font-size: 6px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 70px;
    padding-inline: 18px;
  }
  .brand {
    gap: 9px;
  }
  .brand > span:last-child {
    font-size: 22px;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 8px;
    gap: 2px;
  }
  .brand-mark i {
    width: 5px;
    height: 5px;
  }
  .header-actions {
    gap: 6px;
  }
  .rules-button {
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
  }
  .rules-button > span:last-child {
    display: none;
  }
  .icon-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .header-actions [data-action="fullscreen"],
  .profile-button {
    display: none;
  }
  .workspace {
    max-width: 570px;
    padding: 24px 21px 0;
  }
  .page-heading {
    margin-bottom: 23px;
    gap: 10px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -0.9px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 7px;
  }
  .invite-top {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0;
    gap: 0;
    align-self: center;
  }
  .invite-top > span:last-child {
    display: none;
  }
  .invite-top svg {
    width: 18px;
    height: 18px;
  }
  .table-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .play-area,
  .game-panel {
    width: 100%;
  }
  .table-players {
    margin: 0 3px 18px;
    min-height: 44px;
  }
  .player-name {
    max-width: 110px;
    font-size: 11px;
  }
  .avatar {
    width: 37px;
    height: 37px;
  }
  .player {
    gap: 9px;
  }
  .turn-badge {
    font-size: 7px;
    padding: 7px 9px;
  }
  .board {
    gap: 4px;
    aspect-ratio: 1.12;
  }
  .board-wrap {
    padding-inline: 12px;
    border-radius: 15px;
  }
  .board-wrap:before {
    inset: 5px;
    border-radius: 9px;
  }
  .board-topline {
    height: 26px;
  }
  .board-bottomline {
    height: 25px;
  }
  .board-cell {
    border-radius: 3px;
  }
  .board-cell .cell-rank {
    font-size: 9px;
    left: 2px;
    top: 2px;
  }
  .board-cell .suit {
    width: 15px;
    height: 17px;
    margin-top: 5px;
  }
  .board-cell .cell-bottom {
    font-size: 5px;
  }
  .corner-art {
    font-size: 24px;
  }
  .chip:after {
    font-size: 15px;
  }
  .chip {
    width: 79%;
  }
  .hand-area {
    margin-top: 25px;
    padding: 0 0 10px;
  }
  .hand-cards {
    min-height: 108px;
    gap: 5px;
    padding-top: 24px;
  }
  .playing-card {
    width: calc((100% - 30px) / 7);
    height: 82px;
    max-width: 67px;
  }
  .playing-card .card-rank {
    font-size: 16px;
  }
  .playing-card .card-bottom {
    font-size: 14px;
  }
  .hand-heading {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .hand-hint {
    max-width: 200px;
    font-size: 9px;
  }
  .hand-note {
    font-size: 10px;
    line-height: 1.5;
    margin-top: 13px;
  }
  .table-caption {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .game-panel {
    max-width: 420px;
    margin: 0 auto;
  }
  .welcome-panel,
  .lobby-panel,
  .score-panel {
    padding: 25px;
    border-radius: 15px;
  }
  .panel-tag {
    font-size: 8px;
    margin-bottom: 14px;
  }
  .panel-title {
    font-size: 39px;
  }
  .panel-description {
    font-size: 12px;
  }
  .mode-tab {
    font-size: 12px;
    padding: 10px 5px;
  }
  .field {
    font-size: 10px;
  }
  .field input,
  .field select {
    font-size: 12px;
    padding: 12px;
  }
  .field input {
    font-size: 16px;
  }
  .color-option {
    width: 33px;
    height: 33px;
  }
  .colors-label {
    font-size: 10px;
  }
  .button {
    min-height: 47px;
    font-size: 12px;
  }
  .panel-fineprint {
    font-size: 9px;
  }
  .how-preview {
    padding-block: 28px;
  }
  .how-preview h3 {
    font-size: 22px;
  }
  .how-preview p {
    font-size: 12px;
  }
  .how-preview button {
    font-size: 10px;
  }
  .jack-tip {
    max-width: 280px;
    margin: 0 auto;
    gap: 22px;
  }
  .jack-tip p {
    font-size: 11px;
  }
  .tip-eyebrow {
    font-size: 8px;
  }
  .panel-bottom {
    font-size: 9px;
    margin-top: 29px;
  }
  .score-header h2 {
    font-size: 27px;
  }
  .team-score {
    font-size: 12px;
  }
  .turn-card {
    padding: 15px;
  }
  .turn-card h3 {
    font-size: 13px;
  }
  .turn-card p {
    font-size: 10px;
  }
  .deck-area {
    padding-block: 26px;
    gap: 42px;
  }
  .deck-stack label {
    font-size: 9px;
  }
  .deck-stack .playing-card,
  .deck-stack .empty-discard {
    width: 48px;
    height: 69px;
  }
  .social-tabs button {
    font-size: 12px;
  }
  .feed {
    height: 150px;
    font-size: 11px;
  }
  .chat-form input {
    font-size: 16px;
    padding: 12px;
  }
  .room-details {
    font-size: 9px;
  }
  .room-details button {
    font-size: 9px;
  }
  .page-footer > span:nth-child(2) {
    display: none;
  }
  .page-footer {
    font-size: 7px;
    padding-block: 20px;
    margin-top: 24px;
  }
  .connection-state {
    font-size: 8px;
  }
  .invite-top {
    font-size: 0;
    min-height: 35px;
  }
  .table-players.many {
    gap: 16px 10px;
  }
  .many .player-name {
    max-width: 60px;
    font-size: 9px;
  }
  .many .player-subtitle {
    font-size: 7px;
  }
  .many .avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 13px;
  }
  .many .player {
    gap: 7px;
  }
  .result-card {
    padding: 22px;
  }
  .result-card h2 {
    font-size: 28px;
  }
  .game-announcement strong {
    font-size: 23px;
  }
}
@media (max-width: 380px) {
  .topbar {
    padding-inline: 13px;
  }
  .brand > span:last-child {
    font-size: 19px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .icon-button {
    width: 29px;
    height: 29px;
  }
  .workspace {
    padding-inline: 16px;
  }
  h1 {
    font-size: 24px;
  }
  .board {
    gap: 3px;
  }
  .board-wrap {
    padding-inline: 9px;
  }
  .board-cell .suit {
    width: 13px;
    height: 15px;
  }
  .board-cell .cell-rank {
    font-size: 8px;
  }
  .chip:after {
    font-size: 13px;
  }
  .turn-badge {
    font-size: 6px;
    padding: 6px;
  }
  .player-name {
    max-width: 75px;
  }
  .player-subtitle {
    font-size: 7px;
  }
  .playing-card {
    height: 73px;
  }
  .hand-hint {
    max-width: 175px;
    font-size: 8px;
  }
}
@media (min-width: 901px) and (max-height: 850px) {
  .topbar {
    height: 62px;
  }
  .workspace {
    max-width: 840px;
    padding: 10px 26px 0;
  }
  .page-heading {
    margin-bottom: 14px;
  }
  h1 {
    font-size: 25px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
  }
  .table-players {
    min-height: 40px;
    margin-bottom: 12px;
  }
  .avatar {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }
  .player-name {
    font-size: 11px;
  }
  .board-wrap {
    padding-inline: 14px;
  }
  .board {
    aspect-ratio: 1.3;
    gap: 4px;
  }
  .board-topline,
  .board-bottomline {
    height: 22px;
  }
  .hand-area {
    margin-top: 18px;
  }
  .hand-cards {
    min-height: 106px;
    padding-top: 18px;
    gap: 5px;
  }
  .playing-card {
    width: 55px;
    height: 80px;
  }
  .hand-note {
    margin-top: 6px;
  }
  .score-panel {
    padding: 20px;
  }
  .score-header h2 {
    font-size: 24px;
  }
  .page-footer {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body.reduce-motion *,
body.reduce-motion *:before,
body.reduce-motion *:after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@keyframes last-move-pulse {
  0%, 12%, 100% { opacity: 1; transform: scale(1); }
  52%, 66% { opacity: .84; transform: scale(.95); }
}
body.reduce-motion .last-play-brackets { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .last-play-brackets { animation: none; }
}
