/* ghb-game.css
   Separado automaticamente a partir do bloco HTML original.
   Nao altera seletores, visual ou comportamento. */
#GHB .load-card h2,#GHB .menu-title h2,#GHB .card h3,#GHB .auth-card h3,#GHB .pop h3{margin:0;font-family:'Montserrat',sans-serif;font-weight:900;text-transform:uppercase;letter-spacing:.04em;overflow-wrap:anywhere}

#GHB #ghPlatform.screen.on{display:block;height:var(--screen-h);min-height:var(--screen-h)}

#GHB .hud,#GHB .info,#GHB .special-hud,#GHB .stages,#GHB .phase-story-shell{font-family:'Montserrat',sans-serif}

#GHB .hud{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;background:linear-gradient(180deg,rgba(6,6,10,.94),rgba(8,8,14,.92));border-bottom:1px solid rgba(255,255,255,.1);flex:0 0 auto}

#GHB .hud-btn{width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:14px}

#GHB .hud-btn.danger{background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));border:1px solid rgba(255,105,130,.32);box-shadow:0 12px 22px rgba(0,0,0,.18);color:#ff6d86;font-weight:900}

#GHB .hud-btn.danger:hover{background:linear-gradient(180deg,rgba(255,112,140,.14),rgba(255,255,255,.04));border-color:rgba(255,125,148,.44);color:#ff8ca1}

#GHB .hud-stat{display:flex;gap:8px;align-items:center;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:800;color:var(--soft);min-width:0;max-width:100%;overflow-wrap:anywhere;backdrop-filter:blur(4px);text-transform:uppercase;letter-spacing:.08em}

#GHB .hud-stat b{color:#fff;font-size:12px;letter-spacing:0;text-transform:none}

#GHB .hud-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px 14px;align-items:center}

#GHB .hud-main .hud-side{flex:0 0 auto}

#GHB .hud-primary{grid-column:1;justify-content:flex-start}

#GHB .hud-actions{grid-column:3;justify-content:flex-end}

#GHB .hud-stat.core{background:rgba(255,255,255,.08);color:#ece4ff}

#GHB .hud-stat.minor{background:linear-gradient(180deg,rgba(10,10,16,.88),rgba(8,8,12,.84));border-color:rgba(255,255,255,.06);color:rgba(246,242,255,.62)}

#GHB .hud-stat.minor b{min-width:34px;text-align:right}

#GHB .hud-toggle{min-width:78px;height:40px;padding:0 12px;border-radius:12px;font-size:10px;letter-spacing:.1em;text-transform:uppercase}

#GHB .hud-toggle.is-on{background:linear-gradient(135deg,rgba(159,82,253,.24),rgba(112,247,176,.18));border-color:rgba(199,154,255,.38)}

#GHB .special-hud{display:grid;gap:8px;padding:8px 14px;background:linear-gradient(180deg,rgba(18,10,28,.92),rgba(8,8,12,.92));border-bottom:1px solid rgba(255,255,255,.08);flex:0 0 auto}

#GHB .special-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

#GHB .special-head b{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#fff}

#GHB .special-head span{font-size:11px;color:var(--soft)}

#GHB .special-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}

#GHB .special-chip{position:relative;display:grid;place-items:center;gap:5px;padding:7px 6px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);min-height:66px;transition:transform .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;appearance:none;color:inherit;cursor:default}

#GHB .special-chip img{width:28px;height:28px;object-fit:contain;filter:grayscale(1) saturate(.2);opacity:.4;transition:all .2s ease}

#GHB .special-chip b{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--soft);text-align:center}

#GHB .special-chip.on{background:linear-gradient(135deg,rgba(112,247,176,.18),rgba(159,82,253,.14));border-color:rgba(112,247,176,.34);transform:translateY(-1px)}

#GHB .special-chip.on img{filter:none;opacity:1;transform:scale(1.08)}

#GHB .special-chip.on b{color:#fff}

#GHB .special-chip.is-action{cursor:pointer}

#GHB .special-chip.is-action:hover{border-color:rgba(199,154,255,.42);background:linear-gradient(135deg,rgba(112,247,176,.2),rgba(159,82,253,.18));box-shadow:0 12px 22px rgba(0,0,0,.16)}

#GHB .special-chip.is-action:focus-visible{outline:2px solid rgba(199,154,255,.62);outline-offset:2px}

#GHB .special-chip:disabled{cursor:not-allowed;opacity:1}

#GHB .special-chip.done:after{content:'OK';position:absolute;top:6px;right:6px;padding:2px 6px;border-radius:999px;background:rgba(112,247,176,.18);border:1px solid rgba(112,247,176,.34);font-size:8px;font-weight:900;color:#c6ffe3}

#GHB .special-banner{position:absolute;left:50%;top:110px;transform:translate(-50%,-18px) scale(.94);z-index:120;min-width:min(92vw,680px);max-width:min(92vw,680px);padding:16px 18px;border-radius:22px;border:1px solid rgba(112,247,176,.34);background:linear-gradient(135deg,rgba(8,28,22,.92),rgba(22,12,34,.92));box-shadow:0 24px 40px rgba(0,0,0,.3);text-align:center;opacity:0;pointer-events:none}

#GHB .special-banner.on{animation:ghbSpecialBanner 3.6s ease forwards}

#GHB .special-banner b{display:block;margin-bottom:4px;font-size:16px;letter-spacing:.08em;text-transform:uppercase}

#GHB .special-banner span{font-size:12px;line-height:1.65;color:var(--muted)}

#GHB #ghPlatform .hud,#GHB #ghPlatform .info,#GHB #ghPlatform .special-hud,#GHB #ghPlatform .stages{position:absolute;z-index:20;pointer-events:none;border-radius:18px;backdrop-filter:blur(10px);box-shadow:0 10px 28px rgba(0,0,0,.18)}

#GHB #ghPlatform .hud{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(6,6,10,.78),rgba(8,8,14,.72))}

#GHB #ghPlatform .hud .btn,#GHB #ghPlatform .stage{pointer-events:auto}

#GHB #ghPlatform .hud-main{top:12px;left:12px;right:12px;width:auto}

#GHB #ghPlatform .info,#GHB #ghPlatform .special-hud{opacity:0;transform:translateY(10px) scale(.98);transition:opacity .22s ease,transform .22s ease}

#GHB #ghPlatform .info.is-open,#GHB #ghPlatform .special-hud.is-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

#GHB #ghPlatform .info{top:82px;left:auto;right:12px;display:grid;gap:10px;width:min(520px,calc(100vw - 24px));padding:12px 16px;border:1px solid rgba(255,255,255,.06);background:rgba(15,11,24,.68);box-shadow:0 10px 24px rgba(0,0,0,.14)}

#GHB #ghPlatform .info .info-copy{display:grid;gap:4px}

#GHB #ghPlatform .info .info-copy b{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#fff}

#GHB #ghPlatform .info .info-copy em{font-style:normal;line-height:1.72;color:var(--muted)}

#GHB #ghPlatform .info .phase-chip-list{display:flex;gap:8px;flex-wrap:wrap}

#GHB #ghPlatform .stages{left:50%;right:auto;bottom:12px;transform:translateX(-50%) translateY(10px) scale(.98);opacity:0;transition:opacity .22s ease,transform .22s ease;width:min(860px,calc(100vw - 24px));padding:8px 10px;border:1px solid rgba(255,255,255,.06);background:rgba(8,8,14,.62);box-shadow:0 10px 24px rgba(0,0,0,.16)}

#GHB #ghPlatform .stages.is-open{opacity:1;transform:translateX(-50%) translateY(0) scale(1);pointer-events:auto}

#GHB #ghPlatform .special-hud{left:12px;right:auto;bottom:68px;width:min(360px,calc(100vw - 24px));border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(18,10,28,.76),rgba(8,8,12,.74))}

#GHB #ghPlatform .special-hud .special-row{grid-template-columns:repeat(3,minmax(0,1fr))}

#GHB #ghPlatform .special-hud .special-chip{min-height:58px}

#GHB .arena{position:absolute;inset:0;display:grid;place-items:center;padding:0;overflow:hidden;background:
      radial-gradient(circle at center,rgba(159,82,253,.14),transparent 56%),
      linear-gradient(180deg,rgba(5,5,10,.36),rgba(5,5,10,.82)),
      var(--stage-bg) center center/cover no-repeat;
      touch-action:none;overscroll-behavior:none}

#GHB .auth-bg,#GHB .pop-bg{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:130;padding:14px;background:rgba(0,0,0,.74);backdrop-filter:blur(10px);overflow:auto}

#GHB .auth-bg.on,#GHB .pop-bg.on{display:flex}

#GHB .auth-card,#GHB .pop{width:min(480px,100%);padding:28px;border-radius:26px}

#GHB .pop.phase-story-pop{width:min(1080px,calc(100% - 24px));max-height:min(92vh,900px);padding:20px;border:1px solid rgba(159,82,253,.22);box-shadow:0 0 0 1px rgba(159,82,253,.1),0 28px 56px rgba(0,0,0,.38),0 0 100px rgba(159,82,253,.08);overflow:auto;margin:auto}

#GHB .auth-card h3,#GHB .pop h3{font-size:28px;line-height:1.16;margin-bottom:10px}

#GHB .auth-card p,#GHB .pop .pop-msg{margin:0 0 14px;font-size:13px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}

#GHB .auth-msg{min-height:18px;margin-top:10px;font-size:12px;color:#ffb7c4}

#GHB .pop-stars{min-height:24px;margin-bottom:10px;font-size:16px;letter-spacing:.14em;color:#9F52FD}

#GHB .pop-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}

#GHB .phase-brief{display:grid;gap:12px;text-align:left}

#GHB .phase-brief-head{padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,rgba(159,82,253,.12),rgba(112,247,176,.08));border:1px solid rgba(159,82,253,.22)}

#GHB .phase-brief-head b{display:block;margin-bottom:4px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#fff}

#GHB .phase-brief-head span{font-size:12px;line-height:1.7;color:var(--muted)}

#GHB .phase-brief-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

#GHB .phase-brief-card{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}

#GHB .phase-brief-card b{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:12px;color:#fff}

#GHB .phase-brief-card em{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;font-style:normal;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#081018;background:var(--phase-mod-color,rgba(112,247,176,.9))}

#GHB .phase-brief-card span{display:block;font-size:12px;line-height:1.7;color:var(--muted)}

#GHB .phase-chip-list{display:flex;gap:8px;flex-wrap:wrap}

#GHB .phase-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#fff}

#GHB .phase-chip::before{content:'';width:8px;height:8px;border-radius:999px;background:var(--phase-mod-color,rgba(112,247,176,.9));box-shadow:0 0 0 3px rgba(255,255,255,.04)}

#GHB .phase-story-shell{--chapter-accent:#9f52fd;--chapter-accent-soft:#d0b1ff;--chapter-border:rgba(159,82,253,.24);--chapter-hero:rgba(159,82,253,.16);--chapter-hero-soft:rgba(159,82,253,.04);--chapter-panel:rgba(159,82,253,.08);--chapter-glow:rgba(159,82,253,.3);--chapter-preview-bg:var(--preview-bg);display:grid;gap:16px;max-width:100%;margin:0 auto}

#GHB .phase-story{display:grid;gap:14px;text-align:left}

#GHB .phase-story-hero{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:20px;padding:18px;border-radius:22px;background:linear-gradient(135deg,var(--chapter-hero),var(--chapter-hero-soft) 55%,rgba(255,255,255,.03));border:1px solid var(--chapter-border);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 16px 30px rgba(0,0,0,.18);align-items:center}

#GHB .phase-story-avatar{position:relative;min-height:300px;border-radius:20px;background:linear-gradient(180deg,rgba(18,12,30,.72),rgba(8,8,12,.96));border:1px solid rgba(255,255,255,.08);overflow:hidden;isolation:isolate}

#GHB .phase-story-avatar::before{content:'';position:absolute;inset:0;background:
      linear-gradient(180deg,rgba(8,10,18,.06),rgba(8,10,18,.42) 54%,rgba(8,10,18,.78)),
      radial-gradient(circle at 28% 22%,rgba(255,255,255,.14),transparent 34%),
      radial-gradient(circle at 76% 18%,rgba(159,82,253,.26),transparent 38%),
      var(--chapter-preview-bg) center center/cover no-repeat;transform:scale(1.03);opacity:.82;filter:brightness(.62) saturate(.84);z-index:0}

#GHB .phase-story-avatar .phase-preview-haze{position:absolute;inset:0;z-index:1;background:
      radial-gradient(circle at 50% 76%,rgba(3,4,10,.08),rgba(3,4,10,.02) 20%,rgba(3,4,10,0) 32%),
      linear-gradient(180deg,rgba(4,6,10,.04),rgba(4,6,10,.18) 36%,rgba(4,6,10,.38) 58%,rgba(4,6,10,.7));
      backdrop-filter:blur(1.2px)}

#GHB .phase-story-avatar::after{content:'';position:absolute;left:14%;right:14%;bottom:18px;height:18px;border-radius:999px;background:radial-gradient(circle,var(--chapter-glow),rgba(159,82,253,0));filter:blur(2px);z-index:1}

#GHB .phase-story-avatar img{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);width:min(148px,52%);height:auto;object-fit:contain;filter:drop-shadow(0 12px 24px rgba(0,0,0,.38));z-index:3}

#GHB .phase-thought{position:absolute;top:18px;left:80px;right:auto;width:clamp(168px,29vw,228px);max-width:calc(100% - 92px);max-height:176px;padding:14px 15px 12px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(246,243,255,.96));border:1px solid rgba(255,255,255,.78);color:#11131c;font-size:11.4px;line-height:1.58;font-weight:700;box-shadow:0 16px 32px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.72);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;animation:ghPhaseThoughtIn .28s ease;z-index:4;overflow:hidden}

#GHB .phase-thought::before{content:'';position:absolute;left:32px;bottom:-17px;width:24px;height:24px;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,242,255,.95));box-shadow:0 6px 14px rgba(0,0,0,.12)}

#GHB .phase-thought::after{content:'';position:absolute;left:16px;bottom:-36px;width:15px;height:15px;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(245,242,255,.92));box-shadow:-12px 15px 0 -3px rgba(255,255,255,.9),-22px 30px 0 -7px rgba(255,255,255,.84)}

#GHB .phase-thought.is-long{width:clamp(190px,33vw,264px);max-height:196px}

#GHB .phase-thought.is-xl{width:clamp(208px,36vw,282px);max-height:214px}

#GHB .phase-thought-text{display:block;max-height:112px;overflow:auto;padding-right:2px;scrollbar-width:none;overflow-wrap:anywhere}

#GHB .phase-thought-text::-webkit-scrollbar{width:0;height:0}

#GHB .phase-thought.is-long .phase-thought-text{max-height:126px}

#GHB .phase-thought.is-xl .phase-thought-text{max-height:140px;font-size:11px;line-height:1.55}

#GHB .phase-dialog-dots{display:flex;gap:6px;align-items:center}

#GHB .phase-dialog-dots span{width:8px;height:8px;border-radius:999px;background:rgba(17,19,28,.18);transition:transform .2s ease,background .2s ease}

#GHB .phase-dialog-dots span.on{background:var(--chapter-accent);transform:scale(1.15)}

#GHB .phase-story-copy{display:grid;gap:12px;align-content:start}

#GHB .phase-story-copy small{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--chapter-panel);border:1px solid var(--chapter-border);font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#fff;width:max-content;max-width:100%}

#GHB .phase-story-copy h4{margin:0;font:900 22px/1.2 'Montserrat',sans-serif;letter-spacing:.03em;text-transform:uppercase;color:#fff}

#GHB .phase-story-copy p{margin:0;font-size:13px;line-height:1.8;color:var(--muted)}

#GHB .phase-story-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}

#GHB .phase-story-card{padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,var(--chapter-panel),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08)}

#GHB .phase-story-card b{display:block;margin-bottom:6px;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--chapter-accent-soft)}

#GHB .phase-story-card span{display:block;font-size:12px;line-height:1.7;color:var(--text)}

#GHB .phase-story-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}

#GHB .toast-layer{position:absolute;inset:0;z-index:150;pointer-events:none}

#GHB .toast{position:absolute;top:20px;left:50%;transform:translateX(-50%);padding:12px 16px;border-radius:14px;background:linear-gradient(135deg,#9f52fd,#c18aff);color:#140921;font-size:12px;font-weight:900;letter-spacing:0;text-transform:uppercase;line-height:1.25;max-width:min(90vw,600px);text-align:center;overflow-wrap:anywhere;box-shadow:0 16px 34px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.16)}

#GHB .toast b{display:block;margin-bottom:3px;font-size:12px;line-height:1;letter-spacing:0}

#GHB .toast span{display:block;font-size:11px;font-weight:800;line-height:1.28;text-transform:none;color:currentColor;opacity:.92}

#GHB .toast-cardio{top:76px;padding:11px 15px;border:1px solid rgba(255,211,94,.34);background:linear-gradient(135deg,rgba(25,20,10,.94),rgba(96,59,15,.94));color:#fff2c4}

#GHB .toast-critical{border-color:rgba(255,117,117,.42);background:linear-gradient(135deg,rgba(54,8,18,.96),rgba(143,31,38,.94));color:#ffe8e8}

#GHB .toast-event{border-color:rgba(255,211,94,.5);background:linear-gradient(135deg,rgba(38,10,16,.98),rgba(173,48,35,.96));color:#fff7da}

#GHB .enemy-dialog-layer{position:absolute;inset:0;z-index:82;pointer-events:none;overflow:hidden}

#GHB .enemy-dialog-bubble{--enemy-dialog-accent:#8ff0d6;position:absolute;left:50%;top:50%;width:max-content;max-width:min(32vw,360px);padding:9px 11px 10px;border:1px solid var(--enemy-dialog-accent);border-radius:9px;background:linear-gradient(135deg,rgba(6,9,13,.94),rgba(13,28,31,.92));color:#eefdf8;box-shadow:0 14px 28px rgba(0,0,0,.34),0 0 0 1px rgba(255,255,255,.06);transform:translate(-50%,calc(-100% - 12px));animation:ghEnemyDialogIn .18s ease both}

#GHB .enemy-dialog-bubble::after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;background:inherit;border-right:1px solid var(--enemy-dialog-accent);border-bottom:1px solid var(--enemy-dialog-accent);transform:translateX(-50%) rotate(45deg)}

#GHB .enemy-dialog-bubble.is-below{transform:translate(-50%,12px)}

#GHB .enemy-dialog-bubble.is-below::after{top:-7px;bottom:auto;border:0;border-left:1px solid var(--enemy-dialog-accent);border-top:1px solid var(--enemy-dialog-accent)}

#GHB .enemy-dialog-bubble b{display:block;margin-bottom:3px;color:var(--enemy-dialog-accent);font:900 10px/1 Montserrat,sans-serif;text-transform:uppercase;letter-spacing:0}

#GHB .enemy-dialog-bubble span{display:block;font:800 11px/1.25 Montserrat,sans-serif;color:rgba(255,255,255,.9);text-transform:none;letter-spacing:0}

#GHB .enemy-dialog-ldl{--enemy-dialog-accent:#8ff0d6}

#GHB .enemy-dialog-placa{--enemy-dialog-accent:#ffc875}

#GHB .enemy-dialog-trans{--enemy-dialog-accent:#ffb15f}

#GHB .enemy-dialog-coagulo{--enemy-dialog-accent:#ff7b91}

@keyframes ghEnemyDialogIn{from{opacity:0;filter:blur(2px);margin-top:5px}to{opacity:1;filter:blur(0);margin-top:0}}

#GHB .tutorial-modal-bg{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:135;padding:20px;background:rgba(0,0,0,.78);backdrop-filter:blur(12px)}

#GHB .tutorial-modal-bg.on{display:flex}

#GHB .tutorial-modal{width:min(920px,calc(100% - 24px));max-height:min(84vh,760px);display:flex;flex-direction:column;border-radius:28px;background:linear-gradient(180deg,rgba(12,10,20,.98),rgba(8,8,14,.96));border:1px solid rgba(159,82,253,.18);box-shadow:0 0 0 1px rgba(159,82,253,.08),0 32px 70px rgba(0,0,0,.5),0 0 120px rgba(159,82,253,.06);overflow:hidden;animation:ghTutModalIn .3s ease}

#GHB .tutorial-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 28px 18px;background:linear-gradient(180deg,rgba(159,82,253,.06),transparent);border-bottom:1px solid rgba(255,255,255,.08);flex:0 0 auto}

#GHB .tutorial-header h3{margin:0;font:900 24px/1.2 'Montserrat',sans-serif;letter-spacing:.05em;text-transform:uppercase}

#GHB .tutorial-header h3 span{color:var(--accent);text-shadow:0 0 20px rgba(159,82,253,.3)}

#GHB .tutorial-close{width:44px;height:44px;border:none;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#fff;font-size:20px;font-weight:900;cursor:pointer;transition:background .15s ease,transform .15s ease,border-color .15s ease;flex:0 0 auto}

#GHB .tutorial-close:hover{background:rgba(255,138,164,.2);border-color:rgba(255,138,164,.4);transform:scale(1.08)}

#GHB .tutorial-close:active{transform:scale(.95)}

#GHB .tutorial-tabs{display:flex;gap:8px;padding:16px 28px 6px;flex-wrap:wrap;flex:0 0 auto}

#GHB .tutorial-tab{padding:9px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:var(--soft);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:all .18s ease;user-select:none}

#GHB .tutorial-tab.on{background:linear-gradient(135deg,rgba(159,82,253,.28),rgba(159,82,253,.12));border-color:rgba(159,82,253,.55);color:#fff;box-shadow:0 4px 16px rgba(159,82,253,.18)}

#GHB .tutorial-tab:hover:not(.on){background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:var(--text);transform:translateY(-1px)}

#GHB .tutorial-tab:active{transform:scale(.96)}

#GHB .tutorial-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:20px 28px 28px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(159,82,253,.3) transparent}

#GHB .tutorial-body::-webkit-scrollbar{width:6px}

#GHB .tutorial-body::-webkit-scrollbar-track{background:transparent}

#GHB .tutorial-body::-webkit-scrollbar-thumb{background:rgba(159,82,253,.25);border-radius:8px}

#GHB .tutorial-section{display:none;animation:ghTutFade .3s ease}

#GHB .tutorial-section.on{display:block}

#GHB .tutorial-section h4{margin:0 0 12px;font:800 16px/1.3 'Montserrat',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-soft);padding-bottom:8px;border-bottom:1px solid rgba(159,82,253,.12)}

#GHB .tutorial-section p{margin:0 0 14px;font-size:13.5px;line-height:1.8;color:var(--muted)}

#GHB .tutorial-section p b{color:var(--warn)}

#GHB .tutorial-section .tut-icon{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(159,82,253,.04));border:1px solid rgba(255,255,255,.1);font-size:12.5px;font-weight:700;margin:4px 4px 12px 0;transition:border-color .15s ease}

#GHB .tutorial-section .tut-icon img{width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(0,0,0,.3))}

#GHB .tutorial-footer{display:flex;justify-content:center;gap:12px;padding:18px 28px;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,transparent,rgba(159,82,253,.03));flex:0 0 auto}

#GHB .organ-popup-bg{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:140;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}

#GHB .organ-popup-bg.on{display:flex}

#GHB .organ-popup{width:min(620px,calc(100% - 24px));padding:0;border-radius:28px;background:linear-gradient(180deg,rgba(12,10,20,.98),rgba(8,8,14,.96));border:1px solid rgba(112,247,176,.22);box-shadow:0 0 0 1px rgba(112,247,176,.08),0 28px 60px rgba(0,0,0,.45),0 0 80px rgba(112,247,176,.06);text-align:center;overflow:hidden;animation:ghOrganIn .35s ease}

#GHB .organ-popup-top{padding:30px 34px 20px;background:linear-gradient(180deg,rgba(112,247,176,.08),transparent)}

#GHB .organ-popup-icon{width:82px;height:82px;margin:0 auto 16px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(112,247,176,.16),rgba(159,82,253,.12));border:1px solid rgba(112,247,176,.28);box-shadow:0 8px 24px rgba(112,247,176,.1);animation:ghOrganPulse 2s ease infinite}

#GHB .organ-popup-icon img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 2px 8px rgba(0,0,0,.3))}

#GHB .organ-popup h4{margin:0 0 8px;font:900 22px/1.2 'Montserrat',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#fff}

#GHB .organ-popup .organ-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;background:rgba(112,247,176,.12);border:1px solid rgba(112,247,176,.28);font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--ok);margin-bottom:12px}

#GHB .organ-popup .organ-fn{margin:0 0 4px;font-size:15px;font-weight:700;color:var(--ok);line-height:1.5}

#GHB .organ-popup-body{display:grid;gap:14px;padding:0 34px 14px}

#GHB .organ-popup-body p{margin:0;font-size:13.5px;line-height:1.82;color:var(--muted);text-align:left}

#GHB .organ-popup .organ-curiosity{margin:0;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,rgba(255,216,112,.08),rgba(159,82,253,.06));border:1px solid rgba(255,216,112,.18);text-align:left}

#GHB .organ-popup .organ-curiosity b{display:block;margin-bottom:4px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--warn)}

#GHB .organ-popup .organ-curiosity span{font-size:13px;line-height:1.7;color:var(--text)}

#GHB .organ-popup-footer{padding:18px 34px 24px;border-top:1px solid rgba(255,255,255,.06)}

#GHB .organ-popup .pop-actions{display:flex;justify-content:center;gap:10px}

/* Purple-first polish for tutorial, organic popups and phase panels. */
#GHB .hud-toggle.is-on {
  background: linear-gradient(135deg, rgba(159,82,253,.28), rgba(199,154,255,.14));
  border-color: rgba(199,154,255,.42);
}

#GHB .special-chip.on {
  background: linear-gradient(135deg, rgba(159,82,253,.2), rgba(199,154,255,.1));
  border-color: rgba(199,154,255,.34);
}

#GHB .special-chip.is-action:hover {
  background: linear-gradient(135deg, rgba(159,82,253,.24), rgba(199,154,255,.12));
  border-color: rgba(199,154,255,.44);
}

#GHB .special-chip.done:after {
  background: rgba(159,82,253,.2);
  border-color: rgba(199,154,255,.34);
  color: #f0e6ff;
}

#GHB .special-banner {
  border-color: rgba(199,154,255,.34);
  background: linear-gradient(135deg, rgba(18,10,34,.94), rgba(30,14,44,.92));
}

#GHB .organ-popup {
  border-color: rgba(199,154,255,.24);
  box-shadow: 0 0 0 1px rgba(159,82,253,.1), 0 28px 60px rgba(0,0,0,.45), 0 0 80px rgba(159,82,253,.08);
}

#GHB .organ-popup-top {
  background: linear-gradient(180deg, rgba(159,82,253,.1), transparent);
}

#GHB .organ-popup-icon {
  background: linear-gradient(135deg, rgba(159,82,253,.18), rgba(199,154,255,.1));
  border-color: rgba(199,154,255,.3);
  box-shadow: 0 8px 24px rgba(159,82,253,.12);
  animation: none;
}

#GHB .organ-popup .organ-badge {
  background: rgba(159,82,253,.13);
  border-color: rgba(199,154,255,.28);
  color: var(--accent-soft);
}

#GHB .organ-popup .organ-fn {
  color: #dfc4ff;
}

/* Discreet gameplay HUD: information stays readable without stealing focus. */
#GHB #ghPlatform .hud {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#GHB #ghPlatform .hud-main {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  right: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
}

#GHB #ghPlatform .hud-side {
  gap: 8px;
}

#GHB #ghPlatform .hud-rail {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8,8,14,.42), rgba(6,6,12,.24));
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
}

#GHB #ghPlatform .hud-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border-color: transparent;
  background: rgba(255,255,255,.06);
  color: rgba(246,242,255,.66);
  font-size: 11px;
  box-shadow: none;
  backdrop-filter: none;
}

#GHB #ghPlatform .hud-stat-icon {
  padding-left: 8px;
}

#GHB #ghPlatform .hud-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.28));
}

#GHB #ghPlatform .hud-label {
  color: inherit;
}

#GHB #ghPlatform .hud-stat.core {
  background: rgba(159,82,253,.1);
  border-color: rgba(199,154,255,.08);
  color: rgba(246,242,255,.78);
}

#GHB #ghPlatform .hud-stat b {
  color: #fff;
}

#GHB #ghPlatform .cardio-hud {
  --cardio-rgb: 143,240,214;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--cardio-rgb),.18), rgba(8,8,14,.1));
  border-color: rgba(var(--cardio-rgb),.26);
  color: rgba(255,255,255,.9);
}

#GHB #ghPlatform .cardio-hud-title {
  flex: 0 0 auto;
  color: inherit;
}

#GHB #ghPlatform .cardio-hud img {
  display: block;
  flex: 0 0 auto;
  width: clamp(62px, 5.6vw, 82px);
  height: auto;
  max-height: 34px;
  aspect-ratio: 384 / 160;
  object-fit: contain;
  image-rendering: auto;
}

#GHB #ghPlatform .cardio-hud b {
  flex: 0 0 auto;
  min-width: 28px;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_normal"] { --cardio-rgb: 143,240,214; }
#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_placa_leve"] { --cardio-rgb: 255,218,112; }
#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_placa_moderada"] { --cardio-rgb: 255,170,92; }
#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_placa_grave"] { --cardio-rgb: 255,112,126; }
#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_critica"],
#GHB #ghPlatform .cardio-hud[data-cardio-state="arteria_bloqueada_evento"] { --cardio-rgb: 255,76,104; }

#GHB #ghPlatform .timer-stat.is-hidden {
  display: none;
}

#GHB #ghPlatform .hud-stat.hud-feedback {
  animation: ghbHudPop .38s cubic-bezier(.2,.9,.22,1.12) both;
}

#GHB #ghPlatform .hud-stat.hud-feedback.is-gain {
  background: rgba(143,240,214,.16);
  border-color: rgba(143,240,214,.28);
}

#GHB #ghPlatform .hud-stat.hud-feedback.is-score {
  background: rgba(255,218,112,.18);
  border-color: rgba(255,218,112,.3);
}

#GHB #ghPlatform .hud-stat.hud-feedback.is-loss {
  animation-name: ghbHudHit;
  background: rgba(255,76,104,.18);
  border-color: rgba(255,76,104,.32);
}

#GHB #ghPlatform .cardio-hud.hud-feedback {
  animation-name: ghbHudCardio;
}

#GHB #ghPlatform .hud-stat.hud-feedback .hud-icon,
#GHB #ghPlatform .hud-stat.hud-feedback img,
#GHB #ghPlatform .hud-stat.hud-feedback b {
  filter: drop-shadow(0 2px 7px rgba(255,255,255,.22));
}

@keyframes ghbHudPop {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-1px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes ghbHudHit {
  0% { transform: translateX(0) scale(1); }
  28% { transform: translateX(-2px) scale(1.05); }
  54% { transform: translateX(2px) scale(1.03); }
  100% { transform: translateX(0) scale(1); }
}

@keyframes ghbHudCardio {
  0% { transform: scale(1); }
  42% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #GHB #ghPlatform .hud-stat.hud-feedback {
    animation: none;
  }
}

@media (max-width: 1180px) {
  #GHB #ghPlatform .cardio-hud img {
    width: clamp(58px, 7vw, 78px);
    max-height: 32px;
  }
}

@media (min-width: 1181px) {
  #GHB #ghPlatform .hud-stat {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
  }

  #GHB #ghPlatform .hud-icon {
    width: 22px;
    height: 22px;
  }

  #GHB #ghPlatform .hud-stat b {
    font-size: 13px;
  }

  #GHB #ghPlatform .cardio-hud {
    padding: 9px 14px;
  }

  #GHB #ghPlatform .cardio-hud img {
    width: 82px;
    max-height: 34px;
  }
}

#GHB #ghPlatform .hud-toggle,
#GHB #ghPlatform .hud-btn {
  border-color: rgba(255,255,255,.1);
  background: rgba(8,8,14,.22);
  box-shadow: none;
  backdrop-filter: blur(3px);
}

#GHB #ghPlatform .hud-toggle:hover,
#GHB #ghPlatform .hud-btn:hover {
  background: rgba(159,82,253,.14);
  border-color: rgba(199,154,255,.24);
}
