:root {
    --tile-bg-top: #fff9fb;
    --tile-bg-bottom: #faeef3;
    --tile-ink: #3c2631;
    --tile-muted: #8a6c7a;
    --tile-rose: #de5485;
    --tile-rose-deep: #b83764;
    --tile-border: #ead2dc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--tile-bg-top) 0%, var(--tile-bg-bottom) 100%);
    color: var(--tile-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
}

.game-nav-header { flex: 0 0 auto; }

.tile-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 2px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}

.tile-game {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* A compact seat at the tea table, with the puzzle kept unobstructed. */
.top-bar {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid var(--tile-border);
    background: linear-gradient(110deg, #f6e1d6, #fffafc 42%);
    padding: 0 6px 0 0;
}
.partner-portrait { position: relative; flex: 0 0 56px; height: 56px; }
.partner-avatar {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: 50% 15%;
    border-radius: 17px 6px 6px 17px;
    background: #f6e1e9;
}
.served-motif {
    position: absolute;
    right: -3px;
    bottom: 3px;
    width: 30px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff9ee;
    box-shadow: 0 2px 0 #d4af88;
}
.served-motif:empty { display: none; }
/* Reserve the absolute 44px picker for both the caption and wrapped speech. */
.partner-copy { flex: 1; min-width: 0; padding: 4px 44px 4px 0; }
.partner-caption { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: 10px; }
.partner-caption strong { font-size: 11px; }
.partner-caption span { color: #865c60; font-variant-numeric: tabular-nums; }
.partner-speech { margin: 3px 0 0; font-size: 11.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cast-picker { position: absolute; right: 3px; top: 0; z-index: 40; }
.cast-picker summary { display: grid; place-items: center; width: 44px; height: 44px; font-size: 10px; color: var(--tile-muted); cursor: pointer; list-style: none; }
.cast-picker summary::-webkit-details-marker { display: none; }
.cast-mini-strip { position: absolute; right: 0; top: 40px; display: flex; padding: 5px; background: #fff9fc; border: 1px solid var(--tile-border); border-radius: 16px; box-shadow: 0 4px 14px #81526726; }
.cast-chip { display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.cast-chip img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.cast-chip.is-active { border-color: var(--tile-rose); background: #ffe4ee; }
.top-bar[data-reaction="danger"], .top-bar[data-reaction="gameover"] { border-color: #d89270; background: #fff4e9; }
.top-bar[data-reaction="combo2"], .top-bar[data-reaction="combo3"], .top-bar[data-reaction="clear"] { border-color: #d9af61; background: linear-gradient(110deg, #f3dcc8, #fff7df); }
.is-reacting[data-reaction="match"] .partner-avatar,
.is-reacting[data-reaction="combo2"] .partner-avatar,
.is-reacting[data-reaction="combo3"] .partner-avatar,
.is-reacting[data-reaction="clear"] .partner-avatar { animation: partnerNod .6s ease; }
.is-reacting[data-reaction="match"] .served-motif,
.is-reacting[data-reaction="combo2"] .served-motif,
.is-reacting[data-reaction="combo3"] .served-motif,
.is-reacting[data-reaction="clear"] .served-motif { animation: teaServe .6s ease; }
@keyframes partnerNod { 40% { transform: translateY(-3px) rotate(-2deg); } 70% { transform: translateY(1px); } }
@keyframes teaServe { 0% { transform: scale(.65); } 50% { transform: scale(1.15); } }

/* Main Playfield */
.board-stage {
    position: relative;
    width: 100%;
    flex: 1 1 300px;
    min-height: 300px;
    background:
        radial-gradient(circle at 50% 45%, #ffffff 0%, #fdf1f6 70%, #f5dde7 100%);
    border: 1.5px solid #e5c6d3;
    border-radius: 22px;
    box-shadow:
        inset 0 2px 14px rgba(181, 114, 141, 0.1),
        0 6px 18px rgba(122, 69, 91, 0.08);
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
}

/* Embedded Top HUD inside Playfield */
.board-hud {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ead0db;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--tile-ink);
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 5px rgba(122, 62, 86, 0.05);
}

.stage-select {
    border: none;
    background: transparent;
    color: var(--tile-rose-deep);
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.combo-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #e75c8d, #d1883e);
    box-shadow: 0 2px 6px rgba(217, 88, 132, 0.28);
}

.combo-badge[hidden] {
    display: none;
}

.hud-icon-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ead0db;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tile-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.hud-icon-btn:active {
    transform: scale(0.92);
}

/* Multi-layer Tile Area */
.board-layer {
    position: absolute;
    inset: 38px 12px 12px;
    /* Keep tile layer z-indices below the HUD and the reserved stash row. */
    z-index: 0;
}

/* Reserve only after a stash is used; stable until the next puzzle. */
.board-stage[data-stash-reserved="true"] { min-height: 340px; }
.board-stage[data-stash-reserved="true"] .board-layer { bottom: 54px; }

/* Individual Tile (Icon-only, motif-tinted 3D porcelain) */
.tile-card {
    --motif-bg: #fff6f9;
    --motif-border: #d898b2;
    position: absolute;
    width: 16.4%;
    height: 18.2%;
    padding: 3px;
    border: 1.5px solid var(--motif-border);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff 0%, var(--motif-bg) 100%);
    box-shadow:
        0 4px 0 var(--motif-border),
        0 6px 11px rgba(78, 38, 55, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.16s ease,
        box-shadow 0.16s ease;
    touch-action: manipulation;
}

.tile-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    pointer-events: none;
}

.tile-card.is-bright.is-reach,
.stash-tile.is-reach {
    border-color: #e34b80;
    box-shadow:
        0 4px 0 #c73e6e,
        0 0 12px rgba(232, 75, 128, 0.48);
}

.tile-card.is-bright:active {
    transform: translateY(2px) scale(0.94);
    box-shadow:
        0 2px 0 var(--motif-border),
        0 3px 6px rgba(112, 48, 75, 0.14);
}

/* Blocked (1 layer underneath) */
.tile-card.is-blocked {
    filter: brightness(0.90) saturate(0.90);
    box-shadow:
        0 3px 0 #a18793,
        0 4px 7px rgba(45, 22, 33, 0.15);
    cursor: default;
}

.tile-card.is-blocked::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: rgba(52, 28, 40, 0.06);
    pointer-events: none;
}

/* Deeply blocked (2+ layers underneath) */
.tile-card.is-blocked-deep {
    filter: brightness(0.81) saturate(0.85);
    box-shadow:
        0 2px 0 #846d77,
        0 3px 5px rgba(35, 16, 25, 0.2);
}

.tile-card.is-blocked-deep::before {
    background: rgba(38, 18, 28, 0.12);
}

.tile-card.is-shuffling {
    animation: tileFlip 0.35s ease;
}

@keyframes tileFlip {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(0.85) rotateY(90deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.tile-icon {
    width: 88%;
    height: 88%;
    display: block;
    pointer-events: none;
}

/* Floating Stash inside bottom of Playfield (only visible when non-empty) */
.stash-floating {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    gap: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid #e2c6a6;
    box-shadow: 0 3px 10px rgba(122, 62, 86, 0.12);
}

.stash-floating[hidden] {
    display: none;
}

.stash-slot {
    width: 40px;
    height: 40px;
}

/* Bottom Dock: 7-Slot Tray + Partner Hint and Helpers */
.dock-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tray-container {
    position: relative;
    background: linear-gradient(180deg, #fff6f9 0%, #f5dde7 100%);
    border: 2px solid #dba5ba;
    border-radius: 16px;
    padding: 6px 6px 8px;
    box-shadow:
        inset 0 2px 5px rgba(110, 52, 74, 0.08),
        0 4px 12px rgba(122, 62, 86, 0.08);
}

.tray-container.is-danger {
    border-color: #df4c73;
    background: linear-gradient(180deg, #fff0f3 0%, #fbd4df 100%);
    animation: trayPulse 1s infinite alternate;
}

@keyframes trayPulse {
    from { box-shadow: inset 0 2px 5px rgba(217, 65, 105, 0.15), 0 0 0 rgba(217, 65, 105, 0); }
    to { box-shadow: inset 0 2px 5px rgba(217, 65, 105, 0.25), 0 0 10px rgba(217, 65, 105, 0.32); }
}

.tray-slots {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.tray-slot {
    aspect-ratio: 1 / 1.06;
    border-radius: 10px;
    border: 1.5px dashed rgba(182, 128, 150, 0.36);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tray-slot.is-match-burst {
    animation: slotMatchFlash 0.4s ease-out;
}

@keyframes slotMatchFlash {
    0% {
        background: #ffe3ee;
        border-color: #e85d90;
        box-shadow: 0 0 12px rgba(232, 93, 144, 0.65);
        transform: scale(1.08);
    }
    100% {
        background: rgba(255, 255, 255, 0.65);
        border-color: rgba(182, 128, 150, 0.36);
        box-shadow: none;
        transform: scale(1);
    }
}

.tray-tile,
.stash-tile {
    --motif-bg: #fff6f9;
    --motif-border: #d898b2;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    border: 1.5px solid var(--motif-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--motif-bg) 100%);
    box-shadow: 0 3px 0 var(--motif-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    animation: popIn 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.stash-tile {
    cursor: pointer;
}

.stash-tile:active {
    transform: translateY(1px) scale(0.94);
}

@keyframes popIn {
    0% { transform: scale(0.65); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Empty wells and a static outline keep remaining capacity visible. */
.tray-slot.is-empty {
    background: #cba5b5;
    border: 1px solid #b98a9e;
    box-shadow: inset 0 2px 3px #70445b26;
}
.tray-slot.is-last-open {
    outline: 2px solid #b33354;
    outline-offset: -2px;
}
.tray-tile.is-reach {
    position: relative;
    border-bottom: 3px solid #c73e6e;
}
.tray-tile.is-reach::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 25%;
    right: 25%;
    height: 2px;
    border-radius: 2px;
    background: #c73e6e;
}

/* Helpers remain together within thumb reach. */
.helper-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
}

.helper-btn {
    position: relative;
    width: 58px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid #dfb6c7;
    background: linear-gradient(180deg, #ffffff 0%, #fdf1f6 100%);
    color: var(--tile-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #d4abc0, 0 4px 8px rgba(122, 62, 86, 0.08);
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
    transition: transform 0.12s ease, opacity 0.15s ease;
}

.helper-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d4abc0;
}

.helper-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.helper-count {
    position: absolute;
    top: -5px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--tile-rose);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border: 1.5px solid #fff;
}

/* Sparkle celebration layer */
.sparkle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 30;
}

.sparkle-burst {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 800;
    color: #b83364;
    background: rgba(255, 250, 252, 0.94);
    border: 1.5px solid #eca2bd;
    border-radius: 999px;
    padding: 3px 11px;
    box-shadow: 0 4px 12px rgba(217, 88, 132, 0.25);
    white-space: nowrap;
    animation: floatSparkle 0.7s ease-out forwards;
}

@keyframes floatSparkle {
    0% { opacity: 0; transform: translate(-50%, -20%) scale(0.75); }
    25% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
    100% { opacity: 0; transform: translate(-50%, -115%) scale(0.96); }
}

/* Stage Clear / Game Over Modal Overlay */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(48, 24, 35, 0.44);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 300px;
    background: linear-gradient(180deg, #fffdfd 0%, #fff3f7 100%);
    border: 2px solid #e7b5c8;
    border-radius: 22px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(58, 22, 38, 0.25);
}

.modal-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--tile-rose);
    margin: 0 0 2px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--tile-ink);
}

.modal-companion {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #edd3de;
    border-radius: 14px;
    padding: 8px 10px;
    margin: 6px 0 10px;
    text-align: left;
}

.modal-companion img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e79ab6;
    flex-shrink: 0;
}

.modal-companion p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tile-ink);
}

.modal-stats {
    font-size: 13px;
    font-weight: 800;
    color: var(--tile-muted);
    margin: 0 0 4px;
}

.modal-coin {
    font-size: 12px;
    font-weight: 800;
    color: #b56d22;
    margin: 0 0 10px;
    min-height: 14px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-rescue-btn {
    width: 100%;
    min-height: 40px;
    border: 1.5px solid #d9823b;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff8eb 0%, #fde5c4 100%);
    color: #7d4716;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.modal-rescue-btn[hidden] {
    display: none;
}

.modal-primary-btn {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #e55b8b 0%, #c83e6e 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(200, 62, 110, 0.3);
    cursor: pointer;
}

.save-note {
    margin: 0;
    font-size: 10.5px;
    color: #a6445e;
    text-align: center;
}

.tile-card.is-partner-hint, .stash-tile.is-partner-hint {
    outline: 3px solid #b47729;
    outline-offset: 2px;
    box-shadow: 0 4px 0 var(--motif-border), 0 0 0 6px #fff0cc;
}
.tile-card.is-partner-hint::before, .stash-tile.is-partner-hint::before {
    content: "♡";
    position: absolute;
    top: -9px;
    right: -5px;
    z-index: 1;
    color: #9d3c60;
    background: #fff4d7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font: 700 16px/20px sans-serif;
}
.modal-companion img { width: 88px; height: 116px; border-radius: 12px; object-position: 50% 15%; }
.modal-companion strong { display: block; margin-bottom: 5px; font-size: 11px; color: var(--tile-rose-deep); }
.modal-backdrop[data-outcome="cleared"] .modal-card { border-color: #d3ac62; background: linear-gradient(#fffdf5, #fff0f5); }
.modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
button:focus-visible, summary:focus-visible { outline: 3px solid #9d3c60; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.stash-tile { position: relative; }

/* Three stops per salon give each short session a visible destination. */
.board-stage[data-salon="honey"] {
    background: radial-gradient(ellipse at 50% 35%, #fffefa, #fbefda 75%, #ecd9b6);
    border-color: #d9bd8c;
}
.board-stage[data-salon="lilac"] {
    background: radial-gradient(ellipse at 50% 35%, #fcfaff, #eee5f6 75%, #d5c6e4);
    border-color: #bca1cc;
}
.top-bar[data-salon="honey"] { border-color: #d9bd8c; }
.top-bar[data-salon="lilac"] { border-color: #bca1cc; }
.top-bar::after {
    content: "";
    position: absolute;
    left: 64px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(to right, #c9894f var(--tea-complete, 0%), #eadce1 var(--tea-complete, 0%));
    pointer-events: none;
}
.salon-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; color: #725263; }
.board-stage[data-salon="honey"] .salon-name { color: #785925; }
.board-stage[data-salon="lilac"] .salon-name { color: #674881; }
/* A woven table mat separates the white porcelain from the playing surface. */
.board-layer {
    border-radius: 45%;
    background: repeating-linear-gradient(45deg, #c5979c09 0 1px, transparent 1px 7px);
}
.tile-card.is-bright { border-top-color: #fff; }
.tile-card.is-bright.is-reach::after { border: 2px solid #e34b80; }
.tray-container { padding-top: 9px; }
.tray-status { position: absolute; right: 12px; top: -7px; padding: 0 6px; border-radius: 9px; background: #fff8fb; color: #866271; font-size: 10px; font-weight: 700; line-height: 15px; }
.tray-container[data-pressure="danger"] .tray-status { color: #b33354; background: #fff0f3; }
.helper-btn { width: 100%; min-width: 0; min-height: 48px; height: auto; flex-direction: column; gap: 1px; padding: 3px 1px; }
.helper-btn svg { flex: 0 0 auto; }
.helper-btn.partner-hint { color: #9d3c60; border-color: #d79db3; background: #fff1f6; }
.helper-heart { font: 700 23px/20px sans-serif; }
.helper-label { font-size: 10px; font-weight: 700; }
.salon-route { display: flex; justify-content: center; gap: 24px; list-style: none; margin: 12px 0 8px; padding: 0; }
.salon-route li { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d9bbcb; background: #fff9fc; font-size: 12px; color: #886276; }
.salon-route li + li::before { content: ""; position: absolute; right: 32px; top: 14px; width: 24px; height: 2px; background: #e7d4dd; }
.salon-route li[data-cleared="true"] { background: #a94c70; border-color: #a94c70; color: #fff; }
.salon-route li[aria-current="step"] { outline: 2px solid #cba65d; outline-offset: 3px; }
.salon-invitation { font-size: 11px; color: #80556b; margin: 8px 0 12px; }
.tile-flight-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.tile-flight { position: absolute; width: 32px; height: 32px; padding: 2px; border: 1px solid #dfb5c5; border-radius: 8px; background: #fffaf0; display: grid; place-items: center; animation: collectTile .26s ease-in forwards; }
.tile-flight.is-served { box-shadow: 0 0 12px #e6b65c; }
@keyframes collectTile {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(var(--flight-x), var(--flight-y)) scale(.7); opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { .tile-flight-layer { display: none; } }

/* Keep the expanded cast selection within the screen. */
.cast-mini-strip {max-width:min(320px, 88vw); overflow-x:auto;}
.cast-mini-strip button {flex-shrink:0;}

/* Let the board yield on short screens; the tray and helpers never flex away.
   The HUD and stash keep their own insets rather than covering tile targets. */
@media (max-height: 700px) {
    .board-stage,
    .board-stage[data-stash-reserved="true"] { min-height: 0; }
}
