:root {
	color-scheme: dark;
	--ink: #1f3329;
	--ink-deep: #14241c;
	--cream: #efe2a8;
	--paper: #f1e9d2;
	--paper-line: #d9cfae;
	--brass: #c9ab6a;
	--brass-deep: #8c7349;
	--rose: #b98b86;
	--muted: #a8b3a4;
	--fire: #d8632a;
	--water: #4f8aa3;
	--earth: #8d8470;
	--air: #8ea66d;
	--metal: #8a97a8;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100svh;
	padding: 18px 16px 96px;
	color: var(--cream);
	background:
		radial-gradient(ellipse at 50% -10%, #3a5345 0, transparent 55%),
		repeating-linear-gradient(135deg, #1b2d25 0 2px, transparent 2px 9px),
		var(--ink);
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 18px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
body.house-room { padding-bottom: 96px; }

button { -webkit-tap-highlight-color: transparent; font: inherit; }
button:focus-visible, canvas:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.glyphs-defs { position: absolute; width: 0; height: 0; }

.duel { width: min(820px, 100%); margin: 0 auto; position: relative; }
.duel-head { text-align: center; margin-bottom: 10px; }
.duel-kicker { margin: 0; font: italic 16px/1.3 'Cormorant Garamond', Georgia, serif; color: var(--muted); letter-spacing: .4px; }
.duel-head h1 { margin: 2px 0 6px; font: 400 44px/1 Federo, Georgia, serif; letter-spacing: 3px; color: var(--brass); text-transform: uppercase; }
.duel-lede { margin: 0 auto; max-width: 560px; color: var(--cream); font-size: 17px; }

/* One table, two scenes: the sheet while drawing, the battlefield while the
   spells meet. The cast sends the sheet away; the next round drops a fresh one in. */
.scenes { display: grid; margin-top: 14px; position: relative; }
/* The motion layer: one canvas over both scenes for trails, bursts and dust. */
.motion-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.scene { grid-area: 1 / 1; min-width: 0; }
.scene-arena { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; align-self: stretch; }
.scene-sheet { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scene { transition: opacity .45s ease, transform .45s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .45s; }
.duel[data-scene="arena"] .scene-sheet { opacity: 0; transform: translateY(-48px) scale(.7); visibility: hidden; pointer-events: none; }
.duel[data-scene="sheet"] .scene-arena { opacity: 0; transform: translateY(28px) scale(.94); visibility: hidden; pointer-events: none; }
.duel[data-scene="sheet"] .scene-sheet, .duel[data-scene="arena"] .scene-arena { opacity: 1; transform: none; visibility: visible; transition: opacity .45s ease .12s, transform .45s cubic-bezier(.4, 0, .2, 1) .12s, visibility 0s; }
.arena-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 48px; margin-top: 4px; }
.arena-actions[hidden] { display: none; }
.control-small { min-width: 0; min-height: 40px; padding: 6px 16px; font-size: 13px; }

/* Duelling a friend: a code to say out loud, a link to send. */
.online { width: min(460px, 100%); margin-top: 6px; padding: 14px 16px 16px; border: 1.5px solid var(--brass-deep); border-radius: 14px; background: #182a22; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.online[hidden] { display: none; }
.online p { margin: 0; }
.online-status { min-height: 1.4em; font-style: italic; color: var(--cream); }
.online-host { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.online-host[hidden] { display: none; }
.online-label { font-size: 16px; color: var(--muted); }
.online-code { font: 400 44px/1 Federo, Georgia, serif; letter-spacing: 10px; padding-left: 10px; color: var(--brass); }
.online-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.online-share a { color: var(--brass); }
.online-join { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.online-join label { color: var(--muted); font-style: italic; }
.online-join input { width: 96px; padding: 8px 10px; border: 1.5px solid var(--brass-deep); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 22px/1 Federo, Georgia, serif; letter-spacing: 5px; text-transform: uppercase; text-align: center; }
.duel-end-note { margin: 10px 0 0 !important; font-style: italic; color: var(--muted); font-size: 16px !important; }
.duel-end-note[hidden] { display: none; }

/* Arena: two casters and the stage between them. */
.arena { width: 100%; flex: 1; min-height: 360px; display: grid; grid-template-columns: 1fr minmax(150px, 2fr) 1fr; align-items: center; gap: 8px; margin: 0 0 6px; padding: 18px 12px 24px; border: 1.5px solid var(--brass-deep); border-radius: 36px 36px 10px 10px; background: radial-gradient(ellipse 70% 38% at 50% 100%, #3d5c4b 0, #2a4336 45%, transparent 75%), radial-gradient(ellipse 60% 30% at 50% 0%, #2e4a3c 0, transparent 70%), linear-gradient(180deg, #243b31, #182a22); box-shadow: inset 0 0 0 3px #15241c, inset 0 0 0 4px #5a4a2c80; }
.arena { position: relative; }
/* Candle light from below, breathing; a flash when the spells meet. */
.arena::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 70%; height: 55%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 100%, #e2be6e44 0, #d8632a18 40%, transparent 70%); pointer-events: none; animation: candle 2.6s ease-in-out infinite alternate; }
.arena-flash { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 50%, #fff6d6 0, #e2c98a88 30%, transparent 70%); opacity: 0; pointer-events: none; z-index: 2; }
@keyframes candle { 0% { opacity: .55; transform: translateX(-50%) scale(1); } 35% { opacity: .9; transform: translateX(-51%) scale(1.04); } 70% { opacity: .7; transform: translateX(-49%) scale(.98); } 100% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.caster { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; z-index: 1; }
.portrait { width: min(180px, 26vw); height: auto; overflow: visible; }
.portrait-figure { fill: #0f1a15; stroke: var(--brass); stroke-width: 1.4; transition: filter .6s, opacity .6s, transform .6s; }
.caster[data-side="foe"] .portrait-figure { fill: #2a1510; stroke: #d99a5a; }
/* The figure breathes while it stands, and holds one of four poses. */
.portrait-breath { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
.caster[data-side="foe"] .portrait-breath { animation-delay: -1.9s; animation-duration: 3.1s; }
.caster.is-dead .portrait-breath { animation: none; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.03); } }
.portrait-pose use { opacity: 0; transition: opacity .16s ease; }
.caster[data-pose="idle"] use[data-pose="idle"], .caster[data-pose="cast"] use[data-pose="cast"], .caster[data-pose="guard"] use[data-pose="guard"], .caster[data-pose="struck"] use[data-pose="struck"], .caster[data-pose="fallen"] use[data-pose="fallen"] { opacity: 1; }
.caster figcaption { text-align: center; line-height: 1.2; }
.caster figcaption strong { display: block; font: 400 15px/1.2 Federo, Georgia, serif; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); }
.caster-state { display: block; font-style: italic; font-size: 15px; color: var(--muted); }
.caster.is-dead .portrait-figure { opacity: .35; }
.caster.is-dead .portrait-figure { filter: grayscale(.7) brightness(.5); }
.caster[data-death="fire"] .portrait-figure { filter: sepia(1) saturate(.4) brightness(.4); }
.caster[data-death="water"] .portrait-figure { filter: hue-rotate(160deg) blur(1.5px); transform: translateY(14px); }
.caster[data-death="earth"] .portrait-figure { fill: #6d675a; stroke: #3b372f; filter: grayscale(1); opacity: .9; }
.caster[data-death="air"] .portrait-figure { opacity: .15; transform: translate(10px, -14px) rotate(8deg); }
.caster[data-death="metal"] .portrait-figure { filter: grayscale(1) contrast(1.2) brightness(.55); }
/* A wound is a scar across the figure; the last one is a death. */
.portrait-marks .wound { fill: none; stroke: var(--rose); stroke-width: 2.4; stroke-linecap: round; opacity: .95; }
.portrait-marks .wound.is-new { stroke-dasharray: 60; stroke-dashoffset: 60; animation: scar .45s ease-out forwards; }
@keyframes scar { to { stroke-dashoffset: 0; } }
.caster.is-wounded .portrait-figure { stroke: var(--rose); }
.caster.is-dead[data-death="fire"] .portrait-figure { opacity: .6; }
.portrait-marks use { transition: opacity .4s, transform .4s; }
/* What each caster took this round floats up beside them. */
.hits { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; min-height: 56px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
/* Badges sit under the caster and grow inward, over the stage, so the figure stays in view and a narrow phone never cuts them off. */
.caster[data-side="you"] .hits { align-items: flex-start; }
.caster[data-side="foe"] .hits { align-items: flex-end; }
.hits li { padding: 3px 10px; border-radius: 12px; border: 1px solid; font: 400 13px/1.3 Federo, Georgia, serif; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; background: #0f1a15ee; opacity: 0; animation: hit .6s ease-out forwards; }
.hits li[data-kind] { color: var(--el, var(--muted)); border-color: var(--el, #3a4c42); }
.hits li[data-kind="fire"] { color: #ffb37a; border-color: #d8632a; }
.hits li[data-kind="water"] { color: #b9e2ee; border-color: #4f8aa3; }
.hits li[data-kind="earth"] { color: #d9d0b8; border-color: #8d8470; }
.hits li[data-kind="air"] { color: #cfe0a8; border-color: #8ea66d; }
.hits li[data-kind="metal"] { color: #dfe6ee; border-color: #8a97a8; }
.hits li[data-kind="wound"] { color: var(--rose); border-color: var(--rose); }
.hits li[data-kind="barrier"] { color: var(--brass); border-color: var(--brass-deep); }
.portrait-barrier circle { transition: opacity .4s; }
.hits li[data-kind="none"] { color: var(--muted); border-color: #3a4c42; }
.hits li[data-kind="death"] { color: var(--rose); border-color: var(--rose); font-size: 14px; }
@keyframes hit { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.caster.is-hit .portrait-figure { animation: struck .7s ease-out; }
.caster.is-healed .portrait-figure { animation: settled .9s ease-out; }
@keyframes struck { 0% { filter: brightness(1); transform: translateX(0); } 20% { filter: brightness(2.2) saturate(1.6); transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 100% { filter: brightness(1); transform: translateX(0); } }
@keyframes settled { 0% { filter: brightness(1); } 40% { filter: brightness(1.5) hue-rotate(40deg); } 100% { filter: brightness(1); } }
.quill { display: block; height: 16px; margin-top: 2px; font: italic 13px/16px 'Cormorant Garamond', Georgia, serif; color: var(--muted); }
.quill[data-quill="scratching"]::before { content: 'the quill scratches'; animation: quill 1.1s steps(3) infinite; }
.quill[data-quill="sealed"]::before { content: 'sealed'; color: var(--brass); }
@keyframes quill { from { opacity: .4; } to { opacity: 1; } }

.stage { position: relative; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.stage-art { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.stage-name { margin: 0; min-height: 22px; font: 400 17px/1.3 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); text-align: center; }
.stage-burst { transform-origin: 0 0; }
.stage.is-animating .stage-burst { animation: burst .7s cubic-bezier(.2, 1.4, .4, 1) both, bloom 2.4s ease-in-out .7s infinite alternate; }
/* A spell in flight: the outer group is moved by script, the drawing inside
   moves the way its element does. */
.stage-bolt { will-change: transform; }
.bolt-face, .bolt-art, .bolt-spin { transform-box: fill-box; transform-origin: 50% 50%; }
.bolt-art[data-art="fire"], .bolt-art[data-art="bolt"] { animation: flicker .16s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1.02, .9); } to { transform: scale(.98, 1.08); } }
.bolt-art[data-art="water"] { animation: surge .5s ease-in-out infinite alternate; }
@keyframes surge { from { transform: translateY(-2px) scaleX(.96); } to { transform: translateY(2px) scaleX(1.04); } }
.bolt-art[data-art="earth"] .bolt-spin { animation: tumble 1.1s linear infinite; }
.bolt-art[data-art="magma"] { animation: tumble 2.2s linear infinite; }
@keyframes tumble { to { transform: rotate(360deg); } }
.bolt-art[data-art="air"] path[stroke] { stroke-dasharray: 26 8; animation: gust .45s linear infinite; }
@keyframes gust { to { stroke-dashoffset: -34; } }
.bolt-art[data-art="metal"], .bolt-art[data-art="frost"] { animation: quiver .12s ease-in-out infinite alternate; }
@keyframes quiver { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.bolt-art[data-art="vine"] { animation: lash .32s ease-in-out infinite alternate; }
@keyframes lash { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
.bolt-crackle { animation: crackle .14s steps(2) infinite; }
@keyframes crackle { from { opacity: 1; } to { opacity: .1; } }
.bolt-glow { animation: glow .6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .7; } to { opacity: 1; } }
.bolt-glint { animation: glint .5s ease-in-out infinite alternate; }
@keyframes glint { from { opacity: .2; } to { opacity: 1; } }
.stage-mirror { transform-box: fill-box; transform-origin: 50% 100%; }
.pane-glint { animation: paneGlint 2.2s ease-in-out infinite; }
@keyframes paneGlint { 0%, 60% { transform: translateY(14px); opacity: 0; } 80% { opacity: .9; } 100% { transform: translateY(-18px); opacity: 0; } }
@keyframes burst { 0% { transform: scale(.1) rotate(-20deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes bloom { from { transform: scale(1); } to { transform: scale(1.06); } }
.stage.is-animating .stage-name { animation: nameIn .5s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes nameIn { from { opacity: 0; letter-spacing: 6px; } to { opacity: 1; letter-spacing: 2px; } }

.narration { margin: 8px 0 12px; min-height: 2.8em; width: min(620px, 100%); text-align: center; font-size: 19px; }
.narration em { color: var(--brass); font-style: normal; }
.narration p { margin: 0; }
.narration .narration-reaction strong { font: 400 16px/1.3 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); margin-right: 8px; }
.narration .narration-outcomes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 4px; font-size: 17px; }
.narration .narration-outcomes span strong { color: var(--cream); font-weight: 600; }
.narration .narration-outcomes [data-kind="hit"] { color: #e59b7a; }
.narration .narration-outcomes [data-kind="heal"] { color: #9ccfa6; }
.narration .narration-outcomes [data-kind="none"] { color: var(--muted); }

/* The sheet. */
.sheet-head { width: min(420px, 100%); display: flex; align-items: center; justify-content: space-between; }
.round { margin: 0; font: 400 15px/1.2 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.timer { position: relative; width: 52px; height: 52px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track { fill: none; stroke: #3a4c42; stroke-width: 3; }
.timer-ring { fill: none; stroke: var(--brass); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 0; }
.timer.is-late .timer-ring { stroke: var(--rose); }
.timer.is-late { animation: late 1s ease-in-out infinite; }
@keyframes late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.sheet-frame.is-late::after { animation: lateGlow 1s ease-in-out infinite; }
@keyframes lateGlow { 0%, 100% { box-shadow: 0 0 10px 2px #b98b8600; } 50% { box-shadow: 0 0 22px 6px #b98b8699; } }
.timer-seconds { position: absolute; inset: 0; display: grid; place-items: center; font: 400 17px/1 Federo, Georgia, serif; color: var(--cream); }
.sheet-frame { position: relative; width: min(420px, 100%); aspect-ratio: 1; padding: 10px; border: 8px solid transparent; border-radius: 22px 22px 8px 8px; background: linear-gradient(120deg, #4a3222, #7a4f30 40%, #3e2a1d) padding-box, linear-gradient(135deg, #cba76a, #79512e 25%, #bd9453 50%, #654324 78%, #b18a4e) border-box; box-shadow: 0 16px 34px #0b140f9a, inset 0 0 0 2px #e5cfa070; --glow: 0; }
.sheet-frame::after { content: ''; position: absolute; inset: 10px; border-radius: 14px 14px 4px 4px; pointer-events: none; box-shadow: 0 0 calc(10px + 34px * var(--glow)) calc(2px + 6px * var(--glow)) rgba(226, 190, 110, calc(.85 * var(--glow))); transition: box-shadow .25s; }
.sheet-frame.is-set::after { box-shadow: 0 0 26px 6px #e2be6ecc, inset 0 0 0 2px #c9ab6a; }
.sheet-frame.is-locked { filter: saturate(.8) brightness(.92); }
#sheet { display: block; width: 100%; height: 100%; border-radius: 14px 14px 4px 4px; background: radial-gradient(ellipse at 30% 20%, #f8f1dc, var(--paper) 60%, #e6dbbd); touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.sheet-state { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 2px 12px; border-radius: 12px; background: #1f332999; color: var(--cream); font: italic 15px/1.4 'Cormorant Garamond', Georgia, serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s; }
.sheet-state.is-visible { opacity: 1; }
.controls { display: flex; gap: 12px; }
.control { min-width: 118px; min-height: 48px; padding: 8px 22px; border: 1.5px solid var(--brass); border-radius: 24px; background: #15241c; color: var(--cream); font: 400 15px/1 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background .15s, transform .15s; }
.control:hover { background: #243b31; }
.control:active { transform: translateY(1px); }
.control[disabled] { opacity: .45; cursor: default; }
.control-begin { min-width: 200px; }
.control-begin[hidden] { display: none; }
.control-cast { background: linear-gradient(135deg, #b08f4f, #d9bd7e); color: var(--ink-deep); border-color: #e2c98a; }
.control-cast:hover { background: linear-gradient(135deg, #c9a660, #e8cf95); }
.hint { margin: 2px 0 0; max-width: 460px; text-align: center; font-style: italic; color: var(--muted); font-size: 16px; }

/* The player's grimoire. */
.grimoire { margin: 26px auto 0; width: min(560px, 100%); padding: 14px 16px 16px; border: 1.5px solid var(--brass-deep); border-radius: 12px; background: #182a22; }
.grimoire h2 { margin: 0 0 4px; font: 400 17px/1.2 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.grimoire-note { margin: 0; font-style: italic; color: var(--muted); font-size: 16px; }
.grimoire-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grimoire-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #3a4c42; border-radius: 10px; background: #1f3329; }
.grimoire-list svg { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--paper); }
.grimoire-list svg path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.grimoire-list strong { display: block; font: 400 14px/1.2 Federo, Georgia, serif; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); }
.grimoire-list small { display: block; font-style: italic; color: var(--muted); }

/* Between rounds and at the end: the battlefield stays readable, nothing covers the page. */
.arena-next { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.arena-next[hidden] { display: none; }
.arena-next-note { margin: 0; min-height: 1.4em; font-style: italic; color: var(--muted); font-size: 16px; }
.duel-end { width: min(520px, 100%); margin: 8px auto 0; padding: 16px 20px 18px; text-align: center; border: 1.5px solid var(--brass); border-radius: 24px 24px 10px 10px; background: linear-gradient(180deg, #243b31, #15241c); box-shadow: 0 12px 30px #0008; }
.duel-end[hidden] { display: none; }
.duel-end h2 { margin: 0 0 6px; font: 400 24px/1.1 Federo, Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.duel-end p { margin: 0 0 12px; font-size: 18px; }
.duel-end-note { margin: 10px 0 0 !important; font-style: italic; color: var(--muted); font-size: 16px !important; }
.duel-end-note[hidden] { display: none; }

.glyphs-house-return { position: fixed; left: 16px; bottom: 16px; padding: 10px 16px; border: 1.5px solid var(--brass); border-radius: 24px; background: #15241c; color: var(--cream); text-decoration: none; font: 400 14px/1 Federo, Georgia, serif; letter-spacing: 1px; }
.glyphs-sound { position: absolute; right: 0; top: 0; padding: 8px 14px; border: 1.5px solid var(--brass-deep); border-radius: 24px; background: #15241c; color: var(--muted); cursor: pointer; font: 400 14px/1 Federo, Georgia, serif; letter-spacing: 1px; }
.glyphs-sound[aria-pressed="true"] { border-color: var(--brass); color: var(--cream); }

@media (max-width: 520px) {
	body { padding: 14px 12px 96px; font-size: 17px; }
	.duel-head h1 { font-size: 36px; }
	.arena { gap: 4px; padding: 10px 6px 6px; border-radius: 28px 28px 8px 8px; }
	.stage { min-height: 110px; }
	.narration { font-size: 17px; }
	.control { min-width: 100px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.stage-token, .portrait-figure, .portrait-marks use, .portrait-pose use, .sheet-frame::after, .scene, .duel[data-scene] .scene { transition: none; }
	.hits li { animation: none; opacity: 1; }
	.caster.is-hit .portrait-figure, .caster.is-healed .portrait-figure { animation: none; }
	.stage.is-animating .stage-burst, .stage.is-animating .stage-name, .quill[data-quill="scratching"]::before { animation: none; }
	.bolt-art, .bolt-spin, .bolt-art path, .bolt-crackle, .bolt-glow, .bolt-glint, .pane-glint { animation: none; }
	.arena::before, .portrait-breath, .timer.is-late, .sheet-frame.is-late::after, .portrait-marks .wound.is-new { animation: none; }
	.portrait-marks .wound.is-new { stroke-dasharray: none; }
	.motion-layer { display: none; }
}

/* The element wheel, shared with the grimoire and the forge. */
.wheel { width: min(360px, 100%); margin: 0 auto; }
.wheel-svg { display: block; width: 100%; height: auto; font-family: Federo, Georgia, serif; letter-spacing: .5px; text-transform: uppercase; }
.wheel-node circle { stroke: var(--brass-deep); stroke-width: 1.5; }
.wheel-node text { fill: #14241c; font-weight: 600; pointer-events: none; }
.wheel-svg.is-interactive .wheel-node { cursor: pointer; }
.wheel-svg.is-interactive .wheel-node:hover circle, .wheel-svg.is-interactive .wheel-node:focus-visible circle { stroke: var(--cream); stroke-width: 3; }
.wheel-node.is-selected circle { stroke: var(--cream); stroke-width: 4; }
.wheel-svg:focus-visible { outline: 2px solid var(--brass); }
.wheel-tag { fill: var(--ink-deep); stroke: var(--brass-deep); stroke-width: 1; }
.wheel-tag-text { fill: var(--cream); font-size: 11px; }
.elements { margin: 22px auto 0; width: min(560px, 100%); border: 1px solid #3a4c42; border-radius: 12px; background: #182a22; padding: 0 12px; }
.elements summary { cursor: pointer; padding: 8px 0; font: 400 14px/1.2 Federo, Georgia, serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass); }
.elements-note { margin: 0 0 8px; text-align: center; font-style: italic; color: var(--muted); font-size: 15px; }
.elements .wheel { margin-bottom: 12px; }
.elements-rules { margin: 0 0 14px; padding: 0 0 0 18px; font-size: 15px; line-height: 1.45; color: var(--cream); }
.elements-rules li { margin: 0 0 6px; }
.elements-rules strong { color: var(--brass); font-weight: 600; }
