/* ==========================================================================
   Harkonnen Mentat: game screens (War Table, phases, rail) and responsive layout
   ========================================================================== */

.small-print {
    font-size: 0.85rem;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-row > .btn {
    flex: 1 1 240px;
}

.atreides-btn {
    border-color: var(--atreides);
    color: var(--atreides);
    background: var(--atreides-soft);
}

.harkonnen-text {
    color: var(--harkonnen);
}

.atreides-text {
    color: var(--atreides);
}

/* ---------- Header status ---------- */

.status-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.status-phase {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-round {
    color: var(--accent-strong);
}

.status-sep {
    margin: 0 6px;
    color: var(--rule);
}

.supremacy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.supremacy-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.supremacy-track {
    display: flex;
    gap: 3px;
}

.supremacy-track .seg {
    width: 12px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid var(--harkonnen);
    opacity: 0.45;
}

.supremacy-track .seg.on {
    background: var(--harkonnen);
    opacity: 1;
}

.supremacy-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--harkonnen);
    min-width: 1.5ch;
}

/* The main action button stays reachable at the bottom when the instructions are long. */
.stage > .btn-big,
.stage > .button-row,
.war-table > .btn-big,
.spice-panel > .btn-big {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 5;
}

/* ---------- Game layout ---------- */

.game-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 0;
}

.stage {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 20px 24px 110px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- State rail ---------- */

.rail {
    border-right: 1px solid var(--rule-soft);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    position: relative;
}

.rail-strip {
    display: none;
}

.rail-body {
    position: sticky;
    top: 69px;
    max-height: calc(100dvh - 69px);
    overflow-y: auto;
    padding: 14px 16px 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rail-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule-soft);
}

.rail-section:last-child {
    border-bottom: none;
}

.rail-section h3 {
    font-size: 0.72rem;
}

.rail-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.rail-value.small {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
}

.rail-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dice-pips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pip {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--harkonnen);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.pip.spent {
    background: transparent;
    border: 1.5px dashed var(--rule);
    box-shadow: none;
}

.pip-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.used-faces {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.used-face {
    display: inline-flex;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 6px;
    background: var(--surface-sunken);
    color: var(--harkonnen);
}

.die-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.card-stack {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.card-back {
    width: 18px;
    height: 26px;
    border-radius: 3px;
    background: var(--harkonnen);
    box-shadow: 3px -3px 0 -1px var(--surface), 3px -3px 0 0 var(--harkonnen);
}

.deck-switch {
    font-family: var(--font-body);
    letter-spacing: 0;
}

.imperium-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.imperium-steps {
    display: flex;
    gap: 3px;
}

.imperium-steps .step {
    width: 14px;
    height: 8px;
    border-radius: 2px;
    background: var(--rule-soft);
}

.imperium-steps .step.on {
    background: var(--accent);
}

.imperium-row.banned .imperium-name {
    color: var(--harkonnen);
    font-weight: 700;
}

.ban-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.chip-ban {
    background: var(--harkonnen-soft);
    color: var(--harkonnen);
    border: 1px solid var(--harkonnen);
}

.leader-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leader-chip {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--rule-soft);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
}

.leader-face {
    color: var(--harkonnen);
    width: 20px;
    height: 20px;
}

.leader-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.leader-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--atreides);
}

.leader.spent .leader-status,
.leader.in-tank .leader-status {
    color: var(--text-muted);
}

.leader.spent .leader-chip,
.leader.in-tank .leader-chip {
    opacity: 0.7;
}

.leader-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0 2px;
}

.leader-actions .btn {
    font-family: var(--font-body);
    letter-spacing: 0;
    flex: 1;
}

/* ---------- Guidance cards ---------- */

.guidance {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guidance-title {
    margin-bottom: 2px;
}

.guidance-headline {
    font-size: 1.15rem;
    font-weight: 600;
}

.guidance-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-strong);
    font-weight: 700;
}

.guidance-steps {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guidance-steps > li {
    position: relative;
    padding-left: 42px;
}

.guidance-steps.chain > li {
    counter-increment: step;
}

.guidance-steps.chain > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--accent);
    color: var(--accent-contrast);
}

.guidance-steps:not(.chain) > li {
    padding-left: 22px;
}

.guidance-steps:not(.chain) > li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.7rem;
    color: var(--accent);
}

.step-text {
    display: block;
}

details > summary {
    cursor: pointer;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 32px;
    display: flex;
    align-items: center;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: "▸";
    margin-right: 6px;
    transition: transform 120ms ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

.step-details ul,
.guidance-why ul {
    margin: 4px 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guidance-why {
    border-top: 1px solid var(--rule-soft);
    padding-top: 6px;
}

.rule-ref {
    margin-top: 6px;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
}

/* ---------- War Table ---------- */

.war-table {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.turn-label {
    font-family: var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-color: var(--harkonnen);
}

.result-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Die faces are drawn like the physical black dice with red symbols, in both themes. */
.result-die,
.face-btn .die-icon,
.mode-icon {
    --die-bg: #17131a;
    background: #17131a;
    color: #e04848;
}

.result-die {
    flex: none;
    width: 68px;
    height: 68px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.result-title h2 {
    font-size: 1.6rem;
    color: var(--harkonnen);
}

.result-sub {
    color: var(--text-muted);
    font-weight: 600;
}

.result-reroll {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
}

.special-toggle {
    align-self: flex-start;
    color: var(--accent-strong);
}

.await-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.await-lead {
    font-size: 1.15rem;
    font-weight: 600;
}

.await-hint {
    color: var(--text-muted);
}

.desert-power {
    font-size: 0.9rem;
}

.btn-big .die-icon {
    width: 28px;
    height: 28px;
}

/* ---------- Face picker ---------- */

.face-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.face-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px 12px;
    min-height: 120px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    background: var(--surface);
    cursor: pointer;
    box-shadow: var(--shadow);
    touch-action: manipulation;
}

.face-btn .die-icon {
    width: 52px;
    height: 52px;
    padding: 10px;
    border-radius: 12px;
}

.face-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.face-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.face-count,
.face-blocked {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.face-btn.blocked {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.face-btn.blocked .face-blocked {
    color: var(--harkonnen);
    font-weight: 700;
}

/* ---------- Tactical cards ---------- */

.tactical-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.tactical-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
    text-align: center;
}

.tactical-card.target {
    border-color: var(--harkonnen);
}

.tactical-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.tactical-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.tactical-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sector-map {
    width: 132px;
    height: auto;
}

.sm-board {
    fill: var(--surface-sunken);
    stroke: var(--rule);
}

.sm-outer {
    fill: transparent;
}

.sm-central {
    fill: var(--surface-sunken);
}

.sm-on {
    fill: var(--accent);
    opacity: 0.85;
}

.tactical-card.target .sm-on {
    fill: var(--harkonnen);
}

.sm-line,
.sm-ring {
    fill: none;
    stroke: var(--rule);
    stroke-dasharray: 3 3;
}

.sm-pole {
    fill: var(--text-muted);
}

/* ---------- Notices ---------- */

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

.notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--rule-soft);
    border-left: 4px solid var(--highlight);
    font-size: 0.95rem;
    animation: notice-in 220ms ease-out;
}

.notice > span {
    flex: 1;
    padding-top: 4px;
}

.notice-important {
    border-left-color: var(--accent);
    font-weight: 600;
}

.notice-error {
    border-left-color: var(--harkonnen);
    background: var(--harkonnen-soft);
}

.notice-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 50%;
}

@keyframes notice-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

/* ---------- Spice ---------- */

.spice-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spice-counters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.counter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface-sunken);
}

.counter-label {
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.counter-label small {
    font-weight: 400;
    color: var(--text-muted);
}

.counter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.counter-controls .icon-btn {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    border-color: var(--rule);
    background: var(--surface);
}

.counter-controls .icon-btn:disabled {
    opacity: 0.35;
}

.counter-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    min-width: 2ch;
    text-align: center;
}

.spice-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.spice-diamond {
    color: var(--accent);
}

/* ---------- New game ---------- */

.new-game {
    gap: 18px;
}

.mode-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mode-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--rule-soft);
    background: var(--surface);
    cursor: pointer;
    box-shadow: var(--shadow);
    text-align: center;
}

.mode-tile.selected {
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.mode-icon {
    width: 60px;
    height: 60px;
    padding: 12px;
    border-radius: 14px;
}

.mode-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.mode-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.home-actions {
    width: min(460px, 100%);
    margin: 0 auto;
}

/* ---------- Game over ---------- */

.game-over {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 36px 24px;
}

/* ---------- Reference ---------- */

.reference {
    padding: 24px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
    align-items: start;
}

.reference-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

/* ---------- Quick actions and event sheet ---------- */

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-actions .btn {
    font-family: var(--font-body);
    letter-spacing: 0;
    background: var(--surface);
}

.warning-text {
    color: var(--harkonnen);
    font-weight: 600;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.45);
    z-index: 40;
    animation: fade-in 160ms ease-out;
}

.sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(860px, 100vw);
    max-height: min(86dvh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 41;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheet-in 200ms ease-out;
}

.sheet-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 10px 20px;
    border-bottom: 1px solid var(--rule-soft);
}

.sheet-head h2 {
    flex: 1;
}

.sheet-body {
    overflow-y: auto;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sheet-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 76px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    background: var(--surface-2);
    cursor: pointer;
    text-align: left;
}

.sheet-tile:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.tile-title {
    font-family: var(--font-display);
    font-weight: 700;
}

.tile-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.atreides-tile {
    border-color: var(--atreides);
    background: var(--atreides-soft);
}

.sheet-lead {
    font-weight: 600;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.choice-grid.ranks,
.choice-grid.dice-count {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

.choice {
    min-height: 56px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    background: var(--surface-2);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.draw-choice {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.draw-count-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.draw-order {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.choice.rank {
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.choice.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.choice-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--harkonnen);
}

.combat-helper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.combat-result {
    font-size: 1.15rem;
}

/* Keep the battle decision buttons reachable while the Hits notes scroll underneath. */
.combat-helper .button-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 6px 0;
    background: var(--surface);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes sheet-in {
    from {
        transform: translate(-50%, 30px);
        opacity: 0;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Narrow tablets and portrait phones: a single column with the rail on top. */
@media (max-width: 760px) and (min-height: 521px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .rail {
        border-right: none;
        border-bottom: 1px solid var(--rule-soft);
    }

    .rail-body {
        position: static;
        max-height: none;
        padding-bottom: 14px;
    }

    .stage {
        padding: 16px 14px 110px;
    }

    .face-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .status-bar .supremacy-label {
        display: none;
    }
}

/* Short landscape screens (phones on their side): the rail becomes an icon strip with a slide-out panel. */
@media (max-height: 520px) {
    :root {
        --tap: 48px;
    }

    html,
    body {
        font-size: 15px;
    }

    body::after {
        height: 40px;
    }

    .shell-header {
        padding: 4px 12px;
    }

    .shell-title {
        font-size: 0.85rem;
    }

    .status-bar {
        gap: 10px;
    }

    .supremacy-label {
        display: none;
    }

    .supremacy-track .seg {
        width: 8px;
        height: 12px;
    }

    .game-layout {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .rail-strip {
        position: sticky;
        top: 57px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 64px;
        padding: 14px 0;
        border: none;
        background: transparent;
        cursor: pointer;
        font-family: var(--font-display);
        font-weight: 700;
    }

    .strip-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.95rem;
    }

    .strip-dot {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        background: var(--harkonnen);
    }

    .strip-card {
        width: 10px;
        height: 14px;
        border-radius: 2px;
        background: var(--harkonnen);
        opacity: 0.8;
    }

    .strip-diamond {
        color: var(--harkonnen);
        font-size: 0.8rem;
    }

    .strip-chevron {
        font-size: 1.5rem;
        color: var(--accent-strong);
    }

    .rail-body {
        display: none;
    }

    .rail.open .rail-body {
        display: flex;
        position: fixed;
        top: 57px;
        left: 64px;
        bottom: 0;
        width: min(320px, calc(100vw - 80px));
        max-height: none;
        z-index: 30;
        background: var(--surface);
        border-right: 1px solid var(--rule);
        box-shadow: var(--shadow);
        padding-bottom: 24px;
    }

    .stage {
        padding: 10px 16px 60px;
        gap: 10px;
        max-width: none;
    }

    .frame {
        padding: 12px 14px;
    }

    .btn-big {
        min-height: 56px;
        font-size: 1.05rem;
    }

    .result-die {
        width: 52px;
        height: 52px;
        padding: 9px;
    }

    .result-title h2 {
        font-size: 1.3rem;
    }

    .face-btn {
        min-height: 88px;
        padding: 8px 4px;
    }

    .face-btn .die-icon {
        width: 40px;
        height: 40px;
        padding: 7px;
    }

    .tactical-card {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
    }

    .sector-map {
        width: 90px;
    }

    .page-centered {
        padding: 12px 16px 40px;
    }

    .sheet {
        max-height: 94dvh;
    }

    .sheet-body {
        padding: 10px 16px 16px;
    }

    .sheet-tile {
        min-height: 60px;
        padding: 8px 12px;
    }

    .quick-actions .btn {
        min-height: 40px;
    }

    .choice-grid.draw-count {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .combat-helper .btn-big {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .hero {
        gap: 12px;
    }

    .hero .quote {
        display: none;
    }
}
