:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(15, 20, 29, 0.72);
  --line: rgba(184, 255, 241, 0.15);
  --ink: #edf7f5;
  --muted: #8c9b9b;
  --glow: #8efce7;
  --glow-2: #9f8cff;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 25%, rgba(67, 75, 112, 0.16), transparent 36%),
    linear-gradient(180deg, #07090d 0%, #090d12 100%);
}

button, input { font: inherit; }
button { color: inherit; }
button:disabled, input:disabled { cursor: wait; opacity: 0.58; }

.game-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px 4px;
}
.topbar-tools { display: flex; align-items: center; gap: 18px; }
#collectionButton { padding: 8px 11px; color: #91aaa6; border: 1px solid var(--line); background: transparent; font: 600 .66rem ui-monospace, monospace; letter-spacing: .08em; cursor: pointer; }
#collectionButton:hover { color: var(--glow); border-color: rgba(142, 252, 231, .45); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font: 600 0.72rem/1.2 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.privacy-mark { margin-left: 12px; color: #586968; letter-spacing: 0.08em; }

h1, h2 { margin: 0; font-weight: 500; letter-spacing: 0.08em; }
h1 { font-size: clamp(1.25rem, 3vw, 1.6rem); }

.turn-counter { font: 300 2rem/1 ui-monospace, monospace; }
.turn-counter small { color: var(--muted); font-size: 0.8rem; }

.habitat {
  position: relative;
  height: min(52vh, 520px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: radial-gradient(circle at 50% 48%, rgba(44, 62, 78, 0.24), rgba(5, 8, 12, 0.8) 62%);
}
.habitat[data-archetype="twin"] { background: radial-gradient(circle at 37% 48%, rgba(116, 63, 162, 0.2), transparent 28%), radial-gradient(circle at 63% 48%, rgba(78, 145, 160, 0.18), rgba(5, 8, 12, 0.9) 62%); }
.habitat[data-archetype="branch"] { background: radial-gradient(ellipse at 50% 58%, rgba(81, 137, 71, 0.2), rgba(5, 8, 12, 0.88) 64%); }
.habitat[data-archetype="veil"] { background: linear-gradient(155deg, rgba(52, 78, 122, 0.22), rgba(5, 8, 12, 0.9) 64%); }
.habitat[data-archetype="fold"] { background: radial-gradient(circle at 50% 48%, rgba(145, 99, 45, 0.2), rgba(5, 8, 12, 0.9) 60%); }

#petCanvas { width: 100%; height: 100%; display: block; }

.ritual-banner {
  grid-column: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid color-mix(in srgb, var(--ritual-accent) 52%, transparent);
  background: linear-gradient(110deg, color-mix(in srgb, var(--ritual-accent) 14%, #0b1017), #0b1017 72%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--ritual-accent) 12%, transparent);
}
.ritual-banner[hidden] { display: none; }
.ritual-banner.reveal { animation: ritual-arrives 700ms cubic-bezier(.2,.8,.2,1) both; }
#ritualGlyph { display: grid; width: 60px; height: 60px; place-items: center; color: var(--ritual-accent); border: 1px solid currentColor; border-radius: 50%; font-size: 2rem; box-shadow: inset 0 0 24px color-mix(in srgb, var(--ritual-accent) 16%, transparent), 0 0 22px color-mix(in srgb, var(--ritual-accent) 18%, transparent); }
.ritual-banner p { margin: 0 0 4px; color: var(--ritual-accent); font: 600 0.66rem ui-monospace, monospace; letter-spacing: .14em; }
.ritual-banner strong { display: block; font-size: 1.15rem; letter-spacing: .08em; }
.ritual-banner small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
@keyframes ritual-arrives { from { opacity: 0; transform: translateY(-12px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(152, 255, 235, 0.035) 4px);
}

.status-strip {
  position: absolute;
  inset: auto 16px 14px;
  display: flex;
  justify-content: space-between;
  color: #a8b8b6;
  font: 500 0.75rem/1.4 ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.signal { color: var(--glow); }
.signal i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.response {
  min-height: 72px;
  padding: 20px 22px;
  border-left: 1px solid rgba(142, 252, 231, 0.45);
  background: linear-gradient(90deg, rgba(142, 252, 231, 0.055), transparent);
}
.response[hidden] { display: none; }

.initiative {
  position: relative;
  padding: 16px 20px 17px;
  overflow: hidden;
  border: 1px solid rgba(159, 140, 255, 0.24);
  background: linear-gradient(120deg, rgba(159, 140, 255, 0.09), rgba(142, 252, 231, 0.035));
}
.initiative[hidden] { display: none; }
.initiative::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--glow-2);
  box-shadow: 0 0 15px var(--glow-2);
  opacity: 0.7;
}
.initiative-heading { display: flex; justify-content: space-between; color: #b8aae9; font: 600 0.68rem/1.2 ui-monospace, monospace; letter-spacing: 0.12em; }
#connectionCount { color: var(--muted); letter-spacing: 0.04em; }
.signal-message { display: flex; align-items: center; gap: 13px; margin-top: 11px; }
#signalMark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--glow); border: 1px solid currentColor; border-radius: 50%; font-size: 1.6rem; box-shadow: inset 0 0 18px rgba(142, 252, 231, 0.09), 0 0 18px rgba(142, 252, 231, 0.08); }
#initiativeSignal { margin: 0; color: #e6e0ff; font-size: 1rem; line-height: 1.45; letter-spacing: 0.025em; }
.initiative.expansive { border-color: rgba(142, 252, 231, 0.48); }
.initiative.altered { border-color: rgba(255, 213, 128, 0.4); }
.initiative.guarded { border-color: rgba(255, 143, 201, 0.32); }
.initiative.expansive #signalMark { background: var(--glow); color: #07110f; }
.initiative.altered #signalMark { color: #ffd580; border-color: currentColor; }
.initiative.guarded #signalMark { color: #ff8fc9; border-color: currentColor; }

#petSpeech { margin: 0; font-size: clamp(1.05rem, 2.5vw, 1.35rem); letter-spacing: 0.08em; }
#observation { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

.controls { grid-column: 1; }
.reply-label { margin: 0 0 8px; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; }
.action-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 9px; }
.action-tab, .choice-button, .speak-form button, #restartButton, #finishButton, #continueButton {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(14, 20, 28, 0.8);
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.action-tab:hover, .choice-button:hover, .speak-form button:hover { border-color: rgba(142, 252, 231, 0.55); }
.action-tab:active, .choice-button:active { transform: translateY(1px); }
.action-tab.active { color: #07110f; border-color: var(--glow); background: var(--glow); }

.choice-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.choice-button { padding: 10px 6px; font-size: 0.9rem; }
.choice-button span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.67rem; }

.speak-form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.speak-form input { min-width: 0; min-height: 52px; padding: 0 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; outline: 0; background: rgba(14, 20, 28, 0.8); }
.speak-form input:focus { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(142, 252, 231, 0.08); }
.speak-form button { padding: 0 20px; color: #07110f; background: var(--glow); }

.notes {
  grid-column: 2;
  grid-row: 2 / span 4;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.notes-heading { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: #cce0dc; font-size: 0.82rem; letter-spacing: 0.1em; }
.notes ol { margin: 12px 0 0; padding: 0; list-style: none; }
.notes li { padding: 11px 0; color: #a6b4b2; border-bottom: 1px solid rgba(184, 255, 241, 0.08); font-size: 0.8rem; line-height: 1.55; }
.notes li::before { content: attr(data-turn); margin-right: 9px; color: var(--glow); font: 0.68rem ui-monospace, monospace; }
.notes li.empty-note { color: #687675; }

.ad-area {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  min-height: 110px;
  margin: 54px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 255, 241, 0.08);
}
.ad-label { margin: 0 0 9px; color: #52605f; font-size: 0.68rem; letter-spacing: 0.16em; text-align: center; }
.adsbygoogle { display: block; }
.ad-banner { width: 320px; height: 50px; margin: 0 auto; }
@media (min-width: 500px) { .ad-banner { width: 468px; height: 60px; } }
@media (min-width: 800px) { .ad-banner { width: 728px; height: 90px; } }
.ad-preview .adsbygoogle {
  display: grid;
  min-height: 90px;
  place-items: center;
  color: #647472;
  border: 1px dashed rgba(184, 255, 241, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.site-footer { grid-column: 1 / -1; padding: 14px 0 0; text-align: center; }
.site-footer a, .policy-shell a { color: #758886; font-size: 0.76rem; }

.policy-shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 64px 0 80px; }
.policy-shell h1 { margin-bottom: 42px; }
.policy-shell h2 { margin: 34px 0 12px; font-size: 1.08rem; }
.policy-shell p { color: #a8b6b4; font-size: 0.95rem; line-height: 1.9; }
.policy-back { margin-top: 48px; }

dialog { width: min(92vw, 580px); max-height: calc(100dvh - 24px); padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); border: 1px solid rgba(142, 252, 231, 0.3); background: #0b1017; box-shadow: 0 26px 90px #000; }
dialog::backdrop { background: rgba(2, 4, 8, 0.82); backdrop-filter: blur(10px); }
.result-card { padding: 30px; }
.result-card h2 { margin-bottom: 24px; font-size: 1.45rem; }
.encounter-card { position: relative; min-height: 310px; padding: 22px; overflow: hidden; border: 1px solid hsla(var(--card-hue) 80% 70% / .38); background: radial-gradient(circle at 50% 32%, hsla(var(--card-hue) 60% 28% / .65), #080c12 66%); text-align: center; }
.encounter-creature { position: absolute; top: -48px; left: 50%; width: min(520px, 110%); height: 260px; object-fit: contain; transform: translateX(-50%); opacity: .5; filter: saturate(1.25) contrast(1.1); pointer-events: none; }
.encounter-orbit { position: relative; width: 132px; height: 132px; margin: 2px auto 15px; display: grid; place-items: center; color: hsl(var(--card-hue) 82% 72%); }
.encounter-orbit::before, .encounter-orbit i { content: ""; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 47% 53% 58% 42%; box-shadow: 0 0 26px currentColor; animation: orbit 9s linear infinite; }
.encounter-orbit i { inset: 22px 12px; opacity: .45; animation-direction: reverse; animation-duration: 6s; }
.encounter-orbit span { font-size: 2.1rem; text-shadow: 0 0 20px currentColor; }
@keyframes orbit { to { transform: rotate(360deg); } }
.encounter-id { margin: 0 0 9px; color: #71817f; font: .68rem ui-monospace, monospace; letter-spacing: .16em; }
.encounter-card h3 { margin: 0; font-size: 1.45rem; font-weight: 500; letter-spacing: .12em; }
.encounter-variant { margin: 7px 0 0; color: hsl(var(--card-hue) 72% 74%); font: .68rem ui-monospace, monospace; letter-spacing: .14em; }
.encounter-line { max-width: 30rem; margin: 12px auto 18px; color: #c2d2cf; line-height: 1.65; }
.creature-type { max-width: 31rem; margin: 0 auto 17px; padding: 13px 15px; border: 1px solid hsla(var(--card-hue) 70% 70% / .22); background: rgba(5,9,13,.46); }
.creature-type small { display: block; margin-bottom: 5px; color: #829693; font: 600 .62rem ui-monospace, monospace; letter-spacing: .12em; }
.creature-type strong { color: hsl(var(--card-hue) 72% 78%); font-size: .92rem; font-weight: 500; letter-spacing: .08em; }
.creature-type p { margin: 7px 0 0; color: #b8c8c5; font-size: .78rem; line-height: 1.6; }
.encounter-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.encounter-tags span { padding: 5px 9px; color: hsl(var(--card-hue) 62% 78%); border: 1px solid hsla(var(--card-hue) 70% 70% / .22); font-size: .7rem; }
.result-summary { margin: 18px 0 0; }
.archetype-guide { margin-top: 12px; border: 1px solid var(--line); background: rgba(7,12,17,.46); }
.archetype-guide summary { padding: 13px 14px; color: #a8bbb8; font-size: .78rem; cursor: pointer; }
.archetype-guide-note { margin: 0; padding: 0 14px 12px; color: #7f9290; font-size: .74rem; line-height: 1.6; }
.archetype-guide ul { margin: 0; padding: 0 14px 14px; display: grid; gap: 7px; list-style: none; }
.archetype-guide li { display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding: 10px; border: 1px solid rgba(184,255,241,.09); }
.archetype-guide li.current { border-color: rgba(142,252,231,.34); background: rgba(142,252,231,.04); }
.archetype-guide li > span { color: var(--glow); font-size: 1.2rem; text-align: center; }
.archetype-guide li strong { font-size: .78rem; font-weight: 500; }
.archetype-guide li p { margin: 3px 0 0; color: #829693; font-size: .7rem; line-height: 1.5; }
.share-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 16px; }
.share-actions button { min-height: 48px; border: 1px solid var(--line); color: var(--ink); background: rgba(14,20,28,.8); cursor: pointer; }
#shareButton { color: #07110f; border-color: var(--glow); background: var(--glow); }
#viewCollectionButton { grid-column: 1 / -1; }
.result-row { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.result-row dt { color: var(--muted); }
.result-row dd { margin: 0; line-height: 1.5; }
.result-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 22px; }
#restartButton { grid-column: 1 / -1; color: #07110f; background: var(--glow); }
#finishButton { color: var(--muted); }
#continueButton { color: #07110f; border-color: var(--glow); background: var(--glow); }
.result-note { margin: 18px 0 0; color: #778987; font-size: 0.78rem; line-height: 1.6; }
.anomaly { color: #c8bbff; text-shadow: 0 0 18px rgba(159, 140, 255, 0.35); }

.collection-dialog { width: min(94vw, 780px); }
.collection-card { padding: 28px; }
.collection-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.collection-heading h2 { font-size: 1.4rem; }
#closeCollectionButton { width: 40px; height: 40px; color: var(--muted); border: 1px solid var(--line); background: transparent; font-size: 1.25rem; cursor: pointer; }
.collection-summary { margin: 16px 0 20px; color: var(--muted); font: .76rem ui-monospace, monospace; letter-spacing: .08em; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.phenomenon-cell { position: relative; min-height: 128px; padding: 13px 11px; display: flex; flex-direction: column; justify-content: space-between; gap: 7px; color: inherit; text-align: left; border: 1px solid rgba(184,255,241,.12); background: rgba(255,255,255,.018); }
button.phenomenon-cell { width: 100%; font: inherit; cursor: pointer; }
button.phenomenon-cell:hover, button.phenomenon-cell:focus-visible { border-color: var(--cell-accent, var(--glow)); outline: none; transform: translateY(-1px); }
.phenomenon-cell .phenomenon-number { color: #536461; font: .62rem ui-monospace, monospace; letter-spacing: .1em; }
.phenomenon-cell strong { color: #dce8e6; font-size: .82rem; font-weight: 500; line-height: 1.45; }
.phenomenon-cell i { color: var(--cell-accent, var(--glow)); font-size: 1.45rem; font-style: normal; text-shadow: 0 0 18px currentColor; }
.phenomenon-context { color: #91aaa6; font-size: .65rem; line-height: 1.45; }
.phenomenon-new { position: absolute; top: 9px; right: 8px; padding: 3px 5px; color: #07110f; background: var(--glow); font: 700 .55rem ui-monospace, monospace; letter-spacing: .1em; }
.phenomenon-cell.locked { opacity: .42; }
.phenomenon-cell.locked strong { color: #667471; font: .72rem ui-monospace, monospace; letter-spacing: .12em; }
.phenomenon-cell.unlocked { border-color: color-mix(in srgb, var(--cell-accent) 38%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--cell-accent) 8%, #0b1017), #0b1017); }
.collection-detail { margin-top: 12px; padding: 17px; border: 1px solid rgba(142,252,231,.25); background: rgba(7,13,18,.92); }
.collection-detail-header { display: flex; align-items: center; gap: 10px; }
.collection-detail-header i { color: var(--detail-accent, var(--glow)); font-size: 1.5rem; font-style: normal; }
.collection-detail h3 { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: .08em; }
.collection-detail-meaning { margin: 11px 0 0; color: #d7e5e2; font-size: .84rem; line-height: 1.7; }
.collection-detail-meta { margin: 10px 0 0; color: #91aaa6; font: .68rem ui-monospace, monospace; line-height: 1.6; letter-spacing: .05em; }
.collection-detail-reaction { margin: 10px 0 0; color: #cbd9d7; font-size: .84rem; line-height: 1.65; }
.collection-detail-empty { color: #778987; }
.session-discoveries { margin-top: 16px; padding: 14px; border: 1px solid var(--line); background: rgba(7,12,17,.46); }
.session-discoveries h4 { margin: 0 0 10px; color: #91aaa6; font: 700 .66rem ui-monospace, monospace; letter-spacing: .12em; }
.session-discoveries ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.session-discoveries li { display: grid; grid-template-columns: 1fr auto; gap: 10px; color: #dce8e6; font-size: .8rem; line-height: 1.45; }
.session-discoveries small { color: #829693; }
.session-discoveries em { align-self: start; color: var(--glow); font: 700 .56rem ui-monospace, monospace; letter-spacing: .1em; }
.discovery-label { margin: 0 0 10px; color: var(--glow); font: 700 .67rem ui-monospace, monospace; letter-spacing: .16em; }
.discovery-label.again { color: #7d918e; }

@media (max-width: 760px) {
  .game-shell { padding: 10px 10px 28px; display: block; }
  .topbar { min-height: 48px; margin-bottom: 8px; align-items: center; }
  .topbar-tools { gap: 8px; }
  #collectionButton { padding: 7px 8px; font-size: .58rem; }
  .topbar .eyebrow { margin-bottom: 3px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .privacy-mark { display: block; margin: 4px 0 0; font-size: .58rem; }
  h1 { font-size: 1.2rem; }
  .turn-counter { font-size: 1.55rem; }
  .habitat { height: min(31dvh, 245px); min-height: 205px; scroll-margin-top: 8px; }
  .ritual-banner { margin-top: 8px; grid-template-columns: 48px 1fr; gap: 11px; padding: 11px 12px; }
  #ritualGlyph { width: 46px; height: 46px; font-size: 1.45rem; }
  .ritual-banner strong { font-size: 1rem; }
  .ritual-banner small { font-size: .74rem; }
  .status-strip { inset: auto 11px 9px; font-size: 0.67rem; }
  .initiative { margin-top: 8px; padding: 10px 12px 11px; }
  .initiative-heading { font-size: 0.61rem; }
  .signal-message { gap: 9px; margin-top: 7px; }
  #signalMark { width: 36px; height: 36px; font-size: 1.25rem; }
  #initiativeSignal { font-size: 0.9rem; line-height: 1.35; }
  .response { margin-top: 8px; min-height: 0; padding: 12px 13px; }
  #petSpeech { margin-bottom: 6px; font-size: 1rem; }
  #observation { font-size: 0.79rem; line-height: 1.4; }
  .controls { margin-top: 9px; }
  .reply-label { margin-bottom: 6px; }
  .action-tabs { gap: 5px; margin-bottom: 6px; }
  .action-tab, .choice-button, .speak-form button { min-height: 44px; }
  .choice-panel { gap: 5px; }
  .notes { margin-top: 15px; max-height: 210px; overflow: auto; }
  .ad-area { min-height: 90px; margin-top: 46px; padding-top: 14px; }
  .site-footer { padding-top: 12px; }
  .choice-panel { grid-template-columns: repeat(2, 1fr); }
  dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }
  .result-card { padding: 19px 16px 16px; }
  .result-card h2 { margin-bottom: 14px; font-size: 1.2rem; }
  .encounter-card { min-height: 270px; padding: 16px 12px; }
  .encounter-orbit { width: 104px; height: 104px; }
  .encounter-card h3 { font-size: 1.2rem; }
  .encounter-line { font-size: .84rem; }
  .result-row { grid-template-columns: 6.7rem 1fr; gap: 8px; padding: 9px 0; font-size: 0.86rem; }
  .result-note { margin-top: 12px; }
  .result-actions { position: sticky; bottom: 0; margin: 16px -4px -3px; padding: 8px 4px 3px; background: linear-gradient(180deg, rgba(11, 16, 23, 0), #0b1017 24%); }
  .result-actions { grid-template-columns: 1fr; }
  #restartButton { grid-column: auto; }
  .collection-card { padding: 18px 14px; }
  .collection-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .phenomenon-cell { min-height: 116px; padding: 10px 8px; }
  .phenomenon-cell strong { font-size: .72rem; }
  .phenomenon-context { font-size: .6rem; }
}

@media (max-width: 760px) and (max-height: 620px) {
  .topbar { min-height: 40px; }
  .topbar .eyebrow { display: none; }
  .habitat { height: 31dvh; min-height: 160px; }
  .initiative { padding-block: 8px; }
  .response { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .ritual-banner.reveal, .encounter-orbit::before, .encounter-orbit i { animation: none !important; }
}
