@font-face { font-family: "IM Fell DW Pica"; src: url(/assets/fonts/im-fell-dw-pica-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/assets/fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/assets/fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/assets/fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans SC"; src: url(/assets/fonts/alegreya-sans-sc-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --font-title: "IM Fell DW Pica", "Iowan Old Style", serif;
  --font-ui: "Alegreya Sans", sans-serif;
  --font-label: "Alegreya Sans SC", "Alegreya Sans", sans-serif;
  --paper: #1E1B14; --paper-deep: #171410; --paper-raised: #26221A;
  --rule: #3B3529; --rule-strong: #4A4335;
  --chalk: #EDE7DB; --graphite: #9C9280; --dim: #8A8170;
  --bone: #E2D3AE; --bone-line: #E2D3AE8C; --ink: #27231E;
  --teal: #5E9E9C; --gold: #C99A34; --ember: #C8552A; --ember-text: #D9734A;
  --radius: 10px; --stroke: 1.5px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --lamplight: radial-gradient(120% 70% at 50% 28%, #FFF7E80F, #0000 62%);
  --bg: var(--paper); --bg-deep: var(--paper-deep); --key: var(--chalk); --mid: var(--graphite);
  --shelf: #2A251C; --shelf-lip: var(--paper-deep); --shelf-edge: var(--rule);
  --control: #24201A; --control-edge: var(--rule-strong); --control-hi: #2D281F;
  color: var(--chalk);
  font-synthesis: none; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased;
  background: var(--paper);
  font-family: var(--font-ui);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body,
#app {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}
body {
  color: var(--chalk); background: var(--paper); font-size: 15px;
  overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; overflow: hidden;}
button {
  font: inherit;
}
.basalt-app {
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: var(--bg);
  flex-direction: column;
  display: flex;
  position: relative;
  overflow: hidden;
}
.vignette {
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    125% 78% at 50% 30%,
    #fff7e80a 0%,
    #0000 47%,
    #0000006b 100%
  );
  position: absolute;
  inset: 0;
}
.top-bar {
  z-index: 8;
  top: env(safe-area-inset-top);
  align-items: center;
  gap: 11px;
  padding: 14px 20px 4px;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
}
.brand-lock {align-items: center; gap: 8px; display: flex;}
.brand-lock img {display:none;}
.brand-lock span {color: var(--graphite); font: 20px/1 var(--font-title); letter-spacing: .01em;}
.level-label {color: var(--dim); font: 500 13px/1 var(--font-label); letter-spacing: .08em;
  align-items: baseline; gap: .45em; margin-left: auto; margin-right: 4px; display: flex;}
.level-label b {color: var(--chalk); font: 500 23px/1 var(--font-ui); letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums;}
.icon-button,
.sweep-mark {
  color: var(--key);
  background: 0 0;
  border: 0;
}
.icon-button {opacity: .85; color: var(--graphite); place-items: center; width: 36px; height: 36px; padding: 0;
  transition: opacity .18s, transform .13s; display: grid;}
.formation-button {
  width: 42px;
  height: 42px;
}
.formation-button svg {fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4px; width: 26px; height: 26px;}
.menu-button i {background: currentColor; width: 18px; height: 1.4px; display: block; box-shadow: -3px 5.5px, 2px -5.5px;}
.icon-button:active {opacity: 1; transform: translateY(1px);}
.sweep-mark {color: var(--gold); flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center;}
.sweep-mark.lost {color: var(--dim);}
.sweep-mark.used {color: var(--gold);}
.board-stage {
  z-index: 1;
  transform-origin: 50% 48%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: 100%;
  height: 100%;
  transition: transform 0.18s ease-out;
  position: absolute;
  inset: 0;
}
.board-stage:after {z-index: 1; content: ""; pointer-events: none;
  background: linear-gradient(#0000005c 0, #0000 13px); border-top: 1px solid var(--rule);
  height: clamp(108px, 16vh, 152px); position: absolute; bottom: 0; left: 0; right: 0;
  box-shadow: inset 0 7px 12px -7px #000000d6, inset 0 1px #fff6e60a;}
.tilt-parallax .board-stage {
  transform: perspective(1100px) rotateY(var(--tilt-x)) rotateX(var(--tilt-y));
}
.renderer-host {
  z-index: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.basalt-canvas {
  touch-action: none;
  outline: none;
  width: 100%;
  height: 100%;
  display: block;
}
.board-message {z-index: 7; color: #EDE7DBE0; max-width: min(60%, 360px); text-align: center;
  font: italic 16px/1.4 var(--font-ui); letter-spacing: .01em; text-shadow: 0 1px 3px #000000e6;
  opacity: 0; visibility: hidden; pointer-events: none; background: 0 0; border: 0; margin: 0; padding: 0;
  transition: opacity .3s, transform .3s, visibility .3s; position: absolute; top: 74px; left: 50%; transform: translate(-50%, 6px);}
.board-message.show {opacity: 1; visibility: visible; transform: translate(-50%, 0);}
.board-message[data-kind="invalid"] {color: var(--ember-text);}
.board-message[data-kind="complete"] {color: var(--gold);}
.control-pad {
  z-index: 9;
  grid-template-columns: repeat(2, 50px); grid-auto-rows: 50px; gap: 8px;
  display: grid;
  position: absolute;
}
.control-pad[hidden] {
  display: none;
}
.control-pad[data-corner$="left"] {
  left: 12px;
}
.control-pad[data-corner$="right"] {
  right: 12px;
}
.control-pad[data-corner^="bottom"] {bottom: calc(clamp(108px, 16vh, 152px) + 14px);}
.control-pad[data-corner^="top"] {
  top: 64px;
}
.control-pad button {border: 1px solid #4A43358C; width: 50px; height: 50px; color: var(--bone);
  background: #26221ACC; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 14px; place-items: center; padding: 0; display: grid;
  box-shadow: 0 6px 16px #00000047, inset 0 1px #fff6e60d; transition: transform .14s cubic-bezier(.2,.8,.2,1), background-color .14s;}
.control-pad button[data-command="place"] {color: var(--chalk); border-color: var(--bone-line);}
.hint-button {z-index: 9; border: 1px solid #4A43358C; width: 44px; height: 44px; color: var(--graphite);
  background: #26221ACC; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 13px;
  place-items: center; padding: 0; display: grid; position: absolute; box-shadow: 0 6px 16px #00000047; transition: transform .14s cubic-bezier(.2,.8,.2,1);}
.hint-button[hidden] {
  display: none;
}
.hint-button[data-corner$="left"] {
  left: 12px;
}
.hint-button[data-corner$="right"] {
  right: 12px;
}
.hint-button[data-corner^="bottom"] {bottom: calc(clamp(108px, 16vh, 152px) + 14px);}
.hint-button[data-corner^="top"] {
  top: 64px;
}
.hint-button.costly:after {
  background: var(--gold);
  content: "";
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 7px;
  right: 7px;
  box-shadow: 0 0 6px #c99a34b3;
}
.guide-sheet {background: var(--grain), var(--lamplight), var(--paper);}
.guide-stage {
  cursor: pointer;
  flex: auto;
  place-items: center;
  min-height: 0;
  padding: 28px 28px 8px;
  display: grid;
}
.guide-card {
  width: min(100%, 390px);
  color: var(--key);
  text-align: center;
  display: none;
}
.guide-card.on {
  animation: 0.28s ease-out both guide-enter;
  display: block;
}
.guide-card svg {
  width: min(72vw, 280px);
  margin: 0 auto 24px;
  overflow: visible;
}
.guide-card h3 {color: var(--chalk); margin: 0 0 12px; font: 28px/1.15 var(--font-title); letter-spacing: 0; text-transform: none;}
.guide-card p {color: var(--graphite); max-width: 330px; margin: 0 auto; font: 16px/1.6 var(--font-ui);}
.guide-stone, .guide-socket, .guide-hand, .guide-motion, .guide-hold {fill: none; stroke: var(--graphite); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round;}
.guide-stone {fill: #E2D3AE14; stroke: var(--bone); stroke-width: 2.4px;}
.guide-motion, .guide-hold {stroke: var(--dim); stroke-dasharray: 5 7;}
.guide-hold {
  animation: 1.7s ease-in-out infinite guide-pulse;
}
.guide-dots {
  justify-content: center;
  gap: 8px;
  padding: 6px 0 18px;
  display: flex;
}
.guide-dots i {background: var(--rule-strong); border-radius: 50%; width: 5px; height: 5px; transition: background .16s, transform .16s;}
.guide-dots i.on {background: var(--bone); transform: scale(1.35);}
.guide-next {color: var(--chalk); background: transparent; border: 1px solid var(--bone-line); border-radius: var(--radius);
  font: 500 14px/1 var(--font-label); letter-spacing: .1em; align-self: center; min-width: 132px; margin: 0 auto 18px; padding: 14px 28px;}
@keyframes guide-enter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes guide-pulse {
  0%,
  to {
    opacity: 0.3;
    transform-origin: 90px 74px;
    transform: scale(0.82);
  }
  50% {
    opacity: 0.9;
    transform-origin: 90px 74px;
    transform: scale(1);
  }
}
.sheet {z-index: 20; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); opacity: 0; pointer-events: none;
  background: var(--grain), var(--lamplight), var(--paper); flex-direction: column;
  transition: opacity .24s, transform .24s cubic-bezier(.2,.9,.3,1); display: flex; position: fixed; inset: 0; transform: translateY(12px);}
.sheet.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.sheet-head {flex: none; align-items: center; gap: 14px; margin: 0 20px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); display: flex;}
.sheet-head h2 {color: var(--chalk); margin: 0; font: 28px/1.1 var(--font-title); letter-spacing: 0; text-transform: none;}
.back {width: 40px; height: 40px; color: var(--graphite); background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius); place-items: center; padding: 0; display: grid;}
.back svg {fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6px; width: 19px; height: 19px;}
.sheet-body {
  scrollbar-width: none;
  touch-action: pan-y;
  flex: auto;
  padding: 2px 0 10px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(#000 0 calc(100% - 28px), #0000 100%);
  mask-image: linear-gradient(#000 0 calc(100% - 28px), #0000 100%);
}
.settings-body,
.help-body {
  padding-bottom: 42px;
}
.sheet-body::-webkit-scrollbar {
  display: none;
}
.sheet h3 {color: var(--dim); margin: 28px 20px 2px; font: 500 13px/1.3 var(--font-label); letter-spacing: .1em; text-transform: none;}
.row {width: calc(100% - 40px); color: var(--chalk); text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 20px; padding: 16px 2px 15px;
  font: 18px/1.3 var(--font-ui); display: flex;}
.row + .row {margin-top: 0;}
.row:active {background: #FFF7E808;}
.row:disabled {
  opacity: 0.34;
}
.row .value {color: var(--dim); text-align: right; font: italic 16px/1.3 var(--font-ui); letter-spacing: 0;}
.row .value b {margin-left: 6px; font: 400 20px/1 var(--font-ui); font-style: normal;}
.sheet-close {width: calc(100% - 40px); color: var(--graphite); background: none; border: 0; border-top: 1px solid var(--rule);
  border-radius: 0; flex: none; margin: 4px 20px 10px; padding: 18px 0 14px; font: 500 14px/1 var(--font-label); letter-spacing: .1em;}
.help-body {color: var(--graphite); margin: 10px 20px; font-size: 17px; line-height: 1.6;}
.help-body b {color: var(--chalk); font-weight: 500;}
.help-body .row {
  width: 100%;
  margin: 0;
}
.formation-stats {color: var(--dim); gap: 28px; padding: 14px 20px 12px; font: 500 13px/1 var(--font-label); letter-spacing: .08em; display: flex; align-items: baseline;}
.formation-stats b {color: var(--chalk); margin-right: 6px; font: 500 22px/1 var(--font-ui); letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums;}
.formation-field {touch-action: none; cursor: grab; background: var(--grain), radial-gradient(80% 70% at 50% 45%, #4339282e, #0000 72%), linear-gradient(#1c1913, #17140f);
  flex: auto; min-height: 0; position: relative; overflow: hidden;}
.formation-field:active {
  cursor: grabbing;
}
.causeway-world,
.formation-wheel-world {
  transform-origin: 0 0;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
}
.causeway-world.animate,
.formation-wheel-world.animate,
.causeway-world.animate .formation-board-tile,
.formation-wheel-world.animate .formation-board-tile {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.82, 0.22, 1),
    opacity 0.25s;
}
.formation-board-tile {
  transform-origin: 50%;
  place-items: center;
  display: grid;
  position: absolute;
}
.formation-board-svg {
  filter: drop-shadow(0.4rem 1rem 0.8rem #00000061);
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.formation-board-drawing {
  transform: translate(0.2px, 0.15px);
}
.formation-cell-side {
  fill: var(--formation-side, #342f26);
  stroke: var(--formation-ink, #19150f);
  stroke-width: 0.085px;
}
.formation-cell-side-0 {
  filter: brightness(0.78);
}
.formation-cell-side-1 {
  filter: brightness(1.08);
}
.formation-cell-side-2 {
  filter: brightness(0.92);
}
.formation-cell-side-hatch {
  opacity: 0.62;
  stroke: none;
}
.formation-cell-top {
  fill: var(--formation-top, #eee3cc);
  stroke: #1f1a1229;
  stroke-width: 0.035px;
}
.formation-field[data-art-style="etched"] .formation-piece-outline {
  stroke-width: 0.13px;
}
.formation-field[data-art-style="reference"] .formation-cell-hatch,
.formation-field[data-art-style="reference"] .formation-cell-side-hatch,
.formation-field[data-art-style="reference"] .formation-piece-erosion,
.formation-field[data-art-style="reference"] .formation-piece-echo {
  display: none;
}
.formation-field[data-art-style="reference"] .formation-piece-outline {
  stroke-width: 0.07px;
  opacity: 0.56;
}
.formation-field[data-art-style="reference"] .formation-cell-top {
  stroke: #2e24171a;
  stroke-width: 0.025px;
}
.formation-field[data-art-style="reference"] .formation-cell-side {
  stroke-width: 0.045px;
  stroke-opacity: 0.42;
}
.formation-field[data-art-style="reference"] .formation-piece-cast {
  opacity: 0.2;
  transform: translate(0.28px, 0.42px);
}
.formation-cell-hatch {
  opacity: 0.075;
}
.formation-hatch-line {
  fill: none;
  stroke: #17130e;
  stroke-width: 0.065px;
  stroke-linecap: round;
}
.formation-piece-outline {
  fill: none;
  stroke: var(--formation-ink, #0c0a07);
  stroke-width: 0.145px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.formation-piece-cast {
  stroke: var(--formation-ink, #17130e);
  stroke-width: 0.08px;
  opacity: 0.42;
  transform: translate(0.32px, 0.5px);
}
.formation-bedrock .formation-cell-hatch {
  opacity: 0.25;
}
.formation-piece-erosion {
  fill: none;
  stroke: var(--formation-ink, #211b16);
  stroke-width: 0.055px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.66;
}
.formation-piece-echo {
  fill: none;
  stroke: #e75c59;
  stroke-width: 0.065px;
  stroke-dasharray: 0.2 0.12;
  opacity: 0.74;
  display: none;
  transform: translate(-0.08px, 0.055px);
}
.formation-clean .formation-cell-top {
  fill: #d8c17e;
}
.formation-terminal .formation-piece-outline {
  stroke-width: 0.17px;
}
.formation-order-vein {
  fill: none;
  stroke: #6fb7b2b8;
  stroke-width: 0.105px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.28 0.16;
  vector-effect: non-scaling-stroke;
}
.formation-order-vein.clean {
  stroke: #debb5ce0;
  stroke-width: 0.13px;
}
.formation-bonus-marker {
  fill: #6fb7b217;
  stroke: #7fc2bf;
  stroke-width: 0.12px;
  stroke-dasharray: 0.28 0.19;
}
.formation-board-label {color: var(--dim); font: 500 12px/1 var(--font-label); letter-spacing: .08em; white-space: nowrap; position: absolute; bottom: 8.5%; left: 50%; transform: translate(-50%);}
.formation-board-tile.selected .formation-board-label {
  color: var(--mid);
}
.causeway-vein {
  z-index: 200;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}
.causeway-vein path {
  fill: none;
  stroke: #6fb7b26b;
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  vector-effect: non-scaling-stroke;
}
.formation-wheel-world .causeway-vein {
  display: none;
}
.formation-wheel-world
  .formation-board-tile:not(.selected)
  .formation-board-label {
  opacity: 0;
}
.formation-wheel-rail {
  z-index: 400;
  pointer-events: none;
  width: 16px;
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 12px;
}
.formation-wheel-rail:before {
  content: "";
  background: #9c928061;
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
}
.formation-wheel-rail i {
  background: #ede7db;
  border-radius: 2px;
  width: 11px;
  height: 2px;
  transition: top 0.28s cubic-bezier(0.2, 0.82, 0.22, 1);
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 7px #ede7db38;
}
.formation-empty {z-index: 3; width: min(82%, 420px); color: var(--dim); pointer-events: none; text-align: center; gap: 8px; font: italic 16px/1.5 var(--font-ui); display: grid; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
.formation-empty[hidden] {
  display: none;
}
.formation-empty b {color: var(--graphite); font: 22px/1.25 var(--font-title); font-style: normal;}
.formation-footer {min-height: 50px; color: var(--dim); border-top: 1px solid var(--rule); flex: none; align-items: center; gap: 10px; margin: 0 20px; padding: 8px 0; font: italic 15px/1.3 var(--font-ui); display: flex;}
.formation-footer span {flex: auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px;}
.formation-footer button {color: var(--graphite); background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); flex: none; padding: 9px 12px; font: 500 13px/1 var(--font-label); letter-spacing: .08em; font-style: normal;}
.formation-footer button:disabled {
  opacity: 0.35;
}
.confirm-dialog,
.intro-overlay {
  z-index: 60;
  padding: env(safe-area-inset-top) 22px env(safe-area-inset-bottom);
  opacity: 0;
  pointer-events: none;
  background: #14120dd1;
  place-items: center;
  transition: opacity 0.24s;
  display: grid;
  position: fixed;
  inset: 0;
}
.confirm-dialog.on,
.intro-overlay.on {
  opacity: 1;
  pointer-events: auto;
}
.confirm-card {text-align: center; background: var(--grain), linear-gradient(#2A251C, #221E17); border: 1px solid var(--rule-strong); border-radius: 12px;
  width: min(100%, 390px); padding: 26px 22px 18px; transition: transform .24s cubic-bezier(.2,.82,.22,1); transform: translateY(8px) scale(.985); box-shadow: 0 22px 70px #00000085;}
.confirm-dialog.on .confirm-card {
  transform: none;
}
.confirm-card h2 {color: var(--chalk); margin: 0 0 10px; font: 28px/1.15 var(--font-title); font-weight: 400;}
.confirm-card p {color: var(--graphite); margin: 0 auto 22px; font-size: 16px; line-height: 1.5;}
.confirm-actions {
  gap: 9px;
  display: flex;
}
.confirm-actions button {min-height: 46px; color: var(--graphite); background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); flex: 1 1 0; font: 500 14px/1 var(--font-label); letter-spacing: .1em;}
#confirm-yes {color: var(--chalk); background: none; border-color: var(--bone-line);}
.intro-overlay {z-index: 70; background: var(--grain), radial-gradient(circle at 50% 44%, #4b443140, transparent 40%), var(--paper);}
.intro-lock {
  justify-items: center;
  gap: 15px;
  display: grid;
}
.intro-lock img {display:none;}
.intro-lock span {color: var(--chalk); font: 44px/1 var(--font-title); letter-spacing: .01em; animation: .9s cubic-bezier(.2,.82,.22,1) .35s both intro-rise;}
.intro-lock button {color: var(--chalk); background: transparent; border: 1px solid var(--bone-line); border-radius: var(--radius);
  margin-top: 30px; padding: 14px 34px; font: 500 14px/1 var(--font-label); letter-spacing: .1em; animation: .9s cubic-bezier(.2,.82,.22,1) .6s both intro-rise;}
@keyframes intro-rise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reduced-motion *,
.reduced-motion :before,
.reduced-motion :after {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
}
@media (width<=620px) {
  .top-bar { gap: 6px; padding: 12px 14px 4px; }
  .formation-button { width: 38px; height: 38px; }
  .formation-stats { gap: 20px; padding-left: 20px; padding-right: 20px; }
}

/* Field Notebook additions */
.column-mark { width: 22px; height: 22px; display: block; overflow: visible; }
.column-mark .cm-top { fill: var(--bone); }
.column-mark .cm-left { fill: #5E4C33; }
.column-mark .cm-front { fill: #826846; }
.column-mark .cm-right { fill: #9A7F59; }
.column-mark .cm-hatch { fill: none; stroke: var(--paper); stroke-width: .5; stroke-linecap: round; opacity: .55; }
.column-mark .cm-line { fill: none; stroke: var(--paper); stroke-width: .7; stroke-linejoin: round; stroke-linecap: round; }
.intro-lock .intro-mark { width: 84px; height: 84px; filter: drop-shadow(4px 10px 14px #0000007a); }
.intro-mark .cm-face, .intro-mark .cm-top { animation: ink-wash .7s ease-out .25s both; }
.intro-mark .cm-line, .intro-mark .cm-hatch { stroke-dasharray: 120; animation: ink-draw .9s ease-out both; }
@keyframes ink-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes ink-wash { from { opacity: 0; } to { opacity: 1; } }

.sweep-mark svg { width: 24px; height: 24px; overflow: visible; }
.sweep-mark .sw-hex { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.sweep-mark .sw-fill { fill: currentColor; opacity: 0; }
.sweep-mark .sw-crack { fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.sweep-mark.lost .sw-crack { display: block; }
.sweep-mark.used .sw-fill { opacity: .8; transition: opacity .5s .6s; }
.sweep-mark.used .sw-hex { stroke-dasharray: 100; animation: ink-draw-100 .9s ease-out both; }
@keyframes ink-draw-100 { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.control-pad svg, .hint-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.control-pad .half { fill: currentColor; stroke: none; opacity: .28; }
.control-pad .mirror { stroke-dasharray: 2 2.5; opacity: .8; }
.control-pad .socket { stroke-dasharray: 2.2 2; opacity: .7; }
.hint-button .dot { fill: currentColor; stroke: none; }
.control-pad button:active, .hint-button:active { transform: scale(.94); background-color: #2D281FE6; }

.sheet .guide-card h3 { color: var(--chalk); margin: 0 0 12px; font: 28px/1.15 var(--font-title); letter-spacing: 0; text-transform: none; }
.row .value[data-v="on"], .row .value[data-v="shown"], .row .value[data-v="ink"] { color: var(--graphite); }
#erase-progress > span:first-child { color: var(--ember-text); }
.confirm-dialog[data-tone="danger"] #confirm-yes { color: var(--ember-text); border-color: var(--ember); background: #C8552A14; }

@media (prefers-reduced-motion: reduce) {
  .intro-mark .cm-line, .intro-mark .cm-hatch, .intro-mark .cm-face, .intro-mark .cm-top, .sweep-mark.used .sw-hex { animation: none; }
}

.formation-button svg .fh { fill: #E2D3AE1F; }
