/* Sylvie & The Solstice Pine — interface: HUD, the paper card, rituals, dialogs, print. */

/* ================================================================== HUD */
.hud {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(6, 11, 16, 0.84), rgba(6, 11, 16, 0));
}
.hud[hidden] { display: none; }
.hud-btn {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--glass); color: #f6e3ae;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-btn img { width: 30px; height: 30px; }
.hud-glyph { display: grid; }
.dots { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.dots li { flex: 0 1 30px; min-width: 22px; }
.dot { width: 100%; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.dot i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 2px solid rgba(255, 255, 255, 0.38); transition: all 0.4s; }
.dot.is-done i { background: radial-gradient(circle at 35% 30%, #fff7c2, #fbbf24 55%, #d97706); border-color: #ffe08a; box-shadow: 0 0 12px rgba(251, 191, 36, 0.8); }
.dot.is-current i { border-color: var(--gold); animation: dotPulse 1.8s infinite; }
.meters { flex: 0 0 auto; display: flex; gap: 6px; }
.meter { position: relative; display: flex; align-items: center; gap: 3px; }
.meter img { width: 24px; height: 24px; }
.meter-col { display: grid; gap: 2px; width: 26px; }
.meter-val { font: 700 14px / 1 var(--font-display); color: #fde9a8; }
.meter[data-kind="frost"] .meter-val { color: #bfe6ff; }
.meter-bar { display: block; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d97706, #fbbf24); transition: width 0.8s; }
.meter[data-kind="frost"] .meter-bar i { background: linear-gradient(90deg, #38bdf8, #bae6fd); }
.meter-float { position: absolute; left: 50%; top: 100%; font: 700 15px var(--font-display); color: #ffe08a; text-shadow: 0 2px 6px #000; pointer-events: none; animation: floatUp 1.7s ease-out forwards; }
@media (min-width: 420px) {
  .hud { gap: 10px; padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }
  .meters { gap: 12px; }
  .meter img { width: 28px; height: 28px; }
  .meter-col { width: 34px; }
}

/* ================================================================== the card */
.card {
  position: absolute; z-index: 6; display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  background: #f1e7cf; color: var(--ink);
  font-family: var(--font-body); font-size: calc(17px * var(--ui)); line-height: 1.55;
  border: 1px solid #c58a1c; box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1), height 0.35s;
  will-change: transform;
}
.card-paper { position: absolute; inset: 0; z-index: 0; background: url("../assets/images/card-paper.jpg") center / cover; }
.card > :not(.card-paper):not(.card-close):not(.card-grab) { position: relative; z-index: 1; }

body[data-orientation="portrait"] .card {
  left: 0; right: 0; bottom: var(--kb, 0px); margin: 0 auto; max-width: 660px;
  height: min(var(--sheet-h), calc(var(--vvh) - 64px));
  border-radius: 28px 28px 0 0; border-bottom: 0;
}
body[data-orientation="portrait"] .card[data-state="closed"] { transform: translateY(106%); pointer-events: none; }
body[data-orientation="portrait"] .card[data-state="peek"] { transform: translateY(calc(100% - 66px)); }
body[data-orientation="portrait"] .card[data-typing="true"] { height: calc(var(--vvh) - var(--hud-h) - 96px); }
body[data-orientation="portrait"] .card[data-typing="true"] .card-hero { display: none; }

body[data-orientation="landscape"] .card {
  top: calc(var(--hud-h) + 2px); bottom: 12px; right: 12px; width: min(470px, 40vw); min-width: 340px;
  border-radius: 26px; border-bottom: 1px solid #c58a1c;
}
body[data-orientation="landscape"] .card[data-state="closed"] { transform: translateX(112%); pointer-events: none; }
body[data-orientation="landscape"] .card[data-state="peek"] { transform: translateX(calc(100% - 52px)); }
@media (max-height: 520px) and (orientation: landscape) { .card-hero { display: none; } }

.card-grab { display: none; }
body[data-orientation="portrait"] .card-grab {
  display: block; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 32px; padding: 0; border: 0; background: transparent; z-index: 3;
}
.card-grab::after { content: ""; position: absolute; left: 50%; top: 10px; width: 56px; height: 6px; border-radius: 6px; background: rgba(90, 60, 25, 0.45); transform: translateX(-50%); }
.card-close {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(120, 80, 25, 0.4); background: rgba(255, 248, 230, 0.88); color: #5a3a14;
}

.card-steps { display: flex; gap: 8px; margin: 0; padding: 20px 66px 6px 18px; list-style: none; overflow: hidden; }
.card-steps[hidden] { display: none; }
.card-steps li { display: flex; align-items: center; gap: 6px; font: 700 14px var(--font-display); letter-spacing: 0.04em; color: rgba(90, 60, 25, 0.6); }
.card-steps li.is-current { color: #8a4b00; }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; font-size: 14px; }
.card-steps li.is-done .step-num { background: #d98a1c; border-color: #d98a1c; color: #fff8e6; }
.step-name { display: none; white-space: nowrap; }
.card-steps li.is-current .step-name { display: inline; }
.card-steps:not([hidden]) + .card-scroll { padding-top: 2px; }

.card-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 18px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; outline: none; }
.card-hero { position: relative; margin: 4px 0 12px; aspect-ratio: 16 / 7; border-radius: 18px; overflow: hidden; border: 2px solid rgba(138, 90, 20, 0.55); box-shadow: 0 6px 20px rgba(60, 35, 10, 0.35); background: #1b2a33; }
.card-hero[hidden] { display: none; }
.card-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 12px; border-radius: 999px; background: rgba(10, 17, 24, 0.8); color: #fbd77a; font: 700 14px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.card-kicker { margin: 6px 0 2px; font: 700 14px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #9a5b00; }
.card-kicker[hidden] { display: none; }
.card-title { margin: 0 0 10px; outline: none; font: 700 calc(26px * var(--ui)) / 1.15 var(--font-display); color: #3b2a1a; }
/* after the first look, the picture and the long title step aside so the interactive part gets the room */
.card[data-step="mend"] .card-hero, .card[data-step="ritual"] .card-hero, .card[data-step="reflect"] .card-hero { display: none; }
.card[data-step="mend"] .card-title, .card[data-step="ritual"] .card-title, .card[data-step="reflect"] .card-title { margin: 0 0 6px; font-size: calc(16px * var(--ui)); letter-spacing: 0.04em; color: #8a5a14; }
.card-body { display: grid; gap: 14px; }
.card-body.step-enter { animation: stepIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.story { margin: 0; }
.lede { margin: 0; color: var(--ink-soft); }
.sub-title { margin: 0; font: 700 calc(21px * var(--ui)) / 1.2 var(--font-display); color: #3b2a1a; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 250, 236, 0.72); border: 1px solid rgba(190, 130, 30, 0.45); }
.callout img { flex: 0 0 44px; width: 44px; height: 44px; }
.callout p { margin: 0; }
.callout[data-kind="sap"] { border-left: 5px solid #e0a020; }
.callout[data-kind="frost"] { border-left: 5px solid #5aa9d6; }
.callout[data-kind="calm"] { border-left: 5px solid #8a7ad8; }
.callout-title { margin: 0 0 2px; font: 700 14px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #9a5b00; }

.tiles { display: grid; gap: 10px; }
.tile { display: flex; gap: 12px; align-items: center; padding: 12px; text-align: left; color: var(--ink); border-radius: 18px; border: 2px solid rgba(160, 105, 25, 0.4); background: rgba(255, 250, 236, 0.78); transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s; }
.tile:active { transform: scale(0.99); }
.tile.is-on { border-color: #d98a1c; background: #fff3cf; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45), 0 8px 22px rgba(120, 70, 10, 0.25); }
.tile-icon { flex: 0 0 56px; width: 56px; height: 56px; }
.tile-body { display: grid; gap: 2px; }
.tile-kind { font: 700 14px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #9a5b00; }
.tile-name { font: 700 calc(18px * var(--ui)) / 1.2 var(--font-display); color: #2f200f; }
.tile-label { font-size: calc(16px * var(--ui)); line-height: 1.4; }
.tile-fx { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; border-radius: 999px; background: rgba(60, 38, 12, 0.92); color: #fde9a8; font: 700 14px var(--font-display); }

.ritual { display: grid; gap: 10px; }
.ritual-head { display: flex; align-items: center; gap: 12px; }
.ritual-head img { flex: 0 0 52px; width: 52px; height: 52px; }
.ritual-chip { font: 700 14px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #9a5b00; }
.ritual-title { margin: 0; font: 700 calc(22px * var(--ui)) / 1.15 var(--font-display); }
.ritual-sub { margin: 4px 0 0; font: 700 calc(18px * var(--ui)) var(--font-display); }
.ritual-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.ritual-note { margin: 0; font-size: 15px; font-style: italic; color: #6b4a1d; }
.card .btn.ghost { color: #5a3a14; background: rgba(255, 250, 236, 0.7); border-color: rgba(150, 100, 40, 0.55); }

.letter-paper { padding: 14px 16px 10px; border-radius: 14px; border: 1px solid rgba(150, 110, 60, 0.45); background: #fffaf0 repeating-linear-gradient(transparent, transparent 33px, rgba(150, 110, 60, 0.2) 34px); box-shadow: 0 6px 18px rgba(80, 50, 15, 0.18); transition: transform 1.4s ease-in, opacity 1.4s ease-in; }
.letter-paper.is-flying { transform: translateY(-70px) scale(0.92) rotate(-2deg); opacity: 0; }
.letter-paper.is-sent { opacity: 0.5; }
.letter-row { display: grid; gap: 2px; margin-bottom: 6px; }
.letter-label { font: italic 500 calc(16px * var(--ui)) var(--font-body); color: #6b4a1d; }
.letter-sign { margin: 8px 0 2px; text-align: right; font: 600 calc(24px * var(--ui)) var(--font-hand); color: #2f200f; }
.letter-name { margin-left: 6px; }
.msg-paper { display: grid; gap: 4px; }
.ritual-text, .journal-text {
  width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical; outline: none;
  border: 2px solid rgba(150, 100, 40, 0.55); border-radius: 14px; background: #fffaf0;
  font: 500 calc(18px * var(--ui)) / 1.5 var(--font-body); color: #2f200f;
}
.journal-text { min-height: 160px; }
.ritual-text:focus, .journal-text:focus { border-color: #d98a1c; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35); }

.grat-list { display: grid; gap: 8px; }
.grat-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; background: rgba(255, 250, 236, 0.72); border: 1px solid rgba(190, 130, 30, 0.4); }
.grat-star { flex: 0 0 40px; width: 40px; height: 40px; filter: grayscale(1) opacity(0.35); transform: scale(0.85); transition: transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1), filter 0.3s; }
.grat-row.has-star .grat-star { filter: none; transform: scale(1.1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(160, 105, 25, 0.5); background: rgba(255, 250, 236, 0.82); color: #4a2f0c; font: 700 16px var(--font-display); }
.chip.is-on { background: #f6b73c; border-color: #c97a0a; color: #2a1604; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4); }

.breath { display: grid; justify-items: center; gap: 6px; padding: 4px 0; }
.breath-stage { display: grid; place-items: center; width: 190px; height: 190px; }
.breath-orb { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; transform: scale(0.56); will-change: transform; background: radial-gradient(circle at 50% 45%, rgba(255, 240, 190, 0.95), rgba(251, 191, 36, 0.75) 38%, rgba(217, 119, 6, 0.45) 62%, rgba(217, 119, 6, 0) 72%); box-shadow: 0 0 60px 10px rgba(251, 191, 36, 0.35); }
.breath-core { width: 38%; height: 38%; border-radius: 50%; background: radial-gradient(circle, #fffbe6, rgba(255, 240, 170, 0.2) 70%); }
.breath-label { margin: 0; font: 700 calc(20px * var(--ui)) var(--font-display); color: #7a4300; text-align: center; }
.breath-count { margin: 0; min-height: 1.3em; font-size: 15px; color: #8b6a3a; }

.lights-wrap { padding: 6px; border-radius: 16px; border: 2px solid rgba(160, 105, 25, 0.5); background: radial-gradient(circle at 50% 40%, #1f3140, #0e1821); }
.lights-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.lights-cord { stroke: #d8b27a; stroke-width: 3.2; stroke-linecap: round; }
.lights-cord.is-tangled { stroke: #ff7a59; stroke-dasharray: 6 5; }
.lights-node { cursor: grab; }
.lights-node.is-held { cursor: grabbing; }
.lights-halo { fill: rgba(251, 191, 36, 0); transition: fill 0.3s; }
.lights-node.is-held .lights-halo, .is-solved .lights-halo { fill: rgba(251, 191, 36, 0.38); }
.is-solved .lights-cord { stroke: #ffe08a; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.9)); }
.lights-support { display: grid; gap: 8px; margin-top: 6px; }
.lights-support[hidden] { display: none; }

.journal { display: grid; gap: 8px; }
.prompt-text { margin: 0; font: 600 calc(19px * var(--ui)) / 1.45 var(--font-body); color: #2f200f; }
.journal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.hint { font-size: 15px; font-style: italic; color: #7a5a2a; }
.save-state { font: 700 14px var(--font-display); color: #3f7a3a; }
.summary { margin: 0; padding: 10px 14px; border-left: 4px solid #e0a020; border-radius: 0 14px 14px 0; background: rgba(255, 250, 236, 0.72); }
.summary p { margin: 4px 0; }

.card-foot { display: flex; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(150, 100, 40, 0.3); background: linear-gradient(to top, rgba(244, 232, 205, 0.97), rgba(244, 232, 205, 0.84)); }
.card-foot .btn { flex: 1 1 auto; }
.card-foot .btn.ghost { flex: 0 1 auto; }
.card-foot [hidden] { display: none; }

.finale-sylvie { display: block; width: 120px; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(60, 30, 0, 0.35)); animation: floaty 3.4s ease-in-out infinite; }
.finale-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finale-stat { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 250, 236, 0.72); border: 1px solid rgba(190, 130, 30, 0.45); }
.finale-stat img { width: 40px; height: 40px; }
.finale-stat strong { display: block; font: 700 22px var(--font-display); }
.finale-stat-label { font-size: 14px; color: #8a5a14; }
.finale-wish { margin: 0; text-align: center; font-size: 18px; }
.finale-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ================================================================== dialogs */
.dialog { width: min(560px, calc(100vw - 24px)); max-height: min(88vh, 780px); max-height: min(88dvh, 780px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #101b25; color: #f1ede2; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); font-family: var(--font-body); font-size: calc(17px * var(--ui)); }
.dialog::backdrop { background: rgba(3, 7, 11, 0.72); backdrop-filter: blur(4px); }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.menu-head h2 { margin: 0; font: 700 22px var(--font-display); color: var(--gold); }
.menu-head .card-close { position: static; background: rgba(255, 255, 255, 0.08); color: #f6e3ae; border-color: var(--line); }
.menu-body { display: grid; gap: 12px; padding: 8px 20px 20px; overflow: auto; max-height: calc(min(88vh, 780px) - 70px); max-height: calc(min(88dvh, 780px) - 70px); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.menu-field { display: grid; gap: 4px; }
.menu-field .letter-input { border: 2px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.06); padding: 10px 12px; font: 500 18px var(--font-body); color: #fff8e6; }
.menu-actions { display: grid; gap: 8px; }
.menu-note { margin: 0; min-height: 1.3em; font-size: 15px; color: #9fe0a8; }
.menu-about { margin: 0; text-align: center; font-size: 14px; color: #8aa0b3; }
.switch { position: relative; flex: 0 0 52px; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 30px; background: rgba(255, 255, 255, 0.22); transition: 0.2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + i { background: #d98a1c; }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }
.size-picker { display: flex; gap: 8px; }
.size-btn { width: 48px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, 0.06); font-family: var(--font-display); font-weight: 700; }
.size-btn.is-on { background: #d98a1c; border-color: var(--gold); color: #2a1604; }

.keepsake { width: min(820px, calc(100vw - 20px)); max-height: 92vh; max-height: 92dvh; border-color: #c58a1c; background: #faf6ea; color: #2a1a0b; }
.keepsake-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #23150d; color: #fbd77a; font-family: var(--font-display); }
.keepsake-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.keepsake-bar .btn { min-height: 44px; padding: 8px 14px; font-size: 14px; color: #fbd77a; }
.keepsake-bar .btn.primary { color: #2a1604; }
.keepsake-scroll { overflow: auto; max-height: calc(92vh - 70px); max-height: calc(92dvh - 70px); padding: 22px 22px 30px; }
.keepsake-head { margin-bottom: 16px; padding-bottom: 16px; text-align: center; border-bottom: 2px solid #b45309; }
.keepsake-head h1 { margin: 6px 0; font: 700 clamp(26px, 5vw, 38px) / 1.1 var(--font-display); }
.keepsake-head p { margin: 6px auto; max-width: 56ch; }
.keepsake-meta { font-size: 15px; color: #78350f; }
.keepsake-tag { font: 700 14px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #b45309; }
.keepsake-card { margin: 0 0 14px; padding: 14px 16px; break-inside: avoid; border: 2px solid #d6c4a2; border-radius: 14px; background: #f4efe0; }
.keepsake-card h3 { margin: 2px 0 4px; font: 700 20px var(--font-display); }
.keepsake-tool { font-size: 15px; color: #78350f; }
.keepsake-prompt { margin: 8px 0 4px; font-weight: 600; color: #6e4e37; }
.keepsake-words { margin: 0; padding-top: 8px; border-top: 1px solid #e5d7b7; font-style: italic; white-space: pre-wrap; }
.keepsake-ritual { margin-top: 8px; padding: 8px 12px; border: 1px solid #e5d7b7; border-radius: 10px; background: #fbf7ec; }
.keepsake-ritual p { margin: 3px 0; }
.keepsake-pending { margin: 6px 0 0; font-style: italic; color: #8a7a60; }
.keepsake-foot { padding: 16px; text-align: center; border: 2px solid #b45309; border-radius: 14px; background: #f4efe0; }
.keepsake-foot h3 { margin: 0 0 6px; font: 700 20px var(--font-display); }
.keepsake-sign { font: 700 14px var(--font-display); letter-spacing: 0.1em; color: #92400e; }

/* ================================================================== anchor editor (?edit=1) */
.editor { position: absolute; z-index: 30; left: 8px; bottom: 8px; width: min(340px, calc(100vw - 16px)); display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 14, 20, 0.92); color: #f6f1e4; font: 14px var(--font-body); }
.editor-row { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.08); font: 700 16px var(--font-display); }
.editor-btn.is-on { background: #d98a1c; color: #2a1604; }
.editor-out { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0a1118; color: #cfe3f4; font: 13px / 1.4 ui-monospace, Consolas, monospace; }

/* ================================================================== print: only the keepsake */
#print-root { display: none; }
@media print {
  html, body { height: auto !important; overflow: visible !important; position: static !important; background: #fff !important; color: #2a1a0b !important; }
  #game, dialog { display: none !important; }
  #print-root { display: block !important; padding: 0; background: #fff; }
  #print-root .keepsake-sheet { padding: 0; }
  .keepsake-card { break-inside: avoid; page-break-inside: avoid; }
}
