.view-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Voice-only Pi kiosk: control groups hide with their labels and hints. Status and prompt
   text remain visible, including when controls are added later by a game or moved from the desktop Voice Lab. */
.pi-kiosk :is(button, input, select, textarea, [role="button"], [contenteditable="true"]),
.pi-kiosk :is(.oracle-navigation, #oracle-input, #oracle-call-controls, #oracle-mutes, .solar-heading, .solar-toolbar, .solar-seasons, .solar-hint) { display: none !important; }
.pi-kiosk body { pointer-events: none; }
.pi-kiosk a { color: inherit; text-decoration: none; cursor: default; }
.pi-resources { position: fixed; z-index: 7; right: 10px; bottom: 7px; padding: 4px 7px; font: 11px/1.4 system-ui, sans-serif; color: #cfc5ae; background: #090b0d75; border-radius: 3px; opacity: .72; pointer-events: none; }
.pi-resources[data-thermal=warm] { color: #dfbd78; }
.pi-resources[data-thermal=hot] { color: #efa98b; opacity: 1; }
@media (min-width: 2400px) { .pi-resources { font-size: 16px; right: 18px; bottom: 12px; } }
.oracle { --oracle-margin: clamp(18px, 2vw, 72px); position: relative; min-height: 100dvh; isolation: isolate; }
.oracle-view, .oracle-presentation { --bg: #090b0d; --card: #171717; --text: #f8edd7; --muted: #cfbea0; --accent: #d8b376; --line: #77603c; color: var(--text); font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif; }
.oracle-view button, .oracle-view input, .oracle-view select, .oracle-view textarea { border-radius: 3px; background: #151718; }
.oracle-view button.primary { background: #d8b376; color: #17130e; }
.oracle-view button:focus-visible, .oracle-view a:focus-visible, .oracle-view textarea:focus-visible { outline: 2px solid #f3d39b; outline-offset: 4px; }
.oracle-view .card { border-radius: 3px; }
.oracle-active main { padding: 0; }
.oracle-active #lab-header { display: none; }
.oracle-active #error { position: fixed; top: 5rem; left: 1rem; right: 1rem; z-index: 8; margin: 0; background: #211811; border: 1px solid #cf947e; padding: 12px; }
.oracle-hero { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #090b0d; opacity: 1; transition: opacity .65s ease-in-out; }
/* The existing Clock renderer fits the painting to this complete viewport. */
.oracle-clock-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.oracle-hero iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.oracle-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #090b0d45, transparent 25%, transparent 75%, #090b0d30); }
.oracle-background-status { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(90%, 28rem); padding: 14px; background: #0d1010e8; color: #f8edd7; text-align: center; }
.oracle-heading { position: absolute; top: clamp(20px, 3dvh, 64px); left: var(--oracle-margin); width: min(32vw, 44rem); text-shadow: 0 2px 10px #000; transition: opacity .65s ease-in-out; }
.oracle-eyebrow { font-size: .7rem; letter-spacing: .18em; color: #d8b376; margin: 0 0 7px; }
.oracle-heading h1 { font-weight: 400; font-size: clamp(2rem, 4vw, 6rem); letter-spacing: .035em; line-height: 1.05; }
.oracle-invitation { font-size: clamp(.9rem, 1vw, 1.35rem); color: #e1d2b4; margin: 10px 0 0; }
.oracle-navigation { position: absolute; top: clamp(20px, 3dvh, 64px); right: var(--oracle-margin); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; width: min(32vw, 58rem); }
.oracle-navigation button { font-size: .8rem; min-height: 40px; padding: 8px 12px; background: #121516e8; }
.oracle-wing { position: absolute; overflow: auto; scrollbar-width: thin; scrollbar-color: #77603c transparent; opacity: 1; transition: opacity .18s ease-out; }
.oracle-panel { top: max(7rem, 13dvh); bottom: clamp(20px, 3dvh, 64px); right: var(--oracle-margin); width: clamp(24rem, 30vw, 58rem); }
.oracle-tools { bottom: clamp(20px, 3dvh, 64px); left: var(--oracle-margin); width: clamp(19rem, 25vw, 46rem); max-height: calc(100dvh - 11rem); }
.oracle-wing[data-quiet=true] { opacity: .26; transition: opacity 8s ease-in-out; }
.oracle-wing[data-critical=true], .oracle-wing:focus-within { opacity: 1; transition: opacity .18s ease-out; }
@media (hover: hover) { .oracle-wing:hover { opacity: 1; transition: opacity .18s ease-out; } }
.oracle-surface { position: relative; isolation: isolate; overflow: clip; flex-shrink: 0; border: 1px solid #92713f70; border-top-color: #d8b376b0; background: linear-gradient(135deg, #101415b8, #090b0d9c); padding: clamp(18px, 1.35vw, 36px); margin: 0 0 16px; text-shadow: 0 1px 3px #000; }
.oracle-surface::before { content: ''; position: absolute; inset: 7px; border: 1px solid #b1956024; z-index: 0; pointer-events: none; }
.oracle-surface > * { position: relative; z-index: 1; }
/* Silver and warm light drift over the inscriptions, in the same register as the Clock mist. */
.oracle-surface::after { content: ''; position: absolute; inset: -35% -55%; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 24% 35%, #dce7e516 0%, transparent 42%), radial-gradient(ellipse at 70% 64%, #edd8a820 0%, transparent 36%), linear-gradient(115deg, transparent 34%, #eaf1ec14 49%, transparent 65%); filter: blur(14px); opacity: .65; animation: oracle-time-mist 22s ease-in-out infinite alternate; }
.oracle-timers::after { animation-delay: -11s; animation-duration: 27s; }
@keyframes oracle-time-mist { from { transform: translate3d(-8%, -4%, 0) rotate(-5deg); opacity: .5; } to { transform: translate3d(9%, 6%, 0) rotate(7deg); opacity: .9; } }
.oracle-wing h2 { font-weight: 400; letter-spacing: .03em; font-size: clamp(1.4rem, 1.6vw, 2.5rem); margin: 0 0 14px; color: #f5d9a2; }
/* Hide only the Answer card while retaining its space and the independent presentation. */
#oracle-answer { visibility: hidden; }
.oracle-answer-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 14px; }
.oracle-answer-heading h2 { margin: 0; }
.oracle-answer-heading button { font-size: .75rem; padding: 6px 8px; min-height: 36px; color: #cfbea0; background: transparent; border-color: #77603c80; }
.oracle-answer-reveal { width: 100%; margin-bottom: 16px; color: #e9c68c; background: #111415b0; }
.oracle-main { position: fixed; left: var(--oracle-margin); right: calc(var(--oracle-margin) + var(--oracle-side-width, 33vw) + 18px); top: clamp(5rem, 7dvh, 10rem); bottom: var(--oracle-margin); z-index: 3; }
.oracle-main > .oracle-presentation { height: 100%; display: flex; flex-direction: column; margin: 0; }
.presentation-body { min-height: 0; overflow: auto; font-size: clamp(1rem, 1.05vw, 1.8rem); line-height: 1.65; overflow-wrap: anywhere; }
.presentation-body > :is(p, ul, ol, h1, h2, h3, h4) { margin: 0 0 14px; }
.presentation-body > :is(h1, h2, h3, h4) { color: #f5d9a2; font-weight: 400; letter-spacing: .03em; }
.oracle-main .presentation-body { flex: 1; }
/* The solar canvas takes what its frame leaves; no minimum height pushes it past the frame. */
.oracle-main .solar-scene { height: 100%; min-height: 100%; border: 0; }
.oracle-main .solar-stage { height: auto; min-height: 0; }
.oracle-main .solar-scene > :not(.solar-stage) { flex-shrink: 0; }
.presentation-prompt { padding-top: 12px; border-top: 1px solid #92713f70; margin-top: 14px; }
.presentation-prompt p { margin: 0 0 8px; }
.presentation-prompt > div { display: flex; gap: 8px; }
.presentation-prompt button { min-height: 38px; padding: 7px 20px; }
.oracle-work p { margin: 0; font-size: .85rem; }
.presentation-main { --oracle-side-width: clamp(20rem, 25vw, 46rem); --oracle-controls-height: clamp(18rem, 28dvh, 32rem); }
.presentation-main .oracle-panel { width: var(--oracle-side-width); bottom: calc(var(--oracle-controls-height) + var(--oracle-margin) + 12px); }
.presentation-main .oracle-tools { left: auto; right: var(--oracle-margin); width: var(--oracle-side-width); z-index: 4; max-height: var(--oracle-controls-height); }
.presentation-main .oracle-essential { position: sticky; top: 0; z-index: 3; padding-bottom: 4px; background: #101415; }
.presentation-main .oracle-heading, .presentation-main .oracle-hero { opacity: 0; pointer-events: none; }
.oracle-presentation h2 { font-weight: 400; color: #f5d9a2; margin: 0 0 10px; }
@media (max-width: 1280px) {
  .oracle-main { position: relative; grid-column: 1; grid-row: 2; inset: auto; height: min(76dvh, 48rem); margin: 0 18px 18px; }
  .presentation-main .oracle-panel, .presentation-main .oracle-tools { inset: auto; width: auto; }
  .presentation-main .oracle-tools { max-height: none; }
}
.oracle-inscription { font-size: clamp(1rem, 1.05vw, 1.8rem); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-map { margin: 14px 0; max-width: 100%; }
.reply-map img { display: block; width: 100%; height: auto; max-height: 32rem; object-fit: contain; border: 1px solid var(--line); background: #eee5cf; }
.reply-map figcaption { margin-top: 7px; color: var(--muted); font-size: .85rem; }
.reply-map a { color: var(--accent); text-underline-offset: 3px; }
.oracle-answer .reply-map { margin: 0 0 18px; }
.oracle-answer .reply-map img { border-color: #92713f; }
.oracle-sources { margin-top: 18px; padding-top: 12px; border-top: 1px solid #77603c; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.oracle-sources a { color: #e9c68c; font-size: .85rem; text-underline-offset: 3px; overflow-wrap: anywhere; }
.oracle-empty { font-size: clamp(1rem, 1.05vw, 1.5rem); line-height: 1.65; color: #e1d2b4; }
.oracle-timers { margin: 0; }
.oracle-timer-list { list-style: none; padding: 0; margin: 0; }
.oracle-timer-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid #77603c66; }
.oracle-timer-list strong { font-weight: 400; overflow-wrap: anywhere; font-size: 1rem; }
.oracle-timer-time { grid-column: 1 / -1; color: #f5d9a2; font-size: clamp(2rem, 3.2vw, 5rem); font-variant-numeric: tabular-nums; line-height: 1.2; }
.oracle-timer-list button { grid-column: 2; grid-row: 1; font-size: .85rem; }
.oracle-timer-list li[data-state=elapsed] .oracle-timer-time { color: #ffcf9a; font-size: clamp(1.5rem, 2vw, 3rem); }
.oracle-hud { margin: 0; padding: clamp(14px, 1.15vw, 30px); }
.oracle-call-controls, .oracle-mutes { display: flex; flex-wrap: wrap; gap: 8px; }
.oracle-call-controls button { flex: 1 1 10rem; font-size: .9rem; }
.oracle-mutes { margin: 8px 0; }
.oracle-mutes button { flex: 1 1 8rem; font-size: .8rem; min-height: 40px; padding: 8px; }
.oracle-hud #state { font-size: 1rem; }
.oracle-status .hint { font-size: .78rem; margin: 4px 0; }
.oracle-status .live-budget { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 5px 0 9px; padding: 0; border: 0; background: transparent; font-size: .75rem; }
#oracle-text-toggle { font-size: .8rem; min-height: 36px; padding: 6px 12px; margin-top: 8px; }
.oracle-input { margin-top: 12px; }
.oracle-input .text-form { display: flex; flex-wrap: wrap; }
.oracle-input textarea { flex: 1 1 15rem; min-height: 74px; font-size: 1rem; }
.oracle-input .text-form button { flex: 1 1 auto; }
@media (min-width: 2400px) { .oracle-hud button, .oracle-navigation button { font-size: 1.1rem; min-height: 54px; } .oracle-hud #state { font-size: 1.35rem; } .oracle-status .hint, .oracle-status .live-budget { font-size: 1rem; } }
@media (max-width: 1280px) {
  .oracle { --oracle-stage-height: min(56.25vw, 50dvh, 38rem); display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
  .oracle-hero { position: relative; inset: auto; grid-column: 1; grid-row: 2; height: var(--oracle-stage-height); }
  .oracle-clock-stage { width: 100%; height: 100%; }
  .oracle-veil { background: linear-gradient(0deg, #090b0d, transparent 18%, transparent 80%, #090b0d75); }
  .oracle-heading { position: relative; grid-column: 1; grid-row: 1; top: auto; left: auto; margin: 18px; width: auto; }
  .oracle-heading h1 { font-size: clamp(2rem, 7vw, 4rem); }
  .oracle-invitation { font-size: .9rem; }
  .oracle-navigation { position: relative; grid-column: 1; grid-row: 3; top: auto; right: auto; justify-content: center; width: auto; margin: 12px 18px 18px; }
  .oracle-wing { position: relative; inset: auto; width: auto; max-height: none; margin: 0 18px 18px; overflow: visible; min-width: 0; }
  .oracle-panel { grid-row: 5; }
  .oracle-tools { grid-row: 4; }
  .oracle-hud { margin-top: 0; }
  .oracle-surface { padding: 20px; }
  .oracle-inscription { font-size: 1.1rem; }
  .oracle-wing h2 { font-size: 1.6rem; }
  .oracle-timer-time { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .oracle * { scroll-behavior: auto; } .oracle-wing, .oracle-hero, .oracle-heading { transition: none !important; } .oracle-surface::after { animation: none; transform: none; opacity: .5; } }
/* One movable presentation card; voice controls retain their own layer. */
#oracle-presentation[data-location="fullscreen"] { position: fixed; inset: 1rem 1rem 7rem; z-index: 30; width: auto; max-width: none; max-height: none; }
#oracle-main > #oracle-presentation:not([data-location="main"]) { height: auto; background: var(--bg, #090b0d); padding: 1rem; border: 1px solid #92713f; }
.presentation-overlay .oracle-tools { position: fixed; bottom: .5rem; left: 1rem; right: 1rem; width: auto; max-height: 6rem; z-index: 45; background: #101415; }
#oracle-presentation[data-location^="top_"], #oracle-presentation[data-location^="bottom_"] { position: fixed; z-index: 25; width: min(46vw, 52rem); max-height: 42dvh; }
#oracle-main > #oracle-presentation[data-location^="top_"], #oracle-main > #oracle-presentation[data-location^="bottom_"] { height: 42dvh; }
#oracle-presentation[data-size="normal"][data-location^="top_"], #oracle-presentation[data-size="normal"][data-location^="bottom_"] { width: min(32vw, 36rem); }
#oracle-presentation[data-location="top_left"] { top: 1rem; left: 1rem; }
#oracle-presentation[data-location="top_right"] { top: 1rem; right: 1rem; }
#oracle-presentation[data-location="bottom_left"] { bottom: 7rem; left: 1rem; }
#oracle-presentation[data-location="bottom_right"] { bottom: 7rem; right: 1rem; }
#oracle-presentation[data-location="main"][data-size="large"] { width: 100%; max-width: none; max-height: none; }
#oracle-presentation #presentation-body { overflow: auto; min-height: 2rem; }
#oracle-main > #oracle-presentation:has(.presentation-app) { display: flex; padding: 0; border: 0; z-index: 40; }
/* A full app ends above the voice bar: what it draws stays visible. */
#oracle-main > #oracle-presentation[data-location="fullscreen"]:has(.presentation-app) { inset: 0 0 7rem; }
#oracle-presentation:has(.presentation-app) > :not(#presentation-body) { display: none; }
#oracle-presentation #presentation-body:has(> .presentation-app) { flex: 1; overflow: hidden; position: relative; }
#oracle-presentation .presentation-app { display: block; width: 100%; height: 100%; border: 0; background: #090b0d; }
#oracle-presentation img.server-game { object-fit: contain; }
#oracle-presentation .server-scene { position: relative; overflow: hidden; pointer-events: none; }
#oracle-presentation .presentation-app-version { position: absolute; right: .9rem; bottom: .55rem; color: #d8b376; font-size: 1rem; line-height: 1; pointer-events: none; }
#oracle-presentation[data-kind="content"][data-location="side"] #presentation-body { max-height: 40dvh; }
#oracle-presentation #presentation-body:has(> .presentation-media) { display: flex; flex-direction: column; min-height: 0; }
#oracle-presentation[data-location="side"] #presentation-body:has(> .presentation-media),
#oracle-presentation[data-location="side"] #presentation-body:has(> .presentation-app) { height: 40dvh; }
#oracle-presentation .presentation-media { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; margin: 0; padding: 7px; border: 1px solid #92713f; border-top-color: #d8b376b0; background: radial-gradient(ellipse at 50% 35%, rgba(98,69,29,.14), transparent 65%); }
#oracle-presentation .presentation-image-frame { position: relative; flex: 1; min-height: 0; border: 1px solid #b1956024; background: #eee5cf; }
#oracle-presentation #presentation-body img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }
#oracle-presentation .presentation-source { flex-shrink: 0; margin: 7px 0 0; font-size: .85rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; text-shadow: none; }
#presentation-title { flex-shrink: 0; overflow-wrap: anywhere; }
/* Suppress only the presentation chrome around SVGs, without changing their
   content, dimensions, background or the separate answer panel. Transparent
   borders and hidden labels retain their layout space. */
#oracle-presentation:has(> #presentation-body > .presentation-media > .presentation-image-frame > svg),
#oracle-main > #oracle-presentation:not([data-location="main"]):has(> #presentation-body > .presentation-media > .presentation-image-frame > svg) { border-color: transparent; }
#oracle-presentation:has(> #presentation-body > .presentation-media > .presentation-image-frame > svg)::before,
#oracle-presentation #presentation-body:has(> .presentation-media > .presentation-image-frame > svg) > .presentation-media,
#oracle-presentation #presentation-body > .presentation-media > .presentation-image-frame:has(> svg) { border-color: transparent; }
#oracle-presentation:has(> #presentation-body > .presentation-media > .presentation-image-frame > svg) > .oracle-eyebrow,
#oracle-presentation[data-generic-title="true"]:has(> #presentation-body > .presentation-media > .presentation-image-frame > svg) > #presentation-title { visibility: hidden; }
#oracle-presentation .presentation-table { overflow-x: auto; width: 100%; }
#oracle-presentation table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: clamp(.9rem, 1.3vw, 1.25rem); }
#oracle-presentation th, #oracle-presentation td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
#oracle-presentation th { color: #f5d9a2; font-weight: 400; background: #171717; }
#oracle-presentation[data-size="fit"] #presentation-body { line-height: 1.25; }
#oracle-presentation[data-size="fit"] :is(th, td) { padding: .2rem .4rem; }
#oracle-presentation tbody tr:nth-child(even) { background: rgba(98,69,29,.14); }
@media (max-width: 600px) {
  #oracle-main > #oracle-presentation[data-location^="top_"], #oracle-main > #oracle-presentation[data-location^="bottom_"] { width: calc(100vw - 2rem); height: 38dvh; max-height: 38dvh; }
  #oracle-presentation[data-size="normal"][data-location^="top_"], #oracle-presentation[data-size="normal"][data-location^="bottom_"] { width: calc(100vw - 2rem); }
  #oracle-presentation[data-location="fullscreen"] { inset: .5rem .5rem 7rem; }
}
