/* Operação Selva · interface do jogo, isolada do restante do site. */
.os-page { --os-ink:#e8fff9; --os-dim:#a4c5c9; --os-mint:#91eed5; --os-gold:#ffe095; }
.os-header { padding-top:2.2rem; padding-bottom:1.5rem; }
.os-breadcrumb { display:flex; gap:.7rem; font-size:.8rem; color:var(--fosco); margin-bottom:1.8rem; }
.os-breadcrumb a { color:var(--ouro); text-decoration:none; }
.os-heading { display:flex; gap:1rem; align-items:center; justify-content:space-between; }
.os-eyebrow { letter-spacing:.19em; font:600 .65rem/1.7 "Source Sans 3",sans-serif; color:var(--ouro); margin:0 0 .5rem; }
.os-heading h1 { font:500 clamp(2.3rem,4.5vw,4rem)/1.05 "Newsreader",Georgia,serif; letter-spacing:-.035em; margin:0; max-width:none; }
.os-edition { flex-shrink:0; padding:.6rem .8rem; border:1px solid var(--linha); border-radius:30px; font-size:.7rem; color:var(--fosco); }
.os-edition i { color:var(--ouro); padding:0 .3rem; }
.os-intro { max-width:47rem; color:var(--fosco); font-size:.96rem; margin:.9rem 0 0; line-height:1.7; }
.os-expedition { max-width:79rem; margin:auto; padding:0 clamp(.65rem,2vw,1.8rem); }
.os-game { color-scheme:dark; border:1px solid #37606c; border-radius:14px; overflow:hidden; color:var(--os-ink); background:#09212e; box-shadow:0 20px 65px #0004; font-family:"Source Sans 3",sans-serif; }
.os-hud { display:flex; align-items:center; gap:1rem; padding:.85rem 1.1rem; background:linear-gradient(120deg,#102d3c,#0b202e); border-bottom:1px solid #94e9da26; min-height:92px; }
.os-avatar { display:grid; place-items:center; width:48px; height:48px; border:1px solid #74cfb965; background:#164e55; color:#a4f9dc; border-radius:50%; font:italic 1.8rem Georgia,serif; flex-shrink:0; }
.os-avatar { overflow:hidden; }
.os-avatar canvas { width:100%; height:100%; }
.os-vitals { width:210px; flex-shrink:0; }
.os-hero-line { display:flex; align-items:center; justify-content:space-between; font-size:.84rem; margin-bottom:.35rem; }
.os-hero-line span { color:var(--os-gold); font-size:.67rem; }
.os-meter { position:relative; height:15px; background:#04131e; border-radius:3px; overflow:hidden; margin-top:4px; }
.os-meter span { display:block; height:100%; transition:width .18s; }
.os-life span { background:linear-gradient(90deg,#147b70,#6cd7ac); }
.os-mana span { background:linear-gradient(90deg,#3763b1,#9cb8f3); }
.os-meter b { position:absolute; inset:0; text-align:center; font:600 10px/15px "Source Sans 3",sans-serif; color:white; text-shadow:0 1px 2px #000; }
.os-wallet { min-width:95px; border-left:1px solid #91eed526; padding-left:1rem; }
.os-wallet>span,.os-location>span { display:block; font-size:.54rem; letter-spacing:.17em; color:var(--os-dim); }
.os-wallet strong { display:block; color:var(--os-gold); font-size:1.4rem; line-height:1.15; }
.os-wallet small { font-size:.59rem; color:var(--os-dim); }
.os-xp-track { height:3px; background:#04131e; border-radius:2px; margin-top:3px; }
.os-xp-track span { height:100%; display:block; background:var(--os-gold); }
.os-location { margin-left:auto; text-align:right; min-width:0; }
.os-location strong { display:block; font:500 1.07rem/1.4 "Newsreader",Georgia,serif; }
.os-location small { display:block; font-size:.64rem; color:var(--os-dim); max-width:240px; }
.os-viewport { position:relative; aspect-ratio:16/9; background:#083d53; isolation:isolate; }
#os-canvas { display:block; width:100%; height:100%; touch-action:none; image-rendering:pixelated; outline:none; }
#os-canvas { object-fit:contain; image-rendering:auto; }
#os-canvas:focus-visible { outline:2px solid var(--os-gold); outline-offset:-3px; }
.os-overlay { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:1.5rem; overflow:auto; background:linear-gradient(100deg,#021b2bec,#032a3bba 60%,#032a3b6b); text-align:center; backdrop-filter:blur(3px); }
.os-overlay[hidden],.os-interact[hidden] { display:none; }
.os-dialog-content { max-width:640px; width:100%; margin:auto; }
.os-overlay .os-eyebrow { color:var(--os-mint); }
.os-overlay h2 { margin:.45rem 0 .8rem; font:500 clamp(1.9rem,4vw,3.5rem)/1.05 "Newsreader",Georgia,serif; color:#effff9; letter-spacing:-.025em; }
.os-overlay p { color:#bcdadf; font-size:.89rem; line-height:1.6; max-width:490px; margin:.6rem auto; }
.os-overlay .os-dialog-sub { color:var(--os-gold); font-size:.76rem; }
.os-dialog-actions { display:flex; gap:.65rem; justify-content:center; flex-wrap:wrap; margin-top:1.3rem; }
.os-game button,.os-sanctuary button,.os-text-button { font:600 .75rem/1.3 "Source Sans 3",sans-serif; cursor:pointer; border:1px solid #456675; padding:.55rem .8rem; color:var(--os-ink); background:#163a48; border-radius:5px; transition:background .15s,border-color .15s; }
.os-game button:hover,.os-sanctuary button:hover { border-color:var(--os-mint); background:#21505c; }
.os-game button:focus-visible,.os-sanctuary button:focus-visible,.os-text-button:focus-visible { outline:2px solid #ffe095; outline-offset:2px; }
.os-game button:disabled,.os-sanctuary button:disabled { opacity:.5; cursor:default; }
.os-game .os-primary { color:#062c36; background:var(--os-mint); border-color:var(--os-mint); padding:.8rem 1.8rem; font-size:.88rem; }
.os-game .os-primary:hover { background:#c5fff0; }
.os-game .os-secondary { background:#092737; padding:.8rem 1.3rem; }
.os-dialog-badges { display:flex; justify-content:center; gap:.5rem; margin:1rem 0; flex-wrap:wrap; }
.os-dialog-badges span { font-size:.65rem; color:#c6e4e5; border:1px solid #7dbbb63d; border-radius:20px; padding:.35rem .65rem; }
.os-toolbar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; justify-content:space-between; padding:.65rem .8rem; border-top:1px solid #91eed526; }
.os-skills,.os-tools { display:flex; gap:.3rem; flex-wrap:wrap; }
.os-skills button { font-size:.65rem; padding:.4rem .5rem; background:#0a2636; }
.os-skills button[aria-pressed="true"] { border-color:var(--os-mint); color:var(--os-mint); background:#16454a; }
.os-tools button { background:transparent; border-color:transparent; color:var(--os-dim); font-size:.68rem; padding:.4rem; }
.os-tools button[aria-pressed="false"] { text-decoration:line-through; opacity:.7; }
.os-caption { display:flex; justify-content:space-between; gap:.6rem; padding:.55rem .9rem; font-size:.63rem; color:var(--os-dim); background:#071c29; }
.os-caption i { display:inline-block; width:5px; height:5px; background:var(--os-mint); border-radius:50%; margin-right:.3rem; }
.os-toast { position:absolute; top:1rem; left:50%; transform:translateX(-50%); max-width:85%; width:max-content; background:#06232eed; border:1px solid #91eed560; padding:.6rem 1rem; color:#e2fff4; border-radius:7px; font-size:.78rem; opacity:0; transition:opacity .2s; z-index:4; pointer-events:none; text-align:center; }
.os-toast.os-visible { opacity:1; }
.os-interact { position:absolute; bottom:1rem; left:50%; transform:translateX(-50%); border:1px solid #ffe09585; background:#082634ed; color:#ffe9b9; border-radius:5px; padding:.5rem .9rem; text-align:center; font-size:.73rem; white-space:nowrap; pointer-events:none; }
.os-touch { display:none; justify-content:space-between; padding:.65rem; gap:.6rem; background:#092432; touch-action:none; }
.os-dpad { display:grid; grid-template-columns:repeat(3,38px); grid-template-rows:repeat(2,36px); gap:3px; flex-shrink:0; }
.os-dpad button:nth-child(1) { grid-column:2; }
.os-dpad button:nth-child(2) { grid-column:1; grid-row:2; }
.os-dpad button:nth-child(3) { grid-column:2; grid-row:2; }
.os-dpad button:nth-child(4) { grid-column:3; grid-row:2; }
.os-touch button { padding:.4rem; user-select:none; -webkit-user-select:none; }
.os-touch-actions { display:grid; grid-template-columns:repeat(3,minmax(40px,1fr)); gap:4px; max-width:300px; }
.os-touch-actions button:first-child { background:#27665e; border-color:#59a391; }
.os-below { padding-top:2.8rem; }
.os-below h2 { font:500 1.9rem/1.2 "Newsreader",Georgia,serif; margin:.25rem 0 1rem; }
.os-help-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.os-help-grid p { color:var(--fosco); font-size:.8rem; line-height:1.7; margin:0; }
.os-help-grid strong { color:var(--texto); font-weight:600; }
.os-help-grid kbd { font-size:.65rem; background:var(--painel-2); border:1px solid var(--linha); padding:.15rem .3rem; border-radius:3px; color:var(--texto); }
.os-sanctuary { margin-top:2.5rem; border:1px solid var(--linha); padding:1.6rem; border-radius:10px; background:var(--painel); }
.os-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.os-study-balance { padding:.5rem .7rem; background:var(--painel-2); border:1px solid var(--linha); border-radius:5px; font-size:.72rem; color:var(--ouro); }
.os-sanctuary>p { font-size:.82rem; color:var(--fosco); line-height:1.6; }
.os-study-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.65rem; margin:1.3rem 0; }
.os-study-card { border:1px solid var(--linha); border-radius:7px; padding:.8rem; display:flex; flex-direction:column; align-items:flex-start; gap:.5rem; background:var(--fundo); }
.os-study-card h3 { font-size:.86rem; margin:0; color:var(--texto); }
.os-study-card p { font-size:.72rem; color:var(--fosco); line-height:1.5; margin:0; flex:1; }
.os-study-card .os-buy-actions { display:flex; gap:.3rem; flex-wrap:wrap; }
.os-study-card button { font-size:.66rem; padding:.4rem .5rem; }
.os-study-card .os-owned { color:var(--verde); font-size:.7rem; }
.os-study-card canvas { width:56px; height:56px; image-rendering:pixelated; float:right; }
.os-study-note { min-height:1.3em; }
.os-links { display:flex; gap:1rem; flex-wrap:wrap; }
.os-links a { color:var(--ouro); font-size:.73rem; }
.os-journal { margin-top:2.8rem; }
.os-journey { display:grid; grid-template-columns:repeat(5,1fr); gap:.65rem; list-style:none; padding:0; margin:1rem 0; counter-reset:sea; }
.os-journey li { border-top:2px solid var(--linha); padding-top:.7rem; font-size:.7rem; color:var(--fosco); }
.os-journey li::before { content:"0" counter(sea); counter-increment:sea; display:block; color:var(--ouro); letter-spacing:.1em; font-size:.6rem; margin-bottom:.4rem; }
.os-journey strong { display:block; font-size:.78rem; color:var(--texto); margin-bottom:.3rem; }
.os-journey .os-current { border-color:var(--ouro); }
.os-journey .os-cleared { border-color:var(--verde); }
.os-journal-bottom { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; }
.os-journal-bottom p { color:var(--fosco); font-size:.75rem; margin-right:auto; }
.os-text-button { background:transparent; border-color:var(--linha); color:var(--texto); padding:.4rem .7rem; }
.os-achievements { display:flex; flex-wrap:wrap; gap:.4rem; list-style:none; padding:0; }
.os-achievements li { color:var(--ouro); border:1px solid var(--linha); padding:.3rem .6rem; border-radius:20px; font-size:.65rem; }
.os-footer { color:var(--fosco); font-size:.7rem; line-height:1.7; border-top:1px solid var(--linha); margin-top:2rem; padding:1.5rem 0 2rem; }
.os-footer a { color:var(--ouro); margin-left:.4rem; }
.os-shop-grid,.os-character-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; margin:.8rem 0; text-align:left; }
.os-shop-item,.os-character-item { padding:.7rem; border:1px solid #97cfc43d; background:#052a39e8; border-radius:6px; }
.os-shop-item h3,.os-character-item h3 { font-size:.81rem; margin:0 0 .3rem; color:#eafff9; }
.os-shop-item p,.os-character-item p { font-size:.67rem; line-height:1.45; margin:0 0 .6rem; }
.os-shop-item button,.os-character-item button { width:100%; font-size:.67rem; padding:.45rem; }
.os-shop-item small { display:block; color:var(--os-gold); margin:.35rem 0; font-size:.65rem; }
.os-character-grid { grid-template-columns:repeat(4,1fr); }
.os-character-item { text-align:center; }
.os-character-item canvas { display:block; width:70px; height:70px; margin:0 auto .5rem; image-rendering:pixelated; }
.os-map-list { padding:0; list-style:none; display:grid; gap:.4rem; text-align:left; margin:1rem 0; }
.os-map-list button { width:100%; display:flex; justify-content:space-between; text-align:left; padding:.65rem .8rem; }
.os-map-list span { font-size:.67rem; color:var(--os-gold); }
.os-game:fullscreen { border-radius:0; width:100vw; height:100dvh; display:flex; flex-direction:column; justify-content:center; background:#031923; }
.os-game:fullscreen .os-viewport { min-height:0; flex:1; aspect-ratio:auto; }
.os-game:fullscreen #os-canvas { object-fit:contain; }
@media (pointer:coarse),(max-width:850px) { .os-touch { display:flex; } }
@media (max-width:1100px) { .os-hud { gap:.7rem; padding:.75rem; } .os-vitals { width:180px; } .os-location small { max-width:160px; } .os-avatar { width:36px; height:36px; font-size:1.4rem; } }
@media (max-width:650px) { .os-header { padding-top:1.6rem; } .os-edition { display:none; } .os-intro { font-size:.85rem; } .os-breadcrumb { margin-bottom:1.1rem; } .os-avatar { display:none; } .os-vitals { width:155px; } .os-wallet { padding-left:.7rem; min-width:65px; } .os-wallet strong { font-size:1.15rem; } .os-location { flex:1; } .os-location strong { font-size:.8rem; } .os-location small { display:none; } .os-hud { min-height:76px; gap:.6rem; } .os-location>span { font-size:.47rem; } .os-hero-line { font-size:.7rem; } .os-hero-line span { font-size:.6rem; } .os-meter { height:13px; } .os-meter b { font-size:9px; line-height:13px; } .os-overlay { padding:.8rem; justify-content:flex-start; } .os-overlay h2 { font-size:1.8rem; margin:.3rem 0; } .os-overlay p { font-size:.72rem; margin:.4rem auto; } .os-overlay .os-eyebrow { font-size:.5rem; } .os-dialog-actions { margin-top:.7rem; } .os-dialog-badges { display:none; } .os-game .os-primary,.os-game .os-secondary { padding:.6rem 1rem; font-size:.75rem; } .os-help-grid { grid-template-columns:1fr; gap:1rem; } .os-study-grid { grid-template-columns:repeat(2,1fr); } .os-sanctuary { padding:1rem; } .os-journey { grid-template-columns:repeat(2,1fr); gap:1rem; } .os-caption { font-size:.55rem; } .os-caption>span:first-child { max-width:48%; } .os-shop-grid { grid-template-columns:repeat(2,1fr); } .os-character-grid { grid-template-columns:repeat(2,1fr); } .os-shop-item,.os-character-item { padding:.5rem; } .os-toast { top:.5rem; font-size:.65rem; padding:.4rem .6rem; } .os-interact { bottom:.5rem; font-size:.6rem; padding:.4rem; } }
@media (prefers-reduced-motion:reduce) { .os-game * { transition:none!important; } }

/* Identidade da Operação Selva: mapa de campo, verde profundo e âmbar. */
.os-page { --os-ink:#f0f3db; --os-dim:#bbc8b6; --os-mint:#d1de9e; --os-gold:#f6cb75; }
.os-heading h1 { font:800 clamp(2rem,4vw,3.5rem)/1.05 "Source Sans 3",sans-serif; text-transform:uppercase; letter-spacing:-.045em; }
.os-subtitle { letter-spacing:.35em; font:600 .73rem/1.5 "Source Sans 3",sans-serif; color:var(--ouro); margin:.4rem 0 0; }
.os-game { background:#17271f; border-color:#5b6b4b; border-radius:9px; }
.os-hud { background:linear-gradient(100deg,#28382b,#17271f); border-color:#f6cb7526; }
.os-avatar { border-radius:7px; background:#3c4931; border-color:#82935b; }
.os-viewport { aspect-ratio:8/5; background:#314c35; }
.os-overlay { background:linear-gradient(105deg,#101e16f2,#182719c2 65%,#17271985); backdrop-filter:blur(2px); }
.os-overlay h2 { font-family:"Source Sans 3",sans-serif; font-weight:800; text-transform:uppercase; font-size:clamp(1.8rem,3.8vw,3.2rem); }
.os-overlay .os-eyebrow { color:#e2c58b; }
.os-meter.os-life span { background:linear-gradient(90deg,#71864c,#bfd78a); }
.os-armor-line { color:#bdc6ae; font-size:.62rem; margin-top:.32rem; }
.os-vitals { width:210px; }
.os-hud .os-meter { height:18px; }
.os-hud .os-meter b { line-height:18px; }
.os-game button { color:#eaf0d7; background:#35472f; border-color:#657551; }
.os-game button:hover { background:#455b37; border-color:#e9ca89; }
.os-game .os-primary { background:#efce84; color:#222d1f; border-color:#efce84; }
.os-game .os-primary:hover { background:#ffe0a5; }
.os-game .os-secondary { background:#253526; }
.os-game .os-tools button { background:transparent; border-color:transparent; }
.os-toolbar { background:#1b2c21; border-color:#f6cb7526; }
.os-skills button { background:#17241b; }
.os-skills button[aria-pressed="true"] { color:#ffe1a2; border-color:#efce84; background:#4c4b30; }
.os-caption { background:#122117; }
.os-toast { background:#15271bf0; border-color:#e5d39d70; }
.os-interact { background:#1c2d1bf0; border-color:#e3d38e99; color:#ffe6ad; }
.os-touch { background:#1a2c20; }
.os-touch-actions button:first-child { background:#69733c; border-color:#a7b173; }
.os-character-grid { grid-template-columns:repeat(3,1fr); }
.os-character-item { background:#1e3126ed; border-color:#8f9f6d70; }
.os-character-item canvas { width:110px; height:110px; image-rendering:auto; }
.os-overlay .os-dialog-content { max-width:690px; }
.os-map-list button { background:#1f3326; }
.os-audio { display:grid; gap:1rem; margin:1rem auto; max-width:400px; text-align:left; }
.os-audio label { display:grid; grid-template-columns:1fr 80px; gap:.6rem; color:#e7ead3; font-size:.85rem; }
.os-audio input[type=range] { grid-column:1/-1; width:100%; accent-color:#efce84; }
.os-audio small { color:#c3ceb4; font-size:.68rem; }
.os-sound-buttons { display:flex; justify-content:center; gap:.5rem; flex-wrap:wrap; }
.os-game:fullscreen { background:#101c15; }
.os-brief-stats { display:flex; justify-content:center; gap:1.4rem; margin:1rem; color:#f5d28a; font-size:.8rem; }
.os-study-card .os-buy-actions button { background:#31442e; border-color:#687750; color:#ecf0d7; }
.os-study-card .os-buy-actions button:hover { background:#435934; border-color:#d2d799; }
@media(max-width:650px){.os-vitals{width:140px}.os-hud{gap:.45rem}.os-wallet{min-width:73px;padding-left:.6rem}.os-armor-line{font-size:.55rem}.os-location strong{font-size:.8rem}.os-character-grid{grid-template-columns:1fr}.os-character-item{display:grid;grid-template-columns:75px 1fr;text-align:left;align-items:center;gap:.3rem}.os-character-item canvas{grid-row:1/4;width:70px;height:70px;margin:0}.os-character-item p{margin:0}.os-character-item button{width:auto;justify-self:start}.os-overlay h2{font-size:1.7rem}.os-viewport{aspect-ratio:4/3}.os-dialog-content{width:100%}.os-shop-grid{grid-template-columns:1fr 1fr}.os-study-grid{grid-template-columns:1fr 1fr}}
