/* THE THREE REALMS / CLIMATES / COMBAT — built on the tested v1.8 viewport layout */
:root{--realm-accent:#d0a869}
.mast .brand small{letter-spacing:.17em}
.phase-marker{color:#e2c991}
.road-art{position:relative}
.road-art:after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,10,19,.05),transparent 42%,rgba(0,7,9,.15));}
.road-art .landscape-scene{animation:realmBreath 11s ease-in-out infinite alternate;will-change:transform}
.road-art .road-caravan-inset{animation:caravanGentle 7.5s ease-in-out infinite;transform-origin:50% 90%}
@keyframes realmBreath{from{transform:scale(1.01) translateX(0)}to{transform:scale(1.065) translateX(-1.8%)}}
@keyframes caravanGentle{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.road-art.realm-two:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 25% 70%,rgba(30,76,117,.15),transparent 50%);animation:lanternDrift 5s ease-in-out infinite alternate}
@keyframes lanternDrift{from{opacity:.24}to{opacity:.84}}
.road-art.realm-three:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:repeating-linear-gradient(-24deg,transparent 0 55px,rgba(137,209,230,.08) 60px 66px,transparent 73px);animation:rainSlide 9s linear infinite}
@keyframes rainSlide{from{background-position:0 0}to{background-position:210px 175px}}
.realm-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.realm-ledger-card{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #93784f;background:linear-gradient(140deg,#172524,#0c1618);border-radius:8px;color:#e9d5ad}
.realm-ledger-card.current{outline:2px solid #dfbe77}.realm-ledger-card strong{font:700 1rem Georgia,serif}.realm-ledger-card span,.realm-ledger-card small{font-size:.66rem;letter-spacing:.07em;color:#d8b47a}
.realm-unlock{max-width:780px;margin:auto;padding:6px 10px 15px;color:#f0e3c9}
.realm-unlock h3{color:#eed196;font:700 clamp(1.3rem,3vw,2rem) Georgia,serif;margin:4px 0 12px}
.realm-unlock p{font:1.05rem/1.62 Georgia,serif;color:#f3e7d1}
.realm-artifact{display:flex;align-items:center;gap:12px;margin:18px 0;background:#101b1a;border:1px solid #b58c51;padding:8px 15px;border-radius:10px}
.realm-artifact img{height:68px;width:82px;object-fit:contain}.realm-artifact span{color:#e8cf91;font:700 1.14rem Georgia,serif}.realm-artifact small{display:block;font:.66rem system-ui;letter-spacing:.1em;color:#c5b5a1;margin-top:5px}
.realm-unlock .realm-guide{font-size:.91rem;color:#c3d4d1}
.road-art .location-mark{z-index:4}
.claw-arena{--metal:#ac8754}
.claw-stage{position:relative}
.claw-stage:after{content:'';position:absolute;pointer-events:none;inset:15% 0 0;background:radial-gradient(ellipse at 50% 70%,rgba(213,176,91,.12),transparent 60%);animation:arenaPulse 4s ease-in-out infinite alternate}
.claw-arena.fx-guard .claw-stage:after{background:radial-gradient(circle at 24% 58%,rgba(89,210,236,.34),transparent 55%);animation:wardGlint .7s ease-out}
.claw-arena.fx-special .claw-stage:after{background:radial-gradient(circle at 55% 52%,rgba(255,211,95,.49),transparent 65%);animation:wardGlint .8s ease-out}
.claw-arena.fx-phase .claw-stage:after{background:linear-gradient(105deg,rgba(67,218,228,.16),rgba(243,167,69,.38),rgba(72,96,133,.3));animation:wardGlint 1.3s ease-out}
.claw-arena.fx-heavy .claw-stage{animation:hitRecoil .23s ease-in-out 2}
.claw-arena.fx-quick .good-fighter{animation:attackLunge .46s ease-out}
.claw-arena.fx-dodge .good-fighter{animation:evadeLean .55s ease-out}
.claw-arena.fx-support .arena-supports{animation:wardGlint .7s ease-out}
@keyframes arenaPulse{to{opacity:.3}}@keyframes wardGlint{from{opacity:.8;filter:brightness(1.6)}to{opacity:0;filter:brightness(1)}}
@keyframes hitRecoil{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}
@keyframes attackLunge{0%,100%{transform:translateX(0)}50%{transform:translateX(14px)}}
@keyframes evadeLean{0%,100%{transform:translateX(0)}50%{transform:translateX(-17px)}}
.claw-move:focus-visible,.arena-support:focus-visible,.activity-choice:focus-visible{outline:3px solid #e8c875;outline-offset:-2px}
.arena-support img,.duel-fighter img{object-position:center center;object-fit:contain}
.road-screen .story-note p,.story-dialogue blockquote{line-height:1.45}
@media(max-width:680px){.realm-ledger{grid-template-columns:1fr}.realm-unlock{padding:4px}.realm-unlock p{font-size:.94rem}.realm-artifact img{width:60px;height:55px}.road-art .landscape-scene{animation:none}.road-art .road-caravan-inset{animation:none}}
@media(prefers-reduced-motion:reduce){.road-art .landscape-scene,.road-art .road-caravan-inset,.claw-arena *{animation:none!important;transition:none!important}}

/* Responsive choice feedback: no character-portrait movement */
.decision-list button,.activity-choice{position:relative;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,filter .18s ease}
.decision-list button:hover:not(:disabled),.activity-choice:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 17px #0008,inset 0 0 0 1px #d6ae6e;filter:brightness(1.07)}
.decision-list button:active:not(:disabled),.activity-choice:active:not(:disabled){transform:translateY(1px);filter:brightness(1.22)}
.dialog:not(.narrative-dialog) .dialog-heading{animation:chapterReveal .42s ease both}
.realm-unlock{animation:chapterReveal .6s ease both}
@keyframes chapterReveal{from{opacity:.2;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.decision-list button,.activity-choice,.realm-unlock,.dialog .dialog-heading{animation:none!important;transition:none!important}}
/* Narrow phones: fight techniques remain individually readable, no text-over-icon collisions. */
@media(max-width:650px){
 .arena-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px}
 .claw-move{min-height:57px;padding:8px 4px 4px 29px;justify-content:center}
 .claw-move .ui-icon{width:19px;height:19px;left:5px;top:20px}
 .claw-move .move-hotkey{display:none}
 .claw-move .move-label{font-size:10px;line-height:1.15;letter-spacing:0;padding-right:0;overflow-wrap:anywhere}
 .claw-move small{font-size:8px;line-height:1.1;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .duel-fighter.bad-fighter span{font-size:10px;line-height:1.05;bottom:16px;right:2px;left:3px;overflow-wrap:anywhere}
 .duel-fighter small{font-size:6px}
 .combat-mast{align-items:flex-start}
}
@media(max-width:650px){
 .claw-move{align-items:center;text-align:center;padding:5px 3px!important;min-height:65px}
 .claw-move .ui-icon{position:static!important;display:block;transform:none!important;width:20px!important;height:20px!important;margin:0 auto 2px}
 .claw-move .move-label{font-size:10px!important;line-height:1.05;text-align:center;white-space:normal}
 .claw-move small{font-size:8px!important;line-height:1.08;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .duel-fighter.bad-fighter span,.duel-fighter.bad-fighter small{display:none}
}
