@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #101014;
  --surface: #1c1c24;
  --surface-2: #23232c;
  --red: #e63946;
  --red-light: #ff6470;
  --text: #f8f7fc;
  --muted: #a7a7b3;
  --line: rgba(255, 255, 255, 0.085);
  --blue: #428bea;
  --green: #35b984;
  --yellow: #f0bc44;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red-light);
  outline-offset: 5px;
}
input:focus-visible {
  outline: none;
  border-color: var(--red-light);
  box-shadow: 0 0 0 3px #e639461f;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.1;
}
h1 {
  font-size: 46px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 18px;
}
p {
  margin-bottom: 18px;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 7% 28%, #771e2925, transparent 42%),
    radial-gradient(ellipse at 97% 10%, #41233720, transparent 45%);
}
.site-header {
  height: 102px;
  max-width: 1380px;
  margin: auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
  position: relative;
}
.brand > span:not(.brand-mark) {
  color: var(--red-light);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border-radius: 10px;
  background: var(--red);
  font-size: 28px;
  font-style: italic;
  transform: rotate(-8deg);
  margin-right: 12px;
  box-shadow: 0 6px 24px #e639462b;
}
.brand small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 2px;
  position: absolute;
  left: 56px;
  bottom: -11px;
}
.site-header nav {
  display: flex;
  gap: 21px;
  align-items: center;
}
.nav-button,
.text-button {
  background: none;
  border: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.nav-button {
  color: #c4c2ce;
}
.nav-button:hover,
.text-button:hover {
  color: var(--red-light);
}
.nav-button img,
.icon,
.icon-button img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.icon-button {
  background: #ffffff05;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover {
  background: #ffffff0d;
}
.header-badge {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 12px;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot,
.turn-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px #35b98466;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 750;
  color: #d3c4c8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow .line {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
}
.home-layout {
  max-width: 1252px;
  margin: 0 auto;
  padding: 67px 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 70px;
}
.hero h1 {
  font-size: clamp(56px, 6.1vw, 85px);
  font-weight: 880;
  line-height: 1.005;
  letter-spacing: -5px;
  margin-bottom: 22px;
}
.hero h1 > span {
  color: var(--red-light);
}
.hero-description {
  color: #b7b4c0;
  font-size: 16px;
  line-height: 1.7;
}
.hero-description strong {
  color: #f6edf0;
}
.hero-features {
  display: flex;
  gap: 23px;
  font-size: 11px;
  color: #c6c3ce;
  align-items: center;
}
.hero-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-features .icon {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}
.hero-art {
  height: 242px;
  position: relative;
  margin-top: 15px;
  isolation: isolate;
}
.hero-art .card {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 116px;
  height: 167px;
  transform: translateX(calc(-50% + var(--shift))) translateY(var(--rise))
    rotate(var(--angle));
  box-shadow: 0 18px 30px #0008;
  border-width: 5px;
  animation: fan-in 0.65s ease-out both;
}
.art-halo {
  position: absolute;
  left: 50%;
  top: 75px;
  width: 365px;
  height: 150px;
  border-radius: 50%;
  background: #e6394610;
  filter: blur(22px);
  transform: translateX(-50%);
}
.art-spark {
  position: absolute;
  color: #e65462;
  font-size: 25px;
}
.spark-one {
  left: 5%;
  top: 28px;
  transform: rotate(15deg);
}
.spark-two {
  right: 3%;
  bottom: 24px;
  opacity: 0.5;
  font-size: 20px;
}
.panel {
  background: linear-gradient(150deg, #212129, #1a1a22);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 20px 70px #0003;
}
.play-panel {
  align-self: start;
  margin-top: 17px;
  position: relative;
  overflow: hidden;
}
.play-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 27px;
  right: 27px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e6394699, transparent);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.mini-tag {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 750;
  color: var(--muted);
}
.tiny-card {
  display: grid;
  place-items: center;
  width: 21px;
  height: 28px;
  border: 1px solid #e6394680;
  background: #e6394612;
  color: var(--red-light);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  transform: rotate(10deg);
}
.play-panel h2 {
  font-size: 34px;
  margin-bottom: 8px;
}
.play-panel > .muted {
  font-size: 13px;
  margin-bottom: 24px;
}
.play-panel label {
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 9px;
  display: block;
  color: #d7d5df;
}
input {
  display: block;
  width: 100%;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  padding: 13px 15px;
  background: #121218;
  color: white;
  min-height: 47px;
  transition: border 0.2s;
}
input::placeholder {
  color: #6f6b7a;
}
.input-wrap {
  position: relative;
}
.input-wrap > .icon {
  position: absolute;
  left: 14px;
  top: 15px;
  opacity: 0.38;
}
.input-wrap input {
  padding-left: 43px;
}
.mode-tabs {
  background: #131319;
  border: 1px solid #ffffff05;
  border-radius: 12px;
  padding: 5px;
  margin: 23px 0 21px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4px;
}
.mode-tabs button {
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 650;
  border-radius: 8px;
  padding: 11px 4px;
  color: #9a97a6;
}
.mode-tabs button.active {
  background: #2a2a35;
  box-shadow: 0 2px 5px #0003;
  color: white;
}
.button {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 750;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px #e6394619;
}
.button.primary:hover:not(:disabled) {
  background: #f24855;
  box-shadow: 0 6px 22px #e639463a;
}
.button.secondary {
  border-color: #ffffff17;
  background: #ffffff06;
}
.button.secondary:hover:not(:disabled) {
  background: #ffffff10;
}
.button.ghost {
  background: none;
  border-color: var(--line);
  color: var(--muted);
}
.button.full {
  width: 100%;
}
.button.small {
  font-size: 11px;
  min-height: 40px;
  padding: 10px 15px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.play-panel .button.primary > .icon:last-child {
  margin-left: auto;
  width: 16px;
}
.play-panel .button.primary > .icon:first-child {
  width: 16px;
}
.panel-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8d8999;
  margin-top: 17px;
  justify-content: center;
}
.panel-note .icon {
  width: 13px;
  height: 13px;
  opacity: 0.35;
}
.how-it-works {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px;
}
.how-it-works p {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: #7e7b8b;
  margin-bottom: 15px;
}
.how-it-works > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #bab6c5;
  margin-top: 10px;
}
.how-it-works > div span {
  width: 22px;
  color: #655f70;
  font-size: 10px;
  font-weight: 700;
}
.code-input {
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: 800;
  margin-bottom: 20px;
}
.home-bottom {
  max-width: 1176px;
  margin: 18px auto 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.home-bottom p {
  font-size: 11px;
  color: #85818e;
  margin: 0;
  flex: 1;
}
.home-bottom strong {
  font-weight: 450;
  color: #b2aebc;
}
.color-squares {
  display: flex;
  gap: 4px;
  transform: rotate(-9deg);
}
.color-squares i {
  display: block;
  width: 10px;
  height: 14px;
  border-radius: 2px;
}
.color-squares i:nth-child(1) {
  background: var(--red);
}
.color-squares i:nth-child(2) {
  background: var(--blue);
}
.color-squares i:nth-child(3) {
  background: var(--green);
}
.color-squares i:nth-child(4) {
  background: var(--yellow);
}
.home-bottom .text-button {
  font-size: 10px;
  color: #c8bec5;
}
footer {
  max-width: 1252px;
  margin: 20px auto 0;
  padding: 20px 38px 25px;
  color: #625e6c;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
footer strong {
  color: #a29da9;
  font-weight: 550;
}
.footer-dot {
  padding: 0 5px;
}
.loading-screen {
  min-height: 70vh;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  border: 1px solid #ffffff20;
  background: #30303a;
  border-radius: 13px;
  padding: 15px 22px;
  max-width: min(520px, 92vw);
  z-index: 100;
  font-size: 13px;
  box-shadow: 0 10px 40px #0008;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.network-banner {
  border: 1px solid #f0bc4433;
  background: #f0bc4410;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 12px;
  color: #eac673;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1150px;
  margin: 20px auto;
}
.is-busy button:not([data-action^="copy"]) {
  pointer-events: none;
}
.is-busy:after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  animation: busy 1s ease-in-out infinite;
  z-index: 200;
}
/* Cards: original vector-like HTML, recognizable color and symbol, no official art. */
.card {
  --card-color: var(--red);
  width: 101px;
  height: 146px;
  flex-shrink: 0;
  background: var(--card-color);
  border: 5px solid #f8f6f2;
  border-radius: 13px;
  position: relative;
  box-shadow: 0 8px 18px #0006;
  padding: 0;
  color: #fff;
  overflow: hidden;
  user-select: none;
  text-align: center;
  font-weight: 850;
  line-height: 1;
  isolation: isolate;
}
.card.red {
  --card-color: #e3404c;
}
.card.blue {
  --card-color: #3c84dd;
}
.card.green {
  --card-color: #28a779;
}
.card.yellow {
  --card-color: #e5aa32;
}
.card.wild {
  --card-color: #1d1d26;
  background: linear-gradient(145deg, #353542, #15151c);
}
.card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ffffff18, transparent 45%, #00000017);
  pointer-events: none;
}
.card-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 17px;
  z-index: 2;
  text-shadow: 0 2px 0 #0002;
}
.card-corner.bottom {
  top: auto;
  left: auto;
  right: 8px;
  bottom: 8px;
  transform: rotate(180deg);
}
.card-oval {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 18px;
  bottom: 18px;
  border: 3px solid #ffffffdd;
  border-radius: 50%;
  transform: rotate(23deg);
  display: grid;
  place-items: center;
  background: #ffffff09;
}
.card-oval > span {
  display: inline-block;
  transform: rotate(-23deg);
  font-size: 56px;
  letter-spacing: -4px;
  text-shadow: 3px 4px 0 #0002;
}
.card.wild .card-oval {
  background: conic-gradient(
    #e3404c 0 25%,
    #3c84dd 25% 50%,
    #28a779 50% 75%,
    #e5aa32 75% 100%
  );
  border-color: #fff9;
}
.card.wild .card-oval > span {
  font-size: 44px;
  text-shadow: 0 3px 8px #0008;
}
.card.back {
  border-color: #e9e6e1;
  background: #20202c;
  display: grid;
  place-items: center;
}
.back-orbit {
  position: absolute;
  inset: 15px 8px;
  border-radius: 50%;
  border: 2px solid #e6394690;
  transform: rotate(27deg);
  background: repeating-linear-gradient(
    70deg,
    #e6394614 0 3px,
    transparent 3px 11px
  );
}
.back-k {
  font-style: italic;
  color: #f05862;
  font-size: 64px;
  text-shadow: 2px 3px 0 #0005;
  transform: rotate(-8deg);
  z-index: 1;
}
.back-label {
  position: absolute;
  bottom: 9px;
  font-size: 6px;
  letter-spacing: 1.1px;
  color: #fff8;
}
.card:disabled {
  opacity: 0.65;
}
.card.playable {
  cursor: pointer;
  border-color: #fff;
  box-shadow:
    0 0 0 2px #ffe7eb55,
    0 0 19px #e6394640,
    0 10px 22px #0005;
  opacity: 1;
}
.card.playable:hover {
  box-shadow:
    0 0 0 3px #e63946,
    0 8px 30px #e6394633;
  z-index: 10;
}
/* Lobby */
.lobby-layout {
  max-width: 1210px;
  margin: auto;
  padding: 55px 30px 35px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-heading h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
.section-heading .muted {
  font-size: 13px;
  margin: 0;
}
.lobby-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 36px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 750;
  color: #c1bbc9;
}
.section-label > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.section-label .icon {
  width: 16px;
}
.section-label b {
  font-weight: 450;
  color: #65616e;
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.player-slot {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff03;
  min-height: 177px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px 13px;
  text-align: center;
}
.player-slot.is-me {
  border-color: #e6394666;
  background: linear-gradient(145deg, #e6394609, #ffffff03);
}
.player-slot.is-ready {
  background: linear-gradient(145deg, #35b98409, #ffffff03);
}
.avatar {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid #ffffff12;
  background: #3a2937;
  color: #f6b7c3;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}
.seat-1 {
  background: #263753;
  color: #abcaff;
}
.seat-2 {
  background: #253d34;
  color: #9cdfc0;
}
.seat-3 {
  background: #453b29;
  color: #f3d597;
}
.seat-4 {
  background: #39304b;
  color: #d2b6f8;
}
.seat-5 {
  background: #273e44;
  color: #abe0e8;
}
.player-slot h3 {
  font-size: 13px;
  margin: 13px 0 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
.player-slot h3 small {
  color: #817b89;
  font-size: 9px;
  font-weight: 450;
}
.player-status {
  font-size: 10px;
  color: #817c8c;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.player-status .icon {
  width: 11px;
  height: 11px;
  opacity: 0.4;
}
.player-status.ready {
  color: #58c99c;
}
.player-status.ready .icon {
  filter: invert(63%) sepia(43%) saturate(650%) hue-rotate(104deg);
  opacity: 1;
}
.host-crown {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 8px;
  color: #dcb566;
}
.host-crown .icon {
  width: 11px;
  height: 11px;
  filter: invert(74%) sepia(34%) saturate(458%) hue-rotate(358deg);
}
.player-slot.empty {
  border-style: dashed;
  background: transparent;
  color: #8a8391;
}
.player-slot.empty:hover {
  border-color: #e6394666;
  background: #e6394605;
}
.empty-avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #ffffff04;
  border: 1px dashed #ffffff15;
  border-radius: 15px;
  margin-bottom: 13px;
}
.empty-avatar .icon {
  width: 18px;
  opacity: 0.3;
}
.player-slot.empty p {
  font-size: 11px;
  margin: 0 0 4px;
}
.player-slot.empty small {
  font-size: 9px;
  color: #635e6e;
}
.lobby-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding-top: 23px;
}
.lobby-controls > .muted {
  font-size: 11px;
}
.invite-panel {
  padding: 27px;
}
.invite-panel .eyebrow {
  margin-bottom: 14px;
  font-size: 8px;
}
.invite-panel h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.invite-panel > .muted {
  font-size: 11px;
  line-height: 1.65;
}
.room-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 15px;
  margin: 20px 0;
  background: #14141c;
  border: 1px dashed #ffffff24;
  border-radius: 12px;
  letter-spacing: 6px;
  font-weight: 800;
  font-size: 27px;
  color: #faf2f4;
}
.room-code .icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}
.invite-help {
  text-align: center;
  font-size: 9px;
  line-height: 1.7;
  color: #7e7788;
  margin: 13px 0 0;
}
.quick-rules {
  display: flex;
  gap: 17px;
  padding: 26px 7px;
}
.rule-number {
  font-size: 48px;
  color: #e6394680;
  font-weight: 900;
  line-height: 1;
}
.quick-rules h3 {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.quick-rules p {
  font-size: 10px;
  color: #88818f;
  line-height: 1.8;
  margin-bottom: 4px;
}
.quick-rules .text-button {
  font-size: 9px;
  color: #beb6c5;
}
.quick-rules .icon {
  width: 12px;
}
/* Game table */
.in-game .site-header {
  height: 78px;
}
.in-game footer {
  display: none;
}
.game-layout {
  max-width: 1190px;
  margin: auto;
  padding: 17px 30px 20px;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.game-title {
  display: flex;
  align-items: center;
  gap: 23px;
}
.direction {
  color: #918997;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.direction span {
  font-size: 9px;
}
.turn-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 1px solid #ffffff0a;
  background: #23212b;
  font-size: 11px;
  padding: 10px 15px;
  border-radius: 12px;
}
.turn-banner.your-turn {
  border-color: #e6394644;
  background: #e6394614;
}
.turn-banner .turn-dot {
  background: #807789;
  box-shadow: none;
}
.turn-banner.your-turn .turn-dot {
  background: var(--red);
  box-shadow: 0 0 8px #e6394680;
}
.turn-timer {
  margin-left: auto;
  color: #8e8598;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
.turn-timer.urgent {
  color: #ff6571;
}
.table-arena {
  height: 367px;
  position: relative;
  margin: 10px 0 0;
}
.table-rim {
  position: absolute;
  inset: 33px 49px 15px;
  border: 1px solid #e6394626;
  border-radius: 150px;
  background: radial-gradient(ellipse, #39222d55, #20191f55 62%, #1a171d);
  box-shadow:
    inset 0 0 0 7px #11101480,
    inset 0 0 0 9px #ffffff02,
    0 20px 40px #0002;
}
.table-rim:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed #ffffff05;
  border-radius: 140px;
}
.table-watermark {
  position: absolute;
  font-size: 55px;
  font-weight: 900;
  letter-spacing: -4px;
  color: #ffffff03;
  top: 153px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  white-space: nowrap;
}
.table-watermark > span {
  font-weight: 450;
}
.opponent {
  position: absolute;
  z-index: 3;
  border: 1px solid #ffffff0b;
  background: #1d1c24ec;
  border-radius: 14px;
  padding: 9px 12px;
  min-width: 170px;
  max-width: 210px;
  box-shadow: 0 8px 25px #0003;
}
.opponent.active {
  border-color: #e63946;
  box-shadow:
    0 0 0 3px #e6394614,
    0 5px 25px #0004;
}
.opponent.disconnected {
  opacity: 0.55;
}
.opponent[data-position="center"] {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.opponent[data-position="0"] {
  top: 29px;
  left: 5%;
}
.opponent[data-position="1"] {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.opponent[data-position="2"] {
  top: 29px;
  right: 5%;
}
.opponent[data-position="3"] {
  bottom: 42px;
  right: 2%;
}
.opponent[data-position="4"] {
  bottom: 42px;
  left: 2%;
}
.opponents-2 .opponent[data-position="0"] {
  left: 16%;
  top: 10px;
}
.opponents-2 .opponent[data-position="1"] {
  left: auto;
  right: 16%;
  top: 10px;
  transform: none;
}
.opponent-identity {
  display: flex;
  gap: 8px;
  align-items: center;
}
.opponent .avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 11px;
}
.opponent-identity > div {
  min-width: 0;
  flex: 1;
}
.opponent strong {
  font-size: 10px;
  display: block;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opponent-identity > div > span {
  font-size: 8px;
  color: #857e8d;
  display: block;
}
.opponent.active .opponent-identity > div > span {
  color: #ff7781;
}
.card-count {
  font-size: 18px;
  margin-left: 4px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card-count small {
  font-size: 6px;
  color: #958998;
  font-weight: 450;
}
.mini-hand {
  height: 24px;
  display: flex;
  justify-content: center;
  margin-top: 7px;
  padding-left: 10px;
}
.mini-hand i {
  background: #332731;
  border: 1px solid #dd586276;
  border-radius: 3px;
  width: 17px;
  height: 23px;
  font-style: italic;
  font-size: 11px;
  font-weight: 800;
  color: #ca6670;
  display: grid;
  place-items: center;
  margin-left: -6px;
  transform: rotate(-8deg);
}
.mini-hand i:nth-child(2n) {
  transform: rotate(6deg);
}
.center-piles {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 117px;
  transform: translateX(-50%);
  gap: 24px;
}
.pile-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.deck-button {
  border: 0;
  background: none;
  padding: 0;
  position: relative;
}
.deck-button .card {
  box-shadow:
    4px 3px 0 #8a7e7e,
    7px 6px 0 #2c2229,
    0 12px 25px #0006;
}
.deck-button:hover:not(:disabled) {
  transform: translateY(-4px);
}
.deck-button:disabled {
  opacity: 0.85;
}
.pile-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #776773;
  display: flex;
  gap: 6px;
}
.pile-label b {
  color: #ac97a5;
  font-weight: 650;
  letter-spacing: 0;
}
.pile-divider {
  color: #644853;
  font-size: 20px;
  margin-top: -18px;
}
.discard .card {
  transform: rotate(8deg);
  box-shadow:
    -4px 4px 0 #77706a,
    0 15px 25px #0005;
}
.active-color {
  --swatch: var(--red);
  position: absolute;
  left: 50%;
  bottom: -48px;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #ffffff0a;
  border-radius: 9px;
  background: #19151c;
  font-size: 9px;
}
.active-color.blue {
  --swatch: var(--blue);
}
.active-color.green {
  --swatch: var(--green);
}
.active-color.yellow {
  --swatch: var(--yellow);
}
.active-color i {
  background: var(--swatch);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 9px var(--swatch);
}
.active-color small {
  color: #6d626e;
  font-size: 8px;
  margin-left: 3px;
}
.table-message {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #a191a0;
  text-align: center;
  white-space: nowrap;
}
.hand-section {
  padding: 16px 0 0;
}
.hand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  margin-bottom: 8px;
  gap: 15px;
}
.own-identity {
  display: flex;
  gap: 9px;
  align-items: center;
}
.own-identity .avatar {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  font-size: 11px;
}
.own-identity strong {
  font-size: 11px;
  display: block;
  max-width: 150px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.own-identity > div > span {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #8e8292;
}
.hand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kiro-button {
  background: var(--red);
  font-size: 17px;
  font-weight: 850;
  font-style: italic;
  letter-spacing: -0.5px;
  padding: 9px 25px;
  min-height: 40px;
  box-shadow: 0 5px 20px #e6394620;
}
.kiro-button.armed {
  background: #275542;
  font-style: normal;
  font-size: 11px;
}
.hand-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 23px 18px 13px;
  scrollbar-width: thin;
  scrollbar-color: #3a2935 transparent;
  min-height: 188px;
}
.hand-cards {
  display: flex;
  justify-content: center;
  min-width: min-content;
  max-width: 100%;
  width: fit-content;
  margin: auto;
  padding: 0 25px;
}
.hand-cards .card {
  margin-left: -27px;
  transform: rotate(var(--tilt));
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  animation: deal 0.35s ease-out backwards;
  animation-delay: calc(var(--card-i) * 0.018s);
}
.hand-cards .card:first-child {
  margin-left: 0;
}
.hand-cards .card.playable:hover {
  transform: translateY(-18px) rotate(0deg);
}
.hand-hint {
  font-size: 9px;
  text-align: center;
  color: #827487;
  margin: 3px 0 14px;
}
.catch-pill {
  border: 1px solid #f0bc4460;
  color: #f0bc44;
  background: #30291b;
  border-radius: 100px;
  font-size: 9px;
  padding: 5px 8px;
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.catch-pill .icon {
  width: 11px;
  height: 11px;
}
.event-feed {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 17px;
  color: #655c6d;
  font-size: 8px;
}
.event-feed span:not(:last-child) {
  opacity: 0.6;
}
.just-played {
  animation: card-play 0.4s ease-out;
}
.special-flash .table-rim {
  animation: special 0.6s ease-out;
}
/* Results, dialogs and administration */
.result-layout {
  position: relative;
  max-width: 780px;
  margin: auto;
  padding: 58px 30px;
  text-align: center;
}
.result-layout > .eyebrow {
  justify-content: center;
  font-size: 9px;
}
.winner-emblem {
  width: 82px;
  height: 82px;
  border: 1px solid #e6394644;
  border-radius: 26px;
  background: radial-gradient(circle, #e6394620, #e6394607);
  display: grid;
  place-items: center;
  margin: 23px auto;
  transform: rotate(-7deg);
}
.winner-emblem .icon {
  width: 35px;
  height: 35px;
  filter: invert(53%) sepia(53%) saturate(1800%) hue-rotate(318deg);
}
.result-layout h1 {
  font-size: 42px;
  line-height: 1.18;
  overflow-wrap: anywhere;
  margin-bottom: 15px;
}
.result-description {
  font-size: 13px;
  color: #aaa0b1;
}
.result-table {
  max-width: 510px;
  margin: 32px auto;
  padding: 11px 22px;
  text-align: left;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.result-row:last-child {
  border: 0;
}
.result-rank {
  width: 23px;
  font-size: 11px;
  color: #79707f;
}
.result-rank .icon {
  filter: invert(71%) sepia(28%) saturate(650%) hue-rotate(359deg);
}
.result-row .avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-radius: 11px;
}
.result-row > strong {
  font-size: 11px;
  flex: 1;
  overflow-wrap: anywhere;
}
.result-row strong small {
  font-weight: 450;
  color: #857c8d;
  font-size: 9px;
}
.result-row > span:last-child {
  font-size: 15px;
  white-space: nowrap;
}
.result-row > span:last-child small {
  font-size: 8px;
  color: #8c8294;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.result-actions .muted {
  margin: 0;
  font-size: 11px;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.confetti i {
  position: absolute;
  top: -20px;
  left: var(--left);
  width: 5px;
  height: 12px;
  background: var(--color);
  animation: confetti 3.4s linear both;
  animation-delay: calc(var(--i) * 0.04s);
}
dialog {
  color: var(--text);
  border: 1px solid #ffffff20;
  background: #1c1c25;
  border-radius: 22px;
  max-width: min(570px, calc(100vw - 30px));
  width: 570px;
  padding: 28px;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #08070bdd;
  backdrop-filter: blur(6px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.modal-heading > .eyebrow,
.modal-heading h2 {
  margin: 0;
}
.modal-heading .icon-button {
  width: 32px;
  height: 32px;
}
.modal-heading .icon {
  width: 15px;
  height: 15px;
}
dialog h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
dialog > .muted,
dialog .muted {
  font-size: 12px;
}
.rules-cards {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 25px 0;
}
.rules-cards .card {
  width: 59px;
  height: 84px;
  border-width: 3px;
  border-radius: 8px;
  margin: auto;
}
.rules-cards .card-oval {
  inset: 10px 5px;
  border-width: 2px;
}
.rules-cards .card-oval > span {
  font-size: 30px;
  letter-spacing: -2px;
}
.rules-cards .card-corner {
  font-size: 9px;
  top: 4px;
  left: 4px;
}
.rules-cards .card-corner.bottom {
  top: auto;
  left: auto;
  right: 4px;
  bottom: 4px;
}
.rules-cards > div > strong {
  font-size: 8px;
  text-align: center;
  display: block;
  margin-top: 10px;
  color: #aca2b5;
}
.rules-list {
  padding-left: 16px;
  font-size: 11px;
  color: #aaa0b4;
  line-height: 1.75;
}
.rules-list li {
  margin-bottom: 12px;
}
.rules-list strong {
  color: #e3dbe8;
  font-weight: 600;
}
.color-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.color-choice {
  background: #ffffff04;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.color-choice span {
  width: 25px;
  height: 25px;
  border-radius: 7px;
}
.color-choice.red span {
  background: var(--red);
}
.color-choice.blue span {
  background: var(--blue);
}
.color-choice.green span {
  background: var(--green);
}
.color-choice.yellow span {
  background: var(--yellow);
}
.color-choice:hover {
  background: #ffffff0a;
  border-color: #ffffff40;
}
.utility-page {
  max-width: 560px;
  margin: 55px auto;
  padding: 20px;
}
.utility-page > .brand {
  margin-bottom: 35px;
}
.utility-page h1 {
  font-size: 33px;
}
.utility-page label {
  display: block;
  font-size: 12px;
  color: #b8afc2;
  margin: 22px 0 10px;
}
.utility-page label input {
  margin-top: 8px;
}
.utility-page form > .button {
  margin-top: 22px;
}
.notice {
  border: 1px solid #35b98440;
  background: #35b9840e;
  padding: 13px;
  border-radius: 10px;
  font-size: 12px;
  color: #92dfbb;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #e6394640;
  background: #e639460e;
  color: #ffa2aa;
}
.admin-page {
  max-width: 1020px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
}
th {
  font-size: 10px;
  color: var(--muted);
}
.admin-page .muted {
  margin-top: 22px;
  font-size: 11px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes busy {
  50% {
    opacity: 0.2;
  }
}
@keyframes fan-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes deal {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes card-play {
  from {
    opacity: 0.3;
    transform: translate(-75px, 40px) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: translate(0) rotate(0);
  }
}
@keyframes special {
  20% {
    box-shadow:
      inset 0 0 60px #e6394644,
      0 0 45px #e6394620;
  }
  100% {
    box-shadow:
      inset 0 0 0 7px #11101480,
      inset 0 0 0 9px #ffffff02,
      0 20px 40px #0002;
  }
}
@keyframes confetti {
  to {
    transform: translateY(550px) rotate(640deg);
    opacity: 0;
  }
}
@media (min-width: 1550px) {
  .home-layout {
    padding-top: 100px;
  }
  .hero-art {
    height: 280px;
    margin-top: 30px;
  }
  .hero-art .card {
    width: 129px;
    height: 185px;
  }
  .game-layout {
    padding-top: 27px;
  }
  .table-arena {
    height: 425px;
  }
  .center-piles {
    top: 149px;
  }
  .table-watermark {
    top: 182px;
  }
  .hand-section {
    padding-top: 25px;
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding: 0 35px;
  }
  .home-layout {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 365px;
    padding: 55px 35px 0;
  }
  .hero h1 {
    font-size: 67px;
    letter-spacing: -3px;
  }
  .home-bottom {
    margin-left: 35px;
    margin-right: 35px;
  }
  .hero-art .card {
    width: 105px;
    height: 151px;
  }
  .hero-art .card:nth-of-type(2) {
    --shift: -108px !important;
  }
  .hero-art .card:nth-of-type(5) {
    --shift: 110px !important;
  }
  .lobby-columns {
    gap: 22px;
    grid-template-columns: 1fr 305px;
  }
  .lobby-layout {
    padding-left: 30px;
    padding-right: 30px;
  }
  .opponent {
    min-width: 151px;
    max-width: 170px;
  }
  .opponent[data-position="0"] {
    left: 2%;
  }
  .opponent[data-position="2"] {
    right: 2%;
  }
  .opponent[data-position="3"] {
    right: 0;
  }
  .opponent[data-position="4"] {
    left: 0;
  }
  .table-rim {
    inset: 35px 0 12px;
  }
  .hand-heading {
    padding: 0 10px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 84px;
    padding: 0 24px;
  }
  .header-badge {
    display: none;
  }
  .site-header nav {
    gap: 15px;
  }
  .home-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 24px 0;
    max-width: 650px;
  }
  .hero h1 {
    font-size: 66px;
    line-height: 1.03;
    letter-spacing: -3px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-art {
    position: absolute;
    width: 260px;
    right: 10px;
    top: 232px;
    opacity: 0.22;
    z-index: -1;
    transform: scale(0.85);
  }
  .hero-features {
    margin-top: 20px;
  }
  .play-panel {
    margin-top: 34px;
  }
  .home-bottom {
    margin: 30px 24px 0;
    flex-wrap: wrap;
    gap: 13px;
  }
  .home-bottom p {
    min-width: 70%;
    line-height: 1.6;
  }
  .home-bottom .text-button {
    margin-left: auto;
  }
  footer {
    padding: 15px 24px 25px;
    font-size: 8px;
    flex-direction: column;
    gap: 7px;
    margin-top: 0;
  }
  .lobby-layout {
    padding: 34px 24px;
  }
  .section-heading h1 {
    font-size: 33px;
  }
  .section-heading .muted {
    font-size: 11px;
  }
  .section-heading .button {
    font-size: 0;
    padding: 12px;
  }
  .section-heading .button .icon {
    width: 16px;
  }
  .lobby-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .lobby-sidebar {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }
  .quick-rules {
    padding-top: 22px;
  }
  .invite-panel h2 {
    font-size: 24px;
  }
  .room-code {
    font-size: 25px;
    margin: 15px 0;
  }
  .game-layout {
    padding: 12px 15px;
  }
  .game-toolbar {
    padding: 0 5px;
  }
  .table-arena {
    height: 382px;
  }
  .opponent {
    min-width: 137px;
    max-width: 150px;
    padding: 8px;
  }
  .opponent strong {
    max-width: 78px;
    font-size: 9px;
  }
  .opponent .avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
  .opponent-identity {
    gap: 6px;
  }
  .card-count {
    font-size: 16px;
  }
  .opponent[data-position="0"] {
    top: 12px;
    left: 0;
  }
  .opponent[data-position="1"] {
    top: 0;
  }
  .opponent[data-position="2"] {
    top: 12px;
    right: 0;
  }
  .opponent[data-position="3"] {
    bottom: 51px;
    right: 0;
  }
  .opponent[data-position="4"] {
    bottom: 51px;
    left: 0;
  }
  .opponents-2 .opponent[data-position="0"] {
    left: 8%;
    top: 0;
  }
  .opponents-2 .opponent[data-position="1"] {
    right: 8%;
    top: 0;
  }
  .center-piles {
    top: 128px;
    gap: 18px;
  }
  .center-piles .card {
    width: 90px;
    height: 130px;
  }
  .center-piles .card-oval > span {
    font-size: 49px;
  }
  .table-rim {
    inset: 31px 0 15px;
    border-radius: 90px;
  }
  .table-rim:after {
    border-radius: 80px;
    inset: 13px;
  }
  .table-watermark {
    font-size: 47px;
  }
  .table-message {
    font-size: 9px;
    max-width: 100%;
    white-space: normal;
    width: 80%;
    bottom: 2px;
  }
  .hand-heading {
    padding: 0;
  }
  .hand-section {
    padding-top: 10px;
  }
  .hand-cards .card {
    width: 90px;
    height: 130px;
    border-width: 4px;
    margin-left: -31px;
  }
  .hand-cards .card-oval > span {
    font-size: 46px;
  }
  .hand-cards .card-corner {
    font-size: 15px;
  }
  .hand-scroll {
    padding-top: 24px;
    min-height: 168px;
  }
  .hand-hint {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .event-feed {
    font-size: 7px;
  }
  .result-layout h1 {
    font-size: 35px;
  }
  .result-layout {
    padding-top: 37px;
  }
}
@media (max-width: 520px) {
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 31px;
    height: 37px;
    font-size: 24px;
    margin-right: 9px;
  }
  .brand small {
    left: 45px;
    font-size: 7px;
    letter-spacing: 1.4px;
    bottom: -9px;
  }
  .site-header {
    height: 77px;
    padding: 0 18px;
  }
  .nav-button {
    font-size: 11px;
  }
  .nav-button img {
    display: none;
  }
  .site-header nav {
    gap: 13px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .home-layout {
    padding: 28px 20px 0;
  }
  .hero h1 {
    font-size: 61px;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .hero-features {
    font-size: 9px;
    gap: 16px;
  }
  .hero-art {
    top: 250px;
    right: -30px;
    transform: scale(0.7);
    opacity: 0.18;
  }
  .play-panel {
    padding: 25px;
    margin-top: 27px;
    border-radius: 20px;
  }
  .play-panel h2 {
    font-size: 31px;
  }
  .home-bottom {
    margin: 25px 20px 0;
    padding-top: 19px;
  }
  .home-bottom p {
    font-size: 9px;
  }
  .home-bottom .text-button {
    font-size: 9px;
  }
  .lobby-layout {
    padding: 28px 18px;
  }
  .section-heading {
    align-items: flex-start;
    margin-bottom: 26px;
  }
  .section-heading h1 {
    font-size: 29px;
  }
  .section-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .section-heading .muted {
    font-size: 10px;
    max-width: 250px;
  }
  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .player-slot {
    min-height: 145px;
    padding-top: 20px;
  }
  .avatar {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .player-slot h3 {
    font-size: 12px;
    margin-top: 10px;
  }
  .host-crown {
    font-size: 7px;
    top: 8px;
    right: 9px;
  }
  .lobby-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lobby-controls {
    gap: 9px;
    flex-direction: column;
  }
  .lobby-controls .button {
    width: 100%;
  }
  .quick-rules {
    padding: 25px 10px 0;
  }
  .in-game .site-header {
    height: 64px;
  }
  .in-game .brand small {
    display: none;
  }
  .in-game .brand {
    font-size: 18px;
  }
  .in-game .brand-mark {
    width: 27px;
    height: 31px;
    border-radius: 7px;
    font-size: 21px;
  }
  .game-layout {
    padding: 9px 9px 12px;
  }
  .direction span {
    display: none;
  }
  .game-title {
    gap: 13px;
  }
  .game-title .mini-tag {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .game-toolbar .icon-button {
    width: 31px;
    height: 31px;
  }
  .turn-banner {
    font-size: 9px;
    padding: 10px;
    border-radius: 10px;
    gap: 7px;
  }
  .turn-dot {
    width: 5px;
    height: 5px;
  }
  .table-arena {
    height: 366px;
    margin-top: 12px;
  }
  .opponent {
    min-width: 107px;
    max-width: 118px;
    padding: 7px 6px;
    border-radius: 11px;
  }
  .opponent .avatar {
    width: 24px;
    height: 24px;
    font-size: 8px;
    border-radius: 8px;
  }
  .opponent-identity {
    gap: 4px;
  }
  .opponent strong {
    font-size: 8px;
    max-width: 57px;
  }
  .opponent-identity > div > span {
    font-size: 6px;
  }
  .card-count {
    font-size: 12px;
    margin-left: 0;
  }
  .card-count small {
    font-size: 5px;
  }
  .mini-hand {
    margin-top: 5px;
    height: 19px;
  }
  .mini-hand i {
    width: 14px;
    height: 18px;
    font-size: 9px;
  }
  .opponent[data-position="0"] {
    top: 37px;
    left: 0;
  }
  .opponent[data-position="1"] {
    top: 0;
  }
  .opponent[data-position="2"] {
    top: 37px;
    right: 0;
  }
  .opponent[data-position="3"] {
    bottom: 42px;
    right: 0;
  }
  .opponent[data-position="4"] {
    bottom: 42px;
    left: 0;
  }
  .opponents-2 .opponent[data-position="0"] {
    left: 8%;
    top: 7px;
  }
  .opponents-2 .opponent[data-position="1"] {
    right: 8%;
    top: 7px;
  }
  .opponents-3 .opponent[data-position="0"],
  .opponents-3 .opponent[data-position="2"] {
    top: 33px;
  }
  .table-rim {
    inset: 38px 0 13px;
    border-radius: 65px;
  }
  .table-rim:after {
    inset: 10px;
    border-radius: 57px;
  }
  .center-piles {
    top: 130px;
    gap: 16px;
  }
  .center-piles .card {
    width: 75px;
    height: 110px;
    border-width: 4px;
    border-radius: 10px;
  }
  .center-piles .card-oval {
    inset: 12px 5px;
  }
  .center-piles .card-oval > span {
    font-size: 41px;
    letter-spacing: -3px;
  }
  .center-piles .card-corner {
    font-size: 13px;
    top: 6px;
    left: 6px;
  }
  .center-piles .card-corner.bottom {
    top: auto;
    left: auto;
    bottom: 6px;
    right: 6px;
  }
  .center-piles .back-k {
    font-size: 50px;
  }
  .center-piles .back-label {
    font-size: 5px;
  }
  .pile-divider {
    font-size: 16px;
  }
  .pile-label {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .active-color {
    font-size: 8px;
    bottom: -41px;
  }
  .active-color small {
    font-size: 6px;
  }
  .table-watermark {
    font-size: 33px;
    top: 171px;
    letter-spacing: -2px;
  }
  .table-message {
    font-size: 8px;
    bottom: 0;
    width: 90%;
  }
  .hand-heading {
    gap: 7px;
  }
  .own-identity .avatar {
    width: 29px;
    height: 29px;
  }
  .own-identity strong {
    font-size: 10px;
    max-width: 90px;
  }
  .own-identity > div > span {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .hand-actions {
    gap: 6px;
  }
  .hand-actions .button.small {
    font-size: 9px;
    padding: 8px 10px;
    min-height: 35px;
    gap: 5px;
  }
  .hand-actions .icon {
    width: 12px;
    height: 12px;
  }
  .kiro-button {
    font-size: 15px;
    min-height: 35px;
    padding: 8px 15px;
  }
  .kiro-button.armed {
    font-size: 8px;
    padding: 8px 10px;
  }
  .hand-scroll {
    padding: 23px 5px 12px;
    min-height: 153px;
  }
  .hand-cards {
    padding: 0 6px;
  }
  .hand-cards .card {
    width: 76px;
    height: 111px;
    border-width: 4px;
    border-radius: 10px;
    margin-left: -30px;
  }
  .hand-cards .card-oval {
    inset: 12px 5px;
    border-width: 2px;
  }
  .hand-cards .card-oval > span {
    font-size: 41px;
    letter-spacing: -3px;
  }
  .hand-cards .card-corner {
    font-size: 12px;
    top: 6px;
    left: 6px;
  }
  .hand-cards .card-corner.bottom {
    top: auto;
    left: auto;
    right: 6px;
    bottom: 6px;
  }
  .hand-hint {
    padding: 0 10px;
    line-height: 1.6;
    min-height: 25px;
  }
  .event-feed {
    font-size: 7px;
    gap: 4px 10px;
  }
  .event-feed > span:first-child {
    display: none;
  }
  .catch-pill {
    font-size: 7px;
    bottom: -13px;
    padding: 4px 7px;
  }
  .catch-pill .icon {
    width: 9px;
    height: 9px;
  }
  .result-layout h1 {
    font-size: 29px;
  }
  .result-layout {
    padding: 32px 18px;
  }
  .result-table {
    padding: 8px 14px;
  }
  .result-row {
    gap: 9px;
  }
  .result-row > strong {
    font-size: 10px;
  }
  .result-row > span:last-child {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .result-row > span:last-child small {
    font-size: 7px;
  }
  .result-description {
    font-size: 11px;
  }
  .result-actions .button {
    width: 100%;
  }
  dialog {
    padding: 23px;
  }
  dialog h2 {
    font-size: 26px;
  }
  .rules-list {
    font-size: 10px;
  }
  .rules-cards .card {
    width: 48px;
    height: 70px;
  }
  .rules-cards .card-oval > span {
    font-size: 25px;
  }
  .rules-cards .card-corner {
    font-size: 8px;
  }
  .color-choice {
    padding: 15px 13px;
    font-size: 11px;
  }
  .utility-page {
    padding: 16px;
  }
  .utility-page .panel {
    padding: 24px;
  }
  .network-banner {
    margin: 10px;
    font-size: 10px;
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 520px) {
  .table-arena:has(.opponents-4),
  .table-arena:has(.opponents-5) {
    height: 427px;
  }
}
@media (max-width: 390px) {
  .opponents-3 .opponent[data-position="0"],
  .opponents-3 .opponent[data-position="2"],
  .opponents-4 .opponent[data-position="0"],
  .opponents-4 .opponent[data-position="2"],
  .opponents-5 .opponent[data-position="0"],
  .opponents-5 .opponent[data-position="2"] {
    top: 67px;
  }
  .opponent {
    max-width: 111px;
    min-width: 101px;
  }
}

/* Dark numerals improve contrast on yellow cards. */
.card.yellow {
  color: #30270e;
}
