:root {
  --bg: #071422;
  --panel: #0d2131;
  --ink: #eee8d9;
  --muted: #8aa4b5;
  --brass: #c8923a;
  --gold: #e6c37a;
  --cyan: #6ee0e8;
  --felt: #0a4b47;
  --felt-deep: #062e32;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #03080d;
  color: var(--ink);
  font-family: Barlow, "Segoe UI", sans-serif;
}

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(40, 139, 150, 0.16), transparent 26rem),
    #03080d;
}

button {
  font: inherit;
}

.phone {
  position: relative;
  display: grid;
  grid-template-rows: 50px 60px minmax(0, 1fr) 170px;
  width: min(390px, calc(100vw - 32px), calc((100dvh - 32px) * 9 / 19.5));
  aspect-ratio: 9 / 19.5;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid #40351f;
  border-radius: 30px;
  background:
    radial-gradient(circle at 75% 8%, rgba(30, 119, 133, 0.26), transparent 16rem),
    linear-gradient(180deg, #071422, #091a28 62%, #06101a);
  box-shadow:
    0 0 0 8px #151515,
    0 0 0 10px #3a3224,
    0 24px 70px rgba(0, 0, 0, 0.65);
}

.phone::before {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 50%;
  width: 72px;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  content: "";
  transform: translateX(-50%);
}

.sponsor-ad {
  z-index: 4;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 7px;
  border-bottom: 1px solid rgba(110, 224, 232, 0.22);
  background:
    linear-gradient(90deg, rgba(6, 21, 33, 0.98), rgba(13, 48, 62, 0.98)),
    var(--bg);
}

.ad-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  border: 1px solid rgba(230, 195, 122, 0.5);
  border-radius: 7px;
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ad-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.05;
  text-transform: uppercase;
}

.ad-copy small {
  color: var(--cyan);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ad-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-cta {
  padding: 4px 7px;
  border: 1px solid rgba(200, 146, 58, 0.48);
  border-radius: 8px;
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar {
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: end;
  padding: 9px 14px 8px;
  border-bottom: 1px solid rgba(200, 146, 58, 0.24);
  background: rgba(5, 18, 29, 0.84);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand small {
  color: var(--brass);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.brand strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 18px rgba(110, 224, 232, 0.18);
}

.icon-button,
.sound-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border: 1px solid rgba(200, 146, 58, 0.42);
  border-radius: 50%;
  background: rgba(13, 33, 49, 0.9);
  color: var(--gold);
}

.icon-button {
  gap: 3px;
}

.icon-button span {
  display: block;
  width: 13px;
  height: 1px;
  background: var(--gold);
}

.sound-button {
  justify-self: end;
  font-size: 17px;
  font-weight: 800;
}

.table-shell {
  min-height: 0;
  padding: 7px 9px 0;
}

.table-meta {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-meta b {
  margin-left: auto;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #73e29f;
  box-shadow: 0 0 8px #73e29f;
}

.felt {
  position: relative;
  height: calc(100% - 24px);
  min-height: 0;
  overflow: hidden;
  border: 2px solid #92703b;
  border-radius: 48% 48% 23px 23px / 18% 18% 23px 23px;
  background:
    linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.018) 49%, transparent 52%),
    radial-gradient(ellipse at 50% 38%, #106461, var(--felt) 46%, var(--felt-deep));
  box-shadow:
    inset 0 0 0 4px #13372f,
    inset 0 0 50px rgba(0, 0, 0, 0.5),
    0 7px 20px rgba(0, 0, 0, 0.32);
}

.felt::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(230, 195, 122, 0.22);
  border-radius: 47% 47% 16px 16px / 18% 18% 16px 16px;
  content: "";
  pointer-events: none;
}

.felt-glow {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 250px;
  height: 160px;
  border: 1px solid rgba(230, 195, 122, 0.08);
  border-radius: 50%;
  transform: translateX(-50%);
}

.shoe {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 20px;
  width: 32px;
  height: 38px;
  border: 1px solid #1a1510;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(145deg, #46351f, #17130f);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.35);
  transform: rotate(4deg);
}

.shoe-card {
  position: absolute;
  top: -5px;
  left: 5px;
  width: 22px;
  height: 30px;
  border: 2px solid #e3dbc8;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, #8e382d 0 2px, #cfab79 2px 3px);
}

.shoe-card:nth-child(2) {
  top: -7px;
}

.shoe-card:nth-child(3) {
  top: -9px;
}

.dealer {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.dealer p {
  margin: 0 0 3px;
  color: #b3c7c8;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dealer p span {
  display: inline-grid;
  min-width: 20px;
  height: 16px;
  margin-left: 3px;
  place-content: center;
  border-radius: 8px;
  background: var(--brass);
  color: #10100d;
}

.hand {
  display: flex;
  justify-content: center;
}

.card {
  position: relative;
  width: 35px;
  height: 49px;
  padding: 2px 3px;
  border: 1px solid #d2c7ad;
  border-radius: 4px;
  background: linear-gradient(145deg, #fffef8, #e7dfcf);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  color: #17252b;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 0.9;
  text-align: left;
}

.card + .card {
  margin-left: -8px;
  transform: rotate(5deg);
}

.card:first-child {
  transform: rotate(-4deg);
}

.card i {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-style: normal;
}

.card.red {
  color: #a52f2e;
}

.card-back {
  border: 3px solid #e7dfcf;
  background:
    linear-gradient(45deg, transparent 42%, rgba(240, 211, 162, 0.45) 43% 47%, transparent 48%),
    linear-gradient(-45deg, transparent 42%, rgba(240, 211, 162, 0.45) 43% 47%, transparent 48%),
    #8e382d;
  background-size: 9px 9px;
  box-shadow:
    inset 0 0 0 1px #8e382d,
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.rule-line {
  position: absolute;
  top: 87px;
  left: 50%;
  display: flex;
  width: 170px;
  flex-direction: column;
  align-items: center;
  color: rgba(230, 195, 122, 0.58);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.rule-line i {
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.seat {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dbe7e4;
  font-family: "Barlow Condensed", sans-serif;
}

.seat > div:not(.avatar):not(.mini-hand) {
  display: flex;
  flex-direction: column;
}

.seat strong {
  font-size: 13px;
  line-height: 1;
}

.seat small {
  color: #91aca9;
  font-size: 10px;
  font-weight: 700;
}

.avatar {
  display: grid;
  width: 25px;
  height: 25px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #061319;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(145deg, #98f2ee, #54afb9);
}

.avatar-cyan {
  background: linear-gradient(145deg, #98f2ee, #54afb9);
}

.avatar-gold {
  background: linear-gradient(145deg, #f4d58c, #b77e29);
}

.avatar-violet {
  background: linear-gradient(145deg, #c7b4f3, #7866ae);
}

.seat-order {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(230, 195, 122, 0.55);
  border-radius: 50%;
  background: rgba(7, 20, 34, 0.82);
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
}

.mini-hand {
  display: flex;
  align-items: center;
  margin-left: 1px;
}

.mini-card {
  position: relative;
  width: 21px;
  height: 29px;
  padding: 2px;
  border: 1px solid #d2c7ad;
  border-radius: 3px;
  background: linear-gradient(145deg, #fffef8, #e7dfcf);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.32);
  color: #17252b;
  font-size: 8px;
  font-weight: 900;
  line-height: 0.85;
  text-align: left;
}

.mini-card + .mini-card {
  margin-left: -6px;
  transform: rotate(5deg);
}

.mini-card.red {
  color: #a52f2e;
}

.mini-card i {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  font-style: normal;
}

.mini-hand b {
  display: grid;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin-left: -4px;
  place-content: center;
  border: 2px solid var(--felt-deep);
  border-radius: 50%;
  background: var(--gold);
  color: #122027;
  font-size: 8px;
  font-weight: 900;
}

.seat-left-top .mini-hand,
.seat-right-top .mini-hand {
  position: absolute;
  top: 34px;
  width: 58px;
}

.seat-left-top .mini-hand {
  left: 55px;
}

.seat-right-top .mini-hand {
  right: 55px;
  margin-left: 0;
}

.seat-right-top .mini-hand b {
  margin-right: -4px;
  margin-left: 0;
}

.seat-left-bottom .mini-hand {
  position: absolute;
  bottom: 29px;
  left: 12px;
  width: 58px;
}

.seat-left-top {
  top: 117px;
  left: 17px;
}

.seat-right-top {
  top: 117px;
  right: 17px;
  text-align: right;
}

.seat-left-bottom {
  bottom: 92px;
  left: 16px;
}

.seat-right-bottom {
  right: 16px;
  bottom: 92px;
  flex-direction: row-reverse;
  text-align: right;
}

.seat-right-bottom .mini-hand {
  position: absolute;
  right: 12px;
  bottom: 29px;
  width: 58px;
}

.seat-right-bottom .mini-hand b {
  order: -1;
  margin-right: -4px;
  margin-left: 0;
}

.bet-chip,
.status-pill {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-content: center;
  border: 2px dashed #e6c37a;
  border-radius: 50%;
  background: #38545a;
  color: #fff7dd;
  font-size: 7px;
  font-weight: 900;
}

.status-pill {
  width: auto;
  min-width: 30px;
  height: 16px;
  padding: 0 6px;
  border: 1px solid rgba(230, 195, 122, 0.5);
  border-radius: 8px;
  background: rgba(7, 20, 34, 0.72);
  color: var(--gold);
  text-transform: uppercase;
}

.open-seat {
  position: absolute;
  z-index: 3;
  right: 15px;
  bottom: 87px;
  display: flex;
  width: 54px;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  color: #8fb3b1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.open-seat span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  place-content: center;
  border: 1px dashed rgba(110, 224, 232, 0.5);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 18px;
}

.player-zone {
  position: absolute;
  z-index: 4;
  bottom: 11px;
  left: 50%;
  width: 190px;
  transform: translateX(-50%);
}

.turn-banner {
  width: max-content;
  margin: 0 auto 7px;
  padding: 2px 9px;
  border: 1px solid rgba(110, 224, 232, 0.62);
  border-radius: 10px;
  background: rgba(7, 20, 34, 0.88);
  box-shadow: 0 0 12px rgba(110, 224, 232, 0.16);
  color: var(--cyan);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-hand .card {
  width: 42px;
  height: 58px;
  padding: 3px 4px;
  font-size: 15px;
}

.player-hand .card i {
  font-size: 12px;
}

.score-bubble {
  position: absolute;
  top: 18px;
  right: 44px;
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  border: 2px solid #0d2131;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  color: #142027;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.player-name {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 6px;
  margin-top: -4px;
  padding: 5px 8px;
  border: 1px solid rgba(110, 224, 232, 0.45);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(7, 20, 34, 0.94), rgba(13, 42, 61, 0.94));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.you-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), #367981);
  color: #071422;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 900;
}

.player-name div {
  display: flex;
  flex-direction: column;
}

.player-name strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.player-name small {
  color: var(--muted);
  font-size: 10px;
}

.player-bet {
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
}

.controls {
  z-index: 5;
  padding: 7px 12px 10px;
  border-top: 1px solid rgba(200, 146, 58, 0.3);
  background:
    linear-gradient(180deg, rgba(13, 33, 49, 0.98), rgba(6, 16, 26, 0.99));
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.25);
}

.chips {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.chip {
  display: grid;
  width: 35px;
  height: 35px;
  place-content: center;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.28),
    0 3px 6px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.chip-10 {
  background: #375e9d;
}

.chip-25 {
  background: #3b855d;
}

.chip-50 {
  background: #a33c3d;
}

.chip-100 {
  background: #171c23;
}

.chip-500 {
  background: #76488f;
}

.chip.selected {
  width: 39px;
  height: 39px;
  border-color: var(--gold);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(230, 195, 122, 0.4),
    0 0 14px rgba(230, 195, 122, 0.35);
  transform: translateY(-3px);
}

.actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 0.8fr;
  gap: 6px;
  margin-top: 3px;
}

.bet-tools {
  display: flex;
  height: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bet-tools button {
  padding: 2px 8px;
  border: 1px solid rgba(138, 164, 181, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.bet-tools button:disabled {
  opacity: 0.35;
}

.action {
  min-height: 51px;
  padding: 4px;
  border: 1px solid rgba(200, 146, 58, 0.42);
  border-radius: 11px;
  background: linear-gradient(180deg, #173244, #0a1c29);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.action span {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1;
}

.action.hit {
  border-color: #66d7dc;
  background: linear-gradient(180deg, #1a8c91, #0b525a);
  box-shadow: 0 0 12px rgba(110, 224, 232, 0.2);
  color: #efffff;
}

.action.stand {
  border-color: #d0a95a;
  background: linear-gradient(180deg, #a16b26, #694015);
  color: #fff8e9;
}

.action.secondary {
  color: #9fb7c2;
}

.action:disabled,
.chip:disabled,
.deal-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.4;
}

.deal-button {
  width: 100%;
  min-height: 51px;
  margin-top: 3px;
  border: 1px solid #66d7dc;
  border-radius: 11px;
  background: linear-gradient(180deg, #1a8c91, #0b525a);
  box-shadow: 0 0 12px rgba(110, 224, 232, 0.2);
  color: #efffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 7px;
  margin-top: 3px;
}

.round-actions button {
  min-height: 51px;
  border-radius: 11px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.new-bet-button {
  border: 1px solid rgba(230, 195, 122, 0.7);
  background: linear-gradient(180deg, #173244, #0a1c29);
  color: var(--gold);
}

.repeat-bet-button {
  border: 1px solid #66d7dc;
  background: linear-gradient(180deg, #1a8c91, #0b525a);
  box-shadow: 0 0 12px rgba(110, 224, 232, 0.2);
  color: #efffff;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: #77939f;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-note b {
  margin-left: 3px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.footer-note button {
  padding: 4px 9px;
  border: 1px solid rgba(110, 224, 232, 0.4);
  border-radius: 10px;
  background: transparent;
  color: var(--cyan);
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

.overlay {
  position: absolute;
  z-index: 30;
  inset: 50px 0 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 24%, rgba(20, 111, 118, 0.5), transparent 19rem),
    rgba(3, 10, 16, 0.96);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.welcome-card {
  width: 100%;
  padding: 25px 20px;
  border: 1px solid rgba(200, 146, 58, 0.55);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(13, 42, 57, 0.98), rgba(6, 20, 31, 0.99));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.kicker {
  margin: 0;
  color: var(--brass);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.welcome-card h1 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.welcome-card > p:not(.kicker):not(.status) {
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.welcome-card label {
  display: grid;
  gap: 4px;
  margin: 9px 0;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.welcome-card input,
.welcome-card select {
  width: 100%;
  min-height: 41px;
  padding: 0 12px;
  border: 1px solid rgba(138, 164, 181, 0.4);
  border-radius: 9px;
  outline: 0;
  background: rgba(3, 13, 21, 0.72);
  color: var(--ink);
  font: 700 14px Barlow, sans-serif;
}

.welcome-card input:focus,
.welcome-card select:focus {
  border-color: var(--cyan);
}

#code-input {
  min-height: 54px;
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

#code-input::placeholder {
  color: #607d89;
  letter-spacing: 0.12em;
}

.primary-button,
.outline-button,
.join-row button {
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a8c91, #0b525a);
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outline-button {
  border-color: rgba(200, 146, 58, 0.65);
  background: transparent;
  color: var(--gold);
}

.join-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 7px;
  margin-top: 9px;
}

.join-row button {
  margin: 0;
  border-color: rgba(110, 224, 232, 0.5);
  background: rgba(13, 42, 57, 0.9);
  color: var(--cyan);
}

.deck-row {
  grid-template-columns: 1fr 65px;
  align-items: center;
}

.status {
  min-height: 16px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.menu-tagline {
  margin: 7px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.menu-choice {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 40px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(138, 164, 181, 0.32);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(14, 43, 58, 0.95), rgba(8, 25, 37, 0.95));
  color: var(--ink);
  text-align: left;
}

.menu-choice.public-choice {
  border-color: rgba(110, 224, 232, 0.72);
  background: linear-gradient(100deg, rgba(18, 102, 108, 0.98), rgba(10, 60, 70, 0.98));
  box-shadow: 0 0 20px rgba(110, 224, 232, 0.1);
}

.menu-choice.profile-choice {
  border-color: rgba(200, 146, 58, 0.4);
}

.choice-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-content: center;
  border: 1px solid rgba(230, 195, 122, 0.4);
  border-radius: 50%;
  background: rgba(3, 13, 21, 0.45);
  color: var(--gold);
  font-size: 18px;
}

.menu-choice > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.menu-choice strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-choice small {
  margin-top: 3px;
  overflow: hidden;
  color: #9ab0ba;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-choice > b {
  color: var(--gold);
  font-size: 23px;
  font-weight: 500;
}

.legal-note {
  margin: 18px 0 0;
  color: #718c98;
  font-size: 9px;
}

.sub-panel {
  position: relative;
  padding-top: 10px;
}

.sub-panel h2 {
  margin: 5px 0 20px;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-back {
  position: absolute;
  top: -18px;
  left: -4px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  color: #698590;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-divider::before,
.panel-divider::after {
  height: 1px;
  flex: 1;
  background: rgba(138, 164, 181, 0.22);
  content: "";
}

.profile-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 17px;
  place-content: center;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: linear-gradient(145deg, #75dce1, #286a75);
  box-shadow: 0 0 22px rgba(110, 224, 232, 0.18);
  color: #06131b;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.profile-note {
  margin: 15px 8px 0;
  color: #7894a0;
  font-size: 9px;
  line-height: 1.4;
}

.toast {
  position: absolute;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 10px 13px;
  border: 1px solid rgba(230, 195, 122, 0.5);
  border-radius: 10px;
  background: rgba(6, 20, 31, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    display: block;
    background: var(--bg);
  }

  .phone {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 521px) {
  .phone {
    grid-template-rows: 45px 54px minmax(0, 1fr) 154px;
  }

  .sponsor-ad {
    padding-top: 7px;
    padding-bottom: 5px;
  }

  .controls {
    padding-top: 3px;
  }

  .chips {
    height: 36px;
  }

  .chip {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .chip.selected {
    width: 35px;
    height: 35px;
  }

  .action {
    min-height: 46px;
  }
}
