/* Bloco de identidade: concentra o verde royal, superfícies e medidas das cartas. */
:root {
    color-scheme: dark;
    --page: #07110d;
    --page-soft: #0c1a14;
    --royal-green: #006b3c;
    --royal-green-dark: #004d2b;
    --royal-green-light: #098952;
    --gold: #f2c45b;
    --mint: #72e5b5;
    --white: #f7f5ef;
    --ink: #101418;
    --muted: #a8b8af;
    --line: rgba(255, 255, 255, 0.14);
    --danger: #ff7c76;
    --card-width: 58px;
    --card-height: 82px;
    --radius: 18px;
}

/* Bloco de normalizacao: cria uma base consistente em navegadores e telas. */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 0%, rgba(114, 229, 181, 0.12), transparent 32rem),
        linear-gradient(145deg, var(--page-soft), var(--page));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.45;
}

[hidden] {
    display: none !important;
}

/* Bloco superior: mantém marca, retorno e conexão visíveis. */
.topbar {
    position: relative;
    z-index: 30;
    min-height: 68px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: rgba(5, 13, 9, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.back-link {
    width: fit-content;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-lockup > span:last-child {
    padding: 5px 8px;
    color: var(--mint);
    background: rgba(114, 229, 181, 0.1);
    border: 1px solid rgba(114, 229, 181, 0.2);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-suit {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #03130b;
    background: var(--mint);
    border-radius: 9px;
}

.connection-status {
    justify-self: end;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 750;
}

.connection-status.is-online {
    color: var(--mint);
}

/* Bloco de feedback: exibe avisos temporários no canto da tela. */
.toast {
    position: fixed;
    z-index: 100;
    top: 82px;
    right: 20px;
    max-width: min(390px, calc(100% - 40px));
    padding: 14px 17px;
    color: var(--white);
    background: #17231d;
    border: 1px solid rgba(114, 229, 181, 0.38);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.toast.is-error {
    border-color: rgba(255, 124, 118, 0.65);
}

/* Bloco de entrada: apresenta conceito e formulário em duas colunas. */
.entry-screen {
    width: min(1100px, calc(100% - 40px));
    min-height: calc(100vh - 68px);
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.eyebrow {
    margin: 0 0 11px;
    color: var(--mint);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.entry-copy h1,
.lobby-card h1 {
    margin: 0 0 22px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.entry-copy > p:not(.eyebrow) {
    max-width: 630px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.72;
}

.rule-pills {
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
}

.rule-pills li {
    padding: 9px 12px;
    color: var(--mint);
    background: rgba(114, 229, 181, 0.08);
    border: 1px solid rgba(114, 229, 181, 0.19);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.entry-card,
.lobby-card {
    padding: 34px;
    background: rgba(15, 29, 22, 0.94);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
}

.entry-card h2 {
    margin: 0 0 30px;
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.entry-card label {
    margin-bottom: 8px;
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.entry-card input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: var(--white);
    background: #09150f;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
}

.entry-card input:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(114, 229, 181, 0.11);
}

.entry-card > .button {
    width: 100%;
    margin-top: 14px;
}

.join-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

#room-code {
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.divider {
    margin: 26px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718078;
    font-size: 0.72rem;
}

.divider::before,
.divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--line);
}

/* Bloco dos botões: padroniza ações principais, secundárias e experimentais. */
.button {
    min-height: 44px;
    padding: 0 16px;
    color: var(--white);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 820;
    transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.button:not(:disabled):hover,
.button:not(:disabled):focus-visible {
    filter: brightness(1.09);
    transform: translateY(-1px);
}

.button-primary {
    color: #04130b;
    background: var(--mint);
}

.button-secondary {
    color: var(--white);
    background: #26362e;
    border-color: var(--line);
}

.button-ghost {
    color: var(--muted);
    border-color: var(--line);
}

.button-danger {
    color: var(--danger);
    border-color: rgba(255, 124, 118, 0.36);
}

.button-table {
    color: var(--mint);
    background: rgba(0, 54, 30, 0.7);
    border-color: rgba(114, 229, 181, 0.28);
}

/* Bloco do lobby: centraliza sala, código e lista de participantes. */
.lobby-screen {
    width: min(760px, calc(100% - 40px));
    min-height: calc(100vh - 68px);
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 50px 0;
}

.lobby-card {
    width: 100%;
}

.lobby-card h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.room-code {
    padding: 0;
    color: var(--gold);
    background: none;
    border: 0;
    font-weight: inherit;
    letter-spacing: 0.08em;
}

.lobby-help,
.guest-waiting {
    color: var(--muted);
    line-height: 1.6;
}

.lobby-players {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lobby-player {
    min-height: 62px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #0a1710;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.lobby-player span:last-child {
    margin-left: auto;
    color: var(--gold);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.host-controls {
    display: flex;
    gap: 10px;
}

.host-controls .button {
    flex: 1;
}

/* Bloco do HUD: destaca rodada, jogador atual e contagem regressiva. */
.game-screen {
    width: min(1480px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 0 36px;
}

.game-hud {
    min-height: 64px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #0b1811;
    border: 1px solid var(--line);
    border-radius: 15px 15px 0 0;
}

.game-hud > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-hud span {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.game-hud strong {
    font-size: 1rem;
}

.turn-indicator {
    min-width: 230px;
    align-items: center;
    text-align: center;
}

.turn-indicator strong {
    color: var(--gold);
    font-size: 1.22rem;
}

.turn-clock {
    justify-self: end;
    text-align: right;
}

.turn-clock.is-danger strong {
    color: var(--danger);
    animation: pulse 800ms ease-in-out infinite alternate;
}

/* Bloco da mesa: cria feltro royal, moldura e grade sem arquivos de imagem. */
.royal-table {
    position: relative;
    min-height: 680px;
    padding: 118px 130px 166px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at center, var(--royal-green-light), var(--royal-green) 45%, var(--royal-green-dark));
    background-size: 46px 46px, 46px 46px, auto;
    border: 10px solid #163f2b;
    border-radius: 0 0 38px 38px;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.4), 0 35px 90px rgba(0, 0, 0, 0.38);
}

.royal-table::before {
    position: absolute;
    inset: 18px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 23px;
}

/* Bloco dos adversários: posiciona até três mãos fechadas ao redor da mesa. */
.opponent-seat {
    position: absolute;
    z-index: 6;
    min-width: 170px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(4, 24, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.opponent-seat.seat-top {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.opponent-seat.seat-left {
    top: 48%;
    left: 22px;
    transform: translateY(-50%);
}

.opponent-seat.seat-right {
    top: 48%;
    right: 22px;
    transform: translateY(-50%);
}

.opponent-seat.is-current {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242, 196, 91, 0.15), 0 14px 35px rgba(0, 0, 0, 0.28);
}

.avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: #03130b;
    background: var(--mint);
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 900;
}

.opponent-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.opponent-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opponent-info span {
    color: var(--muted);
    font-size: 0.68rem;
}

.mini-hand {
    margin-left: auto;
    display: flex;
}

.mini-card {
    width: 10px;
    height: 29px;
    margin-left: -4px;
    background: repeating-linear-gradient(45deg, #b9162f 0 3px, #e72d45 3px 6px);
    border: 1px solid #fff;
    border-radius: 3px;
}

.offline-dot {
    color: var(--danger) !important;
}

/* Bloco central: mantém monte e jogos visíveis durante toda a rodada. */
.table-center {
    min-height: 390px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    align-items: center;
}

.deck-stack {
    position: relative;
    z-index: 5;
    width: 84px;
    height: 118px;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
}

.deck-card {
    position: absolute;
    inset: 0;
    display: block;
    background:
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.7) 46% 54%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.7) 46% 54%, transparent 55%),
        #bd1731;
    background-size: 14px 14px;
    border: 3px solid var(--white);
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.deck-card-middle {
    transform: translate(4px, -4px);
}

.deck-card-front {
    transform: translate(8px, -8px);
}

.deck-stack strong,
.deck-stack small {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 1px 3px #000;
}

.deck-stack strong {
    top: 39px;
    font-size: 1.45rem;
}

.deck-stack small {
    top: 69px;
    font-weight: 800;
}

.meld-area {
    min-height: 360px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 28px 34px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 22px;
}

.empty-table {
    width: 100%;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.meld {
    position: relative;
    min-width: 72px;
    padding: 22px 8px 8px;
    display: flex;
    border: 1px solid transparent;
    border-radius: 12px;
}

.meld::before {
    position: absolute;
    top: 2px;
    left: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meld-run {
    flex-direction: row;
}

.meld-run::before {
    content: "Sequência ↔";
}

.meld-set {
    padding-right: 18px;
    flex-direction: column;
}

.meld-set::before {
    content: "Grupo ↕";
}

.meld-set .playing-card + .playing-card {
    margin-top: -54px;
}

.meld-add {
    position: absolute;
    right: -8px;
    bottom: -18px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    color: #032114;
    background: var(--mint);
    border: 0;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 900;
}

/* Bloco das cartas: desenha faces, naipes e estados usando somente CSS e texto. */
.playing-card {
    position: relative;
    z-index: 1;
    width: var(--card-width);
    height: var(--card-height);
    flex: 0 0 auto;
    padding: 5px;
    color: var(--ink);
    background: linear-gradient(145deg, #fff, #eceae2);
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 7px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
    text-align: left;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.playing-card.is-red {
    color: #d01d35;
}

.playing-card.is-selected {
    z-index: 12;
    outline: 3px solid var(--gold);
    box-shadow: 0 0 0 5px rgba(242, 196, 91, 0.22), 0 13px 22px rgba(0, 0, 0, 0.35);
    transform: translateY(-10px);
}

.card-rank {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.card-suit {
    display: block;
    margin-top: 1px;
    font-size: 0.86rem;
}

.card-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.72rem;
}

.card-deck-mark {
    position: absolute;
    right: 4px;
    bottom: 3px;
    color: #69716d;
    font-size: 0.52rem;
    font-weight: 850;
}

.card-back {
    background:
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.65) 46% 54%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.65) 46% 54%, transparent 55%),
        #bd1731;
    background-size: 12px 12px;
    border: 3px solid var(--white);
}

/* Bloco da mão própria: fica na base e revela somente as cartas desta sessão. */
.self-area {
    position: absolute;
    z-index: 7;
    right: 80px;
    bottom: 18px;
    left: 80px;
    min-height: 130px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    align-items: center;
    background: rgba(3, 24, 13, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.self-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.self-summary > div:not(.avatar) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.self-summary span {
    color: var(--muted);
    font-size: 0.65rem;
}

.hand-count {
    margin-left: auto;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
}

.own-hand {
    min-height: 95px;
    padding: 10px 8px 3px;
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.own-hand .playing-card + .playing-card {
    margin-left: -13px;
}

.own-hand .playing-card:hover:not(:disabled) {
    z-index: 11;
    transform: translateY(-7px);
}

/* Bloco do controle: mantém rascunho e ações organizados fora da mesa. */
.action-dock {
    padding: 13px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    background: #0b1811;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 15px 15px;
}

.draft-summary {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.draft-summary strong {
    font-size: 0.82rem;
}

.draft-summary span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-group {
    display: flex;
    gap: 7px;
}

.last-action {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

/* Bloco das fases: cria vitória, placar e distribuição com animações em CSS. */
.phase-overlay {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 10, 6, 0.86);
    backdrop-filter: blur(11px);
}

.phase-card {
    width: min(560px, 100%);
    padding: 42px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(145deg, #123522, #07160d);
    border: 1px solid rgba(114, 229, 181, 0.35);
    border-radius: 26px;
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.55);
    text-align: center;
    animation: phase-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phase-card h2 {
    margin: 0 0 13px;
    font-size: clamp(2.2rem, 8vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.phase-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.victory-cards {
    height: 118px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.victory-cards span {
    width: 64px;
    height: 90px;
    margin: 0 -5px;
    padding: 8px;
    color: #111;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.28);
    font-size: 1.3rem;
    font-weight: 900;
    animation: victory-card 850ms ease-in-out infinite alternate;
}

.victory-cards span:nth-child(1) {
    color: #d01d35;
    transform: rotate(-15deg);
}

.victory-cards span:nth-child(2) {
    animation-delay: 120ms;
}

.victory-cards span:nth-child(3) {
    color: #d01d35;
    animation-delay: 240ms;
    transform: rotate(15deg);
}

.score-list {
    margin-top: 25px;
    display: grid;
    gap: 8px;
}

.score-row {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    text-align: left;
}

.score-row span,
.score-row small {
    color: var(--muted);
}

.score-row strong {
    color: var(--gold);
}

.dealing-animation {
    position: relative;
    height: 145px;
    margin-bottom: 15px;
}

.dealing-animation span {
    position: absolute;
    top: 18px;
    left: calc(50% - 28px);
    width: 56px;
    height: 80px;
    background:
        linear-gradient(45deg, transparent 45%, #fff 46% 54%, transparent 55%),
        #bd1731;
    background-size: 12px 12px;
    border: 3px solid #fff;
    border-radius: 7px;
    animation: deal-card 1.15s ease-in-out infinite;
}

.dealing-animation span:nth-child(2) { animation-delay: 130ms; }
.dealing-animation span:nth-child(3) { animation-delay: 260ms; }
.dealing-animation span:nth-child(4) { animation-delay: 390ms; }
.dealing-animation span:nth-child(5) { animation-delay: 520ms; }

/* Bloco das animações: reforça urgência, vitória e distribuição sem assets externos. */
@keyframes pulse {
    to { opacity: 0.45; transform: scale(0.96); }
}

@keyframes phase-in {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes victory-card {
    to { translate: 0 -16px; }
}

@keyframes deal-card {
    0% { opacity: 0; transform: translate(0, -22px) rotate(0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translate(145px, 65px) rotate(18deg); }
}

/* Bloco para notebooks: reduz margens e reorganiza controles mantendo a mesa legível. */
@media (max-width: 1180px) {
    :root {
        --card-width: 52px;
        --card-height: 75px;
    }

    .royal-table {
        padding-right: 100px;
        padding-left: 100px;
    }

    .action-dock {
        grid-template-columns: 1fr;
    }

    .action-group {
        flex-wrap: wrap;
    }

    .action-group .button {
        flex: 1;
    }
}

/* Bloco móvel: empilha telas, simplifica assentos e mantém rolagem nas cartas. */
@media (max-width: 760px) {
    :root {
        --card-width: 47px;
        --card-height: 68px;
    }

    .topbar {
        min-height: 60px;
        padding: 0 12px;
        grid-template-columns: auto 1fr auto;
    }

    .brand-lockup {
        justify-self: center;
    }

    .brand-lockup strong,
    .brand-lockup > span:last-child {
        display: none;
    }

    .back-link,
    .connection-status {
        font-size: 0.68rem;
    }

    .entry-screen {
        width: min(100% - 28px, 1100px);
        min-height: auto;
        padding: 46px 0;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .entry-copy h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .entry-card,
    .lobby-card {
        padding: 24px;
    }

    .lobby-players {
        grid-template-columns: 1fr;
    }

    .host-controls {
        flex-direction: column;
    }

    .game-screen {
        width: 100%;
        padding-top: 0;
    }

    .game-hud {
        border-radius: 0;
    }

    .turn-indicator {
        min-width: 130px;
    }

    .royal-table {
        min-height: 760px;
        padding: 115px 10px 190px;
        border-width: 5px;
        border-radius: 0;
    }

    .opponent-seat {
        min-width: 0;
        width: 31%;
        padding: 7px;
        flex-direction: column;
        text-align: center;
    }

    .opponent-seat.seat-top {
        top: 16px;
    }

    .opponent-seat.seat-left {
        top: 16px;
        left: 10px;
        transform: none;
    }

    .opponent-seat.seat-right {
        top: 16px;
        right: 10px;
        transform: none;
    }

    .mini-hand {
        margin: 0;
    }

    .table-center {
        min-height: 450px;
        grid-template-columns: 75px 1fr;
        gap: 9px;
    }

    .deck-stack {
        width: 62px;
        height: 90px;
    }

    .deck-stack strong {
        top: 27px;
    }

    .deck-stack small {
        top: 52px;
    }

    .meld-area {
        min-height: 420px;
        padding: 14px;
        gap: 24px 17px;
    }

    .meld-set .playing-card + .playing-card {
        margin-top: -43px;
    }

    .self-area {
        right: 8px;
        bottom: 10px;
        left: 8px;
        padding: 8px;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .self-summary {
        min-height: 38px;
    }

    .avatar-self {
        width: 31px;
        height: 31px;
    }

    .own-hand {
        min-height: 78px;
    }

    .own-hand .playing-card + .playing-card {
        margin-left: -17px;
    }

    .action-dock {
        border-radius: 0;
    }

    .action-group-main .button {
        min-width: 46%;
    }

    .phase-card {
        padding: 30px 20px;
    }
}

