/* ============================================================
   Odd Hours — Character Creator
   Diegetic "EMPLOYEE INTAKE" wizard, Route 9 Games brand.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --asphalt:      #1F1E1C;
  --asphalt-mid:  #2E2D2A;
  --asphalt-soft: #3A3835;
  --green:        #3D4E3A;
  --green-light:  #4F6448;
  --cream:        #EFEAD7;
  --cream-dark:   #DDD7C1;
  --cream-muted:  #C8C2AC;
  --brick:        #8B3A2A;
  --brick-light:  #A04535;
  --brick-deep:   #6E2D20;
  --orange:       #D9482C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--asphalt);
  color: var(--asphalt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* The whole app sits on asphalt, with cream "paper" panels.
   Subtle viewport grain like the marketing site. */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }
ul  { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ============================================================
   STATION HEADER — top bar
   ============================================================ */

.station-bar {
  background: var(--asphalt);
  border-bottom: 1px solid rgba(239,234,215,0.08);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--cream);
  flex-wrap: wrap;
}
.station-bar__left { display: flex; align-items: center; gap: 14px; }
.station-bar__shield { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.station-bar__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dark);
  line-height: 1.5;
}
.station-bar__title b { color: var(--cream); font-weight: 700; letter-spacing: 0.18em; }
.station-bar__right { display: flex; align-items: center; gap: 14px; }

.station-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.station-clock::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--orange);
  display: inline-block;
  animation: blink 2s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0.25; } }

.ambient-toggle {
  background: transparent;
  border: 1px solid rgba(239,234,215,0.3);
  color: var(--cream-dark);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ambient-toggle:hover { border-color: var(--cream); color: var(--cream); }
.ambient-toggle.is-on { background: var(--brick); border-color: var(--brick); color: var(--cream); }
.ambient-toggle__dot { width: 6px; height: 6px; background: currentColor; opacity: 0.5; }
.ambient-toggle.is-on .ambient-toggle__dot { opacity: 1; }

/* ============================================================
   PROGRESS — sub-bar under the station header
   ============================================================ */

.progress {
  background: var(--asphalt-mid);
  border-bottom: 3px solid var(--brick);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--cream);
}
.progress__counter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  color: var(--cream);
}
.progress__counter small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream-dark);
  margin-left: 4px;
}
.progress__meta {
  flex: 1; min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick-light);
}
.progress__step {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
}
.progress__ticks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.progress__tick {
  width: 36px;
  height: 6px;
  background: rgba(239,234,215,0.15);
  transition: background 0.2s;
}
.progress__tick.is-done { background: var(--brick); }
.progress__tick.is-current { background: var(--cream); }

/* ============================================================
   PAPER — the cream form panel that holds each step
   ============================================================ */

.shell {
  min-height: calc(100vh - 220px);
  padding: 36px 24px 80px;
  display: flex;
  justify-content: center;
}
.shell--sheet { display: block; }
.sheet-wrap { max-width: 1000px; margin: 0 auto; }
.paper {
  width: 100%;
  max-width: 920px;
  background: var(--cream);
  padding: 48px 56px 40px;
  position: relative;
  /* the brand's signature green offset shadow */
  box-shadow: 12px 12px 0 var(--green);
}
.paper::before {
  /* subtle paper grain on this panel only */
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.paper__form-id {
  position: absolute;
  top: 16px; right: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Signature label / H2 / rule triplet */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  display: block;
}
.h-display {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--asphalt);
  margin-top: 10px;
}
.rule {
  width: 56px;
  height: 2px;
  background: var(--brick);
  margin: 22px 0;
}
.rule--full {
  width: 100%;
  height: 1px;
  background: var(--cream-dark);
  margin: 22px 0;
}
.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--asphalt);
  max-width: 620px;
}
.lead--muted { color: #555; }

/* Step body */
.step-body { margin-top: 28px; }
.step-body > * + * { margin-top: 28px; }

/* ============================================================
   FORM FIELDS
   ============================================================ */

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--asphalt);
}
.field__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: #666;
}
.field__input,
.field__textarea {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--cream-dark);
  border-bottom: 2px solid var(--asphalt);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--asphalt);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field__input:focus,
.field__textarea:focus {
  border-color: var(--brick);
  background: #fff;
}
.field__textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
}

/* Name field with built-in generator button */
.name-field {
  display: flex;
  gap: 0;
}
.name-field input { flex: 1; }
.name-field button {
  background: var(--asphalt);
  color: var(--cream);
  border: none;
  border-bottom: 2px solid var(--asphalt);
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.name-field button:hover { background: var(--brick); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--primary { background: var(--brick); color: var(--cream); }
.btn--primary:hover { background: var(--brick-light); }
.btn--primary:disabled { background: var(--cream-muted); color: var(--cream); cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--asphalt); border: 1px solid var(--asphalt); }
.btn--ghost:hover { background: var(--asphalt); color: var(--cream); }

.btn--ghost-dark { background: transparent; color: var(--cream); border: 1px solid rgba(239,234,215,0.4); }
.btn--ghost-dark:hover { background: var(--cream); color: var(--asphalt); border-color: var(--cream); }

.btn--small { padding: 8px 14px; font-size: 10px; }

/* Foot of paper — Back / Next */
.foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #777;
  flex: 1;
  min-width: 200px;
}
.foot__hint.is-warn { color: var(--brick); }
.foot__actions { display: flex; gap: 10px; }

/* ============================================================
   POINT-BUY COUNTER (top-right of attribute/skill steps)
   ============================================================ */

.points-counter {
  background: var(--asphalt);
  color: var(--cream);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.points-counter__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dark);
}
.points-counter__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}
.points-counter__value.is-empty { color: var(--brick-light); }
.points-counter__total {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(239,234,215,0.5);
}

/* ============================================================
   STAT TILES — attribute step
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-tile {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--cream-dark);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.stat-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--asphalt);
}
.stat-tile__bonus {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--brick);
  text-transform: uppercase;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--asphalt);
  margin: 4px 0 0;
}
.stat-tile__bg-mark {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: -8px;
}
.stat-tile__blurb {
  font-style: italic;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  min-height: 60px;
}
.stat-tile__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.stat-tile__step {
  width: 38px; height: 38px;
  background: var(--asphalt);
  color: var(--cream);
  border: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.stat-tile__step:hover:not(:disabled) { background: var(--brick); }
.stat-tile__step:disabled { background: var(--cream-muted); color: var(--cream); cursor: not-allowed; }

/* Dot row — 4 boxes, fill brick. Used for attribute display. */
.dots {
  display: flex;
  gap: 4px;
}
.dot {
  width: 14px; height: 14px;
  border: 1.5px solid var(--asphalt);
  background: transparent;
  transition: background 0.15s;
}
.dot.is-on  { background: var(--brick); border-color: var(--brick); }
.dot.is-bg  { background: var(--asphalt); border-color: var(--asphalt); position: relative; }
.dot.is-bg::after {
  /* tiny corner clip to mark "this came from background" */
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 5px solid var(--cream);
  border-left: 5px solid transparent;
}
.dot--small { width: 11px; height: 11px; }

/* ============================================================
   SKILL ROWS — skill step
   ============================================================ */

.skill-group { margin-bottom: 22px; }
.skill-group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cream-dark);
}
.skill-group__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--asphalt);
}
.skill-group__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}

.skill-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
@media (max-width: 720px) {
  .skill-row { grid-template-columns: 1fr; gap: 8px; }
}
.skill-row__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--asphalt);
}
.skill-row__blurb {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
.skill-row__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-row__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  width: 30px;
  text-align: center;
  color: var(--asphalt);
}
.step-btn {
  width: 30px; height: 30px;
  background: var(--asphalt);
  color: var(--cream);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.step-btn:hover:not(:disabled) { background: var(--brick); }
.step-btn:disabled { background: var(--cream-muted); cursor: not-allowed; }

/* ============================================================
   BACKGROUND CARDS — concept step
   ============================================================ */

.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.bg-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--cream-dark);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
}
.bg-card:hover { border-color: var(--asphalt); background: #fff; }
.bg-card.is-selected {
  border-color: var(--brick);
  border-top: 4px solid var(--brick);
  background: #fff;
  padding-top: 15px;
}
.bg-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--asphalt);
}
.bg-card__bonuses {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  line-height: 1.6;
}
.bg-card__flavor {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ============================================================
   ARCHETYPE CARDS — pre-rolled
   ============================================================ */

.archetypes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.arch-card {
  background: var(--asphalt);
  color: var(--cream);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
  position: relative;
  border-left: 4px solid var(--brick);
}
.arch-card:hover { background: var(--asphalt-mid); }
.arch-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--cream);
}
.arch-card__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--cream-dark);
  line-height: 1.5;
}
.arch-card__stats {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--brick-light);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   REACTION CHOICES (Step 5)
   ============================================================ */

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.reaction-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--cream-dark);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}
.reaction-card:hover { border-color: var(--asphalt); }
.reaction-card.is-selected {
  background: var(--asphalt);
  color: var(--cream);
  border-color: var(--asphalt);
}
.reaction-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.reaction-card__blurb {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  line-height: 1.45;
  color: #555;
}
.reaction-card.is-selected .reaction-card__blurb { color: var(--cream-dark); }

/* ============================================================
   SPECIALTY PICKER
   ============================================================ */

.specialty-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .specialty-grid { grid-template-columns: 1fr; } }

.spec-skill-list { display: flex; flex-direction: column; }
.spec-skill {
  background: transparent;
  border: 1px solid var(--cream-dark);
  border-bottom: none;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--asphalt);
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spec-skill:last-child { border-bottom: 1px solid var(--cream-dark); }
.spec-skill:hover { background: rgba(0,0,0,0.04); }
.spec-skill.is-active {
  background: var(--asphalt);
  color: var(--cream);
  border-color: var(--asphalt);
}
.spec-skill__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  opacity: 0.7;
}

.spec-options { display: flex; flex-direction: column; gap: 8px; }
.spec-option {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--cream-dark);
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--asphalt);
  transition: all 0.15s;
}
.spec-option:hover { border-color: var(--asphalt); }
.spec-option.is-selected {
  background: var(--brick);
  color: var(--cream);
  border-color: var(--brick);
}
.spec-option__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-left: 8px;
  opacity: 0.7;
  text-transform: uppercase;
}

.spec-custom {
  display: flex;
  gap: 0;
  margin-top: 8px;
}
.spec-custom input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--cream-dark);
  background: rgba(255,255,255,0.6);
  border-bottom: 2px solid var(--asphalt);
  outline: none;
  font-size: 15px;
}
.spec-custom input:focus { border-color: var(--brick); background: #fff; }

/* ============================================================
   LANDING (step 0 — clock in)
   ============================================================ */

.landing {
  text-align: center;
  padding: 24px 8px;
}
.landing__form-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brick);
}
.landing__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--asphalt);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.landing__rule { width: 80px; height: 3px; background: var(--brick); margin: 24px auto; }
.landing__lead {
  max-width: 540px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--asphalt);
  line-height: 1.7;
}
.landing__lead em { color: var(--brick); font-style: italic; }
.landing__actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.landing__meta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}
.landing__meta strong { color: var(--asphalt); }

/* ============================================================
   FINAL SHEET (step 7)
   Faithful recreation of Form OH-1 — the published Odd Hours character sheet.
   Black ink on cream paper. Click bubbles to fill stat values.
   Print stylesheet outputs identical layout in pure B&W.
   ============================================================ */

.oh-sheet {
  background: #f6f1de;        /* slightly warmer than cream for paper feel */
  color: #111;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 36px 32px;
  box-shadow: 12px 12px 0 var(--green);
  position: relative;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
}

/* --------- Top header: ODD HOURS logo block + Background/Appearance --------- */
.oh-sheet__header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  padding-bottom: 18px;
  margin-bottom: 16px;
}
.oh-sheet__logo-name {
  display: flex;
  align-items: stretch;
  border: 2.5px solid #111;
  padding: 6px 6px;
  gap: 14px;
  align-items: center;
}
.oh-logo {
  background: #b8392a;
  color: #fff;
  padding: 6px 14px 7px;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.oh-logo__odd { font-size: 26px; }
.oh-logo__hours { font-size: 26px; }
.oh-sheet__name-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
}
.oh-sheet__name-label {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: #111;
  white-space: nowrap;
}
.oh-sheet__name-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #111;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: #111;
  padding: 2px 4px;
  outline: none;
}
.oh-sheet__name-input:focus { background: rgba(0,0,0,0.04); border-bottom-color: var(--brick); }

.oh-sheet__bg-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.oh-sheet__bg-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 8px;
}
.oh-sheet__app-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 8px;
}

/* --------- Universal labels --------- */
.oh-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.oh-label--sm { font-size: 11px; font-weight: 700; }

/* --------- Underlined fillable input --------- */
.underline {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #111;
  padding: 2px 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  width: 100%;
  transition: background 0.12s;
}
.underline:hover  { background: rgba(0,0,0,0.04); }
.underline:focus  { background: rgba(0,0,0,0.07); border-bottom-color: var(--brick); }
.underline--lg    { font-size: 16px; }
.underline--italic { font-family: 'Georgia', serif; font-style: italic; }

/* --------- Stacked line block (multi-row underlines) --------- */
.lineblock { display: flex; flex-direction: column; gap: 6px; }
.lineblock__line {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #111;
  padding: 4px 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  width: 100%;
  transition: background 0.12s;
}
.lineblock__line:hover { background: rgba(0,0,0,0.04); }
.lineblock__line:focus { background: rgba(0,0,0,0.07); border-bottom-color: var(--brick); }

/* --------- Body two-column layout --------- */
.oh-sheet__body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
}
.oh-col { display: flex; flex-direction: column; gap: 14px; }

.oh-block { display: flex; flex-direction: column; gap: 6px; }
.oh-block__title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #111;
  letter-spacing: 0;
}
.oh-block__title--inline {
  display: inline-block;
  margin-bottom: 4px;
}
.oh-block__title-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --------- Attribute row (WIT/GRIT/STRANGENESS) --------- */
.oh-stat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 4px 0 6px;
}
.oh-stat-row__name {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #111;
  letter-spacing: 0.01em;
}

/* --------- Bubbles --------- */
.bubbles {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bubble {
  background: transparent;
  border: 1.8px solid #111;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  flex-shrink: 0;
}
.bubble:hover { background: rgba(0,0,0,0.1); }
.bubble:active { transform: scale(0.92); }
.bubble.is-filled { background: #111; }
.bubble--md { width: 16px; height: 16px; }
.bubble--sm { width: 13px; height: 13px; }
.bubbles--sm { gap: 7px; }

/* --------- Skill row --------- */
.oh-skill-row { margin-bottom: 2px; }
.oh-skill-row__name-line {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}
.oh-skill-row__name {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111;
}
.oh-skill-row .bubbles {
  margin-left: 12px;
}

/* --------- Line section (RITUALS, INVENTORY, NOTES, etc.) --------- */
.oh-line-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oh-line-section > .oh-label { margin-bottom: 2px; }

/* --------- Health boxes --------- */
.oh-health-boxes {
  display: flex;
  gap: 14px;
}
.oh-stat-box {
  border: 2px solid #111;
  width: 110px;
  height: 76px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}
.oh-stat-box__value {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: #111;
  outline: none;
  text-align: center;
  padding-top: 8px;
}
.oh-stat-box__value--ro { padding-top: 10px; line-height: 1; }
.oh-stat-box__value:focus { background: rgba(0,0,0,0.04); }
.oh-stat-box__label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 3px 0 5px;
  line-height: 1.2;
  border-top: 1.2px solid #111;
  background: rgba(0,0,0,0.03);
}

/* --------- Initiative modifier --------- */
.oh-init-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.oh-init-box {
  width: 36px; height: 36px;
  border: 2px solid #111;
  display: grid; place-items: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #111;
}

/* --------- Mental state --------- */
.oh-mental-state {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 17px;
  color: #111;
  padding: 2px 6px;
  border-bottom: 1.5px solid #111;
}

/* --------- Points rows (Sanity, Absurdity) --------- */
.oh-points-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --------- Weapons --------- */
.oh-weapons-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-right: 88px;
}
.weapons-block { display: flex; flex-direction: column; gap: 8px; }
.weapons-block__row {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  align-items: center;
}
.weapons-block__dmg {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #111;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  text-align: center;
  padding: 2px 4px;
  outline: none;
  transition: background 0.12s;
}
.weapons-block__dmg:hover { background: rgba(0,0,0,0.04); }
.weapons-block__dmg:focus { background: rgba(0,0,0,0.07); border-bottom-color: var(--brick); }

/* --------- Filed-from-shift footer (screen only) --------- */
.oh-sheet__footer-egg {
  margin-top: 22px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.04);
  border-left: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oh-sheet__footer-egg-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.oh-sheet__footer-egg-text {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 12px;
  color: #333;
}

.sheet__actions {
  margin: 24px auto 60px;
  max-width: 1100px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
}

/* ============================================================
   PRINT — pure black on white, no chrome
   ============================================================ */

@media print {
  @page {
    size: letter portrait;
    margin: 0.3in;
  }
  body { background: white !important; }
  body::before { display: none !important; }
  .station-bar, .progress, .sheet__actions, .foot, .ambient-toggle, .oh-sheet__footer-egg {
    display: none !important;
  }
  .shell, .shell--sheet { padding: 0 !important; min-height: 0 !important; }
  .sheet-wrap { padding: 0; max-width: none; margin: 0; }
  .oh-sheet {
    box-shadow: none !important;
    background: white !important;
    max-width: none !important;
    padding: 0 !important;
    color: black !important;
    font-size: 11px !important;
  }
  .oh-sheet__header { padding-bottom: 12px; margin-bottom: 12px; }
  .oh-sheet__logo-name { border-color: #000; }
  .oh-logo { background: #000 !important; color: white !important; }
  .oh-stat-box, .oh-init-box, .underline, .lineblock__line, .weapons-block__dmg,
  .oh-mental-state, .oh-sheet__name-input {
    border-color: #000 !important;
    background: white !important;
    color: black !important;
  }
  .oh-stat-box__label { background: white !important; border-top-color: #000 !important; }
  .bubble { border-color: #000 !important; background: white !important; }
  .bubble.is-filled { background: #000 !important; }
}

/* ============================================================
   REVIEW / SUMMARY mini-blocks used inside steps
   ============================================================ */

.summary-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-line b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--asphalt);
  letter-spacing: 0;
}
.summary-line .sep { color: var(--cream-dark); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--asphalt);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tag--brick { background: var(--brick); }
.tag--green { background: var(--green); }
