
@charset "UTF-8";
:root {
  color-scheme: dark;
  --ink: #f3eee3;
  --muted: #a2b3b3;
  --gold: #d5ba84;
  --edge: #b6c3be27;
  --panel: #101e22;
  --room: none;
  font: 14px/1.5 Arial,sans-serif;
  color: var(--ink);
  background: #081215;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--edge);
  background: #14262ab3;
  border-radius: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  transition: background .15s,border-color .15s;
}
button:hover {
  background: #284147;
  border-color: #d5ba8460;
}
button:disabled {
  cursor: default;
  opacity: .42;
}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 2px solid #f6d89d;
  outline-offset: 3px;
}
button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #182426;
  font-weight: 700;
}
button.primary:hover {
  background: #eed6a8;
}
button.secondary {
  border-color: #779999;
  background: #294749;
}
button.text-button {
  background: none;
  border-color: transparent;
  color: var(--gold);
  padding: 5px 12px;
}
button.wide {
  width: 100%;
}
h1,h2,h3,p {
  margin: 0;
}
h2 {
  font: clamp(28px,3vw,42px)/1.15 Georgia,serif;
  letter-spacing: -1px;
  margin: 10px 0 18px;
}
h3 {
  font: 26px Georgia,serif;
  margin: 8px 0;
}
p+p {
  margin-top: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
  font-weight: 700;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0;
}
.disclaimer {
  font-size: 9px;
  letter-spacing: .1em;
  color: #8eaaaa;
  margin-top: 20px;
}
.intro {
  font: 24px/1.4 Georgia,serif;
  color: #d9e0da;
}
small {
  font-size: 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #c6d4d1;
}
select {
  min-height: 44px;
  background: #1a3035;
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 8px 12px;
}
input[type=range] {
  accent-color: var(--gold);
  height: 44px;
  width: 100%;
  margin: 0;
  cursor: pointer;
}
input[type=checkbox] {
  accent-color: var(--gold);
  width: 24px;
  height: 24px;
}
kbd {
  font: 9px Arial;
  color: inherit;
  opacity: .5;
  margin-left: 8px;
}
#app {
  height: 100dvh;
  min-height: 320px;
  display: grid;
  grid-template-rows: 56px minmax(0,1fr);
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
  background: #081215;
  border-bottom: 1px solid var(--edge);
  z-index: 4;
}
.brand {
  background: none;
  border: 0;
  padding: 0;
  font: 16px Georgia;
  letter-spacing: .14em;
  text-align: left;
  line-height: 1.3;
}
.brand span {
  display: block;
  font: 8px Arial;
  letter-spacing: .23em;
  color: #829c9f;
  margin-top: 3px;
}
.topbar nav {
  display: flex;
  gap: 5px;
}
.topbar nav button {
  font-size: 11px;
  background: none;
  border-color: transparent;
  padding: 8px 12px;
}
#night-label {
  font-size: 10px;
  letter-spacing: .13em;
  color: #9eb2b5;
}
.topbar nav button:hover {
  color: var(--gold);
}
#home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,#061317ee 2%,#08151bd6 36%,#08151b1c 85%),linear-gradient(0deg,#081317ee,transparent 70%),var(--room) center/cover;
}
.home-copy {
  position: relative;
  width: 55%;
  height: 100%;
  padding: clamp(22px,5vh,64px) 0 70px 8%;
  z-index: 1;
}
.home-copy h1 {
  font: clamp(62px,7.9vw,118px)/.84 Georgia,serif;
  letter-spacing: -.065em;
  margin: 32px 0 26px;
}
.home-copy h1 em {
  color: var(--gold);
  font-style: normal;
}
.home-copy .intro {
  font-size: clamp(18px,2vw,28px);
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 8px 2px 0;
  box-shadow: 0 0 16px #e1c38f;
}
.home-actions {
  width: min(330px,90%);
  display: grid;
  gap: 9px;
  margin-top: 28px;
}
.home-actions button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: 12px;
  min-height: 48px;
}
.home-actions button span {
  opacity: .7;
}
.host-portrait {
  position: absolute;
  bottom: 6%;
  right: 2%;
  width: min(62%,820px);
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px #0007);
  mask-image: linear-gradient(#000 78%,transparent);
}
.home-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--edge);
  background: #081215c9;
  font-size: 9px;
  letter-spacing: .14em;
}
.home-footer>div {
  display: flex;
  gap: 22px;
  align-items: center;
}
.home-footer button {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 10px;
  padding: 0;
}
#table {
  display: grid;
  grid-template-rows: minmax(0,1fr) 166px;
  min-height: 0;
}
#table[hidden],#home[hidden] {
  display: none;
}
#room {
  position: relative;
  background: var(--room) center/100% 100%;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
}
#performance {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.seats {
  position: absolute;
  top: 70%;
  left: 5%;
  right: 5%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
}
.seat {
  text-align: center;
  position: relative;
  width: min(100%,220px);
  justify-self: center;
  background: #0b1d22e6;
  border: 1px solid #889c982f;
  border-radius: 7px;
  padding: 7px 14px;
  box-shadow: 0 10px 25px #0004;
}
.seat.acting {
  border-color: var(--accent);
  box-shadow: 0 0 28px color-mix(in srgb,var(--accent),transparent 80%);
}
.seat.folded {
  opacity: .65;
}
.seat-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}
.seat-title b {
  letter-spacing: .15em;
  color: var(--accent);
}
.seat-title>span:last-child {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.seat small {
  display: block;
  color: #a0b6b6;
  letter-spacing: .07em;
  margin-top: 2px;
  font-size: 8px;
}
.dealer {
  border-radius: 50%;
  background: #e8e3cb;
  color: #14262a;
  font-size: 9px;
  width: 16px;
  height: 16px;
}
.seat .cards {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
}
.seat .card {
  width: 29px;
  height: 40px;
  font-size: 13px;
  padding: 3px;
  border-radius: 3px;
}
.seat .card i {
  font-size: 15px;
}
.bet-pill {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #dec493;
  font-size: 10px;
}
.board {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  width: 70%;
  pointer-events: none;
}
.pot-label {
  font-size: 9px;
  letter-spacing: .17em;
  color: #b2c7c5;
}
.pot-label strong {
  color: #f5e6c6;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}
.cards {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 53px;
  height: 73px;
  background: linear-gradient(135deg,#fffdf4,#dbdfd9);
  color: #18333a;
  border-radius: 5px;
  border: 1px solid #fff8;
  box-shadow: 0 4px 8px #0004;
  padding: 5px 7px;
  font: 21px/1 Georgia,serif;
  text-align: left;
  flex-shrink: 0;
}
.card b {
  font-weight: 500;
}
.card i {
  font-style: normal;
  font-size: 27px;
  align-self: flex-end;
}
.card.red {
  color: #a13a45;
}
.card.back {
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg,#152e33,#152e33 4px,#1f393c 4px,#1f393c 5px);
  border: 1px solid #6b8c8155;
  box-shadow: none;
  color: #76968875;
  font-size: 22px;
}
.card.best {
  border: 2px solid #f5c568;
  box-shadow: 0 0 14px #e0ba5940;
}
.street-label {
  font-size: 10px;
  color: #b5cdcb;
  text-align: center;
  max-width: 600px;
  line-height: 1.3;
}
.table-corner {
  position: absolute;
  left: 22px;
  bottom: 12px;
  color: #8eaaa4;
  font-size: 9px;
  letter-spacing: .15em;
}
#subtitle {
  position: absolute;
  top: 10px;
  left: 25%;
  right: 25%;
  text-align: center;
  font: italic 14px/1.4 Georgia;
  color: #efdfbc;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
  min-height: 20px;
}
.skip {
  position: absolute;
  right: 14px;
  bottom: 4px;
  font-size: 10px;
  background: #0b1d22aa;
  border: 0;
  color: #cdb98f;
}
.skip[hidden] {
  display: none;
}
#controls {
  background: linear-gradient(#102226,#0a171b);
  border-top: 1px solid #bcb78d50;
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 32px;
  padding: 16px max(5%,env(safe-area-inset-right)) 16px max(5%,env(safe-area-inset-left));
  z-index: 2;
}
.your-hand {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.your-hand>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.your-hand strong {
  font: 26px Georgia;
  color: #ecddba;
}
.your-hand small {
  color: #7f9d9c;
  font-size: 8px;
  white-space: nowrap;
}
.your-hand .cards {
  transform: rotate(-3deg);
}
.your-hand .card:last-child {
  transform: rotate(6deg) translateY(3px);
}
.decision {
  max-width: 780px;
  width: 100%;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.decision-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 22px;
  font-size: 10px;
  letter-spacing: .13em;
  color: #b9d1cb;
}
.decision-heading .text-button {
  font-size: 10px;
  min-height: 30px;
  padding: 0 8px;
}
.bet-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
}
.bet-tools label {
  position: relative;
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  white-space: nowrap;
}
.bet-tools output {
  color: var(--gold);
  font-size: 15px;
  min-width: 42px;
}
.bet-tools input {
  min-width: 50px;
}
.presets {
  display: flex;
  gap: 5px;
}
.presets button {
  padding: 5px 10px;
  font-size: 10px;
}
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.7fr;
  gap: 8px;
}
.action-buttons button {
  min-height: 46px;
  font-size: 12px;
}
.waiting {
  padding-top: 20px;
  color: #9bb3b1;
  font: italic 16px Georgia;
}
.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 7px;
}
.end-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.end-actions .primary {
  flex: 1;
}
.end-actions button {
  min-width: 140px;
}
#save-status {
  position: fixed;
  bottom: 3px;
  right: 12px;
  font-size: 8px;
  color: #79938e;
  z-index: 5;
  max-width: 80%;
  text-align: right;
  pointer-events: none;
}
#save-status.warning {
  background: #30291fee;
  color: #f4d7a4;
  padding: 6px 10px;
  bottom: auto;
  top: 56px;
  font-size: 11px;
}
dialog {
  width: min(950px,94vw);
  max-height: 92dvh;
  color: var(--ink);
  background: linear-gradient(140deg,#15282d,#0a181d);
  border: 1px solid #acbca64d;
  border-radius: 10px;
  padding: 34px;
  box-shadow: 0 30px 130px #0009;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #020a0fc4;
  backdrop-filter: blur(6px);
}
.close {
  position: absolute;
  right: 9px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 26px;
  color: #9cafad;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: 18px 0;
}
.cast-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0 16px 12px;
  background: linear-gradient(#1d343b,#14252b);
}
.cast-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center top;
  mask-image: linear-gradient(#000 75%,transparent);
}
.cast-card b {
  font: 18px Georgia;
  color: #e9d7af;
  letter-spacing: .1em;
}
.cast-card small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #a4b8b7;
  letter-spacing: .08em;
}
.selection-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #8baca8;
  border: 1px solid #8baca844;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  padding-top: 1px;
}
.cast-card.selected {
  border-color: var(--gold);
  background: linear-gradient(#304246,#172b2e);
}
.selected .selection-mark {
  background: var(--gold);
  color: #11282d;
}
.form-row {
  display: flex;
  gap: 18px;
}
.form-row label {
  flex: 1;
}
.night-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.night-list button {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 24px;
  padding: 18px;
}
.night-list button>span:last-child {
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
}
.night-list small {
  display: block;
  color: #8ba6a8;
  margin-top: 4px;
  font-size: 9px;
}
.night-number {
  font: 30px Georgia;
  color: #a78b5c;
}
.night-list b {
  font: 18px Georgia;
  letter-spacing: .06em;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.check-label {
  flex-direction: row;
  align-items: center;
}
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.collection-grid article {
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: 6px;
}
.collection-grid p {
  font-size: 12px;
  color: #adc2bf;
}
.collection-grid blockquote {
  font: italic 16px/1.5 Georgia;
  margin: 16px 0;
  color: #dfcfad;
}
.collection-grid progress {
  height: 5px;
  width: 100%;
  accent-color: var(--gold);
  display: block;
  margin: 15px 0 8px;
}
.collection-grid small {
  color: #88a5a3;
}
.lesson-question {
  font: 22px/1.5 Georgia;
  color: #d9dfd8;
  margin: 22px 0;
}
.lesson-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 25px 0;
}
.lesson-options {
  display: grid;
  gap: 8px;
}
.lesson-options button {
  text-align: left;
}
.correct {
  border-color: #8ed3a5;
  background: #214637;
}
.incorrect {
  border-color: #cd8c77;
}
.feedback {
  background: #c2a67315;
  border: 1px solid #c2a67344;
  padding: 16px;
  color: #dccda9;
  border-radius: 5px;
  margin: 16px 0;
}
.review-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
}
.review-navigation label {
  flex: 1;
}
.review-stage {
  padding: 20px 0;
}
.review-stage>.cards {
  margin: 15px 0 25px;
}
.review-players {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.review-players article {
  text-align: center;
  border: 1px solid var(--edge);
  padding: 12px 5px;
  border-radius: 6px;
  min-height: 160px;
}
.review-players .cards {
  margin: 10px 0;
  min-height: 50px;
}
.review-players .card {
  width: 36px;
  height: 50px;
  font-size: 16px;
}
.review-players .card i {
  font-size: 20px;
}
.review-players small {
  font-size: 8px;
  color: #87a5a1;
}
.review-players p {
  font-size: 10px;
  color: #adc2bd;
}
.pot-review {
  padding: 16px;
  background: #192e30;
  margin-top: 16px;
  border-radius: 5px;
}
.pot-review p {
  font-size: 12px;
}
.standings p {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--edge);
}
details {
  margin-top: 18px;
  color: #9db8b1;
  font-size: 12px;
}
summary {
  min-height: 44px;
  cursor: pointer;
  padding: 12px 0;
}
li {
  margin: 6px 0;
}
.rotation {
  display: none;
}
.rotation-icon {
  font: 70px Georgia;
  color: var(--gold);
}
[data-back=ren] .card.back {
  background-color: #473b61;
  background-image: repeating-linear-gradient(45deg,#473b61,#473b61 4px,#62527e 5px);
}
[data-back=haru] .card.back {
  background: #704124;
}
[data-back=sena] .card.back {
  background: #294d6b;
}
[data-back=mira] .card.back {
  background: #663a50;
}
[data-back=kai] .card.back {
  background: #743b32;
}
[data-back=nami] .card.back {
  background: #2a6458;
}
@media(max-height:650px) {
  .home-copy {
    padding-top: 20px;
  }
  .home-copy h1 {
    font-size: clamp(48px,8vw,86px);
    margin: 20px 0 16px;
  }
  .home-copy .intro {
    font-size: 18px;
  }
  .home-actions {
    margin-top: 18px;
    gap: 6px;
  }
  .home-actions button {
    min-height: 44px;
    padding: 8px 16px;
  }
  .home-copy .disclaimer {
    margin-top: 12px;
    font-size: 8px;
  }
  .home-footer {
    padding: 4px 5%;
  }
  .host-portrait {
    bottom: 4%;
    max-height: 100%;
  }
  .home-copy {
    padding-bottom: 40px;
  }
}
@media(max-width:1000px),(max-height:520px) {
  #app {
    grid-template-rows: 44px minmax(0,1fr);
    min-height: 300px;
  }
  .topbar {
    padding: 0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));
    gap: 10px;
  }
  .brand {
    font-size: 12px;
  }
  .brand span {
    font-size: 6px;
  }
  .topbar nav {
    gap: 0;
  }
  .topbar nav button {
    padding: 5px 10px;
    font-size: 10px;
  }
  #night-label {
    font-size: 8px;
    letter-spacing: .07em;
  }
  #table {
    grid-template-rows: minmax(0,1fr) 134px;
  }
  #controls {
    padding: 4px 14px 8px;
    grid-template-columns: 150px minmax(0,1fr);
    gap: 14px;
  }
  .your-hand {
    gap: 12px;
  }
  .your-hand strong {
    font-size: 20px;
  }
  .your-hand .eyebrow {
    font-size: 8px;
  }
  .your-hand small {
    font-size: 7px;
  }
  .your-hand .card {
    width: 35px;
    height: 51px;
    font-size: 17px;
    padding: 4px;
  }
  .your-hand .cards {
    gap: 3px;
  }
  .your-hand .card i {
    font-size: 20px;
  }
  .decision-heading {
    font-size: 8px;
    letter-spacing: .05em;
    min-height: 22px;
  }
  .bet-tools {
    gap: 8px;
    min-height: 44px;
  }
  .bet-tools label {
    gap: 5px;
    font-size: 8px;
  }
  .bet-tools output {
    font-size: 13px;
    min-width: 35px;
  }
  .presets {
    gap: 3px;
  }
  .presets button {
    min-width: 44px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .action-buttons button {
    min-height: 44px;
    font-size: 11px;
    padding: 7px;
  }
  .action-buttons {
    gap: 6px;
  }
  .card {
    width: 34px;
    height: 47px;
    font-size: 16px;
    padding: 4px;
  }
  .card i {
    font-size: 20px;
  }
  .cards {
    gap: 4px;
  }
  .board {
    top: 57%;
    gap: 2px;
  }
  .pot-label {
    font-size: 7px;
  }
  .pot-label strong {
    font-size: 16px;
    margin-left: 8px;
  }
  .street-label {
    font-size: 8px;
    max-width: 65vw;
  }
  .seats {
    top: 39%;
    left: 8%;
    right: 8%;
    gap: 8%;
  }
  .seat {
    padding: 3px 7px;
    border-radius: 5px;
    width: min(100%,160px);
  }
  .seat-title {
    font-size: 9px;
    gap: 6px;
  }
  .seat-title>span:last-child {
    font-size: 11px;
  }
  .seat small {
    font-size: 6px;
    letter-spacing: .02em;
  }
  .seat .cards {
    top: -37px;
  }
  .seat .card {
    width: 23px;
    height: 33px;
    font-size: 10px;
    padding: 3px;
  }
  .seat .card i {
    font-size: 12px;
  }
  .bet-pill {
    font-size: 8px;
    top: 100%;
    margin-left: 75px;
    background: #1020239c;
    padding: 0 3px;
  }
  .table-corner {
    left: 12px;
    bottom: 6px;
    font-size: 7px;
  }
  .skip {
    font-size: 9px;
    bottom: 0;
    right: 4px;
  }
  #subtitle {
    font-size: 11px;
    top: 4px;
    left: 15%;
    right: 15%;
    max-height: 30px;
  }
  .waiting {
    padding-top: 10px;
    font-size: 13px;
  }
  .end-actions {
    margin-top: 7px;
  }
  .end-actions button {
    font-size: 11px;
    min-width: 100px;
  }
  #save-status.warning {
    top: 44px;
    font-size: 9px;
  }
  dialog {
    padding: 24px;
    max-height: 94dvh;
  }
  .cast-card img {
    height: 110px;
  }
  .cast-card {
    padding: 0 10px 8px;
  }
  .cast-card b {
    font-size: 16px;
  }
  .cast-grid {
    gap: 8px;
  }
  .cast-card small {
    font-size: 7px;
  }
  .lesson-question {
    font-size: 18px;
  }
  .lesson-cards {
    margin: 15px 0;
  }
  .collection-grid {
    gap: 10px;
  }
  .collection-grid article {
    padding: 15px;
  }
}
@media(max-height:440px) and (min-width:600px) {
  .home-copy {
    padding: 20px 0 30px 6%;
    width: 60%;
  }
  .home-copy .eyebrow {
    font-size: 8px;
  }
  .home-copy h1 {
    font-size: 62px;
    margin: 15px 0;
  }
  .home-copy .intro {
    display: none;
  }
  .home-actions {
    grid-template-columns: 1fr 1fr;
    width: 420px;
    gap: 6px;
    margin-top: 14px;
  }
  .home-actions button {
    font-size: 10px;
  }
  .home-actions .primary {
    grid-column: span 2;
  }
  .home-copy .disclaimer {
    margin-top: 8px;
  }
  .home-footer {
    padding: 0 5%;
    height: 32px;
  }
  .home-footer button {
    min-height: 30px;
  }
  .host-portrait {
    right: 3%;
    width: 48%;
  }
  .board {
    top: 55%;
  }
  .board .card {
    width: 30px;
    height: 40px;
    font-size: 14px;
  }
  .board .card i {
    font-size: 17px;
  }
  .pot-label strong {
    font-size: 14px;
  }
  .street-label {
    font-size: 7px;
  }
  .seat small {
    display: none;
  }
  .seats {
    top: 38%;
  }
  .seat-title {
    min-height: 16px;
  }
  .table-corner {
    bottom: 6px;
  }
}
@media(orientation:portrait) and (max-width:650px) {
  body:not(.portrait-allowed) .rotation {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%,#25424b,#07151b 70%);
    padding: 30px;
    gap: 18px;
  }
  .rotation p {
    color: #adc0ba;
    font-size: 13px;
    line-height: 1.8;
  }
  .rotation h2 {
    font-size: 40px;
    margin: 0;
  }
  .rotation button {
    margin-top: 20px;
  }
  #night-label {
    display: none;
  }
  #table {
    grid-template-rows: minmax(250px,1fr) 220px;
  }
  #controls {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
  }
  .your-hand {
    justify-content: flex-start;
  }
  .decision {
    justify-self: stretch;
  }
  .home-copy {
    width: 100%;
    padding: 35px 7% 70px;
    background: linear-gradient(90deg,#061519df,#06151966);
  }
  .home-copy h1 {
    font-size: 74px;
  }
  .host-portrait {
    width: 100%;
    max-height: 75%;
    bottom: 20%;
    right: -25%;
  }
  .home-copy>.eyebrow {
    font-size: 8px;
  }
  .home-actions {
    width: 80%;
    margin-top: 24px;
  }
  .home-footer>span {
    display: none;
  }
  .home-footer>div {
    justify-content: space-between;
    width: 100%;
  }
  .cast-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .settings-grid,.collection-grid {
    grid-template-columns: 1fr;
  }
  .night-list button {
    padding: 12px;
    gap: 12px;
  }
  .night-list b {
    font-size: 15px;
  }
  .night-list button>span:last-child {
    font-size: 8px;
  }
  .review-players {
    grid-template-columns: repeat(2,1fr);
  }
  .lesson-cards {
    gap: 15px;
    flex-wrap: wrap;
  }
  .topbar nav button {
    font-size: 9px;
    padding: 5px 8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    animation: none!important;
  }
}
@keyframes card-arrival {
  from {
    opacity: 0;
    transform: translate(65px,-35px) rotate(12deg);
  }
  to {
    opacity: 1;
    transform: translate(0,0);
  }
}
@keyframes card-reveal {
  0% {
    transform: perspective(600px) rotateY(90deg);
    opacity: .3;
  }
  100% {
    transform: perspective(600px) rotateY(0);
    opacity: 1;
  }
}
#table[data-effect=deal] .your-hand .card {
  animation: card-arrival .5s ease-out both;
}
#table[data-effect=deal] .your-hand .card:last-child {
  animation-delay: .12s;
}
#table[data-effect=street][data-phase=flop] .board .card:nth-child(-n+3),#table[data-effect=street][data-phase=turn] .board .card:nth-child(4),#table[data-effect=street][data-phase=river] .board .card:nth-child(5) {
  animation: card-reveal .45s ease-out both;
}
#table[data-effect=street][data-phase=flop] .board .card:nth-child(2) {
  animation-delay: .09s;
}
#table[data-effect=street][data-phase=flop] .board .card:nth-child(3) {
  animation-delay: .18s;
}
.reduced * {
  animation: none!important;
  transition: none!important;
}

/* The two side seats sit farther down the curved rail than the central guest. */
/* Keep the complete board below the centre nameplate on short desktop windows. */
@media(min-width:1001px) and (min-height:521px) and (max-height:800px) {
  .board { top:80%;gap:2px; }
  .board .card { width:36px;height:48px;font-size:16px;padding:4px; }
  .board .card i { font-size:19px; }
  .pot-label { font-size:7px; }
  .pot-label strong { font-size:18px; }
  .street-label { font-size:8px; }
  .seat-title,.seat-title>span:last-child { font-size:11px; }
  .seat small { font-size:7px; }
}
@media(min-width:651px) {
  .seat:first-child,.seat:last-child { transform: translateY(4.7vh); }
}
@media(orientation:landscape) and (max-height:520px) and (min-width:650px) {
  #table { grid-template-columns:minmax(0,1fr) 280px; grid-template-rows:minmax(0,1fr); }
  #controls { grid-template-columns:1fr;grid-template-rows:74px minmax(0,1fr);gap:8px;padding:10px 12px;border-top:0;border-left:1px solid #bcb78d50; }
  .your-hand { justify-content:center; }
  .decision { justify-content:center; }
  .bet-tools { flex-direction:column;gap:0; }
  .bet-tools label { width:100%;flex:none; }
  .presets { width:100%;justify-content:space-between; }
  .action-buttons { margin-top:8px;gap:4px; }
  .action-buttons button { font-size:10px;padding:6px 3px; }
  .action-buttons kbd { display:none; }
  .seats { top:70%;left:5%;right:5%;gap:0; }
  .seat { padding:3px 5px;width:min(100%,140px); }
  .seat:first-child,.seat:last-child { transform:translateY(7vh); }
  .board { top:78%;gap:2px; }
  .board .card { width:30px;height:40px;font-size:14px; }
  .board .card i { font-size:17px; }
  .pot-label { font-size:6px; }
  .pot-label strong { font-size:14px; }
  .street-label { max-width:94%;font-size:7px; }
  .bet-pill { margin-left:0;top:calc(100% + 2px);font-size:7px; }
  .table-corner { font-size:6px;bottom:3px; }
  #subtitle { font-size:10px;left:7%;right:7%; }
  .end-actions { flex-direction:column;gap:6px; }
}
