/* Pantheon realms: the hub, a pantheon's entrance, layer fights, the duel
   and its victory. Values come from the Canvas realm screens (390 x 844).
   The header is anchored to the top and the player's panel to the bottom;
   the creature or the duel frame fills the space between, so short phones
   shrink the middle instead of overlapping. */

/* ---------- hub (Canvas Realms) and a pantheon entrance (Canvas Greek) ---------- */
.realms-hub { background: #352723; }
.realms-fade { top: 86.6%; height: 17.3%; background: linear-gradient(to bottom, rgba(53, 39, 35, 0), #352723); }
.realms-title { font-size: min(34px, 8.6vw); letter-spacing: 2px; }
.pantheon-grid { position: absolute; left: 16px; right: 16px; bottom: calc(158px + var(--safe-bottom)); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pantheon-grid .realm-btn { flex: 0 0 calc(50% - 5px); height: 46px; }
.realm-btn {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; text-decoration: none;
  border: 1px solid rgba(243, 220, 160, .55); border-radius: 14px; background: rgba(10, 14, 36, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: 1.5px; color: var(--cream); text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.realm-btn:hover { box-shadow: 0 0 18px rgba(255, 224, 138, .55); border-color: var(--gold); transform: translateY(-1px); }
.pantheon { background: #1a1420; }
.pantheon-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 360px; background: linear-gradient(to bottom, rgba(10, 6, 20, 0), rgba(10, 6, 20, .5)); }
.location-list { position: absolute; top: calc(230px + var(--safe-top)); left: 40px; right: 40px; display: flex; flex-direction: column; gap: 12px; }
.location-list .realm-btn { min-height: 56px; }

/* Poseidon fades in over the Greek entrance (Canvas StoryPoseidonEntry). */
.deity-appears { position: absolute; left: 50%; top: calc(70px + var(--safe-top)); width: min(360px, 92%); height: min(420px, calc(100% - 420px)); transform: translateX(-50%); z-index: 25; pointer-events: none; animation: fadeIn 1.4s ease both; }
.deity-appears img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.deity-glow { position: absolute; inset: 10% 5% 0; background: radial-gradient(ellipse at 50% 55%, rgba(60, 170, 190, .45), rgba(60, 170, 190, 0) 68%); }

/* ---------- shared realm pieces ---------- */
.realm-layer, .realm-duel { background: #0b0a1c; color: var(--body-text); }
.realm-scene { position: absolute; left: 0; right: 0; top: 0; height: 85.4%; background: center top / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.realm-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 7, 22, .8) 0%, rgba(8, 7, 22, .62) 22%, rgba(8, 7, 22, 0) 31%, rgba(8, 7, 22, 0) 58%, rgba(8, 7, 22, .9) 74%); }
.realm-top { position: absolute; top: calc(10px + var(--safe-top)); left: 14px; right: 14px; z-index: 6; }
.realm-head { text-align: center; font-family: var(--f-display); color: var(--label); }
.rh-pantheon { font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .34em; text-shadow: 0 1px 5px rgba(0, 0, 0, .9); }
.rh-location { font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: .14em; color: var(--gold-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, .95); }
.rh-line { font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: .2em; margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.rh-name { font-weight: 700; font-size: 21px; line-height: 26px; color: var(--gold-soft); margin-bottom: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.rh-line:empty, .rh-name:empty { visibility: hidden; }
.rh-name.rh-name-long { font-size: 18px; }

/* Layer and fight tracker (Canvas "Cape Sounion — In a Fight copy"). */
.layer-tracker { display: flex; align-items: center; justify-content: center; gap: 13px; width: max-content; margin: 4px auto 7px; padding: 4px 14px 6px; border-radius: 9px; background: rgba(8, 7, 22, .6); border: 1px solid rgba(201, 161, 90, .45); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lt-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lt-label { font-weight: 600; font-size: 9px; line-height: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--label); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.lt-flip { perspective: 170px; }
.lt-tile { position: relative; min-width: 41px; height: 39px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid rgba(236, 205, 142, .75); background: linear-gradient(to bottom, #231d44 0%, #231d44 49%, #0e0b22 51%, #0e0b22 100%); font-weight: 700; font-size: 28px; line-height: 1; color: var(--gold-soft); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.lt-split { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0, 0, 0, .75); }
.lt-rule { width: 1px; height: 39px; margin-top: 12px; background: rgba(201, 161, 90, .4); }
.lt-pips { display: flex; align-items: center; gap: 7px; height: 39px; }
.lt-pip { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--gold-soft); }
.lt-off { background: rgba(8, 7, 22, .6); }
.lt-done { background: #9a7f45; border-color: #9a7f45; }
.lt-cur { background: radial-gradient(circle at 35% 30%, #fff4cf, #eccd8e 55%, #c9a15a); box-shadow: 0 0 10px rgba(255, 222, 150, .9); }
@keyframes ltPop { 0% { transform: scale(.6); box-shadow: 0 0 0 rgba(255, 222, 150, 0); } 55% { transform: scale(1.5); box-shadow: 0 0 22px 6px rgba(255, 235, 170, 1); } 100% { transform: scale(1); } }
.lt-pop { animation: ltPop .4s ease-out; }
@keyframes ltFlip { 0% { transform: rotateX(-90deg); opacity: .3; } 60% { transform: rotateX(12deg); opacity: 1; } 100% { transform: rotateX(0); } }
.lt-flipping { animation: ltFlip .5s ease-out; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Popups: damage, bites and tolls float up and fade. */
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, 4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
.pop { position: absolute; left: 50%; top: 0; z-index: 12; pointer-events: none; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 0 3px #000, 0 1px 4px #000; animation: popUp 1s ease-out forwards; white-space: nowrap; }
.pop-hit { color: #ff8a7a; top: 30%; }
.pop-loss { color: #ffc6bf; }
.pop-toll { color: var(--gold); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-4px) rotate(-3deg); } 40% { transform: translateX(4px) rotate(3deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.shake { animation: shake .4s ease; }

/* Timer bars: striped so they can't be mistaken for resource bars (duels.md 10.2). */
@keyframes stripes { from { background-position: 0 0; } to { background-position: 26px 0; } }
.tbar { position: relative; height: 18px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 7, 22, .65); }
.tbar-fill { height: 100%; width: 0; background-color: var(--sc); background-image: linear-gradient(-45deg, rgba(255, 255, 255, .55) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .55) 75%, transparent 75%, transparent); background-size: 26px 26px; animation: stripes 1s linear infinite; will-change: width; }

/* ---------- layer fights (Canvas CapeIdle / CapeFight) ---------- */
.rbar-hp { position: relative; height: 26px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(224, 86, 74, .6); background: rgba(40, 10, 16, .7); }
.rbar-hp-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #b5352b; transition: width .2s ease; }
.rbar-cross { position: absolute; left: 5px; top: 1px; width: 22px; height: 22px; }
.rbar-cross svg { display: block; width: 100%; height: 100%; }
.realm-chips { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.chip-label { font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--body-text); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.realm-bottom .chip-label { margin-bottom: 4px; }
.chips { display: flex; gap: 6px; }
.chip { display: flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 14px; border: 1px solid rgba(201, 161, 90, .5); background: rgba(13, 11, 31, .75); font-family: var(--f-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #d8cba8; }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip-val { color: var(--body-text); }

.realm-middle { position: absolute; left: 0; right: 0; top: calc(244px + var(--safe-top)); bottom: calc(222px + var(--safe-bottom)); z-index: 5; }
.realm-creature { position: absolute; right: 0; bottom: 0; width: 62.6%; height: min(268px, 100%); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; transition: opacity .4s ease; }
.realm-creature .bob { width: 100%; height: 100%; }
.realm-creature.fallen { opacity: .25; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -8px; rotate: 1deg; } }
.bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.realm-creature-img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.realm-creature-img.hit { animation: hitFlash .35s ease-out; }
.realm-vials { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 8px 6px 6px; border-radius: 12px; background: rgba(8, 7, 22, .5); border: 1px solid rgba(201, 161, 90, .35); }
.realm-vials .vial { position: relative; width: 52px; }
.realm-vials .vial-glass { width: 40px; height: 48px; }
.realm-vials .vial-icon { width: 20px; height: 20px; }
.realm-vials .vial-count { font-size: 12px; color: var(--body-text); }
.engage-btn {
  position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 10; min-height: 48px; padding: 0 22px; border-radius: 8px;
  border: 1px solid var(--gold-soft); background: rgba(20, 16, 40, .88); color: var(--gold-soft); cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .06em;
  box-shadow: 0 0 14px rgba(236, 205, 142, .35);
}
.engage-btn:hover { background: rgba(40, 30, 70, .92); box-shadow: 0 0 20px rgba(255, 224, 138, .6); }
.engage-cost { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--body-text); }
.engage-cost img { flex: none; width: 18px; height: 22px; object-fit: contain; } /* not squashed (Steve, 2026-10-23) */

.realm-bottom { position: absolute; left: 14px; right: 14px; bottom: calc(88px + var(--safe-bottom)); z-index: 6; }
.rbar-energy { position: relative; height: 26px; margin-top: 12px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 226, 160, .85); background: rgba(8, 7, 22, .65); box-shadow: 0 0 12px rgba(236, 205, 142, .5); }
.rbar-energy .en-fill { position: absolute; left: 0; top: 0; bottom: 0; }
.spell-row { display: flex; align-items: center; width: 100%; min-height: 48px; margin-top: 10px; padding: 0 12px; gap: 10px; border: 1px solid rgba(201, 161, 90, .6); border-radius: 6px; background: rgba(13, 11, 31, .7); }
.spell-row img { width: 30px; height: 30px; }
.spell-row-name { flex: 1; font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--body-text); }
.spell-row-meta { font-family: var(--f-display); font-size: 12px; letter-spacing: .06em; color: #bfb08a; text-align: right; line-height: 1.3; }

/* Cast out, in the realm (Canvas CapeCastOut). */
.castout-modal p { margin: 10px 0; }
.castout-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 4px 0 6px; font-family: var(--f-display); font-size: 13px; color: var(--parchment); }
.castout-stats span { display: flex; align-items: center; gap: 6px; }
.castout-stats img { width: 15px; height: 15px; }
.castout-modal .btn { margin-top: 10px; min-height: 46px; border-radius: 7px; }
.found-modal { text-align: center; }
.found-modal h2 { margin: 6px 0 4px; }
.found-img { display: block; width: 132px; height: 132px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255, 214, 160, .45)); }
.found-modal .btn { margin-top: 12px; min-height: 46px; border-radius: 7px; }
.castout-primary { border-color: #c9a15a; background: rgba(201, 161, 90, .14); color: var(--gold-soft); }
.castout-secondary { border-color: rgba(201, 161, 90, .3); background: transparent; color: #cdbf98; }

/* ---------- the duel (Canvas DuelFight, PreDuelPoseidon) ---------- */
/* The frame is square and as large as the space allows (container units). */
.duel-stack { position: absolute; left: 0; right: 0; top: calc(132px + var(--safe-top)); bottom: calc(90px + var(--safe-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; container-type: size; }
.duel-frame { position: relative; flex: none; width: min(100cqw, calc(100cqh - 216px)); aspect-ratio: 1 / 1; border-radius: 3%; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); container-type: inline-size; font-family: var(--f-numbers); }
.duel-live .duel-frame { width: min(100cqw, 100cqh - 50px); }
.duel-frame-art { position: absolute; inset: 0; border-radius: 3%; background: #0a0a12 center / 100% 100% no-repeat; }
.duel-frame > * { position: absolute; }
.duel-deity { border-radius: 3.2%; overflow: hidden; }
.duel-deity-inner { position: absolute; left: 4.5%; width: 91%; bottom: 1.5%; height: 95%; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.01); } }
.breathe { animation: breathe 4s ease-in-out infinite; }
.duel-deity-img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.duel-deity-img.hit { animation: hitFlash .35s ease-out; }
.dbar { border-radius: 1.2cqw; }
.dbar-track { position: absolute; inset: 0; border-radius: inherit; background: #16140f; overflow: hidden; box-shadow: inset 0 0 0 1.75px rgba(0, 0, 0, .47), 0 0 0 1px #a8742f; }
.dbar-ghost, .dbar-hp-fill, .dbar-en-fill { position: absolute; left: 0; top: 0; bottom: 0; }
.dbar-ghost { background: rgba(255, 255, 255, .53); transition: width .5s ease; }
.dbar-hp-fill { background: linear-gradient(#e0584b, #c0392b); }
.dbar-energy .dbar-track { background: rgba(236, 205, 142, .16); box-shadow: inset 0 0 0 1.75px rgba(0, 0, 0, .47), 0 0 0 1.2px rgba(255, 226, 160, .85), 0 0 12px rgba(236, 205, 142, .55); }
.dbar-en-fill { background: linear-gradient(to bottom, #fff1b8 0%, #f7d067 16%, #e0aa3a 46%, #b87c1c 80%, #8a5a10 100%); }
.dbar-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4em; color: #fff; font-weight: 800; font-size: 2.8cqw; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); font-variant-numeric: tabular-nums; }
.dbar-timer .dbar-text { font-size: 2.3cqw; }
.dbar-cross { width: 1.1em; height: 1.1em; }
.dbar-cross svg { display: block; width: 100%; height: 100%; }
.dbar-timer .tbar { position: absolute; inset: 0; height: auto; border-radius: inherit; border: 0; background: #16140f; box-shadow: inset 0 0 0 1.75px rgba(0, 0, 0, .47), 0 0 0 1px #a8742f; }
.dbar-timer .tbar-fill { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0 6px, transparent 6px 12px); background-size: 17px 17px; animation-name: stripes17; }
@keyframes stripes17 { from { background-position: 0 0; } to { background-position: 17px 0; } }
.tbar-deity { --sc: #9aa3ad; }
.duel-gem { border-radius: 50%; box-shadow: 0 0 0 1.4px #b07a35, 0 2px 0 1.4px rgba(0, 0, 0, .53); }
.duel-gem img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.gem-fire { background: #d8452f; }
.gem-earth { background: #3f9a3a; }
.duel-zap { z-index: 3; border-radius: 50%; background: linear-gradient(160deg, #7b45e0, #3a1490 70%, #24095f); box-shadow: 0 0 0 1cqw #fff, 0 0 0 1.8cqw #a76bff, 0 0 7cqw 3cqw #a76bff; }
.duel-zap img { width: 100%; height: 100%; display: block; border-radius: 50%; }
@keyframes activePulse { from { opacity: .3; } to { opacity: 1; } }
.zap-halo { position: absolute; inset: -16%; border-radius: 50%; pointer-events: none; box-shadow: 0 0 6cqw 2.3cqw #a76bff; animation: activePulse .75s ease-in-out infinite alternate; }
.duel-pops { inset: 0; pointer-events: none; z-index: 8; }
.pop-at-hp { top: 1%; }
.pop-spell { left: 6%; top: 42%; font-size: 15px; color: #d9c2ff; transform: none; }
.duel-gem .pop { top: -40%; }
@keyframes strikeShow { 0% { opacity: 0; transform: translateY(4px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.strike-name { position: absolute; top: 13%; left: 0; right: 0; z-index: 8; text-align: center; pointer-events: none; opacity: 0; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: #ffd9a8; text-shadow: 0 0 6px #000, 0 1px 3px #000; }
.strike-name.show { animation: strikeShow 1.4s ease forwards; }

/* The Guide points at parts of the duel screen (Canvas StoryDuelTutorial). */
@keyframes pointGlow { 0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 12px 4px rgba(255, 224, 138, .7); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 22px 8px rgba(255, 224, 138, .95); } }
.pointed { z-index: 9; outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; animation: pointGlow 1.2s ease-in-out infinite; }
.duel-gem.pointed { border-radius: 50%; }
.reduce-motion .pointed { box-shadow: 0 0 0 3px #fff, 0 0 18px 6px rgba(255, 224, 138, .9); }
/* Dialogue over the duel sits in the space below the frame; the Temple button hides meanwhile. */
.duel-talk .navwrap { display: none; }
.duel-talk .convo { bottom: calc(14px + var(--safe-bottom)); }
/* Zap stays unlit until the duel begins. */
.duel-idle .duel-zap { box-shadow: 0 0 0 1.4px #b07a35, 0 2px 0 1.4px rgba(0, 0, 0, .53); filter: brightness(.78) saturate(.85); }
.duel-idle .zap-halo { display: none; }

/* Before the duel (Canvas PreDuelPoseidon). */
.req-panel { flex: none; width: calc(100% - 32px); padding: 8px 10px; border: 1px solid rgba(243, 220, 160, .45); border-radius: 16px; background: rgba(10, 14, 36, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-family: var(--f-display); text-align: center; }
.req-title { font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); line-height: 18px; }
.req-energy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 6px; font-weight: 600; font-size: 15px; color: var(--body-text); }
.req-energy img { width: 22px; height: 22px; }
.req-energy .req-have { margin-left: 2px; }
.req-num { font-weight: 700; color: var(--cream); }
.req-banks { display: flex; justify-content: space-around; }
.req-bank { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 80px; }
.req-bank img { width: 22px; height: 22px; }
.req-need { font-weight: 700; font-size: 15px; color: var(--cream); }
.req-have { font-family: var(--f-body); font-style: italic; font-size: 13px; color: var(--muted); }
.short { color: #ff7f6e !important; }
.req-waived { display: none; margin: 4px 0 2px; font-family: var(--f-body); font-style: italic; font-size: 15px; color: var(--parchment); }
.req-panel.waived .req-energy, .req-panel.waived .req-banks { display: none; }
.req-panel.waived .req-waived { display: block; }
.duel-btn { flex: none; width: 300px; max-width: calc(100% - 32px); height: 46px; border-radius: 12px; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .08em; border: 1px solid var(--gold-soft); background: linear-gradient(to bottom, #f6e6b0, #c9a24a); color: #3a2208; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.duel-btn[aria-disabled="false"]:hover { box-shadow: 0 0 18px rgba(255, 224, 138, .6); }
.duel-btn[aria-disabled="true"] { border-color: rgba(160, 160, 175, .45); background: rgba(70, 70, 84, .78); color: #9d9dab; cursor: not-allowed; box-shadow: none; }
.duel-done { position: static; width: calc(100% - 32px); }

/* Victory (Canvas DuelVictory). */
.prize-card { align-self: center; width: auto; max-width: 100%; display: flex; align-items: center; gap: 16px; padding-right: 22px; cursor: default; border-width: 2px; border-color: var(--gold-soft); box-shadow: 0 0 26px rgba(236, 205, 142, .55), 0 8px 24px rgba(0, 0, 0, .5); animation: pageIn .6s ease both; }
.prize-card > div { text-align: center; } /* the value centred under its label (Steve, 2026-10-22) */
.prize-card img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.prize-label { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--label); }
.prize-value { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.15; color: var(--cream); text-shadow: 0 0 14px rgba(236, 205, 142, .7); }

/* Home: the one-tap way back after "Refill at the Temple and return". */
.return-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(116px + var(--safe-bottom)); z-index: 6; padding: 10px 18px; border: 1px solid var(--gold-soft); border-radius: 12px; background: rgba(20, 16, 40, .88); color: var(--gold); text-decoration: none; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 15px; box-shadow: 0 0 16px rgba(255, 214, 120, .45); }

/* The spell picker (Canvas SpellMenu): the current-spell row opens a menu above it. */
.spell-picker { position: relative; }
.spell-pick { position: relative; z-index: 25; cursor: pointer; font: inherit; text-align: left; color: var(--body-text); }
.spell-pick.single { cursor: default; }
.spell-pick.single .spell-chev { display: none; }
.spell-chev { width: 18px; height: 18px; color: var(--label); flex: none; }
.spell-chev svg { width: 100%; height: 100%; display: block; }
.spell-shade { position: fixed; inset: 0; z-index: 24; background: rgba(6, 5, 16, .55); }
.spell-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 25; padding: 8px 10px; border: 1px solid rgba(243, 220, 160, .65); border-radius: 14px; background: rgba(10, 14, 36, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 6px; }
.spell-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--body-text); cursor: pointer; font: inherit; text-align: left; }
.spell-item:hover { background: rgba(236, 205, 142, .1); }
.spell-item.current { border-color: rgba(236, 205, 142, .6); background: rgba(236, 205, 142, .12); }
.spell-item:disabled { opacity: .45; cursor: not-allowed; }
.spell-icon { width: 34px; height: 34px; flex: none; }
.spell-item-name { flex: 1; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--cream); }
.spell-costs { display: flex; gap: 12px; }
.spell-cost { display: flex; align-items: center; gap: 4px; font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.spell-cost img { width: 18px; height: 18px; }
.realm-bottom { z-index: 26; }

/* A dropped offering's name floats up from the creature. */
.pop-drop { top: 20%; color: var(--gold); font-size: 22px; animation-duration: 1.8s; }
/* Paphos for now (built in Phase 7). */
.later-wrap { top: calc(200px + var(--safe-top)); }

/* The Arena before Engage: the creature is a dark, blurred shape with no HP showing (Steve, 2026-10-22). */
.arena-veiled .realm-creature-img { visibility: hidden; } /* no shape at all: a silhouette gave the creature away */
.arena-veiled .rbar-hp { visibility: hidden; }

/* The spell row's costs as icons (Energy, and the element's essence). */
.meta-costs { display: inline-flex; gap: 8px; }
.meta-costs .spell-cost { font-size: 12px; font-weight: inherit; gap: 3px; }
.meta-costs .spell-cost img { width: 15px; height: 15px; }

/* Phase 5: attacking deities (duels.md 6, 10; Canvas TlalocFight / TlalocCharging / TlalocEnraged). */
.duel-charge-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transform: scale(.55); background: radial-gradient(circle at 50% 50%, #c9a24a 0, #c9a24a 40%, rgba(201, 162, 74, 0) 70%); transition: opacity .3s ease; }
.charging .duel-charge-glow { opacity: .9; animation: chargeBuild 3s ease-in forwards; }
@keyframes chargeBuild { from { transform: scale(.55); } to { transform: scale(1.05); } }
.charging .tbar-deity { --sc: #c9a24a; }
.duel-tell { position: absolute; left: 6%; right: 6%; top: 12%; z-index: 6; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(13px, 4.2cqw, 16.4px); color: #fff; text-shadow: 0 0 6px #000, 0 2px 4px #000; pointer-events: none; }
.duel-tell:empty { display: none; }
@keyframes chargeFlash { 0% { box-shadow: inset 0 0 0 999px rgba(255, 236, 170, .8); } 100% { box-shadow: inset 0 0 0 999px rgba(255, 236, 170, 0); } }
.charge-landed::after { content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; animation: chargeFlash .7s ease-out forwards; }
.enraged .breathe { animation-duration: 2.9s; }
.duel-zap.spell-off { box-shadow: 0 0 0 1.4px #b07a35, 0 2px 0 1.4px rgba(0, 0, 0, .53); filter: brightness(.78) saturate(.85); }
.duel-zap.spell-off .zap-halo { display: none; }
.duel-gem[role="button"], .duel-zap[role="button"] { cursor: pointer; }
.duel-gem.gem-active { box-shadow: 0 0 0 1cqw #fff, 0 0 0 1.8cqw #5ab8ff, 0 0 7cqw 3cqw #5ab8ff; }
.duel-gem.gem-short { filter: grayscale(.9) brightness(.7); }
.req-practice { margin: 8px 0 0; font-size: 14px; color: #ffd89a; text-align: center; }

/* Rows 56-57: the Guide in the arena for the practice duel (Canvas StoryTlalocTutorial). */
.practice-guide { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(201, 162, 74, .55), rgba(201, 162, 74, 0) 62%); }
.practice-guide .guide-head { position: absolute; left: 50%; top: 14%; width: 22%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff 0, rgba(170, 210, 255, .95) 38%, rgba(170, 210, 255, 0) 72%); animation: guidePulse 2.6s ease-in-out infinite; }
.practice-guide .guide-body { position: absolute; left: 50%; top: 30%; width: 44%; height: 62%; transform: translateX(-50%); border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .9), rgba(150, 200, 255, .55) 45%, rgba(150, 200, 255, 0) 78%); }
@keyframes guidePulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.duel-frame .duel-deity { z-index: 2; } /* in front of the charge glow */
/* Creatures whose art faces right are mirrored to face the player (data/realms.js `flip`). */
.realm-creature .bob.flip { scale: -1 1; }
/* Tlaloc's enraged line, below the frame; it fades on its own (Steve, 2026-10-22). */
.enrage-pop { position: absolute; left: 16px; right: 16px; bottom: calc(150px + var(--safe-bottom)); z-index: 30; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255, 90, 60, .7); background: rgba(24, 8, 10, .92); box-shadow: 0 0 22px rgba(255, 70, 40, .35); animation: fadeIn .35s ease both; transition: opacity .7s ease; pointer-events: none; }
.enrage-pop.gone { opacity: 0; }
.enrage-pop .dlg-speaker { color: #ff9b7a; text-transform: uppercase; }
.enrage-text { margin-top: 4px; font-family: var(--f-body); font-size: 20px; color: #fff2e6; }

/* Experiment (Steve, 2026-10-22; Tlaloc only): attack text below the frame. */
.duel-feed { flex: 1; width: calc(100% - 32px); min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.feed-enraged { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .3em; color: #ff3b2a; text-shadow: 0 0 10px rgba(255, 40, 20, .75), 0 1px 3px #000; animation: enragedPulse 1.3s ease-in-out infinite alternate; }
@keyframes enragedPulse { from { opacity: .75; } to { opacity: 1; } }
.duel-feed .duel-tell { position: static; font-size: 17px; color: #ffe2a0; }
.feed-slot { display: grid; place-items: center; width: 100%; }
.feed-attack { min-height: 46px; } /* room for a two-line charge warning */
.feed-slot > * { grid-area: 1 / 1; }
.duel-feed .strike-name { position: static; z-index: 2; font-size: 26px; color: #ffe0b8; }
.duel-feed .strike-name.charged { font-size: 34px; color: #ffd36b; text-shadow: 0 0 14px rgba(255, 190, 60, .9), 0 0 4px #000, 0 2px 4px #000; }
@keyframes strikeImpact {
  0% { opacity: 0; transform: scale(1.9); }
  10% { opacity: 1; transform: scale(.9); }
  18% { transform: scale(1.06) translateX(-3px); }
  26% { transform: scale(1) translateX(3px); }
  32% { transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.duel-feed .strike-name.impact { animation: strikeImpact 1.3s cubic-bezier(.2, .9, .3, 1) forwards; }
.duel-feed .strike-name.charged.impact { animation-duration: 1.7s; }
.duel-talk .duel-feed { visibility: hidden; }
.feed-enraged.off { visibility: hidden; }
.duel-gem.gem-air.gem-active { box-shadow: 0 0 0 1cqw #fff, 0 0 0 1.8cqw #e2bf2f, 0 0 7cqw 3cqw #e2bf2f; }

/* Phase 7: Mana and Block (the Poseidon full-kit mockup, demos/poseidon-duel-mockup-v6.html;
   its glyph, colours and price tag are placeholders, Steve 2026-10-22). */
.duel-gem.gem-fire.gem-active { box-shadow: 0 0 0 1cqw #fff, 0 0 0 1.8cqw #d8452f, 0 0 7cqw 3cqw #d8452f; }
.duel-mana { position: absolute; z-index: 3; }
.mana-well { position: absolute; inset: 0; border-radius: 1.2cqw; overflow: hidden; background: rgba(20, 12, 30, .85); box-shadow: inset 0 0 0 .45cqw #0007, 0 0 0 .25cqw #a8742f; }
.mana-ghost { position: absolute; inset: auto 0 0 0; background: #fffa; transition: height .6s .25s; }
.mana-fill { position: absolute; inset: auto 0 0 0; transition: height .2s; background: linear-gradient(90deg, #4a0f6b, #a631c4 35%, #e48cff 55%, #8a2aa6); }
.mana-fill::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 5px 6px, #fff 0, #fff .6px, transparent 1.5px), radial-gradient(circle at 12px 18px, #ffd9ff 0, #ffd9ff .5px, transparent 1.3px); background-size: 16px 26px; animation: glitterRise 3.4s linear infinite; }
@keyframes glitterRise { to { background-position: 0 -26px; } }
.mana-num { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6%); background: rgba(20, 12, 30, .9); color: #f1c7ff; font-weight: 800; font-size: 2.8cqw; padding: 0 .4em; border-radius: 5px; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.duel-move { position: absolute; z-index: 4; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: radial-gradient(circle at 35% 30%, #fff5, #0000 60%), #3f9a3a; box-shadow: 0 0 0 1.4px #b07a35, 0 2px 0 1.4px rgba(0, 0, 0, .53); --glow: #3f9a3a; }
.move-glyph { position: absolute; inset: 22%; }
.move-glyph svg { width: 100%; height: 100%; display: block; }
.move-ring { position: absolute; inset: -10%; border-radius: 50%; pointer-events: none; background: conic-gradient(#b8f5a8 calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.move-cost { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -30%); display: inline-flex; align-items: center; gap: .15em; padding: .05em .6em .05em .35em; border-radius: 999px; font-weight: 800; font-size: 3.1cqw; line-height: 1.35; color: #fff; white-space: nowrap; background: linear-gradient(90deg, #5a1277, #a631c4 60%, #c05ae0); border: .3cqw solid #e9b6ff; box-shadow: 0 .3cqw .6cqw #0009; text-shadow: 0 1px 2px #000a; }
.move-cost::before { content: ''; width: 1.05em; height: 1.05em; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L21 9 L12 23 L3 9 Z' fill='%23f3d9ff' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M3 9 H21 M8 9 L12 1 L16 9 L12 23 Z' fill='none' stroke='%23b43cc9' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes movePulse { to { filter: brightness(1.25); } }
.duel-move.move-on { box-shadow: 0 0 0 .7cqw var(--glow), 0 0 4cqw 2cqw var(--glow); animation: movePulse .6s ease-in-out infinite alternate; }
.duel-move.move-off { filter: grayscale(1) brightness(.75); opacity: .6; cursor: default; }
.duel-move:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pop-saved { color: #b8f5a8; font-weight: 800; }
@keyframes moveSaved { 0% { box-shadow: inset 0 0 0 999px rgba(120, 230, 110, .45); } 100% { box-shadow: inset 0 0 0 999px rgba(120, 230, 110, 0); } }
.move-saved::after { content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; animation: moveSaved .6s ease-out forwards; }
.duel-idle .duel-move { filter: grayscale(1) brightness(.75); opacity: .6; }

/* Toll and Eats pills tinted by their element: a deep shade of it fading into the dark,
   so light icons (Air) and dark ones (Earth) both read (Steve, 2026-10-23). */
.chip { --chip: 74, 64, 100; background: linear-gradient(100deg, rgba(var(--chip), .95), rgba(var(--chip), .55) 55%, rgba(13, 11, 31, .85)); border-color: rgba(var(--chip-edge, 236, 205, 142), .85); color: #f3e7cf; font-weight: 600; }
.chip img { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); } /* the vials' white outline (Canvas CapeIdle) */
.chip-val { color: #fff6e0; font-weight: 700; }
.chip[data-el="fire"] { --chip: 120, 30, 18; --chip-edge: 255, 140, 110; }
.chip[data-el="earth"] { --chip: 28, 74, 30; --chip-edge: 150, 220, 140; }
.chip[data-el="water"] { --chip: 20, 48, 110; --chip-edge: 140, 190, 255; }
.chip[data-el="air"] { --chip: 92, 70, 12; --chip-edge: 255, 228, 140; }
/* Row 90: Dodge, on the left rail under Air (full-kit mockup; placeholder glyph and colour). */
.duel-move.move-dodge { background: radial-gradient(circle at 35% 30%, #fff5, #0000 60%), #e2bf2f; --glow: #e2bf2f; }
.move-dodge .move-ring { background: conic-gradient(#fff2a8 calc(var(--p, 0) * 1turn), transparent 0); }
.pop-saved.dodged { color: #ffe680; }
.req-research .req-book { display: block; width: 28px; height: 28px; margin: 0 auto; }
.req-research .req-book svg { width: 100%; height: 100%; display: block; }
.req-research .req-need { font-size: 15px; }
/* "BLOCKED!" stamped across a countered attack's name, tilting left or right each time. */
.feed-stamp { z-index: 3; opacity: 0; pointer-events: none; padding: 2px 14px; border: 3px solid #8fe07f; border-radius: 8px; background: rgba(8, 26, 10, .45); font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: .08em; color: #b8f5a8; text-shadow: 0 0 10px rgba(80, 220, 90, .8), 0 2px 3px #000; box-shadow: 0 0 16px rgba(80, 220, 90, .45); --tilt: -12deg; }
.feed-slot.countered .strike-name { filter: brightness(.55) saturate(.6); }
.feed-stamp.tilt-r { --tilt: 12deg; }
.feed-stamp.dodged { color: #ffe680; border-color: #f0cf4a; background: rgba(32, 26, 6, .45); text-shadow: 0 0 10px rgba(255, 210, 60, .8), 0 2px 3px #000; box-shadow: 0 0 16px rgba(255, 210, 60, .45); }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(var(--tilt)) scale(2.2); }
  14% { opacity: 1; transform: rotate(var(--tilt)) scale(.92); }
  22% { transform: rotate(var(--tilt)) scale(1.04); }
  30% { transform: rotate(var(--tilt)) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--tilt)) scale(1); }
}
.feed-stamp.stamped { animation: stampIn 1.5s cubic-bezier(.2, .9, .3, 1) .12s both; }
@keyframes stampFade { 0%, 100% { opacity: 0; transform: rotate(var(--tilt)); } 10%, 78% { opacity: 1; transform: rotate(var(--tilt)); } }
.reduce-motion .feed-stamp.stamped { animation-name: stampFade; }

.duel-gem.gem-earth.gem-active { box-shadow: 0 0 0 1cqw #fff, 0 0 0 1.8cqw #3f9a3a, 0 0 7cqw 3cqw #3f9a3a; }
/* Phase 9: Quicken (under Fire) and Reflect (above Water), placeholder glyphs and colours as in the full-kit mockup. */
.duel-move.move-quicken { background: radial-gradient(circle at 35% 30%, #fff5, #0000 60%), #d8452f; --glow: #ff7a4a; }
.move-quicken .move-ring { background: conic-gradient(#ffc2a8 calc(var(--p, 0) * 1turn), transparent 0); }
.duel-move.move-reflect { background: radial-gradient(circle at 35% 30%, #fff5, #0000 60%), #2f63d6; --glow: #6fb6ff; }
.move-reflect .move-ring { background: conic-gradient(#b9d0ff calc(var(--p, 0) * 1turn), transparent 0); }
.feed-stamp.reflected { color: #b9d0ff; border-color: #6fb6ff; background: rgba(8, 18, 40, .45); text-shadow: 0 0 10px rgba(110, 180, 255, .8), 0 2px 3px #000; box-shadow: 0 0 16px rgba(110, 180, 255, .45); }
/* Stunned (Reflect): the deity greys out and its attack timer greys (Canvas DuelStunned; duels.md 10.2). */
.stunned .duel-deity-img { filter: grayscale(.85); }
.stunned .tbar-deity { --sc: #6d6d6d; }
.stunned .breathe { animation-play-state: paused; }
.pop-mana { color: #f1c7ff; }
.rh-location.rh-long { font-size: clamp(14px, 4.4vw, 19px); line-height: 30px; letter-spacing: .06em; white-space: nowrap; }
/* 2026-10-26: the creature's attack is the black-beast tube, mine an element tube (Canvas RealmFight). */
.tube-creature { margin-top: 4px; }

/* ---------- duels, Canvas DuelScreen / DuelFrame (2026-10-26) ---------- */
/* The flasks sit above the Temple button; the frame and the feed take the space above them. */
.duel-stack.duel-live { bottom: calc(166px + var(--safe-bottom)); }
.duel-vials { position: absolute; left: 16px; right: 16px; bottom: calc(80px + var(--safe-bottom)); height: 80px; z-index: 6; display: flex; align-items: center; justify-content: space-around; box-sizing: border-box; border: 1px solid rgba(243, 220, 160, .45); border-radius: 16px; background: rgba(10, 14, 36, .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.duel-vials .vial { width: 60px; }
.duel-vials .vial-glass { width: 39px; height: 47px; }
.duel-vials .vial-icon { width: 21px; height: 21px; }
.duel-vials .vial-count { font-size: 12.6px; }
.duel-talk:not(.practice) .duel-vials { visibility: hidden; } /* the dialogue takes this space */
/* My cast timer: a tube without caps, centred on the bar's slot. */
.dbar-cast .tube { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.dbar-cast .dbar-text { z-index: 2; font-size: 2.3cqw; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 1px 3px #000; }
/* The hits slam in under the attack's name. */
.feed-hits { display: flex; justify-content: center; gap: 26px; min-height: 44px; margin-top: 2px; }
.feed-hits:empty { display: none; }
.feed-hit { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-weight: 700; font-size: 30px; color: #ff8a7a; text-shadow: 0 0 6px #000, 0 2px 4px #000; animation: hitSlam 3.4s cubic-bezier(.2, .9, .3, 1) .14s both; }
.feed-hit + .feed-hit { animation-delay: .26s; }
.feed-hit img, .feed-hit .mana-gem { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 1px #fff); }
.feed-hit .mana-gem { filter: drop-shadow(0 0 3px #000); }
@keyframes hitSlam { 0% { opacity: 0; transform: translateY(-70px) scale(1.8); } 9% { opacity: 1; transform: translateY(0) scale(.9); } 14% { transform: translateY(3px) scale(1.07); } 19% { transform: translateY(0) scale(1); } 80% { opacity: 1; } 94%, 100% { opacity: 0; transform: translateY(4px) scale(1); } }
.reduce-motion .feed-hit { animation: none; }
/* Mana, made explicit: the same gem as on the move costs. */
.mana-gem { display: block; background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L21 9 L12 23 L3 9 Z' fill='%23f3d9ff' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M3 9 H21 M8 9 L12 1 L16 9 L12 23 Z' fill='none' stroke='%23b43cc9' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; }
/* A Mana hit claws the gauge, which shakes; its number flares as it drops. */
.fx-slash-mana { top: 4%; }
.fx-slash-mana path { filter: drop-shadow(0 0 3px #c05ae0) drop-shadow(0 0 6px #a631c4); }
.duel-mana.fx-hurt { animation: fxHurt .28s linear; }
@keyframes numHit { 0% { scale: 1.4; color: #ff9d8f; } 100% { scale: 1; } }
.num-hit { animation: numHit .6s ease-out; }
/* The enraged line: a bubble over the deity, low in the frame. */
.enrage-pop.in-frame { left: 16%; right: auto; width: 68%; bottom: 17.5%; box-sizing: border-box; z-index: 6; padding: 8px 12px; border-radius: 14px; background: rgba(24, 8, 10, .86); text-align: center; }
.enrage-pop.in-frame .enrage-text { font-size: 16px; line-height: 1.2; margin-top: 2px; }
.enrage-pop.in-frame .dlg-speaker { text-align: center; }
/* A charge whose name runs to two lines (Conscience's Pursuit!, Club of Judgment!) pushes the feed up
   rather than being squeezed onto the hits (Steve, 2026-10-26): rows never shrink, and the spacing is
   tight enough that the name, ENRAGED and the hits all fit between the frame and the flasks. */
.duel-stack.duel-live { gap: 6px; }
.duel-feed { gap: 6px; }
.duel-feed > * { flex-shrink: 0; }
.feed-enraged { line-height: 1.1; }
.duel-feed .strike-name { line-height: 1.05; }
.feed-hits { min-height: 40px; }

/* Brace (Poseidon, Tlaloc, Hariti before Block; decisions.md, Brace): gold, in Block's place,
   grey until a charge is coming, lit while it can be tapped, brighter while it's up. */
.duel-move.move-brace { background: radial-gradient(circle at 35% 30%, #fff7, #0000 60%), linear-gradient(160deg, #f6d77e, #b8862b); --glow: #f2c14e; }
.move-brace .move-ring { background: conic-gradient(#fff1c2 calc(var(--p, 0) * 1turn), transparent 0); }
@keyframes braceReady { from { box-shadow: 0 0 0 .5cqw var(--glow), 0 0 2cqw .5cqw rgba(242, 193, 78, .55); } to { box-shadow: 0 0 0 .5cqw var(--glow), 0 0 3.2cqw 1cqw rgba(242, 193, 78, .85); } }
.duel-move.move-brace.move-ready { animation: braceReady .7s ease-in-out infinite alternate; }
.duel-move.move-brace.move-on { filter: brightness(1.3); box-shadow: 0 0 0 .8cqw #fff1c2, 0 0 5cqw 2.4cqw var(--glow); }
.move-cost.cost-energy { background: linear-gradient(90deg, #7a5410, #c99a2a 60%, #e8c25a); border-color: #ffe6a0; }
.move-cost.cost-energy::before { content: none; }
.move-cost.cost-energy img { width: 1.05em; height: 1.05em; object-fit: contain; }
.feed-stamp.braced { color: #ffe6a0; border-color: #e3b04a; background: rgba(36, 26, 6, .5); text-shadow: 0 0 10px rgba(242, 193, 78, .85), 0 2px 3px #000; box-shadow: 0 0 16px rgba(242, 193, 78, .5); }
/* An Energy hit (Poseidon's charges) claws the Energy bar, which shakes. The flasks' red glow,
   since gold vanishes on the gold bar. */
.fx-slash.fx-slash-energy { top: 50%; width: 64px; height: 44px; margin-left: -32px; margin-top: -22px; }
/* The Guide's duel tutorial points at the flasks: they stay put and the dialogue box moves up. */
.duel-talk.show-vials .duel-vials { visibility: visible; }
.duel-talk.show-vials .convo { bottom: calc(172px + var(--safe-bottom)); }
.duel-move.move-brace.pointed { filter: none; opacity: 1; border-radius: 50%; }
