/* skin.css: Old Stone's skin on the kit's screens (DESIGN.md 6.1, 6.9). Sixteen colours and nothing else. */
@font-face { font-family: "Alfa Slab One"; font-weight: 400; font-display: swap; src: url("fonts/alfa-slab-one.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/im-fell-english.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/im-fell-english-italic.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 400 700; font-display: swap; src: url("fonts/bitter-var.woff2") format("woff2"); }
:root, .kit-skin-oldstone {
  --os-coal: #20282b; --os-slate: #3d4a52; --os-rain: #a9b6b5; --os-primrose: #ede7c3; --os-shade: #56635c; --os-stone: #8b9487; --os-light: #c2c7b2; --os-lichen: #d2b32e;
  --os-turf: #4c7a46; --os-bracken: #263f31; --os-marl: #86704c; --os-foam: #d8cdb2; --os-oak: #74543a; --os-madder: #b63e2b; --os-verdigris: #4fa08c; --os-lamp: #f6e7a4;
  --kit-font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --kit-font-text: "IM Fell English", Georgia, "Times New Roman", serif;
  --os-font-num: "Alfa Slab One", "Barlow Condensed", "Arial Narrow", sans-serif;
  --os-font-small: "Bitter", Georgia, serif;
  --kit-ink: var(--os-primrose); --kit-outline: var(--os-coal);
  --kit-accent: var(--os-oak); --kit-accent-ink: var(--os-primrose);
  --kit-good: var(--os-verdigris); --kit-warn: var(--os-madder); --kit-bad: var(--os-madder); --kit-calm: var(--os-primrose); --kit-hot: var(--os-lichen);
  --kit-paper: var(--os-foam); --kit-paper-ink: var(--os-coal);
  --kit-bar-bg: var(--os-coal); --kit-caption-bg: rgba(32, 40, 43, 0.88); --kit-figure: var(--os-primrose); --kit-btn-radius: 0px;
}
html.kit-page, html.kit-page body { background: var(--os-coal); }

/* ---------- On the floor: two slots. Sky (word or icon, count or ring, the verdict over them) and foot (bar or card). ---------- */
.kit-skin-oldstone .kit-hud-top { top: 4%; }
.kit-skin-oldstone .kit-hud-mid { top: 15%; transform: translateY(-46%); }
.kit-skin-oldstone .kit-hud-verdict { top: 7%; }
.kit-skin-oldstone .kit-hud-low { bottom: 3%; }
.kit-skin-oldstone .kit-count { font-family: var(--os-font-num); font-size: min(22vh, 41vw); }
.kit-skin-oldstone .kit-count-of { font-size: min(7.5vh, 14vw); }
.kit-skin-oldstone .kit-ring { width: 22vh; height: 22vh; }
.kit-skin-oldstone .kit-ring-n { font-family: var(--os-font-num); font-size: 11vh; }
.kit-skin-oldstone .kit-ring-arc { stroke: var(--os-oak); }
.kit-skin-oldstone .kit-icon { color: var(--os-primrose); }
/* the instruction again, bigger: the player has stood idle under it for 6 s */
.kit-skin-oldstone .kit-word[data-tone="loud"] { color: var(--os-primrose); font-size: min(18vh, calc(195vw / var(--len, 5))); animation: os-loud 0.9s ease-in-out infinite; text-shadow: 0 0.6vh 0 var(--os-coal), 0 0 3vh rgba(32, 40, 43, 0.9); }
@keyframes os-loud { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
/* a correction stamps over the sky slot: whatever is there steps back for that second */
.kit-skin-oldstone:has(.kit-verdict:not([hidden])) .kit-hud-top > *, .kit-skin-oldstone:has(.kit-verdict:not([hidden])) .kit-hud-mid > * { opacity: 0.1; }
.kit-skin-oldstone .kit-verdict { font-size: min(13vh, calc(172vw / var(--len, 6))); }
/* the bar is an Oak plank with a Coal notch at the line that matters */
.kit-skin-oldstone .kit-bar { border-radius: 0; border: 0.7vh solid var(--os-coal); background: var(--os-coal); }
.kit-skin-oldstone .kit-bar-fill, .kit-skin-oldstone .kit-bar[data-tone] .kit-bar-fill {
  background: repeating-linear-gradient(180deg, transparent 0 30%, rgba(32, 40, 43, 0.28) 30% 36%, transparent 36% 68%, rgba(32, 40, 43, 0.28) 68% 73%, transparent 73% 100%), var(--os-oak); }
.kit-skin-oldstone .kit-bar[data-tone="good"] .kit-bar-fill { background-color: var(--os-verdigris); }
.kit-skin-oldstone .kit-bar[data-tone="hot"] .kit-bar-fill { background-color: var(--os-lichen); }
.kit-skin-oldstone .kit-bar[data-tone="warn"] .kit-bar-fill, .kit-skin-oldstone .kit-bar[data-tone="bad"] .kit-bar-fill { background-color: var(--os-madder); }
.kit-skin-oldstone .kit-bar::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: var(--os-notch, 50%); width: 1vh; margin-left: -0.5vh; background: var(--os-primrose); box-shadow: 0 0 0 0.5vh var(--os-coal); }
/* the card is a slate */
.kit-skin-oldstone .kit-caption { border-radius: 0; background: rgba(32, 40, 43, 0.88); border-top: 0.5vh solid var(--os-primrose); color: var(--os-primrose); font-weight: 800; }
/* the flash is a rim, never a wash */
.kit-skin-oldstone .kit-flash { background: none !important; box-shadow: inset 0 0 0 3vh currentColor; color: var(--os-lichen); }
.kit-skin-oldstone .kit-flash[data-tone="good"] { color: var(--os-lichen); }
.kit-skin-oldstone .kit-flash[data-tone="warn"], .kit-skin-oldstone .kit-flash[data-tone="bad"] { color: var(--os-madder); }
.kit-pause { background: rgba(32, 40, 43, 0.9); }
.kit-pause-word { color: var(--os-primrose); }

/* ---------- In hand: the flood ledger. Foam paper, Coal ink, one Madder margin line. ---------- */
.os-paper { background: linear-gradient(90deg, transparent 0 21px, var(--os-madder) 21px 22.5px, transparent 22.5px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(32, 40, 43, 0.12) 31px 32px), var(--os-foam); color: var(--os-coal); }
.kit-skin-oldstone.kit-story { background: transparent; grid-template-rows: minmax(0, 58%) minmax(0, 1fr) auto; }
.kit-skin-oldstone .kit-story-art { background: transparent; }
.kit-skin-oldstone .kit-story-body, .kit-skin-oldstone .kit-story-foot { background: var(--os-foam); color: var(--os-coal); }
.kit-skin-oldstone .kit-story-body { padding: 20px 26px 0 36px; border-top: 3px solid var(--os-coal); box-shadow: inset 22px 0 0 -20.5px var(--os-madder); }
.kit-skin-oldstone .kit-story-foot { padding-left: 36px; box-shadow: inset 22px 0 0 -20.5px var(--os-madder); }
.kit-skin-oldstone .kit-story-text { font-size: 19px; line-height: 1.45; }
.kit-skin-oldstone .kit-kicker { font: 700 12px/1 var(--os-font-small); letter-spacing: 0.2em; color: var(--os-madder); }
.kit-skin-oldstone .kit-story-next { border-left-color: var(--os-madder); }
.kit-skin-oldstone .kit-story-skip { color: var(--os-primrose); }
.kit-skin-oldstone .kit-btn, .os-screen .kit-btn { background: var(--os-coal); color: var(--os-primrose); border-radius: 0; }
.kit-skin-oldstone .kit-btn-quiet, .os-screen .kit-btn-quiet { background: transparent; color: inherit; }
.kit-skin-oldstone.kit-setup { background: var(--os-foam); color: var(--os-coal); }

.os-screen { position: fixed; inset: 0; z-index: 46; box-sizing: border-box; overflow: auto; -webkit-overflow-scrolling: touch; font-family: var(--kit-font-text); color: var(--os-coal);
  padding: max(18px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)) 36px; }
.os-screen h1, .os-screen h2, .os-screen p { margin: 0; }
/* title: the picture, the name cut into a band of slate, a ledger slip, an oak plank to press */
.os-title { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; padding: 0; background: transparent; color: var(--os-primrose); overflow: hidden; }
.os-title-art { min-height: 0; box-shadow: inset 0 -30px 30px -20px rgba(32, 40, 43, 0.55); }
.os-title-band { background: linear-gradient(180deg, #46545c 0, var(--os-slate) 18%, #37434a 100%); border-top: 3px solid var(--os-coal); border-bottom: 3px solid var(--os-coal); padding: 12px 8px 14px; }
.os-title-name { text-align: center; font: 400 12.6vw/0.92 var(--os-font-num); letter-spacing: 0.01em; color: var(--os-primrose); text-shadow: 0 -2px 0 var(--os-coal), 0 2px 0 rgba(237, 231, 195, 0.22); white-space: nowrap; }
.os-title-slip { padding: 14px 22px max(14px, env(safe-area-inset-bottom)) 36px; display: grid; gap: 8px; }
.os-title-slip p { font-size: 16px; line-height: 1.3; }
.os-title-slip p:first-child { font: 700 13px/1 var(--os-font-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--os-madder); }
.os-plank { margin-top: 4px; height: 62px; border: 3px solid var(--os-coal); border-radius: 0; color: var(--os-primrose); font: 800 27px/1 var(--kit-font-display); letter-spacing: 0.1em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(32, 40, 43, 0.7);
  background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(32, 40, 43, 0.22) 13px 15px, transparent 15px 29px, rgba(32, 40, 43, 0.14) 29px 30px), var(--os-oak); box-shadow: 0 4px 0 var(--os-coal); }
.os-plank:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--os-coal); }
.os-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.os-link { background: none; border: 0; padding: 6px 0; font: 400 14px/1 var(--kit-font-text); color: var(--os-coal); text-decoration: underline; }
.os-credits { z-index: 50; display: grid; align-content: start; gap: 6px; }
.os-credits h3 { margin: 12px 0 0; font: 700 12px/1 var(--os-font-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--os-madder); }
.os-credits p { font-size: 15.5px; line-height: 1.4; }
.os-credits .kit-btn { margin-top: 18px; justify-self: start; }
.os-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.os-check input { width: 20px; height: 20px; accent-color: var(--os-coal); margin: 0; }
.os-row { display: flex; gap: 10px; flex-wrap: wrap; }
.os-card { display: grid; align-content: center; gap: 22px; }
.os-card p { font-size: 20px; line-height: 1.45; }
/* the ledger */
.os-ledger h1 { font: 700 13px/1.3 var(--os-font-small); letter-spacing: 0.14em; color: var(--os-madder); }
.os-ledger .os-sub { font-size: 14px; line-height: 1.35; margin: 6px 0 12px; font-style: italic; }
.os-rows { display: grid; gap: 0; }
.os-rowl { display: flex; align-items: baseline; gap: 6px; font-size: 16px; line-height: 32px; height: 32px; }
.os-rowl.sub { padding-left: 14px; font-size: 14px; }
.os-rowl.note { display: block; height: 32px; font-size: 12.5px; line-height: 15px; font-style: italic; padding-left: 14px; white-space: normal; }
.os-rowl i { flex: 1; border-bottom: 2px dotted rgba(32, 40, 43, 0.45); transform: translateY(-5px); }
.os-rowl b { font: 400 16px/1 var(--os-font-num); letter-spacing: 0.01em; white-space: nowrap; }
.os-foot { margin: 14px 0; font-size: 14px; line-height: 1.4; }
.os-foot p + p { margin-top: 4px; }
.os-rate { margin: 14px 0 10px; font-size: 15px; }
.os-chalk { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 16px; }
.os-chalk button { height: 40px; border: 2px solid var(--os-coal); background: transparent; color: var(--os-coal); font: 800 17px/1 var(--kit-font-display); border-radius: 0; padding: 0; }
.os-chalk button.on { background: var(--os-coal); color: var(--os-primrose); }
.os-closing { display: grid; grid-template-rows: minmax(0, 42%) auto; padding: 0; background: transparent; }
.os-closing-text { padding: 16px 24px 20px 36px; border-top: 3px solid var(--os-coal); display: grid; gap: 10px; align-content: start; overflow: auto; }
.os-closing-text p { font-size: 16.5px; line-height: 1.42; }
.os-hook { background: var(--os-coal); color: var(--os-primrose); display: grid; place-items: center; padding: 30px; text-align: center; }
.os-hook p { font-size: 27px; line-height: 1.35; }
/* the boulder in Mill Lane: a framed plate at the head of the card */
.os-teaser-art { margin: 0 0 16px; border: 3px solid var(--os-coal); box-shadow: 0 5px 0 rgba(32, 40, 43, 0.25); background: var(--os-slate); }
.os-teaser-art svg { display: block; width: 100%; height: auto; }
.os-teaser h2 { font: 400 30px/1.05 var(--os-font-num); margin: 8px 0 14px; }
.os-teaser .kit-kicker { color: var(--os-madder); font: 700 12px/1 var(--os-font-small); letter-spacing: 0.2em; }
.os-teaser p { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.os-teaser .os-daily { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--os-coal); }
.os-pickup { background: var(--os-coal); color: var(--os-primrose); display: grid; place-items: center; text-align: center; padding: 20px; }
.os-pickup div { font: 800 19vw/0.95 var(--kit-font-display); text-transform: uppercase; }
/* the chocked word sits in the sky slot */
.os-chocked { position: fixed; left: 0; right: 0; top: 5%; z-index: 21; pointer-events: none; text-align: center; white-space: pre; font: 800 min(13vh, 30vw) / 0.92 var(--kit-font-display); text-transform: uppercase;
  color: var(--os-primrose); -webkit-text-stroke: 1.4vh var(--os-coal); paint-order: stroke fill; }
