:root {
  --bg-top: #040611;
  --bg-bottom: #0a1230;
  --text: #eaf2ff;
  --card-bg-panel: #e7edf6;
  --card-text: #0f172a;
  --card-line: #c9d5e6;
  --table-bg: #16533c;
  --table-bg-deep: #08291f;
  --gold: #ffe45c;
  --gold-2: #d79a1f;
  --red: #d92d2d;
  --black: #18212f;
  --font-ui: "Noto Sans TC", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-bottom), var(--bg-top));
  color: var(--text);
  font-family: var(--font-ui);
}

button {
  font-family: inherit;
}

.page-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 24px;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 10, 23, 0.92);
  border-bottom: 1px solid rgba(126, 153, 255, 0.24);
  backdrop-filter: blur(8px);
}

.top-strip-inner {
  overflow-x: auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 58px;
  width: max-content;
  min-width: 100%;
  padding: 0.5rem 0;
}

.icon-button {
  width: auto;
  height: auto;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background: none;
  border: none;
  transition: filter 0.2s, transform 0.2s;
}

.icon-button img {
  width: clamp(168px, 26vw, 280px);
  height: auto;
  pointer-events: none;
}

.top-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  flex-shrink: 0;
  min-width: max-content;
  white-space: nowrap;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.02rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 191, 255, 0.2);
  background: rgba(14, 20, 38, 0.72);
  color: #e6eeff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.top-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(31, 47, 84, 0.96);
  border-color: rgba(141, 176, 255, 0.5);
  box-shadow: 0 10px 24px rgba(5, 10, 24, 0.32);
}

.top-nav-link.is-active {
  background: linear-gradient(135deg, rgba(74, 117, 255, 0.92), rgba(42, 80, 186, 0.92));
  border-color: rgba(198, 217, 255, 0.74);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(43, 77, 179, 0.28);
}

.game-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.2rem 0 2rem;
}

.game-stage,
.game-info {
  grid-column: 1;
}

.game-panel {
  background: var(--card-bg-panel);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--card-text);
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(9, 20, 36, 0.08);
}

.game-stage {
  padding: 16px;
}

.game-shell-high-card .game-shell__button {
  font-size: 1.25rem;
  min-height: 46px;
  padding: 0.72rem 1.18rem;
}

.high-card-audio-toggle {
  min-width: 74px;
  padding-inline: 0.92rem;
}

.high-card-audio-toggle.is-muted {
  background: rgba(21, 32, 58, 0.92);
  border-color: rgba(164, 191, 255, 0.24);
  color: #eef4ff;
  opacity: 0.88;
}

.high-card-viewport {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(152, 192, 255, 0.48);
  background:
    radial-gradient(circle at 50% -15%, rgba(245, 255, 250, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 12px),
    linear-gradient(160deg, var(--table-bg), var(--table-bg-deep));
  overflow: hidden;
  user-select: none;
}

.high-card-board {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 2vw, 26px);
  color: #f7fbff;
}

.high-card-table-top {
  display: grid;
  place-items: center;
  min-height: 66px;
}

.high-card-round-badge {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.high-card-round-badge span {
  color: #f6d66c;
  font-weight: 900;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.high-card-round-badge span::after {
  content: ":";
}

.high-card-round-badge strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.high-card-round-badge {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.high-card-draw-area {
  display: grid;
  grid-template-rows: minmax(136px, 1fr) minmax(210px, 1.36fr) minmax(136px, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 18px);
  min-width: 0;
  min-height: 0;
}

.high-card-card-row {
  --high-card-row-card-width: clamp(75px, 5.85vw, 85px);
  --high-card-row-inline-padding: 10px;
  --high-card-row-overlap: calc((100% - (var(--high-card-row-card-width) * 26)) / 25);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 100%;
  padding: clamp(18px, 2vw, 30px) var(--high-card-row-inline-padding);
  border-radius: 28px;
  border: 2px solid rgba(255, 205, 82, 0.62);
  background:
    linear-gradient(180deg, rgba(5, 22, 19, 0.44), rgba(2, 10, 9, 0.58)),
    rgba(2, 11, 20, 0.28);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -18px 28px rgba(0, 0, 0, 0.24),
    0 16px 28px rgba(0, 0, 0, 0.24);
}

.high-card-row-card {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--high-card-row-card-width);
  width: var(--high-card-row-card-width);
  height: clamp(102px, 9.55vw, 120px);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    #2563eb;
  background-position: 11px 0, 11px 0, 0 0, 0 0;
  background-size: 22px 22px;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.36), inset 0 0 0 2px rgba(45, 100, 226, 0.6);
  cursor: pointer;
  opacity: 0;
  transform: none;
  animation: dealRowCard 0.22s ease-out forwards;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.high-card-row-card + .high-card-row-card {
  margin-left: var(--high-card-row-overlap);
}

.high-card-card-row--bottom .high-card-row-card {
  transform: none;
}

.high-card-row-card:hover,
.high-card-row-card:focus-visible {
  filter: brightness(1.14);
  z-index: 40;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.36), 0 0 0 2px rgba(255, 228, 92, 0.64), inset 0 0 0 2px rgba(45, 100, 226, 0.6);
  outline: none;
}

.high-card-card-row--top .high-card-row-card:hover,
.high-card-card-row--top .high-card-row-card:focus-visible {
  transform: translateY(14px);
}

.high-card-card-row--bottom .high-card-row-card:hover,
.high-card-card-row--bottom .high-card-row-card:focus-visible {
  transform: translateY(-14px);
}

.high-card-row-card[disabled] {
  cursor: default;
  filter: saturate(0.7);
  opacity: 0.42;
}

.high-card-row-card.is-picked {
  opacity: 0.2;
  transform: scale(0.86);
}

.high-card-row-card.is-computer-pick {
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.72), 0 0 18px rgba(125, 211, 252, 0.42);
}

.high-card-row-card.is-settled {
  opacity: 1;
  transform: none;
  animation: none;
}

.high-card-duel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: 0;
}

.high-card-duel-main {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 3.5vw, 56px);
  width: calc(100% - clamp(52px, 6.4vw, 76px));
  min-height: 0;
  transform: translateY(-26px);
}

.high-card-hand {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.high-card-hand--player {
  grid-template-columns: auto auto;
  justify-self: start;
  margin-left: 0;
}

.high-card-hand--dealer {
  grid-template-columns: auto auto;
  justify-self: end;
  margin-right: 0;
}

.high-card-hand--player h2 {
  order: 2;
}

.high-card-hand--player .high-card-card-slot {
  order: 1;
}

.high-card-hand--dealer h2 {
  order: 1;
}

.high-card-hand--dealer .high-card-card-slot {
  order: 2;
}

.high-card-hand h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.08rem, 1.55vw, 1.5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.high-card-card-slot {
  display: grid;
  place-items: center;
  width: clamp(100px, 9.4vw, 122px);
  aspect-ratio: 0.69;
  border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.18);
}

.high-card-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.high-card-card--face {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  color: var(--black);
  border: 1px solid #d9e3f1;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: cardPop 0.22s ease-out;
}

.high-card-card--face.red {
  color: var(--red);
}

.high-card-card--face.black {
  color: var(--black);
}

.high-card-card__corner {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-content: start;
  width: min-content;
  min-width: 48px;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.high-card-card__rank {
  font-size: clamp(1.1rem, 2.1vw, 1.65rem);
}

.high-card-card__suit {
  font-size: clamp(1rem, 1.8vw, 1.42rem);
}

.high-card-card__center {
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.9;
}

.high-card-card--back,
.high-card-card--discard {
  width: 82px;
  height: 118px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    #2563eb;
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.high-card-card--discard {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 238, 248, 0.92));
  border-color: rgba(255, 255, 255, 0.54);
}

.high-card-card--discard::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 8px;
  border: 2px solid rgba(24, 33, 47, 0.16);
}

.high-card-card--placeholder {
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.high-card-card-slot.is-round-winner {
  border-color: rgba(255, 228, 92, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 228, 92, 0.2), 0 0 28px rgba(255, 228, 92, 0.54);
}

.high-card-card-slot.is-round-loser {
  opacity: 0.74;
  filter: saturate(0.74);
}

.high-card-card-slot.is-round-tie {
  border-color: rgba(147, 197, 253, 0.88);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.18), 0 0 24px rgba(147, 197, 253, 0.44);
}

.high-card-versus {
  display: grid;
  place-items: center;
  width: clamp(52px, 5.2vw, 72px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 228, 92, 0.48);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241707;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  font-weight: 1000;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 228, 92, 0.32);
}

.high-card-result {
  width: min(530px, calc(100% - 48px));
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 228, 92, 0.24);
  background: rgba(7, 12, 26, 0.64);
  color: #ffffff;
  font-size: clamp(1rem, 1.34vw, 1.22rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.high-card-result[hidden] {
  display: none;
}

.high-card-action-row {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(208px, calc(30vh - 40px), 240px);
  z-index: 12;
  pointer-events: none;
  min-height: 54px;
  align-items: center;
}

.high-card-action {
  min-width: min(340px, calc(100% - 80px));
  min-height: 56px;
  border-radius: 999px;
  border-color: rgba(255, 245, 166, 0.58);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241707;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  pointer-events: auto;
}

.high-card-action[hidden] {
  display: none;
}

.fs-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 1.4rem 3rem;
  border-radius: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.fs-hint.show {
  opacity: 1;
  visibility: visible;
}

.high-card-fs-controls,
.high-card-fs-stats {
  position: absolute;
  z-index: 10001;
  display: none;
  gap: 10px;
}

.high-card-fs-stat {
  min-width: 132px;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 18px;
  color: #f4f8ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(7, 12, 26, 0.82);
  border: 1px solid rgba(164, 191, 255, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  text-align: right;
}

.high-card-fs-stat__label {
  color: #f6d66c;
  font-size: 1rem;
  font-weight: 800;
}

.high-card-fs-stat__value {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.high-card-win {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(4px);
  text-align: center;
}

.high-card-win[hidden] {
  display: none;
}

.high-card-win__panel {
  width: min(430px, calc(100% - 32px));
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 228, 92, 0.38);
  background: linear-gradient(180deg, rgba(19, 31, 63, 0.96), rgba(8, 14, 33, 0.98));
  color: #eef4ff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.high-card-win__kicker {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.high-card-win__panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
}

.high-card-win__panel p {
  margin: 0.65rem 0 0;
  color: #eef4ff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.65;
}

.high-card-win__panel button {
  margin-top: 0.9rem;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241707;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.high-card-win__panel button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(234, 179, 8, 0.28);
}

.game-shell-high-card .game-shell__sidebar {
  align-content: start;
}

.high-card-side-panel {
  display: grid;
  gap: 16px;
}

.high-card-side-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
}

.high-card-side-stats {
  display: grid;
  gap: 10px;
}

.high-card-side-stat {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 228, 92, 0.22);
  background: rgba(7, 12, 26, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.high-card-side-stat__label {
  color: #f6d66c;
  font-size: 0.95rem;
  font-weight: 800;
}

.high-card-side-stat__value {
  color: #ffffff;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.high-card-side-note {
  margin: 0;
  color: #d7e6ff;
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid rgba(177, 198, 233, 0.28);
  padding: 1rem 0 1.5rem;
  color: #d5e2ff;
}

.site-footer a {
  color: #eaf2ff;
}

#gameViewport:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(245, 255, 250, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 12px),
    linear-gradient(160deg, var(--table-bg), var(--table-bg-deep));
}

#gameViewport:fullscreen::backdrop {
  background: #12331e;
}

#gameViewport:fullscreen .high-card-board {
  width: min(calc(100vw - 460px), 1180px);
  margin: 0 auto;
}

#gameViewport:fullscreen .high-card-fs-controls {
  display: grid;
  position: fixed;
  left: clamp(12px, 2.2vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  align-content: start;
  grid-auto-flow: row;
}

#gameViewport:fullscreen .high-card-fs-stats {
  display: grid;
  position: fixed;
  right: clamp(12px, 2.2vw, 34px);
  top: 50%;
  transform: translateY(-50%);
}

#gameViewport:fullscreen .high-card-fs-controls .game-shell__button {
  min-width: 132px;
  justify-content: flex-start;
  padding-inline: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@keyframes cardPop {
  from {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes dealRowCard {
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .game-stage {
    --game-frame-sidebar-width: 0px;
  }

  .game-shell-high-card .game-shell__sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-wrap {
    padding-inline: 16px;
  }

  .top-bar {
    gap: 0.9rem;
    padding: 0.45rem 0;
  }

  .top-nav-links {
    gap: 0.5rem;
  }

  .top-nav-link {
    min-height: 40px;
    padding: 0.52rem 0.82rem;
    font-size: 0.95rem;
  }

  .game-stage {
    --game-frame-width: 430px;
    --game-frame-height: 960px;
    --game-frame-gap: 0px;
    --game-frame-padding: 12px;
    --game-frame-surface-padding: 8px;
    padding: 12px;
  }

  .game-shell-high-card .game-shell__button {
    font-size: 1rem;
    min-height: 40px;
    padding: 0.62rem 0.82rem;
  }

  .high-card-board {
    gap: 0;
    padding: 12px;
  }

  .high-card-round-badge {
    min-width: 0;
    width: auto;
    padding: 0;
  }

  .high-card-round-badge span {
    font-size: 1.22rem;
  }

  .high-card-round-badge strong {
    font-size: 1.22rem;
  }

  .high-card-draw-area {
    grid-template-rows: minmax(120px, 0.95fr) minmax(0, 1.24fr) minmax(120px, 0.95fr);
    gap: 10px;
  }

  .high-card-card-row {
    --high-card-row-card-width: 52px;
    --high-card-row-inline-padding: 10px;
    justify-content: flex-start;
    gap: 0;
    padding: 16px var(--high-card-row-inline-padding);
    border-radius: 22px;
  }

  .high-card-row-card {
    height: 80px;
  }

  .high-card-duel {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }

  .high-card-duel-main {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 8px;
    width: calc(100% - 28px);
    transform: translateY(-18px);
  }

  .high-card-hand--player {
    margin-left: 4px;
  }

  .high-card-hand--dealer {
    margin-right: 4px;
  }

  .high-card-hand--player h2 {
    order: 1;
  }

  .high-card-hand--player .high-card-card-slot {
    order: 2;
  }

  .high-card-hand--dealer .high-card-card-slot {
    order: 1;
  }

  .high-card-hand--dealer h2 {
    order: 2;
  }

  .high-card-card-slot {
    width: min(92px, 24vw);
    border-radius: 14px;
  }

  .high-card-hand {
    gap: 8px;
  }

  .high-card-hand h2 {
    font-size: 1.08rem;
    line-height: 1;
  }

  .high-card-versus {
    width: 54px;
    font-size: 1.45rem;
  }

  .high-card-result {
    width: min(310px, calc(100% - 36px));
    border-radius: 999px;
    min-height: 48px;
    font-size: 1rem;
  }

  .high-card-action-row {
    bottom: clamp(168px, calc(23vh - 20px), 198px);
  }

  .high-card-action {
    min-width: min(250px, calc(100% - 64px));
    min-height: 50px;
    font-size: 1.35rem;
  }

  #gameViewport:fullscreen .high-card-board {
    width: min(calc(100vw - 24px), 680px);
  }

  #gameViewport:fullscreen .high-card-fs-controls,
  #gameViewport:fullscreen .high-card-fs-stats {
    display: none;
  }
}
