/* One product board and a compact fact bubble keep the reveal on the game's stage. */
body.reveal-art { overflow: clip; background: #251039; }
.reveal-art :is(.site-header, .site-footer, .preview-banner) { display: none; }
.reveal-art #main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.art-reveal-screen { height: 100svh; height: 100dvh; display: grid; place-items: safe center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #251039; }
.art-reveal-stage { --reveal-accent: #344eff; --reveal-body-font: var(--body-font); container-type: inline-size; position: relative; isolation: isolate; display: flow-root; width: min(100vw, calc(100svh * 16 / 9)); width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; max-width: 100%; overflow: clip; background: #8ba6d9 url('./assets/designer/stage-background.png') top center / 100% 100% no-repeat; font-family: var(--art-font); color: #505a85; }
/* The frame PNG supplies its own paper fill. A second background leaks through
   the transparent outer corners as a pale outline. */
.art-reveal-board { position: relative; z-index: 2; display: grid; gap: clamp(16px, 1.25cqw, 24px); width: 62%; margin: 0 auto; padding: clamp(28px, 2.916667cqw, 56px) clamp(24px, 3.125cqw, 60px) clamp(24px, 2.083333cqw, 40px); background: transparent; border-radius: clamp(28px, 2.5cqw, 48px); border: 1px solid transparent; border-image: url('./assets/designer/product-frame.png') 180 fill / clamp(36px, 3.333333cqw, 64px) / 0 stretch; }
.art-reveal-board.is-missed { --reveal-accent: #8254b3; }
.art-reveal-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; text-align: left; }
.art-reveal-counter { display: flex; align-items: baseline; gap: 6px; color: #99745f; font: 400 clamp(13px, .9375cqw, 18px)/1.5 var(--reveal-body-font); }
.art-reveal-counter strong { font: inherit; }
.art-reveal-counter small { font: inherit; opacity: .8; }
.art-reveal-tag { margin: 0; color: var(--reveal-accent); font: 400 clamp(13px, .9375cqw, 18px)/1.5 var(--reveal-body-font); text-align: right; }
.art-reveal-header h1 { margin: 0; font: 400 clamp(24px, 2.083333cqw, 36px)/1.3 var(--art-font); color: #505a85; word-break: keep-all; }
.art-reveal-earned { display: flex; align-items: baseline; justify-content: center; gap: 10px; color: #737d9d; font: 400 clamp(13px, .9375cqw, 18px)/1.5 var(--reveal-body-font); }
.art-reveal-earned strong { color: var(--reveal-accent); font: 400 clamp(20px, 1.666667cqw, 28px)/1.25 var(--art-font); }
.art-reveal-answer { min-width: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 2.083333cqw, 40px); }
.art-reveal-product { min-width: 0; display: grid; gap: 12px; text-align: center; }
.art-reveal-product h2 { margin: 0; font: 400 clamp(18px, 1.25cqw, 24px)/1.4 var(--reveal-body-font); word-break: keep-all; overflow-wrap: anywhere; }
.art-reveal-photo { display: block; width: 100%; height: clamp(180px, 14.583333cqw, 280px); margin: 0; padding: 8px; border: 0; border-radius: 16px; background: #fff; }
.art-reveal-photo .product-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-reveal-conditions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; color: #847568; font: 400 clamp(12px, .875cqw, 16px)/1.6 var(--reveal-body-font); word-break: keep-all; }
.art-reveal-prices { min-width: 0; width: 100%; display: grid; gap: 16px; }
.art-reveal-prices .price-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.666667cqw, 28px); margin: 0; padding: 0; border: 0; background: none; }
.art-reveal-prices .compare-cell { container-type: inline-size; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.art-reveal-prices .compare-cell > span { color: #737d9d; font: 400 clamp(13px, .9375cqw, 18px)/1.5 var(--reveal-body-font); }
.art-reveal-prices .compare-cell.actual > span { color: #344eff; }
.art-reveal-prices .compare-cell strong { display: block; margin-top: 8px; color: #344eff; font: 400 min(72px, max(20px, calc(143cqw / var(--digits))))/1.15 var(--art-font); letter-spacing: -.035em; white-space: nowrap; }
.art-reveal-prices .compare-cell.mine strong { color: #737d9d; font-size: min(32px, max(16px, calc(143cqw / var(--digits)))); }
.art-reveal-prices .compare-cell .currency { margin-left: 4px; font-size: max(14px, .45em); letter-spacing: 0; }
.art-reveal-prices .error-badge { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--reveal-accent); font: 400 clamp(13px, .875cqw, 16px)/1.7 var(--reveal-body-font); word-break: keep-all; overflow-wrap: anywhere; }
.art-reveal-footer { position: relative; z-index: 3; min-width: 0; width: 62%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 1.25cqw, 24px); margin: 0 auto; }
.art-reveal-info { min-width: 0; }
.art-reveal-info .inline-knowledge, .art-reveal-total-surface, .art-reveal-menu > summary { border: 1px solid transparent; border-image: var(--bubble-panel-image) var(--bubble-source-slice) fill / var(--bubble-corner) / 0 stretch; border-radius: var(--bubble-corner); background: transparent; }
.art-reveal-info .inline-knowledge { display: block; margin: 0; padding: clamp(16px, 1.25cqw, 24px); }
.art-reveal-info .knowledge-mark { display: none; }
.art-reveal-info .knowledge-copy { min-width: 0; padding: 0; }
.art-reveal-info .eyebrow { color: #8254b3; font: 400 clamp(13px, .875cqw, 16px)/1.5 var(--reveal-body-font); }
.art-reveal-info .knowledge-copy h2 { margin: 8px 0; color: #505a85; font: 400 clamp(16px, 1.125cqw, 20px)/1.4 var(--reveal-body-font); letter-spacing: 0; }
.art-reveal-info .knowledge-text { margin: 0; color: #626c85; font: 400 clamp(14px, 1cqw, 17px)/1.65 var(--reveal-body-font); letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.art-reveal-info .knowledge-source { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 8px; color: #737d9d; font: 400 clamp(12px, .8125cqw, 14px)/1.6 var(--reveal-body-font); }
.art-reveal-info .knowledge-source :is(a, button) { width: fit-content; min-height: 32px; padding: 4px 0; font: inherit; color: #344eff; text-align: left; overflow-wrap: anywhere; }
.art-reveal-next { min-height: 64px; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0; padding: 16px 24px; border: 0; border-radius: 999px; background: #344eff; box-shadow: 0 3px 0 #223bd7; color: #fff; font: 400 var(--type-action)/1.25 var(--art-font); white-space: nowrap; }
.art-reveal-next:hover { background: #4d64ff; }
.art-reveal-next:active { translate: 0 2px; box-shadow: none; }
.art-reveal-stage :is(button, summary, a):focus-visible { outline: 3px solid #344eff; outline-offset: 4px; }
.art-reveal-topline { position: absolute; z-index: 5; inset: 0 0 auto; pointer-events: none; }
.art-reveal-topline > * { pointer-events: auto; }
.art-reveal-menu { position: absolute; left: 1.5cqw; top: 1.5cqw; }
.art-reveal-menu[open] { z-index: 20; }
.art-reveal-menu > summary { min-height: 44px; display: grid; place-items: center; margin: 0; padding: 8px 16px; list-style: none; cursor: pointer; font-size: var(--type-body); color: #344eff; }
.art-reveal-menu > summary::-webkit-details-marker { display: none; }
.art-reveal-menu .art-menu-content { left: 0; right: auto; top: calc(100% + 8px); width: min(400px, 78cqw); max-height: calc(100dvh - 100px); overflow: auto; }
/* Paint the complete 9-slice card on a stable inner layer, then scale its
   borderless outer group. Fractional animation scales never resize the slices. */
.art-reveal-total { position: absolute; right: 2cqw; top: 3cqw; width: 14.5cqw; isolation: isolate; transform: translateZ(0); transform-origin: center; will-change: transform; }
.art-reveal-total-surface { container-type: inline-size; position: relative; isolation: isolate; width: 100%; display: grid; justify-items: center; gap: 8px; padding: 16px 12px; transform: translateZ(0); backface-visibility: hidden; }
.art-reveal-total-surface[data-flattened=true] { border-image: none; }
.art-reveal-total-surface > :not(canvas) { position: relative; z-index: 1; }
.art-reveal-total-surface > span { color: #737d9d; font: 400 clamp(13px, .9375cqw, 18px)/1.5 var(--reveal-body-font); }
.art-reveal-total strong { color: #344eff; font: 400 min(48px, max(16px, calc(135cqw / var(--digits))))/1.15 var(--art-font); white-space: nowrap; }
.art-reveal-total small { margin-left: 4px; font-size: 14px; }
.art-reveal-nareumi, .art-reveal-dali { position: absolute; display: block; height: auto; pointer-events: none; user-select: none; z-index: 1; }
/* Both judges stand on the same floor line at every fitted stage size. */
.art-reveal-nareumi { left: .5%; bottom: 1.5%; width: 18%; }
.art-reveal-dali { right: 1%; bottom: 1.5%; width: 17%; }
.art-reveal-stage::before, .art-reveal-stage::after { content: ''; position: absolute; z-index: 0; bottom: .7%; height: 1.8%; border-radius: 50%; background: radial-gradient(ellipse, #1d0b3566 0%, #1d0b3529 42%, transparent 72%); pointer-events: none; }
.art-reveal-stage::before { left: 3%; width: 13%; }
.art-reveal-stage::after { right: 3.5%; width: 12%; }
.reveal-art #info-dialog::backdrop { background: #1d0b35b3; }
