:root {
  --paper: #f3f0e8;
  --paper-deep: #e9e4d9;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #fffdf8;
  --ink: #181817;
  --ink-soft: #3e3d39;
  --muted: #6e6a62;
  --line: rgba(24, 24, 23, .14);
  --line-strong: rgba(24, 24, 23, .28);
  --tile: #e8e4da;
  --tile-hover: #efebe2;
  --tile-selected: #20211f;
  --yellow: #e8c85a;
  --green: #82b96b;
  --blue: #73a0d0;
  --purple: #ad84c3;
  --red: #b84940;
  --focus: #286fc2;
  --shadow-soft: 0 20px 55px rgba(48, 39, 24, .12);
  --shadow-panel: 0 24px 70px rgba(42, 35, 23, .13), 0 2px 8px rgba(42, 35, 23, .05);
  --shadow-button: 0 8px 18px rgba(24, 24, 23, .12), 0 2px 4px rgba(24, 24, 23, .08);
  --radius-xl: 24px;
  --radius-lg: 17px;
  --radius-md: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--paper);
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(232, 200, 90, .20), transparent 28rem),
    radial-gradient(circle at 92% 17%, rgba(115, 160, 208, .15), transparent 30rem),
    linear-gradient(180deg, #f8f5ee 0, var(--paper) 42%, #eee9df 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; }
button, .word-tile { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ambient-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .36;
  pointer-events: none;
}
.ambient-one { width: 230px; height: 230px; top: 24%; left: -150px; background: var(--yellow); }
.ambient-two { width: 290px; height: 290px; right: -210px; bottom: 6%; background: var(--purple); }

.app-shell { width: min(820px, calc(100% - 30px)); margin: 0 auto; }

.topbar {
  min-height: 98px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
}

.brand-lockup { padding: 14px 8px 12px; text-align: center; }
.brand-kicker, .eyebrow, .official-label {
  display: block;
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .17em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.72rem);
  line-height: .94;
  letter-spacing: -.052em;
}
h1 span {
  display: inline-block;
  padding: 4px 9px 7px;
  transform: rotate(-1.6deg);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(145deg, #c75448, #a53d35);
  box-shadow: 0 7px 17px rgba(184, 73, 64, .24);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  letter-spacing: .012em;
  text-transform: uppercase;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(24, 24, 23, .05);
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s ease, color .2s ease, box-shadow .2s ease;
}
.icon-button svg { width: 21px; height: 21px; stroke-width: 2.2; }
.icon-button:hover { transform: translateY(-2px); background: var(--ink); color: #fff; box-shadow: var(--shadow-button); }
.icon-button:active { transform: translateY(0) scale(.96); }

main { padding: 25px 0 48px; }

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 21px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.53));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -96px;
  top: -110px;
  border-radius: 50%;
  background: rgba(130, 185, 107, .19);
}

.caseoh-badge { position: relative; display: grid; place-items: center; min-height: 144px; }
.caseoh-badge > img { display: block; width: 138px; height: 138px; object-fit: contain; filter: drop-shadow(0 12px 15px rgba(0,0,0,.15)); user-select: none; -webkit-user-drag: none; }
.badge-name {
  position: absolute;
  right: -4px;
  bottom: -3px;
  padding: 6px 8px;
  transform: rotate(-2.5deg);
  border: 2px solid #fff;
  border-radius: 4px;
  background: linear-gradient(145deg, #c75448, #a53d35);
  color: #fff;
  box-shadow: 0 6px 14px rgba(82, 33, 29, .2);
  font-size: .54rem;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: .09em;
  text-align: center;
}

.hero-copy { position: relative; z-index: 1; }
.hero-description { margin: 13px 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
.difficulty-meter {
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(24,24,23,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.08);
}
.meter-fill {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow) 46%, var(--red));
  animation: meter-load 1s var(--ease-out) both;
}
.difficulty-value { margin: 7px 0 0; font-size: 1.16rem; font-weight: 950; letter-spacing: .025em; }
@keyframes meter-load { from { width: 0; } }

.game-panel {
  position: relative;
  padding: 27px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .82);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
}
.puzzle-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.puzzle-meta h2 { margin: 0; font-family: Georgia, serif; font-size: 1.75rem; letter-spacing: -.025em; }
.puzzle-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243,240,232,.7);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.puzzle-spec i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.puzzle-tools {
  display: grid;
  grid-template-columns: minmax(168px, .72fr) minmax(260px, 1.28fr);
  gap: 12px;
  align-items: end;
  margin: 20px 0 2px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(243,240,232,.74), rgba(255,255,255,.66));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.new-puzzle-button {
  position: relative;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  overflow: hidden;
  border: 1px solid #151514;
  border-radius: 13px;
  background: linear-gradient(145deg, #30312e, #171816);
  color: #fff;
  box-shadow: 0 4px 0 #070807, 0 10px 20px rgba(24,24,23,.16);
  cursor: pointer;
  font-weight: 880;
  letter-spacing: .01em;
  transition: transform .18s var(--ease-spring), box-shadow .18s ease, filter .18s ease;
}
.new-puzzle-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.25) 48%, transparent 72%);
  transition: transform .65s ease;
}
.new-puzzle-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #070807, 0 14px 25px rgba(24,24,23,.19); }
.new-puzzle-button:hover::before { transform: translateX(115%); }
.new-puzzle-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #070807, 0 4px 10px rgba(24,24,23,.12); }
.new-puzzle-button svg { width: 19px; height: 19px; transition: transform .35s var(--ease-spring); }
.new-puzzle-button:hover svg { transform: rotate(120deg); }
.puzzle-jump { min-width: 0; }
.puzzle-jump > label {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--ink-soft);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.puzzle-jump-entry {
  min-height: 49px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 10px rgba(24,24,23,.06), inset 0 1px 0 rgba(255,255,255,.9);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.puzzle-jump-entry:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(40,111,194,.13), 0 7px 18px rgba(24,24,23,.08);
  transform: translateY(-1px);
}
.puzzle-prefix { padding-left: 14px; color: var(--muted); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 800; }
.puzzle-jump input {
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 0 10px 0 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 800 1rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  appearance: textfield;
}
.puzzle-jump input::-webkit-inner-spin-button, .puzzle-jump input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.puzzle-jump input::placeholder { color: #99958c; font-weight: 650; }
.puzzle-jump button {
  align-self: stretch;
  min-width: 74px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: linear-gradient(145deg, #fff, #ece8df);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  transition: background .18s ease, color .18s ease;
}
.puzzle-jump button:hover { background: var(--ink); color: #fff; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.game-panel.puzzle-changing { animation: puzzle-panel-change .52s var(--ease-out); }
@keyframes puzzle-panel-change {
  0% { transform: translateY(0); }
  38% { transform: translateY(5px) scale(.994); opacity: .78; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.instruction-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 21px 0 14px; }
.instruction { margin: 0; color: var(--ink-soft); font-size: .94rem; font-weight: 720; }
.selection-status {
  min-width: 112px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  transition: transform .2s var(--ease-spring), border-color .2s ease, background .2s ease;
}
.selection-status strong { color: var(--ink); font-size: 1rem; }
.selection-status.ready { border-color: var(--ink); background: #fff; }
.selection-status.limit { animation: status-pulse .38s var(--ease-spring); }
@keyframes status-pulse { 50% { transform: scale(1.08); } }

.word-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.word-tile {
  position: relative;
  min-width: 0;
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 10px 7px;
  overflow: hidden;
  border: 1px solid rgba(24,24,23,.06);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #ece8df, #e2ddd2);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(24,24,23,.09), 0 8px 16px rgba(40,34,24,.04);
  cursor: pointer;
  font-size: clamp(.71rem, 1.75vw, .94rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .005em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-align: center;
  text-transform: uppercase;
  transition: transform .2s var(--ease-spring), background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .2s ease;
  animation: tile-enter .36s var(--ease-out) both;
  animation-delay: calc(var(--tile-index, 0) * 18ms);
  will-change: transform;
}
.word-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.38), transparent 45%);
  pointer-events: none;
}
.word-tile.long-word { font-size: clamp(.61rem, 1.42vw, .80rem); letter-spacing: -.018em; }
.word-tile.very-long-word { font-size: clamp(.54rem, 1.18vw, .70rem); letter-spacing: -.028em; }
.word-tile:hover { transform: translateY(-3px); background: linear-gradient(145deg, #f2efe8, #e7e2d7); box-shadow: 0 5px 0 rgba(24,24,23,.09), 0 13px 22px rgba(40,34,24,.08); }
.word-tile:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 0 rgba(24,24,23,.10); }
.word-tile.selected {
  transform: translateY(-1px) scale(.976);
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(145deg, #2c2d2a, #171816);
  color: #fff;
  box-shadow: 0 3px 0 #070807, 0 11px 20px rgba(18,18,17,.22);
}
.word-tile.selected:hover { transform: translateY(-3px) scale(.982); }
.word-tile.is-correct { animation: tile-confirm .46s var(--ease-spring) both; }
.word-tile.is-incorrect { animation: tile-shake .48s ease both; }
.word-tile.is-duplicate { animation: tile-duplicate .4s ease both; }
.word-tile:disabled { cursor: default; }
.tile-label { position: relative; z-index: 1; }
.selection-index {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .63rem;
  font-weight: 900;
}
@keyframes tile-enter { from { opacity: 0; transform: translateY(9px) scale(.97); } }
@keyframes tile-confirm { 45% { transform: translateY(-8px) scale(1.04); } 100% { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes tile-shake { 18%, 54% { transform: translateX(-6px); } 36%, 72% { transform: translateX(6px); } }
@keyframes tile-duplicate { 35% { transform: scale(.94); } 65% { transform: scale(1.02); } }

.solved-groups { display: grid; gap: 9px; margin-bottom: 9px; }
.solved-card, .example-group {
  min-height: 84px;
  display: grid;
  place-content: center;
  padding: 12px;
  border: 1px solid rgba(24,24,23,.08);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 12px rgba(24,24,23,.06);
  text-align: center;
}
.solved-card.recent { animation: group-reveal .56s var(--ease-spring) both; }
.solved-card strong, .example-group strong { font-size: .94rem; letter-spacing: .055em; }
.solved-card span, .example-group span { margin-top: 5px; font-size: .79rem; font-weight: 720; }
.yellow { background: var(--yellow); }
.green { background: var(--green); }
.blue { background: var(--blue); }
.purple { background: var(--purple); }
@keyframes group-reveal { from { opacity: 0; transform: translateY(12px) scale(.96); } 60% { transform: translateY(-2px) scale(1.012); } }

.status-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 7px; color: var(--ink-soft); font-size: .9rem; font-weight: 650; }
.mistakes { display: flex; gap: 6px; }
.mistake-dot { width: 13px; height: 13px; border: 2px solid #252522; border-radius: 50%; background: #252522; transition: opacity .25s ease, transform .25s var(--ease-spring), background .25s ease; }
.mistake-dot.used { opacity: .19; transform: scale(.66); background: transparent; }
.message { min-height: 27px; margin: 0; color: var(--ink-soft); text-align: center; font-size: .9rem; font-weight: 780; }
.message.flash { animation: message-in .35s var(--ease-out); }
@keyframes message-in { from { opacity: 0; transform: translateY(4px); } }

.controls { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 9px; margin-top: 12px; }
.control-button, .wide-button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .18s var(--ease-spring), box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.control-button::before, .wide-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.24) 48%, transparent 72%);
  transition: transform .6s ease;
}
.control-button:hover::before, .wide-button:hover::before { transform: translateX(110%); }
.control-button.secondary { background: rgba(255,255,255,.68); color: var(--ink); }
.control-button.primary, .wide-button { border-color: #151514; background: linear-gradient(145deg, #2a2b28, #151614); color: #fff; box-shadow: 0 4px 0 #060706, 0 10px 20px rgba(24,24,23,.18); }
.control-button:not(:disabled):hover, .wide-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(6,7,6,.95), 0 14px 25px rgba(24,24,23,.19); }
.control-button.secondary:not(:disabled):hover { border-color: var(--ink); background: #fff; box-shadow: var(--shadow-button); }
.control-button:not(:disabled):active, .wide-button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(6,7,6,.95), 0 4px 10px rgba(24,24,23,.12); }
.control-button:disabled { opacity: .34; cursor: not-allowed; box-shadow: none; }
.control-button.ready { animation: submit-ready .36s var(--ease-spring); }
@keyframes submit-ready { 50% { transform: scale(1.035); } }

.keyboard-hint { margin: 17px 0 0; color: var(--muted); font-size: .69rem; text-align: center; }
kbd { padding: 2px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink-soft); font-family: inherit; font-size: .65rem; font-weight: 800; }

.modal {
  width: min(535px, calc(100% - 26px));
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  background: rgba(255,253,248,.98);
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(0,0,0,.34);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .24s ease, transform .32s var(--ease-out), display .32s allow-discrete, overlay .32s allow-discrete;
}
.modal[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .modal[open] { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal::backdrop { background: rgba(22,20,16,.65); backdrop-filter: blur(7px); opacity: 0; transition: opacity .25s ease, display .25s allow-discrete, overlay .25s allow-discrete; }
.modal[open]::backdrop { opacity: 1; }
@starting-style { .modal[open]::backdrop { opacity: 0; } }
.modal form { position: relative; padding: 31px; }
.modal h2 { margin-bottom: 13px; font-family: Georgia, serif; font-size: 2.05rem; letter-spacing: -.035em; }
.modal p { line-height: 1.5; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.modal-close:hover { transform: rotate(7deg); background: #fff; }
.modal-close svg { width: 18px; height: 18px; }
.example-group { margin: 19px 0; }
.protocol-list { margin: 18px 0; padding-left: 22px; color: var(--ink-soft); }
.protocol-list li { margin-bottom: 9px; line-height: 1.4; }
.wide-button { width: 100%; margin-top: 12px; }
.text-button {
  display: block;
  margin: 14px auto 0;
  padding: 4px 7px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(24,24,23,.35);
  text-underline-offset: 3px;
}
.text-button:hover { text-decoration-color: currentColor; }
.text-button.subdued { color: var(--muted); font-weight: 650; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.stats-grid div { display: flex; flex-direction: column; padding: 12px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }
.stats-grid strong { font-size: 1.95rem; line-height: 1; }
.stats-grid span { margin-top: 6px; color: var(--muted); font-size: .65rem; line-height: 1.15; }
.stats-summary { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.result-modal form { text-align: center; }
.result-seal { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 16px; border: 4px solid var(--green); border-radius: 50%; color: var(--green); box-shadow: 0 0 0 8px rgba(130,185,107,.12); font-size: 2.25rem; font-weight: 950; animation: seal-in .55s var(--ease-spring); }
.result-seal.failed { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 8px rgba(184,73,64,.11); }
@keyframes seal-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
.share-preview { margin: 17px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); white-space: pre-line; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; line-height: 1.38; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  transform: translate(-50%, 18px) scale(.96);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(20,21,19,.95);
  color: #fff;
  box-shadow: 0 16px 35px rgba(0,0,0,.25);
  font-size: .84rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .3s var(--ease-spring);
  backdrop-filter: blur(8px);
}
.toast svg { width: 17px; height: 17px; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.completion-effect { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -30px; width: 10px; height: 18px; border-radius: 2px; animation: confetti-fall var(--duration) cubic-bezier(.2,.7,.2,1) var(--delay) forwards; }
@keyframes confetti-fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--rotation)); opacity: .2; } }

.fatal-error { margin: 24px 0; padding: 22px; border: 1px solid var(--red); border-radius: 14px; background: #fff; color: var(--red); font-weight: 750; text-align: center; }

@media (max-width: 660px) {
  .app-shell { width: min(100% - 16px, 820px); }
  .topbar { min-height: 82px; grid-template-columns: 43px 1fr 43px; }
  .brand-kicker { font-size: .53rem; letter-spacing: .12em; }
  h1 { font-size: clamp(1.55rem, 7.2vw, 2.1rem); }
  .icon-button { width: 38px; height: 38px; }
  main { padding-top: 17px; }
  .hero-panel { grid-template-columns: 108px 1fr; gap: 14px; padding: 16px; border-radius: 19px; }
  .caseoh-badge { min-height: 108px; }
  .caseoh-badge > img { width: 105px; height: 105px; }
  .badge-name { right: -3px; font-size: .42rem; }
  .official-label { font-size: .55rem; }
  .difficulty-value { font-size: .91rem; }
  .hero-description { margin-top: 9px; font-size: .81rem; }
  .game-panel { padding: 18px 12px 20px; border-radius: 19px; }
  .puzzle-meta { padding: 0 4px; }
  .puzzle-meta h2 { font-size: 1.45rem; }
  .puzzle-spec { padding: 7px 9px; font-size: .59rem; }
  .puzzle-tools { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding: 10px; }
  .new-puzzle-button { min-height: 46px; }
  .puzzle-jump-entry { min-height: 46px; }
  .puzzle-jump input { height: 44px; }
  .instruction-row { align-items: flex-start; margin-top: 17px; padding: 0 3px; }
  .instruction { max-width: 58%; font-size: .8rem; line-height: 1.35; }
  .selection-status { min-width: 103px; padding: 6px 8px; font-size: .67rem; }
  .word-grid, .solved-groups { gap: 6px; }
  .word-tile, .solved-card { min-height: 70px; border-radius: 9px; }
  .word-tile { padding: 8px 4px; font-size: clamp(.59rem, 3vw, .75rem); }
  .word-tile.long-word { font-size: .52rem; letter-spacing: -.025em; }
  .word-tile.very-long-word { font-size: .47rem; letter-spacing: -.035em; }
  .selection-index { top: 4px; right: 4px; width: 17px; height: 17px; font-size: .55rem; }
  .solved-card strong { font-size: .79rem; }
  .solved-card span { font-size: .66rem; }
  .controls { grid-template-columns: 1fr 1fr; }
  .control-button { min-height: 45px; padding: 10px 11px; font-size: .79rem; }
  .control-button.primary { grid-column: 1 / -1; }
  .keyboard-hint { display: none; }
  .modal form { padding: 27px 20px; }
  .stats-grid strong { font-size: 1.55rem; }
  .stats-grid span { font-size: .57rem; }
}

@media (max-width: 390px) {
  .puzzle-spec { display: none; }
  .hero-panel { grid-template-columns: 92px 1fr; }
  .caseoh-badge > img { width: 90px; height: 90px; }
  .difficulty-meter { height: 11px; }
  .difficulty-value { font-size: .78rem; }
  .word-tile { min-height: 64px; font-size: .58rem; }
  .word-tile.long-word { font-size: .49rem; }
  .word-tile.very-long-word { font-size: .44rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .completion-effect { display: none; }
}

/* ========================================================================== 
   CASEOH Cognitive Classification Engine 5.0 — responsive institutional layer
   ========================================================================== */

:root {
  --gold: #c9952e;
  --gold-light: #f1d887;
  --navy: #182438;
  --navy-soft: #273a56;
  --success-deep: #356b3e;
  --danger-deep: #8d302a;
  --console: #121820;
  --console-line: rgba(154, 206, 255, .18);
}

html { scroll-behavior: smooth; }
body { min-width: 280px; }
a { color: inherit; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(33, 44, 57, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 44, 57, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.app-shell {
  width: min(1480px, calc(100% - clamp(24px, 4vw, 72px)));
}

.topbar {
  min-height: clamp(96px, 8vw, 126px);
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
}
.brand-lockup { color: inherit; text-decoration: none; }
.brand-lockup:hover h1 span { transform: rotate(0deg) scale(1.025); }
h1 { font-size: clamp(2rem, 3.55vw, 4.2rem); }
h1 span { transition: transform .25s var(--ease-spring); }
.brand-kicker { font-size: clamp(.58rem, .72vw, .78rem); }
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button { width: clamp(42px, 3.5vw, 50px); height: clamp(42px, 3.5vw, 50px); }
.action-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .61rem;
  font-weight: 950;
}
.credential-button { position: relative; }
.sound-off { display: none; }
.sound-button.muted .sound-on { display: none; }
.sound-button.muted .sound-off { display: block; }

main {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 42px) 0 clamp(54px, 7vw, 94px);
}

.hero-panel {
  grid-template-columns: clamp(190px, 22vw, 285px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 48px);
  min-height: clamp(245px, 23vw, 340px);
  margin-bottom: 20px;
  padding: clamp(24px, 3vw, 44px);
}
.caseoh-badge { min-height: clamp(190px, 19vw, 270px); align-content: center; }
.portrait-stage { position: relative; display: grid; place-items: center; isolation: isolate; }
.caseoh-badge > .portrait-stage > img {
  display: block;
  width: clamp(170px, 17vw, 245px);
  height: clamp(170px, 17vw, 245px);
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.19));
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .55s var(--ease-spring), filter .45s ease, opacity .35s ease;
  animation: portrait-breathe 4.6s ease-in-out infinite;
}
@keyframes portrait-breathe { 50% { transform: translateY(-4px) scale(1.012); } }
.portrait-orbit {
  position: absolute;
  z-index: -1;
  width: 91%;
  height: 91%;
  border: 1px dashed rgba(39,58,86,.32);
  border-radius: 50%;
  animation: orbit-spin 14s linear infinite;
}
.orbit-two { width: 111%; height: 111%; border-style: solid; opacity: .3; animation-duration: 23s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.reaction-marks { position: absolute; inset: -10%; pointer-events: none; }
.reaction-marks span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 7px 17px rgba(0,0,0,.2);
  font-weight: 950;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s ease, transform .4s var(--ease-spring);
}
.reaction-marks span:nth-child(1) { top: 6%; right: 2%; }
.reaction-marks span:nth-child(2) { bottom: 11%; left: 0; background: var(--gold); }
.reaction-marks span:nth-child(3) { top: 27%; left: -3%; background: var(--red); }
.caseoh-reaction {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -14px;
  width: min(260px, 92%);
  padding: 9px 12px 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 10px;
  background: rgba(20,26,35,.95);
  color: #fff;
  box-shadow: 0 11px 24px rgba(0,0,0,.2);
  text-align: center;
  transition: transform .35s var(--ease-spring), background .25s ease;
}
.caseoh-reaction::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
}
.caseoh-reaction strong { position: relative; display: block; font-size: .54rem; letter-spacing: .15em; opacity: .68; }
.caseoh-reaction span { position: relative; display: block; margin-top: 3px; font-size: clamp(.69rem, .85vw, .82rem); font-weight: 800; }
.caseoh-badge .badge-name { right: 4%; bottom: 18%; }

.caseoh-badge.reaction-selecting img { transform: rotate(-2.5deg) scale(1.025); filter: drop-shadow(0 20px 24px rgba(0,0,0,.2)) saturate(1.05); }
.caseoh-badge.reaction-ready img { transform: translateY(-7px) scale(1.055); filter: drop-shadow(0 0 23px rgba(201,149,46,.45)); }
.caseoh-badge.reaction-ready .reaction-marks span:nth-child(1) { opacity: 1; transform: scale(1) rotate(7deg); }
.caseoh-badge.reaction-analyzing img { animation: portrait-analyze .72s ease-in-out infinite alternate; filter: contrast(1.05) drop-shadow(0 0 25px rgba(115,160,208,.52)); }
.caseoh-badge.reaction-analyzing .portrait-orbit { border-color: var(--blue); animation-duration: 1.2s; }
.caseoh-badge.reaction-correct img { animation: portrait-correct .68s var(--ease-spring) both; filter: drop-shadow(0 0 30px rgba(130,185,107,.65)); }
.caseoh-badge.reaction-correct .reaction-marks span:nth-child(2) { opacity: 1; transform: scale(1.14) rotate(-9deg); }
.caseoh-badge.reaction-wrong img { animation: portrait-wrong .48s ease both; filter: grayscale(.25) sepia(.15) drop-shadow(0 0 25px rgba(184,73,64,.55)); }
.caseoh-badge.reaction-wrong .reaction-marks span:nth-child(3) { opacity: 1; transform: scale(1.06) rotate(-8deg); }
.caseoh-badge.reaction-winning img { animation: portrait-victory 1.05s var(--ease-spring) both; filter: drop-shadow(0 0 40px rgba(241,216,135,.95)) saturate(1.14); }
.caseoh-badge.reaction-winning .reaction-marks span { opacity: 1; transform: scale(1.12); }
.caseoh-badge.reaction-winning .portrait-orbit { border: 4px double var(--gold); animation-duration: 3s; }
.caseoh-badge.reaction-lost img { transform: rotate(4deg) translateY(4px); filter: grayscale(.7) contrast(.9); opacity: .88; }
@keyframes portrait-analyze { from { transform: rotate(-1deg) scale(1.015); } to { transform: rotate(1deg) scale(1.035); } }
@keyframes portrait-correct { 45% { transform: translateY(-15px) scale(1.08) rotate(-2deg); } }
@keyframes portrait-wrong { 20%, 60% { transform: translateX(-7px) rotate(-2deg); } 40%, 80% { transform: translateX(7px) rotate(2deg); } }
@keyframes portrait-victory { 45% { transform: translateY(-18px) scale(1.13) rotate(-4deg); } 75% { transform: translateY(-6px) scale(1.07) rotate(2deg); } }

.hero-copy { min-width: 0; }
.official-label { font-size: clamp(.62rem, .78vw, .78rem); }
.difficulty-meter { height: clamp(14px, 1.3vw, 18px); }
.difficulty-value { font-size: clamp(1.2rem, 1.75vw, 1.72rem); }
.hero-description { font-size: clamp(.98rem, 1.2vw, 1.18rem); }
.global-failure-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.global-failure-panel > div {
  min-width: 0;
  padding: clamp(10px, 1.3vw, 15px);
  border: 1px solid rgba(24,24,23,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px rgba(255,255,255,.9);
}
.data-label { display: block; color: var(--muted); font-size: clamp(.48rem, .58vw, .61rem); font-weight: 900; letter-spacing: .11em; line-height: 1.2; }
.global-failure-panel strong { display: block; margin-top: 5px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.79rem, 1.32vw, 1.22rem); text-overflow: ellipsis; white-space: nowrap; }
.global-claim { margin: 9px 2px 0; color: var(--danger-deep); font-size: clamp(.66rem, .78vw, .78rem); font-weight: 760; line-height: 1.35; }

.engine-console {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(111,154,200,.26);
  border-radius: 17px;
  background:
    linear-gradient(rgba(121,176,225,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121,176,225,.035) 1px, transparent 1px),
    linear-gradient(145deg, #151d28, #0d1219);
  background-size: 24px 24px, 24px 24px, auto;
  color: #e6f1fb;
  box-shadow: 0 20px 50px rgba(15,22,32,.22), inset 0 1px rgba(255,255,255,.05);
}
.engine-heading { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--console-line); font-size: .67rem; letter-spacing: .1em; }
.engine-heading > div { display: flex; align-items: center; gap: 8px; }
.engine-heading > span { color: #95c7ef; font-family: ui-monospace, monospace; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fe09a; box-shadow: 0 0 12px #7fe09a; animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
.engine-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engine-metrics > div { min-width: 0; padding: clamp(13px, 1.8vw, 21px); border-right: 1px solid var(--console-line); }
.engine-metrics > div:last-child { border-right: 0; }
.engine-metrics span { display: block; min-height: 2.5em; color: #8eabc3; font-size: clamp(.5rem, .64vw, .66rem); font-weight: 800; letter-spacing: .08em; line-height: 1.25; }
.engine-metrics strong { display: block; margin-top: 5px; overflow: hidden; color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.93rem, 1.45vw, 1.36rem); text-overflow: ellipsis; white-space: nowrap; }
.formula-strip { display: flex; justify-content: space-between; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--console-line); background: rgba(0,0,0,.16); color: #91afd0; font-family: ui-monospace, monospace; font-size: clamp(.56rem, .68vw, .7rem); }
.formula-strip small { color: #678099; text-align: right; }

.game-panel { padding: clamp(23px, 3vw, 42px); overflow: hidden; }
.puzzle-meta h2 { font-size: clamp(1.75rem, 2.6vw, 2.65rem); }
.puzzle-spec { font-size: clamp(.62rem, .75vw, .78rem); }
.puzzle-tools { grid-template-columns: minmax(200px, .78fr) minmax(320px, 1.22fr); padding: clamp(13px, 1.5vw, 18px); }
.new-puzzle-button, .puzzle-jump-entry { min-height: clamp(50px, 4vw, 58px); }
.puzzle-jump input { height: clamp(48px, 4vw, 56px); }

.institutional-warning { display: flex; align-items: flex-start; gap: 11px; margin: 17px 0 0; padding: 11px 13px; border: 1px solid rgba(184,73,64,.25); border-radius: 11px; background: rgba(184,73,64,.055); color: #65312d; }
.warning-symbol { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: .72rem; font-weight: 950; }
.institutional-warning p { margin: 1px 0 0; font-size: clamp(.65rem, .78vw, .79rem); line-height: 1.4; }
.instruction { font-size: clamp(.93rem, 1vw, 1.05rem); }
.word-grid { gap: clamp(8px, 1vw, 13px); }
.word-tile {
  min-height: clamp(84px, 8vw, 118px);
  border-radius: clamp(11px, 1vw, 15px);
  font-size: clamp(.78rem, 1.25vw, 1.13rem);
}
.word-tile.long-word { font-size: clamp(.67rem, 1.05vw, .92rem); }
.word-tile.very-long-word { font-size: clamp(.58rem, .9vw, .79rem); }
.solved-card { min-height: clamp(86px, 7.5vw, 110px); }
.solved-card strong { font-size: clamp(.79rem, 1.08vw, 1.05rem); }
.solved-card span { font-size: clamp(.7rem, .9vw, .88rem); }
.control-button { min-height: clamp(49px, 4vw, 57px); font-size: clamp(.82rem, 1vw, .96rem); }

.analysis-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12,18,26,.91);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.analysis-overlay.active { opacity: 1; visibility: visible; }
.analysis-scanner { position: absolute; inset: 0; overflow: hidden; }
.analysis-scanner::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #83c9ff, transparent); box-shadow: 0 0 22px #83c9ff; animation: scanner-line 1.1s linear infinite; }
@keyframes scanner-line { from { top: 0; } to { top: 100%; } }
.analysis-box { position: relative; z-index: 1; width: min(520px, 100%); padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(134,188,235,.3); border-radius: 17px; background: rgba(10,15,22,.9); color: #eef7ff; box-shadow: 0 25px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.05); text-align: center; }
.analysis-emblem { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid #6aaee9; border-radius: 50%; color: #a8d8ff; box-shadow: 0 0 24px rgba(106,174,233,.3); font: 800 1.75rem Georgia, serif; }
.analysis-box p { margin: 0 0 7px; color: #7797b4; font-size: .61rem; font-weight: 900; letter-spacing: .15em; }
.analysis-box h3 { margin: 0 0 19px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 600; }
.analysis-progress { height: 8px; overflow: hidden; border: 1px solid rgba(130,188,235,.32); border-radius: 999px; background: rgba(255,255,255,.06); }
.analysis-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #609fd4, #d9efff); transition: width .22s ease; }
.analysis-numbers { display: flex; justify-content: space-between; margin-top: 10px; color: #6f8da8; font-family: ui-monospace, monospace; font-size: .66rem; }

.system-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #101721;
  color: #eef7ff;
  opacity: 1;
  visibility: visible;
  transition: opacity .38s ease, visibility .38s ease;
}
.system-boot.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-terminal { width: min(610px, 100%); padding: clamp(28px, 5vw, 50px); border: 1px solid rgba(141,198,244,.27); border-radius: 20px; background: linear-gradient(145deg, #172231, #0d131c); box-shadow: 0 35px 100px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.05); text-align: center; }
.boot-seal { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border: 3px double #b2d8f7; border-radius: 50%; color: #d9edfc; font-family: Georgia, serif; font-weight: 900; letter-spacing: .08em; }
.boot-kicker { margin: 0 0 7px; color: #7898b5; font-size: .61rem; font-weight: 900; letter-spacing: .14em; }
.boot-terminal h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 2.1rem); }
.boot-progress { height: 9px; overflow: hidden; border: 1px solid rgba(157,207,249,.3); border-radius: 999px; background: rgba(255,255,255,.05); }
.boot-progress span { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, #6ca9d9, #d9efff); transition: width .25s ease; }
.boot-terminal > p:last-of-type { margin: 12px 0 0; color: #9eb8cf; font: .76rem ui-monospace, monospace; }
.boot-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 22px; }
.boot-readouts span { padding: 8px 5px; border: 1px solid rgba(139,190,232,.16); border-radius: 6px; color: #61809b; font: .53rem ui-monospace, monospace; }

.achievement-ceremony {
  position: fixed;
  z-index: 70;
  right: clamp(12px, 3vw, 34px);
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 15px;
  align-items: center;
  padding: 16px;
  transform: translateY(28px) scale(.96);
  border: 1px solid rgba(241,216,135,.5);
  border-radius: 16px;
  background: linear-gradient(145deg, #1f2b3d, #101721);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .42s var(--ease-spring), visibility .25s ease;
}
.achievement-ceremony.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.achievement-medal { width: 64px; height: 64px; display: grid; place-items: center; border: 4px double #f0d376; border-radius: 50%; color: #f6df93; background: rgba(201,149,46,.14); box-shadow: 0 0 22px rgba(201,149,46,.24); }
.achievement-medal span { font-size: 1.8rem; }
.achievement-ceremony small { color: #e2c972; font-size: .55rem; font-weight: 900; letter-spacing: .13em; }
.achievement-ceremony strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 1.05rem; }
.achievement-ceremony p { margin: 3px 0 0; color: #aab8ca; font-size: .73rem; line-height: 1.35; }

.wide-modal { width: min(690px, calc(100% - 26px)); }
.dossier-rank { display: grid; grid-template-columns: 1.35fr 1fr; gap: 9px; margin-bottom: 12px; }
.dossier-rank > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.dossier-rank span, .credential-summary span { display: block; color: var(--muted); font-size: .59rem; font-weight: 900; letter-spacing: .1em; }
.dossier-rank strong { display: block; margin-top: 4px; font-size: .93rem; }
.credential-summary { display: grid; grid-template-columns: 86px 1fr; gap: 15px; align-items: center; margin: 19px 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.credential-seal { width: 78px; height: 78px; display: grid; place-items: center; border: 5px double var(--gold); border-radius: 50%; color: #815a16; font-family: Georgia, serif; font-weight: 900; }
.credential-summary strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 1.12rem; }
.credential-summary p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.achievement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.achievement-card { position: relative; min-height: 112px; padding: 14px 14px 14px 52px; border: 1px solid rgba(201,149,46,.28); border-radius: 12px; background: linear-gradient(145deg, rgba(255,252,240,.95), rgba(241,232,201,.62)); }
.achievement-card::before { content: "★"; position: absolute; top: 15px; left: 14px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: #8d631c; font-size: .8rem; }
.achievement-card small { color: #846628; font-size: .51rem; font-weight: 900; letter-spacing: .1em; }
.achievement-card strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: .9rem; line-height: 1.16; }
.achievement-card p { margin: 4px 0 0; color: #6d6250; font-size: .68rem; line-height: 1.32; }
.empty-credentials { padding: 25px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; }

.report-modal { width: min(760px, calc(100% - 24px)); }
.report-modal form { overflow: hidden; }
.ceremony-rays { position: absolute; top: -260px; left: 50%; width: 520px; height: 520px; transform: translateX(-50%); background: repeating-conic-gradient(from 0deg, rgba(201,149,46,.1) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: ceremony-spin 28s linear infinite; pointer-events: none; }
@keyframes ceremony-spin { to { transform: translateX(-50%) rotate(360deg); } }
.result-modal form > *:not(.ceremony-rays) { position: relative; }
.congratulation-banner { margin: 16px 0; padding: 13px 15px; border: 1px solid rgba(201,149,46,.35); border-radius: 11px; background: rgba(241,216,135,.18); color: #674b17; font-weight: 800; line-height: 1.42; }
.rating-report { display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px; margin: 18px 0 12px; text-align: left; }
.rating-primary { display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid rgba(201,149,46,.38); border-radius: 13px; background: linear-gradient(145deg, #fffaf0, #f3e6bd); text-align: center; }
.rating-primary span { color: #765718; font-size: .57rem; font-weight: 950; letter-spacing: .1em; }
.rating-primary strong { margin: 6px 0; color: #3d2e13; font-family: ui-monospace, monospace; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; }
.rating-primary em { color: #694d17; font-size: .68rem; font-style: normal; font-weight: 900; }
.rating-components { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rating-components > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.rating-components span { display: block; color: var(--muted); font-size: .57rem; font-weight: 780; }
.rating-components strong { display: block; margin-top: 5px; font: 850 .94rem ui-monospace, monospace; }
.formula-disclosure { margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.formula-disclosure summary { padding: 12px 14px; cursor: pointer; font-size: .74rem; font-weight: 850; }
.formula-disclosure > div { padding: 0 14px 14px; }
.formula-disclosure code { display: block; padding: 12px; overflow-x: auto; border-radius: 8px; background: var(--console); color: #b9ddfa; font-size: .7rem; white-space: nowrap; }
.formula-disclosure p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }

.institutional-copy { margin-top: 21px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius-xl); background: rgba(255,253,248,.65); box-shadow: var(--shadow-soft); }
.copy-header h2 { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(1.55rem, 2.5vw, 2.5rem); }
.copy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.copy-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.65); }
.copy-number { display: block; color: var(--red); font: 900 clamp(1.35rem, 2.6vw, 2.25rem) Georgia, serif; }
.copy-grid h3 { margin: 8px 0 7px; font-size: .96rem; }
.copy-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.faq-block { display: grid; gap: 8px; margin-top: 18px; }
.faq-block details { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.65); }
.faq-block summary { padding: 13px 15px; cursor: pointer; font-weight: 830; }
.faq-block p { margin: 0; padding: 0 15px 14px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1240px, 100%); margin: 0 auto; padding: 23px 0 max(25px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .72rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); font-weight: 850; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--red); }
.noscript-message { position: fixed; inset: auto 12px 12px; z-index: 200; padding: 15px; border-radius: 10px; background: #7f2420; color: #fff; text-align: center; }

@media (min-width: 1500px) {
  .app-shell { width: min(1640px, calc(100% - 96px)); }
  main, .site-footer { width: min(1380px, 100%); }
  .hero-panel { grid-template-columns: 310px minmax(0, 1fr); }
  .caseoh-badge > .portrait-stage > img { width: 270px; height: 270px; }
  .word-tile { min-height: 126px; font-size: 1.18rem; }
  .game-panel { padding: 47px; }
}

@media (max-width: 900px) {
  .app-shell { width: min(100% - 22px, 900px); }
  .hero-panel { grid-template-columns: 190px minmax(0, 1fr); padding: 24px; }
  .caseoh-badge > .portrait-stage > img { width: 170px; height: 170px; }
  .caseoh-reaction { width: 205px; }
  .global-failure-panel { grid-template-columns: 1fr; }
  .global-failure-panel > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .global-failure-panel strong { margin-top: 0; }
  .engine-metrics { grid-template-columns: repeat(2, 1fr); }
  .engine-metrics > div:nth-child(2) { border-right: 0; }
  .engine-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--console-line); }
  .formula-strip { flex-direction: column; gap: 4px; }
  .formula-strip small { text-align: left; }
  .puzzle-tools { grid-template-columns: minmax(170px, .7fr) minmax(280px, 1.3fr); }
}

@media (max-width: 680px) {
  .app-shell { width: min(100% - 14px, 680px); }
  .topbar { min-height: 82px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 5px; }
  .top-actions { gap: 3px; }
  .icon-button { width: 37px; height: 37px; }
  .top-actions .icon-button svg { width: 17px; height: 17px; }
  .action-count { min-width: 17px; height: 17px; font-size: .5rem; }
  h1 { font-size: clamp(1.45rem, 7vw, 2.05rem); }
  .brand-kicker { font-size: .48rem; letter-spacing: .09em; }
  main { padding-top: 15px; }
  .hero-panel { grid-template-columns: 116px minmax(0, 1fr); gap: 13px; min-height: 0; padding: 15px; }
  .caseoh-badge { min-height: 128px; align-self: start; }
  .caseoh-badge > .portrait-stage > img { width: 112px; height: 112px; }
  .caseoh-badge .badge-name { right: -3px; bottom: 28%; font-size: .4rem; }
  .caseoh-reaction { bottom: -27px; width: 132px; padding: 6px 6px 7px; }
  .caseoh-reaction strong { font-size: .4rem; letter-spacing: .08em; }
  .caseoh-reaction span { font-size: .54rem; }
  .portrait-orbit { display: none; }
  .reaction-marks span { width: 24px; height: 24px; font-size: .65rem; }
  .official-label { font-size: .51rem; letter-spacing: .1em; }
  .difficulty-value { font-size: .86rem; }
  .hero-description { margin-top: 7px; font-size: .77rem; line-height: 1.35; }
  .global-failure-panel { margin-top: 12px; gap: 5px; }
  .global-failure-panel > div { padding: 7px 8px; }
  .data-label { font-size: .42rem; }
  .global-failure-panel strong { max-width: 54%; font-size: .67rem; }
  .global-claim { font-size: .54rem; }
  .engine-heading { padding: 10px 11px; font-size: .52rem; }
  .engine-heading > span { display: none; }
  .engine-metrics > div { padding: 10px; }
  .engine-metrics span { font-size: .43rem; }
  .engine-metrics strong { font-size: .76rem; }
  .formula-strip { padding: 8px 10px; font-size: .48rem; }
  .game-panel { padding: 17px 10px 19px; }
  .puzzle-meta { padding-inline: 2px; }
  .puzzle-meta h2 { font-size: 1.42rem; }
  .puzzle-spec { display: none; }
  .puzzle-tools { grid-template-columns: 1fr; gap: 9px; padding: 9px; }
  .institutional-warning { gap: 7px; margin-top: 11px; padding: 8px; }
  .warning-symbol { width: 19px; height: 19px; }
  .institutional-warning p { font-size: .58rem; }
  .instruction-row { margin: 15px 2px 11px; }
  .instruction { max-width: 55%; font-size: .74rem; }
  .selection-status { min-width: 101px; }
  .word-grid, .solved-groups { gap: 5px; }
  .word-tile, .solved-card { min-height: clamp(61px, 18vw, 78px); border-radius: 8px; }
  .word-tile { padding: 6px 3px; font-size: clamp(.52rem, 2.75vw, .72rem); }
  .word-tile.long-word { font-size: clamp(.43rem, 2.25vw, .61rem); }
  .word-tile.very-long-word { font-size: clamp(.39rem, 1.95vw, .53rem); }
  .solved-card strong { font-size: .67rem; }
  .solved-card span { font-size: .55rem; }
  .controls { grid-template-columns: 1fr 1fr; }
  .control-button { min-height: 44px; padding: 9px 8px; font-size: .72rem; }
  .control-button.primary { grid-column: 1 / -1; }
  .keyboard-hint { display: none; }
  .copy-grid { grid-template-columns: 1fr; }
  .institutional-copy { padding: 19px 13px; }
  .copy-grid article { padding: 13px; }
  .site-footer { flex-direction: column; gap: 5px; padding-inline: 3px; text-align: center; }
  .rating-report { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .credential-summary { grid-template-columns: 65px 1fr; padding: 12px; }
  .credential-seal { width: 60px; height: 60px; border-width: 4px; font-size: .8rem; }
  .dossier-rank { grid-template-columns: 1fr; }
  .boot-readouts { grid-template-columns: 1fr; }
  .achievement-ceremony { grid-template-columns: 54px 1fr; padding: 12px; }
  .achievement-medal { width: 50px; height: 50px; }
  .modal form { padding: 26px 17px; }
}

@media (max-width: 390px) {
  .hero-panel { grid-template-columns: 98px minmax(0, 1fr); }
  .caseoh-badge > .portrait-stage > img { width: 94px; height: 94px; }
  .caseoh-reaction { width: 112px; }
  .global-failure-panel strong { font-size: .6rem; }
  .engine-metrics span { min-height: 3.2em; }
  .word-tile { min-height: 58px; font-size: .49rem; }
  .word-tile.long-word { font-size: .4rem; }
  .word-tile.very-long-word { font-size: .37rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-stage img, .portrait-orbit, .ceremony-rays, .live-dot, .analysis-scanner::after { animation: none !important; }
}


/* ========================================================================== 
   Compact interface revision 5.1 — reduced vertical footprint
   ========================================================================== */

.topbar {
  min-height: clamp(74px, 6.2vw, 94px);
}

h1 {
  font-size: clamp(1.82rem, 2.85vw, 3.45rem);
}

.brand-kicker {
  font-size: clamp(.53rem, .62vw, .69rem);
}

main {
  padding: clamp(14px, 2vw, 27px) 0 clamp(38px, 5vw, 65px);
}

.hero-panel {
  grid-template-columns: clamp(155px, 18vw, 220px) minmax(0, 1fr);
  gap: clamp(17px, 2.25vw, 34px);
  min-height: clamp(185px, 17vw, 255px);
  margin-bottom: 15px;
  padding: clamp(18px, 2.25vw, 32px);
}

.caseoh-badge {
  min-height: clamp(145px, 14vw, 202px);
}

.caseoh-badge > .portrait-stage > img {
  width: clamp(135px, 13.5vw, 190px);
  height: clamp(135px, 13.5vw, 190px);
}

.caseoh-reaction {
  bottom: -11px;
  width: min(225px, 94%);
  padding: 7px 10px 8px;
}

.caseoh-reaction span {
  font-size: clamp(.63rem, .72vw, .75rem);
}

.caseoh-badge .badge-name {
  bottom: 15%;
  transform: rotate(-3deg) scale(.88);
  transform-origin: right bottom;
}

.official-label {
  font-size: clamp(.55rem, .66vw, .68rem);
}

.difficulty-meter {
  height: clamp(10px, .9vw, 13px);
  margin-top: 7px;
}

.difficulty-value {
  margin-top: 5px;
  font-size: clamp(1rem, 1.38vw, 1.37rem);
}

.hero-description {
  margin-top: 8px;
  font-size: clamp(.86rem, 1vw, 1rem);
  line-height: 1.4;
}

.game-panel {
  padding: clamp(18px, 2.25vw, 31px);
}

.puzzle-meta h2 {
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
}

.puzzle-spec {
  padding: 7px 10px;
  font-size: clamp(.55rem, .63vw, .67rem);
}

.puzzle-tools {
  grid-template-columns: minmax(180px, .72fr) minmax(300px, 1.28fr);
  gap: 8px;
  margin-top: 14px;
  padding: clamp(9px, 1.1vw, 13px);
}

.new-puzzle-button,
.puzzle-jump-entry {
  min-height: clamp(42px, 3.1vw, 47px);
}

.puzzle-jump input {
  height: clamp(40px, 3.1vw, 45px);
}

.instruction-row {
  margin: 15px 2px 10px;
}

.instruction {
  font-size: clamp(.83rem, .9vw, .93rem);
}

.selection-status {
  min-height: 31px;
  padding: 5px 10px;
}

.word-grid,
.solved-groups {
  gap: clamp(6px, .72vw, 9px);
}

.word-tile {
  min-height: clamp(66px, 6.25vw, 92px);
  border-radius: clamp(9px, .82vw, 12px);
  font-size: clamp(.72rem, 1vw, .98rem);
}

.word-tile.long-word {
  font-size: clamp(.61rem, .85vw, .81rem);
}

.word-tile.very-long-word {
  font-size: clamp(.53rem, .72vw, .69rem);
}

.solved-card {
  min-height: clamp(68px, 5.9vw, 84px);
  padding: 10px 14px;
}

.solved-card strong {
  font-size: clamp(.72rem, .9vw, .9rem);
}

.solved-card span {
  margin-top: 3px;
  font-size: clamp(.63rem, .76vw, .76rem);
}

.status-row {
  margin: 14px 0 5px;
  font-size: .82rem;
}

.message {
  min-height: 20px;
  font-size: .82rem;
}

.controls {
  gap: 8px;
  margin-top: 8px;
}

.control-button {
  min-height: clamp(42px, 3.2vw, 47px);
  padding: 9px 13px;
  font-size: clamp(.75rem, .85vw, .84rem);
}

.keyboard-hint {
  margin-top: 10px;
  font-size: .61rem;
}

.institutional-copy {
  margin-top: 15px;
  padding: clamp(18px, 2.2vw, 28px);
}

.copy-header h2 {
  margin-bottom: 15px;
  font-size: clamp(1.38rem, 2vw, 2rem);
}

.copy-grid {
  gap: 9px;
}

.copy-grid article {
  padding: 13px;
}

.copy-number {
  font-size: clamp(1.18rem, 2vw, 1.75rem);
}

.copy-grid h3 {
  margin: 6px 0 5px;
  font-size: .86rem;
}

.copy-grid p {
  font-size: .7rem;
  line-height: 1.42;
}

.faq-block {
  gap: 6px;
  margin-top: 12px;
}

.faq-block summary {
  padding: 9px 12px;
  font-size: .82rem;
}

.faq-block p {
  padding: 0 12px 10px;
  font-size: .75rem;
}

.site-footer {
  padding: 16px 0 max(19px, env(safe-area-inset-bottom));
  font-size: .66rem;
}

@media (min-width: 1500px) {
  .hero-panel {
    grid-template-columns: 235px minmax(0, 1fr);
  }

  .caseoh-badge > .portrait-stage > img {
    width: 205px;
    height: 205px;
  }

  .game-panel {
    padding: 32px;
  }

  .word-tile {
    min-height: 94px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 155px minmax(0, 1fr);
    padding: 18px;
  }

  .caseoh-badge > .portrait-stage > img {
    width: 140px;
    height: 140px;
  }

  .caseoh-reaction {
    width: 172px;
  }

  .puzzle-tools {
    grid-template-columns: minmax(150px, .68fr) minmax(260px, 1.32fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 72px;
  }

  main {
    padding-top: 10px;
  }

  .hero-panel {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .caseoh-badge {
    min-height: 116px;
  }

  .caseoh-badge > .portrait-stage > img {
    width: 100px;
    height: 100px;
  }

  .caseoh-reaction {
    bottom: -24px;
    width: 122px;
    padding: 5px 5px 6px;
  }

  .caseoh-badge .badge-name {
    bottom: 26%;
  }

  .game-panel {
    padding: 14px 9px 16px;
  }

  .puzzle-tools {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 7px;
  }

  .new-puzzle-button,
  .puzzle-jump-entry,
  .puzzle-jump input {
    min-height: 42px;
    height: 42px;
  }

  .instruction-row {
    margin: 12px 2px 8px;
  }

  .word-tile,
  .solved-card {
    min-height: clamp(56px, 16vw, 68px);
  }

  .control-button {
    min-height: 42px;
  }

  .institutional-copy {
    padding: 16px 11px;
  }
}

@media (max-width: 390px) {
  .hero-panel {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .caseoh-badge > .portrait-stage > img {
    width: 86px;
    height: 86px;
  }

  .caseoh-reaction {
    width: 105px;
  }

  .word-tile {
    min-height: 54px;
  }
}

/* Puzzle date and bottom navigation placement */
.puzzle-date-block {
  min-width: 0;
}

.current-date-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1.12;
}

.calendar-icon {
  flex: 0 0 auto;
  width: 1.08em;
  height: 1.08em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.current-puzzle-id {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}

.current-puzzle-id span {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.puzzle-tools-bottom {
  margin: 13px 0 0;
}

@media (max-width: 680px) {
  .puzzle-meta {
    align-items: flex-start;
  }

  .current-date-heading {
    gap: 8px;
    font-size: clamp(1.28rem, 6vw, 1.65rem) !important;
  }

  .puzzle-tools-bottom {
    margin-top: 12px;
  }
}

@media (max-width: 440px) {
  .current-date-heading {
    align-items: flex-start;
    font-size: clamp(1.12rem, 5.8vw, 1.42rem) !important;
  }

  .calendar-icon {
    margin-top: .05em;
  }
}


/* v5.1.2: Date replaces the former puzzle heading; navigation lives below the puzzle. */
.current-date-heading {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.calendar-icon {
  flex: 0 0 auto;
  width: 1.06em;
  height: 1.06em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.puzzle-navigation-panel {
  margin-top: clamp(12px, 1.5vw, 18px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: var(--radius-xl);
  background: rgba(255,253,248,.86);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
}

.puzzle-navigation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.puzzle-navigation-title .eyebrow {
  margin: 0 0 4px;
}

.puzzle-navigation-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.puzzle-navigation-panel .current-puzzle-id {
  margin: 0 2px 2px 0;
  text-align: right;
  white-space: nowrap;
}

.puzzle-navigation-panel .puzzle-tools {
  margin: 14px 0 0;
}

@media (max-width: 680px) {
  .current-date-heading {
    gap: 9px;
    font-size: clamp(1.25rem, 6vw, 1.62rem);
  }

  .puzzle-navigation-panel {
    padding: 13px 9px 14px;
  }

  .puzzle-navigation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .puzzle-navigation-panel .current-puzzle-id {
    margin: 0;
    text-align: left;
  }

  .puzzle-navigation-panel .puzzle-tools {
    margin-top: 10px;
  }
}
