/* V605 · brass, moon glass and paper. Gameplay owns the centre of the screen. */
body.playing{--ui-bg:#091e30f5;--ui-edge:#b9e6e33d;--ui-ink:#fff5db;--ui-muted:#bfd6db;}
body.playing #hud{top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));gap:16px;}
body.playing #hud .hud-block{position:relative;width:244px;max-width:244px;padding:13px 16px;border-radius:9px 22px 16px 16px;border:1px solid var(--ui-edge);border-top:2px solid var(--tint,#a5dfd2);background:linear-gradient(130deg,#1d3b49f5,var(--ui-bg));box-shadow:0 8px 22px #03111d50,inset 0 1px #ffffff0d;}
body.playing #hud .hud-block.world{width:222px;max-width:222px;background:linear-gradient(230deg,#213a50f5,var(--ui-bg));border-top-color:#e7c98e;}
body.playing #hud .hud-ident{gap:11px;margin-bottom:9px;}
body.playing #hud .hud-avatar{width:38px;height:38px;flex-basis:38px;border-radius:12px;border:1px solid var(--tint);background:radial-gradient(ellipse at bottom,#5d8c8144,#081f30);}
body.playing #hud .hud-name{font:600 20px/1.1 Fredoka,sans-serif;color:var(--ui-ink);letter-spacing:.01em;}
body.playing #hud .hud-kicker{font:600 8px Outfit,sans-serif;letter-spacing:.21em;color:#b4d4d2;}
body.playing #hud .bar-row{gap:8px;margin-top:5px;}
body.playing #hud .bar{height:17px;border:1px solid #b5d8de38;border-radius:5px;background:#041422;}
body.playing #hud .bar-fill{border-radius:3px;transition:width .2s ease-out;}
body.playing #hud .bar.hp .bar-fill{background:linear-gradient(90deg,#257c7b,#7ddfc0);}
body.playing #hud .bar.xp .bar-fill{background:linear-gradient(90deg,#96703f,#f4d28a);}
body.playing #hud .bar-text{font:700 11px/1 Outfit,sans-serif;color:#fff9e8;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #05121d,1px 0 #05121d;}
body.playing #hud .bar-lab{font-size:10px;color:#e0e7d8;}
body.playing #hud .hud-meta{font:500 11px/1.4 Outfit,sans-serif;color:var(--ui-muted);margin:8px 0 0;}
body.playing #hud .hud-block.player.hurt{border-color:#ffad98;background:linear-gradient(130deg,#522e3ff5,#201c30f5);}
body.playing #hud .hud-block.player.hurt .bar.hp .bar-fill{background:linear-gradient(90deg,#b94663,#ffb396);}
body.playing #hud #hud-world{font:500 19px/1.15 Fredoka,sans-serif;color:#ffedc8;}
body.playing #hud .journey{font:500 10px/1.4 Outfit,sans-serif;color:#c3dce0;}
body.playing #hud .form-pips{display:flex;justify-content:flex-end;gap:5px;margin-top:7px;}
body.playing #hud .form-pips b{width:12px;height:4px;border:1px solid #e9ca8150;border-radius:2px;background:#ffffff10;box-shadow:none;transform:none;}
body.playing #hud .form-pips b.on{background:#e7ca8e;}
body.playing #hud .form-pips b.active{background:#fff5d5;box-shadow:0 0 0 2px #e7ca8e22;}
body.playing #top-actions{border:1px solid #bad9de30;background:#0a2032f0;border-radius:30px;padding:4px;}
body.playing #top-actions button{min-height:36px;padding:8px 12px;color:#f6eddb;}
body.playing #top-actions button:hover{background:#b0e2dc18;}
body.playing #notification-container .game-notification{padding:13px 16px;background:linear-gradient(110deg,#142e40f5,#102535f5);border:1px solid #c5dddc3b;border-left:3px solid #ebcd91;border-radius:4px 14px 14px 4px;box-shadow:0 7px 20px #05172435;}
body.playing #notification-container .game-notification h2{font:500 16px/1.2 Fredoka,sans-serif;color:#ffe3a5;letter-spacing:0;}
body.playing #notification-container .game-notification p{font:400 13px/1.5 Outfit,sans-serif;color:#e0e9e3;}
body.playing #notification-container .game-notification.objective{background:#0d2536ed;border-left-color:#9bddc9;}
body.playing #controls-hint{border:1px solid #bbdad625;border-radius:30px;background:#071d2ddc;padding:8px 16px;color:#d0ded9;gap:12px;}
body.playing #controls-hint kbd{background:#183a48;border:1px solid #a1cec94d;border-bottom:2px solid #88b8ad66;color:#fff1cf;}
body.playing #ability-bar{gap:7px;bottom:max(16px,env(safe-area-inset-bottom));}
body.playing .ability-slot{position:relative;min-width:94px;max-width:142px;min-height:65px;padding:10px 12px;border-radius:12px;border:1px solid #c1dfe139;border-top:2px solid var(--abil,#c3dfda);background:linear-gradient(160deg,#203d4df5,#091f30f5);box-shadow:0 5px 0 #03132166;text-align:left;transition:background .15s,translate .15s;}
body.playing .ability-slot:not(.locked):hover{translate:0 -3px;background:#294c5b;}
body.playing .ability-slot .key{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#d7ece61a;border:1px solid #d5e9da55;color:#fff4cd;font:700 12px Outfit,sans-serif;margin-right:7px;}
body.playing .ability-slot .name{font:500 12px/1.3 Outfit,sans-serif;color:#f7edda;}
body.playing .ability-slot .cd{height:3px;border-radius:2px;overflow:hidden;margin-top:7px;}
body.playing .ability-slot .cd i{background:var(--abil,#9bddc9);}
body.playing .ability-slot .cd-sec{font:500 10px/1.3 Outfit,sans-serif;color:#dfd2af;min-height:13px;font-variant-numeric:tabular-nums;}
body.playing .ability-slot[data-supreme="1"]{background:linear-gradient(150deg,#493f36f5,#182e3bf5);border-color:#ebcd9177;}
#power-inspector{position:fixed;z-index:32;left:50%;bottom:110px;transform:translateX(-50%);max-width:min(460px,calc(100vw - 32px));padding:12px 17px;border:1px solid #e4c48377;border-radius:13px;background:#092033fa;color:#f8efd8;font:500 13px/1.5 Outfit,sans-serif;pointer-events:none;box-shadow:0 8px 25px #03101b66;}
#power-inspector[hidden]{display:none;}
body:not(.playing) #power-inspector,body.world1-story #power-inspector,body.relic-cinema #power-inspector{display:none;}
:is(button,summary,input):focus-visible{outline:3px solid #f2cc80;outline-offset:4px;}
body.playing #touch .touch-btn{border-radius:14px;background:linear-gradient(145deg,#284957ed,#102b3aed);border:1px solid #bfddd94f;box-shadow:0 3px 0 #041827a0;color:#fff2d6;}
body.playing #touch .touch-btn.held{background:#487d81;box-shadow:none;}
body.playing #touch .touch-btn.jump{background:linear-gradient(140deg,#467c7a,#1e4e5b);border-color:#a4d7c9;}
#field-guide{margin:28px 0 22px;border-top:1px solid #bdcab8;padding-top:24px;--chapter-color:#a5dfd2;}
#field-guide h3{font:500 28px/1.15 Fredoka,sans-serif;color:#203f47;margin:7px 0 18px;}
.fg-combat-rules{margin:18px 0;border:1px solid #a5bcae;border-radius:12px;padding:0 14px;}
.fg-combat-rules summary{cursor:pointer;min-height:44px;padding:13px 0;font:600 13px/1.5 Outfit,sans-serif;}
.fg-combat-rules summary:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.fg-combat-rules p{line-height:1.6;}
.fg-eyebrow{font:700 10px/1.3 Outfit,sans-serif;letter-spacing:.16em;}
.fg-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px;}
.fg-tabs button{min-height:40px;padding:8px 12px;border:1px solid #a5bcae;border-radius:24px;background:transparent;color:#254a4c;font:600 12px Outfit,sans-serif;cursor:pointer;}
.fg-tabs button[aria-pressed=true]{background:#214651;color:#fff0c9;border-color:#214651;}
#guide-page{border-radius:8px 22px 22px 22px;background:linear-gradient(125deg,#193746,#092235);color:#e4ece6;padding:24px;border-top:3px solid var(--chapter-color);}
#guide-page h4{font:500 30px/1.12 Fredoka,sans-serif;color:#ffe8ba;margin:10px 0 16px;}
#guide-page h5{font:600 14px Outfit,sans-serif;color:#ffe8ba;margin:20px 0 8px;}
#guide-page p{font:400 14px/1.65 Outfit,sans-serif;color:#deebe5;margin:8px 0;}
.fg-mission{border-left:2px solid var(--chapter-color);padding:4px 0 4px 15px;margin:20px 0;}
#guide-page .fg-combo{font-weight:600;color:#ffe0a5;}
#guide-page footer{font:400 12px/1.65 Outfit,sans-serif;color:#b8d4d0;border-top:1px solid #cee2da26;padding-top:16px;margin-top:20px;}
.fg-comfort{margin:20px 0;font:500 13px Outfit,sans-serif;}
.fg-comfort summary{cursor:pointer;padding:12px 0;min-height:44px;box-sizing:border-box;}
.fg-comfort>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;}
.fg-comfort label{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;}
.fg-comfort input{width:18px;height:18px;accent-color:#24525a;}
#comfort-reset{min-height:40px;border:1px solid #9ab5a4;border-radius:9px;padding:8px 12px;background:transparent;color:#214651;font:600 12px Outfit,sans-serif;}
body.comfort-controls #controls-hint{display:none!important;}
body.comfort-quiet #notification-container .game-notification{animation:none!important;transition:none!important;}
body.comfort-readable #notification-container p,body.comfort-readable #guide-page p{font-size:16px;}
body.comfort-readable #hud .hud-meta{font-size:12px;}
body.comfort-contrast.playing :is(#hud .hud-block,#top-actions,.ability-slot,#notification-container .game-notification){background:#061827;border-color:#d8e9df;color:#fff;}
/* Lettering is live type with individual optical angles, never an image. */
#ohana-intro.family-welcome .oi-welcome strong.ohana-wordmark{
  display:flex;align-items:baseline;font:800 clamp(66px,9vw,132px)/.92 Fredoka,Outfit,sans-serif;
  letter-spacing:-.03em;gap:clamp(2px,.35vw,5px);
  background:linear-gradient(180deg,#fffdf0 0%,#ffe082 40%,#ffb74d 75%,#f57c00 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 4px 14px rgba(255,160,40,0.4)) drop-shadow(0 12px 32px rgba(4,16,28,0.85));
  overflow:visible;
}
.ohana-wordmark i{font-style:normal;display:inline-block;transform:none;transition:transform .2s ease;}
.ohana-wordmark i:hover{transform:translateY(-3px);}
#ohana-intro .oi-story-chapter{font-size:0;}
#ohana-intro .oi-story-chapter::after{content:'MIENTRAS TANTO, EN OHANA…';font:600 9px Outfit,sans-serif;letter-spacing:.15em;}
@media(min-width:1001px){body.playing #top-actions{max-width:calc(100vw - 530px);}body.playing #top-actions button{padding-inline:9px;}}
@media(max-width:640px){
 body.playing #hud{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;gap:8px;}
 body.playing #hud .hud-block,body.playing #hud .hud-block.world{width:calc(50% - 4px);max-width:none;box-sizing:border-box;padding:9px 10px;border-radius:12px;}
 body.playing #hud .hud-avatar{width:28px;height:28px;flex-basis:28px;}
 body.playing #hud .hud-name,body.playing #hud #hud-world{font-size:15px;}
 body.playing #hud .hud-meta{font-size:9px;line-height:1.3;}
 body.playing #hud .form-pips{margin-top:5px;}
 body.playing #hud .bar{height:15px;}
 body.playing #hud .bar-text{font-size:10px;}
 body.playing #hud .hud-ident{margin-bottom:6px;gap:7px;}
 body.playing #top-actions{padding:2px;max-width:calc(100vw - 20px);border-radius:12px;}
 body.playing #top-actions button{padding:6px 8px;min-height:32px;font-size:10px;}
 body.playing #notification-container .game-notification{padding:10px 12px;}
 body.playing #notification-container .game-notification h2{font-size:14px;}
 body.playing #notification-container .game-notification p{font-size:12px;}
 #field-guide h3{font-size:24px;}#guide-page{padding:18px;}#guide-page h4{font-size:25px;}.fg-comfort>div{grid-template-columns:1fr;}
 #power-inspector{bottom:220px;}
 body.comfort-readable #notification-container p{font-size:14px;}
}
@media(prefers-reduced-motion:reduce){body.playing .ability-slot,body.playing #hud .bar-fill{transition:none;}body.playing .ability-slot:hover{translate:none;}}
@media(max-height:450px) and (pointer:coarse){body.playing #hud .form-pips{display:none;}body.playing #hud .hud-block{padding:6px 10px;}body.playing #hud .hud-ident{margin-bottom:3px;}body.playing #hud .hud-meta{display:none;}}
#char-select .word.ohana.ohana-wordmark{display:flex;font-family:Fredoka,sans-serif;font-weight:700;letter-spacing:-.065em;line-height:1.05;color:#fff0c7;text-shadow:0 2px 0 #aa7954,0 5px 0 #1b3a4a;}
#hud[data-health-state=danger] .bar-lab{font-weight:700;}
body.playing #hud[data-health-state=danger] .hud-kicker::after{content:' · VIDA BAJA';color:#ffd0bd;letter-spacing:.06em;}
body.playing #hud .bars-container{display:grid;gap:5px;}
body.playing #hud .bar-row{margin:0;line-height:1;}
.fg-landscape{display:block;width:100%;height:auto;aspect-ratio:640/220;border-radius:12px;margin:18px 0;border:1px solid #f3e7bd33;}
@media(max-width:640px){body.playing #hud .hud-block,body.playing #hud .hud-block.world{width:100%;}body.playing #hud .hud-meta{white-space:normal;}body.playing #hud .hud-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}
#camp-guide{display:block;width:100%;min-height:44px;margin:10px 0;padding:11px 16px;border:1px solid #d9d7b657;border-radius:12px;background:#183846;color:#fce9bf;font:500 13px Outfit,sans-serif;cursor:pointer;}
#camp-guide:hover{background:#254c55;}
body.playing .ability-slot.locked{opacity:.68!important;filter:saturate(.35);}
#help #btn-close-help{position:sticky;bottom:0;z-index:2;display:block;margin-left:auto;box-shadow:0 0 0 7px #f4efdf;}

/* V606 · the hero, two resources, one glance. Canvas art keeps its real shape. */
body.playing #hud .hud-block.player{padding:7px 12px 8px;background:linear-gradient(135deg,#284953f7,#0a2436f7 72%);border:1px solid #d4e6cc50;border-top:2px solid var(--tint,#b6e6ce);box-shadow:0 7px 20px #03172255,inset 0 1px #fff2ca14;}
body.playing #hud .hud-ident{gap:10px;margin-bottom:4px;}
body.playing #hud .hud-avatar{position:relative;width:52px;height:52px;flex:0 0 52px;overflow:visible;border-radius:15px;border:1px solid #e8d6a799;box-shadow:0 3px 0 #061b2b80,0 0 0 3px #e0dbad0c;background:#14303f;}
body.playing #hud .hud-avatar canvas{border-radius:14px;}
body.playing #hud .hud-avatar::after{content:attr(data-form);inset:auto -4px -3px auto;width:17px;height:17px;display:grid;place-items:center;background:#f1d693;border:2px solid #153242;border-radius:5px;color:#1b3944;font:700 10px/1 Outfit,sans-serif;z-index:2;}
body.playing #hud .hud-kicker{font:700 8px/1.2 Outfit,sans-serif;letter-spacing:.18em;color:#c6ded5;}
body.playing #hud .hud-name{font:600 21px/1.15 Fredoka,sans-serif;letter-spacing:.01em;text-shadow:0 2px #061c2c80;}
body.playing #hud .bars-container{gap:6px;}
body.playing #hud .bar-row{gap:6px;}
body.playing #hud .bar-lab{flex:0 0 29px;width:29px;font:700 9px/1 Outfit,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#dbede0;}
body.playing #hud .bar{height:18px;isolation:isolate;overflow:hidden;border:1px solid #bcdbcf59;border-radius:6px;background:linear-gradient(#04131f,#112f3e);box-shadow:inset 0 2px 4px #0006,0 1px #ffffff0c;}
body.playing #hud .bar-fill{height:100%;position:relative;min-height:100%;border-radius:4px;box-shadow:inset 0 1px #ffffff70,inset 0 -3px #153d4b35;}
body.playing #hud .bar.hp .bar-fill{background:linear-gradient(90deg,#278d82 0%,#62cda1 55%,#b2edbc 100%);}
body.playing #hud .bar.xp{height:16px;border-color:#e4cd9252;}
body.playing #hud .bar.xp .bar-fill{background:linear-gradient(90deg,#996a3e,#dbb66b 55%,#fff0aa);}
body.playing #hud .bar::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#061c2938 calc(20% - 1px),#061c2938 20%);}
body.playing #hud .bar-fill::after{content:'';position:absolute;right:0;top:2px;bottom:2px;width:2px;background:#fff7d9b3;border-radius:2px;}
body.playing #hud .bar-text{z-index:2;right:7px;font:700 11px/1 Outfit,sans-serif;letter-spacing:.025em;color:#fff9e7;text-shadow:0 1px 2px #071a24,1px 0 #071a24,-1px 0 #071a24,0 -1px #071a24;font-variant-numeric:tabular-nums;}
body.playing #hud .hud-meta{font:500 10px/1.3 Outfit,sans-serif;margin:7px 0 0;color:#c7ded6;min-height:13px;}
body.playing #hud[data-evolution-state=instrument] .bar.xp{border-color:#f8e2a3;}
body.playing #hud[data-evolution-state=instrument] .bar.xp .bar-fill{background:linear-gradient(90deg,#ad7d47,#efd18a);}
body.playing #hud[data-evolution-state=instrument] .hud-meta{color:#ffe3a5;}
body.playing #hud[data-evolution-state=maximum] .bar.xp .bar-fill{background:linear-gradient(90deg,#738eb1,#b2b1dc,#f1d999);}
body.playing #hud .hud-block.player.hurt .bar.hp .bar-fill{background:linear-gradient(90deg,#b84860,#f69985);animation:none;}
body.playing #hud .hud-block.player.hurt .hud-avatar{border-color:#ffb79d;}
body.comfort-contrast.playing #hud .hud-block.player{background:#061827;border-color:#d8e9df;}
@media(max-width:640px){
 body.playing #hud .hud-block.player{padding:8px;}
 body.playing #hud .hud-ident{gap:7px;margin-bottom:7px;}
 body.playing #hud .hud-avatar{width:40px;height:40px;flex-basis:40px;border-radius:11px;}
 body.playing #hud .hud-avatar canvas{border-radius:10px;}
 body.playing #hud .hud-avatar::after{width:15px;height:15px;font-size:9px;right:-3px;bottom:-3px;}
 body.playing #hud .hud-name{font-size:15px;}
 body.playing #hud .bars-container{gap:5px;}
 body.playing #hud .bar-row{gap:4px;}
 body.playing #hud .bar-lab{width:24px;flex-basis:24px;font-size:8px;letter-spacing:.03em;}
 body.playing #hud .bar{height:17px;}
 body.playing #hud .bar.xp{height:15px;}
 body.playing #hud .bar-text{font-size:9px;right:4px;letter-spacing:0;}
 body.playing #hud .hud-meta{font-size:9px;line-height:1.3;margin-top:5px;min-height:12px;}
}
@media(max-width:359px){body.playing #hud .hud-avatar{width:35px;height:35px;flex-basis:35px;}body.playing #hud .hud-ident{gap:6px;}body.playing #hud .hud-name{font-size:14px;}}
@media(max-height:450px) and (pointer:coarse){body.playing #hud .hud-avatar{width:32px;height:32px;flex-basis:32px;}body.playing #hud .hud-ident{margin-bottom:5px;}body.playing #hud .hud-block.player{padding:6px 8px;}body.playing #hud .hud-meta{display:none;}}
body.gentle-motion #hud .bar-fill{transition:none!important;}
