.sk-root { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; color: #f9f1df; background: radial-gradient(ellipse at 50% 0,#34403655,transparent 60%),#121018; font: 16px/1.45 'Trebuchet MS',sans-serif; }
.sk-root *, .sk-root *::before, .sk-root *::after { box-sizing: border-box; }
.sk-root:focus { outline: none; }
.sk-root h2 { font: 29px/1.2 Georgia,serif; margin: 6px 0 12px; }.sk-root h3 { font: 22px/1.3 Georgia,serif; }.sk-root p { margin: 8px 0 14px; color: #d7d0c0; }
.sk-root button, .sk-root select { font: inherit; color: inherit; cursor: pointer; min-height: 48px; min-width: 48px; border: 1px solid #9b8052; border-radius: 13px; background: #29232e; padding: 10px 14px; }
.sk-root button:hover { border-color: #f5ce79; }.sk-root button:disabled { opacity: .52; cursor: default; }.sk-root button:focus-visible, .sk-root select:focus-visible { outline: 3px solid #a5ed85; outline-offset: 3px; }
.sk-root svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sk-kicker { font-size: 16px; color: #e7c57f; letter-spacing: .1em; }
.sk-root .sk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.sk-root .sk-icon { display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; padding: 10px; width: 48px; height: 48px; flex: none; color: #f5ce79; background: linear-gradient(140deg,#44363a,#211b29); }
.sk-root .sk-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(130deg,#ebcb87,#bd914d); border-color: #edce8b; color: #201a22; font-weight: bold; }

/* The shell fills what the action bar leaves; it scrolls only as a last resort, the panels inside size themselves. */
.sk-shell { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: auto; padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); }
.sk-notice { flex: none; margin: 0 0 10px !important; padding: 10px 14px; border: 1px solid #d6b365; border-radius: 12px; background: #382c33; color: #f9f1df !important; }

/* One action bar: along the bottom, or down the right side during a patrol on a short landscape screen. */
.sk-footer { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); color: #c5bca9; border-top: 1px solid #b69a5b44; background: #211b27; }
.sk-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }.sk-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sk-nav { display: flex; gap: 10px; margin-left: auto; }
.sk-log { flex: 1 1 220px; min-width: 0; margin: 0 !important; color: #e5dcc7 !important; }
.sk-root[data-bar="side"] { flex-direction: row; }
.sk-root[data-bar="side"] .sk-shell { padding-right: 12px; padding-bottom: max(10px,env(safe-area-inset-bottom)); }
.sk-root[data-bar="side"] .sk-footer { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: calc(180px + max(10px,env(safe-area-inset-right))); padding: max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) 10px; border-top: 0; border-left: 1px solid #b69a5b44; }
.sk-root[data-bar="side"] .sk-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sk-root[data-bar="side"] .sk-actions { flex: 0 1 auto; min-height: 48px; overflow-y: auto; flex-direction: column; flex-wrap: nowrap; margin-top: auto; }.sk-root[data-bar="side"] .sk-nav { flex: none; }.sk-root[data-bar="side"] .sk-actions button { width: 100%; padding-inline: 10px; }
.sk-root[data-bar="side"] .sk-nav { justify-content: flex-end; }
.sk-rail-goal { display: none; }
.sk-root[data-bar="side"] .sk-rail-goal { display: block; flex: 0 1 auto; min-height: 0; overflow-y: auto; margin: 0 !important; padding: 8px 10px; border-left: 3px solid #a1e486; background: #98d97f12; color: #e2efc9 !important; }.sk-rail-goal strong { display: block; color: #b4f197; }
.sk-root[data-bar="side"] .sk-battle-top .sk-goal { display: none; }

/* Board: three cells. layout() picks tall (map fills the height), wide (map fills the width, journal under it) or stack (portrait). */
.sk-board-layout { flex: 1; min-height: 0; display: grid; gap: 14px; grid-template-columns: var(--sk-map-w,60%) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; grid-template-areas: "map brief" "map journal"; }
.sk-board-layout[data-mode="wide"] { grid-template-rows: auto minmax(0,1fr); grid-template-areas: "map brief" "journal brief"; }
.sk-board-layout[data-mode="stack"] { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(0,1fr); grid-template-areas: "map" "journal" "brief"; }
.sk-map { grid-area: map; align-self: center; justify-self: center; position: relative; width: var(--sk-map-w,100%); aspect-ratio: 3/2; border: 1px solid #b49a5d; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px #0008; background: #243326; }
.sk-board-layout[data-mode="wide"] .sk-map { align-self: start; }
.sk-map > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sk-root .sk-marker { position: absolute; transform: translate(-50%,-50%); border-radius: 50%; width: 48px; height: 48px; min-width: 48px; padding: 0; color: #ffedbf; font-size: 20px; font-weight: bold; border: 2px solid #e0bf79; background: #27212be8; box-shadow: 0 3px 12px #000b; display: grid; place-items: center; }
.sk-marker.is-selected { outline: 3px solid #fff3ca; outline-offset: 4px; background: #81602c; }.sk-root .sk-marker.is-cleared { border-color: #aff38e; color: #aff38e; }
.sk-village { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 7px; background: #1c2020df; color: #fff0bd; border: 1px solid #bba16a; padding: 7px 11px; border-radius: 12px; white-space: nowrap; font-size: 16px; pointer-events: none; }
.sk-brief { grid-area: brief; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #a58d5666; border-radius: 20px; background: linear-gradient(130deg,#392c32f0,#1b1922f5),var(--sk-art) center/cover; }
.sk-brief > img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; display: block; }.sk-brief[data-art="off"] > img { display: none; }
.sk-brief-copy { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
.sk-board-layout[data-mode="stack"] .sk-brief { flex-direction: row; }.sk-board-layout[data-mode="stack"] .sk-brief > img { flex: 0 0 40%; width: 40%; min-width: 0; height: auto; }.sk-board-layout[data-mode="stack"] .sk-brief-copy { flex: 1 1 0; }
.sk-objective { padding: 10px 14px; border-left: 3px solid #a1e486; margin: 14px 0; background: #98d97f09; }.sk-objective strong { color: #b4f197; }.sk-objective p { margin-bottom: 0; }
.sk-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #d0c6b2; margin: 12px 0; }
.sk-pick { display: flex; align-items: center; gap: 10px; margin: 12px 0; }.sk-pick select { flex: 1; min-width: 0; }
.sk-root .sk-fine { font-size: 16px; color: #c5bca9; margin: 12px 0 0; }
.sk-journal { grid-area: journal; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 4px 4px 4px 16px; border: 1px solid #a48a5655; border-radius: 16px; background: #30262c; }
.sk-journal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }.sk-journal-head strong { display: block; color: #efd18f; font: 20px/1.2 Georgia,serif; }.sk-journal-head span { color: #d7d0c0; }
.sk-journal-list { display: none; }
.sk-board-layout:is([data-journal="full"],[data-journal="note"]) .sk-journal { justify-content: flex-start; padding: 10px 12px 12px 16px; }
.sk-journal-note { display: none; }.sk-board-layout[data-journal="note"] .sk-journal-note { display: block; flex: 0 1 auto; min-height: 0; overflow-y: auto; margin: 0 !important; padding: 2px 4px 0 14px; border-left: 3px solid #d2b36c; color: #e5dcc7 !important; }
.sk-board-layout:is([data-journal="full"],[data-journal="note"]) .sk-journal-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 8px; align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.sk-journal-list button { display: flex; align-items: center; gap: 8px; text-align: left; white-space: nowrap; padding: 6px 10px; }.sk-journal-list span { flex: 1; }
.sk-journal-list b { color: #f5ce79; }.sk-journal-list svg { color: #aff38e; }
.sk-journal-list .is-selected { background: #81602c; border-color: #fff3ca; }.sk-journal-list .is-selected b { color: #fff3ca; }

/* Patrol: the field fills the shell. Rows share the height; the hand keeps a size the cards can be read at. */
.sk-combat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border: 1px solid #ad915b; border-radius: 20px; background: linear-gradient(#11121db8,#11121d80),var(--sk-field) center/cover; overflow: hidden; }
.sk-battle-top { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.sk-where { display: grid; gap: 2px; }.sk-where strong { color: #efd18f; font: 24px/1.15 Georgia,serif; }
.sk-root .sk-goal { flex: 1 1 260px; margin: 0; }
.sk-score { display: flex; gap: 16px; margin-left: auto; }.sk-score span { display: grid; gap: 2px; }.sk-score b { color: #b9ef99; font-size: 22px; white-space: nowrap; }
.sk-troops { flex: 1 1 0; min-height: 56px; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; align-items: stretch; }
.sk-root .sk-troop { flex: 0 0 auto; width: clamp(96px,calc(var(--sk-row,120px) * .78),180px); display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #29232ef5; }
.sk-troop img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; display: block; }.sk-troop span { display: block; padding: 4px 7px 0; }.sk-troop b { display: block; white-space: nowrap; color: #f3d894; padding: 0 7px 6px; }.sk-troop.is-selected { outline: 3px solid #b4f396; }
.sk-root .sk-empty { align-self: center; margin: 0; }
.sk-field-divider { flex: none; text-align: center; color: #f0d38d; padding: 6px 0; border-block: 1px solid #b99b5744; }
.sk-fields { flex: none; display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; padding: 8px 12px; background: #171b20dc; border: 1px solid #a5d28055; border-radius: 12px; color: #e2efc9; }.sk-fields span + span { padding-left: 8px; border-left: 1px solid #a5d28055; }
.sk-hand { flex: none; height: clamp(128px,calc(var(--sk-h,600px) * .27),210px); display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px; }
.sk-root .sk-hand-card { flex: 0 0 auto; width: clamp(112px,calc(var(--sk-h,600px) * .2),150px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sk-hand-card img { flex: 1 1 0; min-height: 0; width: 100%; display: block; object-fit: cover; }.sk-hand-card span { display: block; padding: 5px 7px 0; }.sk-hand-card b { display: block; padding: 0 7px 7px; color: #eed08f; }

/* Short screens: one line of heading, slim troop and hand cards with the picture beside the words. */
.sk-root[data-density="compact"] h2 { font-size: 24px; margin: 2px 0 8px; }
.sk-root[data-density="compact"] .sk-combat { gap: 5px; padding: 8px 12px; border-radius: 16px; overflow-y: auto; }
.sk-root[data-density="compact"] .sk-goal { order: 3; flex-basis: 100%; }
.sk-root[data-density="compact"] .sk-where { display: flex; align-items: baseline; gap: 10px; }.sk-root[data-density="compact"] .sk-where strong { font-size: 20px; }
.sk-root[data-density="compact"] .sk-score span { display: flex; gap: 6px; align-items: baseline; }.sk-root[data-density="compact"] .sk-score b { font-size: 18px; }
.sk-root[data-density="compact"] .sk-troop { width: auto; max-width: 230px; flex-direction: row; align-items: center; gap: 8px; padding-right: 10px; text-align: left; }
.sk-root[data-density="compact"] .sk-troop img { flex: none; width: auto; height: 100%; aspect-ratio: 1; }.sk-root[data-density="compact"] .sk-troop span, .sk-root[data-density="compact"] .sk-troop b { padding: 0; }
.sk-root[data-density="compact"] .sk-field-divider { padding: 3px 0; }.sk-root[data-density="compact"] .sk-fields { padding: 4px 10px; }
.sk-root[data-density="compact"] .sk-hand { height: 74px; }
.sk-root[data-density="compact"] .sk-hand-card { width: auto; max-width: 250px; display: grid; grid-template-columns: 60px auto; grid-template-rows: 1fr 1fr; column-gap: 10px; padding: 0 12px 0 0; text-align: left; }
.sk-root[data-density="compact"] .sk-hand-card img { grid-row: 1 / 3; width: 60px; height: 100%; }.sk-root[data-density="compact"] .sk-hand-card span { align-self: end; padding: 0; }.sk-root[data-density="compact"] .sk-hand-card b { align-self: start; padding: 0; }
.sk-root[data-density="compact"] .sk-brief-copy { padding: 12px 16px; }

/* Result: the story fills the shell over the location painting; its two ways on sit in the action bar. */
.sk-result { flex: 1; min-height: 0; display: grid; align-items: end; overflow-y: auto; border-radius: 20px; border: 1px solid #b29a5d; background: linear-gradient(transparent,#14111ce8 55%),var(--sk-field) center/cover; }
.sk-result > div { max-width: 900px; padding: 28px 32px; }.sk-result strong { color: #b2ef8f; font-size: 24px; }.sk-root .sk-result p { font-size: 18px; }
.sk-report { border-left: 3px solid #d2b36c; padding-left: 16px; margin-block: 16px !important; }
.sk-root[data-density="compact"] .sk-result > div { padding: 14px 20px; }

.sk-sheet { width: min(680px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border-radius: 20px; border: 1px solid #bca16b; color: #f9f1df; background: #211b2a; }.sk-sheet::backdrop { background: #080710ce; backdrop-filter: blur(7px); }.sk-sheet > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #2d2433; }.sk-sheet h2 { font-size: 25px; margin: 0; }.sk-sheet-body { padding: 20px; }.sk-sheet article { padding: 0 0 12px; border-bottom: 1px solid #a58d5644; }.sk-deck-list { display: grid; gap: 10px; }.sk-deck-list label { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 9px; border-bottom: 1px solid #a58d5633; }.sk-deck-list select { flex: none; }
.sk-root:has(dialog[open]) > .sk-shell { pointer-events: none; }
.gf-hub-nav { flex-wrap: wrap; }
.sk-inspect-art { display:block;width:min(100%,340px);max-height:220px;object-fit:cover;border-radius:12px;margin:auto; }
@media(max-width:619px) { .sk-root .sk-iconic { width: 48px; padding: 10px; border-radius: 50%; }.sk-root .sk-iconic span { display: none; }.sk-kicker { letter-spacing: .06em; }.sk-root .sk-marker { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 18px; }.sk-village { padding: 5px 7px; }.sk-village svg { display: none; } }
@media(prefers-reduced-motion:reduce) { .sk-root * { animation: none !important; transition: none !important; } }
