/* Martial Peak — Alpha 0.5 · Caminho Celestial
   Camada de direção de arte aplicada POR ÚLTIMO: substitui a maquete pixelada,
   preservando HTML, identificadores, navegação e funcionalidade do jogo. */
:root{
  --bg:#081317;--panel:#132325;--panel2:#193034;
  --line:rgba(194,169,118,.19);--line2:rgba(213,185,131,.29);
  --text:#e8e9de;--muted:#b0bab0;--faint:#81928d;
  --gold:#cfa96b;--gold2:#f1d8a3;--jade:#8dbcb0;
  --pixel-shadow:transparent;
}
html{scroll-behavior:smooth}
body{background:#071217!important;background-image:radial-gradient(ellipse at 60% -30%,rgba(46,91,85,.35),transparent 75%)!important;color:var(--text)}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.22;background-image:radial-gradient(circle at 20% 15%,rgba(189,161,102,.2),transparent 28%),linear-gradient(150deg,#12333215,transparent 65%)}
::selection{background:#c9aa7255;color:#fff2c8}
:focus-visible{outline-color:#eac98c!important;outline-offset:3px}

/* Start · an atmospheric illustrated realm rather than a grid of boxes */
.title-screen{min-height:100svh;padding:clamp(30px,5vh,65px) clamp(24px,7.5vw,140px) 26px;background:linear-gradient(90deg,#07151be8 0%,#07151bd7 31%,#07151b88 55%,#07151b05 100%),linear-gradient(0deg,#061319b8 0%,transparent 34%),url('../assets/realm-landscape.svg') 68% 50%/cover no-repeat!important;isolation:isolate}
.title-screen::before{content:"";position:absolute;inset:14px;border:1px solid rgba(234,195,126,.12);pointer-events:none;border-radius:18px;z-index:0}
.title-screen::after{content:"";position:absolute;top:14px;bottom:14px;right:21%;width:1px;background:linear-gradient(180deg,transparent,#d2b67a3b,transparent);pointer-events:none}
.title-atmosphere{display:none}
.title-brand{gap:16px;align-items:center}
.title-brand .brand-seal{height:52px;width:52px;border-radius:17px 4px 17px 4px;transform:rotate(-8deg);background:linear-gradient(135deg,#e4c99524,#e4c99506);border:1px solid #dabe7d6b;box-shadow:0 4px 32px #0008}
.title-brand .brand-seal::first-letter{transform:rotate(8deg)}
.title-brand small,.title-brand span:last-child,.title-footer,.menu-save,.eyebrow,.heading-day small,.risk-chip,.layer-tab,.card-kicker,.nav-badge{font-family:'DM Mono',monospace!important;letter-spacing:.17em!important}
.title-brand small{font-size:9px;color:#cbb88c}
.title-brand h1{font:700 clamp(17px,1.6vw,23px)/1.3 'DM Sans',sans-serif!important;letter-spacing:.22em!important;margin:3px 0 1px}
.title-brand span:last-child{font-size:10px;color:#e0b977}
.title-menu{margin:0 0 5vh;max-width:640px;padding:20px 0 0}
.title-menu .eyebrow{display:flex;align-items:center;gap:13px;font-size:11px;color:#eac88c;letter-spacing:.25em!important}
.title-menu .eyebrow::before{content:"";display:block;width:34px;height:1px;background:#daba7b}
.title-menu h2{font:500 clamp(44px,5.5vw,86px)/1.09 'Playfair Display',Georgia,serif!important;letter-spacing:-.032em!important;margin:18px 0 20px;max-width:680px;text-wrap:balance;text-shadow:0 7px 40px #000a}
.title-menu h2 em{font-style:italic;background:linear-gradient(110deg,#ffe9b7,#d2ac6d);color:transparent;background-clip:text;-webkit-background-clip:text}
.title-prologue{font-size:clamp(13px,1.18vw,17px);line-height:1.75;max-width:520px;color:#c1d0c9;margin:0 0 30px;text-shadow:0 2px 15px #000}
.menu-actions{max-width:326px;gap:10px}
.button,.nav-button,.layer-tab,.filter-tab,.action-tile,.item-card,.saga-row,.quest-row,.codex-entry{border-radius:11px!important;box-shadow:none!important}
.button{min-height:42px;font-size:12px;padding:0 17px;border-color:rgba(213,187,136,.26);background:rgba(13,31,33,.57);transition:background .2s,border-color .2s,transform .2s,box-shadow .2s;backdrop-filter:blur(3px)}
.button:hover:not(:disabled){background:#26403ac9;box-shadow:0 8px 24px #030b0c60!important;border-color:#d2b67a8c;transform:translateY(-2px)}
.button-primary{background:linear-gradient(115deg,#d7ba80,#ab8854)!important;border-color:#e9cd93!important;color:#192420!important;font-weight:700;box-shadow:0 8px 25px #c7a46a1e!important}
.button-primary:hover:not(:disabled){background:linear-gradient(110deg,#f0d59f,#d4aa70)!important;color:#111d1d}
.button:disabled{opacity:.43}
.button-quiet{color:#c8c8b4;background:transparent}
.button-small{min-height:35px;font-size:11px}
.menu-actions .button{height:51px;padding:0 20px;justify-content:space-between;border-radius:12px!important;font-size:13px}
.menu-actions .button-quiet{height:38px;color:#b8c3b7}
.menu-save{margin-top:18px;gap:9px;font-size:9px;color:#b3c2b8;letter-spacing:.10em!important;flex-wrap:wrap}
.menu-save b{color:#eee1c3;font-size:11px}
.title-badges{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:22px;color:#bdb18c;font-size:11px}
.title-badges span{border:1px solid #d4c09424;border-radius:40px;background:#10272b88;padding:9px 11px}
.title-footer{font-size:9px;color:#b6b5a1;position:relative;z-index:1;letter-spacing:.11em!important}
.title-footer span{border-top:1px solid #bda77755;padding-top:12px}

/* Creation: character sanctum rather than a form sheet */
.creation-screen{background:radial-gradient(circle at 17% 20%,#25463d6b,transparent 38%),radial-gradient(circle at 80% 50%,#ad89401d,transparent 50%),#09171a}
.simple-header{height:72px;max-width:1480px;margin:auto;border-color:#ddc79135}
.simple-header>span{font:10px 'DM Mono',monospace;color:#c8ad77;letter-spacing:.16em}
.creation-layout{width:min(1280px,100%);grid-template-columns:minmax(360px,.96fr) minmax(420px,1.08fr);gap:clamp(35px,7vw,125px);align-items:start;margin-top:32px}
.creation-copy{padding:25px 0 0}
.creation-copy .eyebrow{font-size:10px}
.creation-copy h2{font:500 clamp(37px,4vw,58px)/1.2 'Playfair Display',Georgia,serif!important;letter-spacing:-.024em!important}
.creation-copy>p:not(.eyebrow){font-size:13px;line-height:1.85;max-width:495px}
.avatar-creation-stage{max-width:395px;min-height:390px;border-radius:150px 150px 22px 22px!important;border:1px solid #caaa7770;background:radial-gradient(circle at 50% 43%,#5b8c7e40,transparent 47%),url('../assets/realm-landscape.svg') 70% 66%/auto 150% no-repeat,#132930;box-shadow:inset 0 0 0 10px #111f2580,inset 0 0 70px #08191a,0 28px 80px #0008}
.avatar-creation-stage::after{content:'✦';position:absolute;top:16px;left:50%;transform:translateX(-50%);font-size:18px;color:#ffe4acb0}
.avatar-creation-frame{height:336px}
.avatar-creation-frame svg{filter:drop-shadow(0 18px 18px #02090b9c)}
.avatar-creation-caption{font-size:10px;letter-spacing:.2em;color:#f0d69e}
.creation-form{border-radius:24px!important;background:linear-gradient(155deg,#1a3030ee,#112224ef)!important;border:1px solid #d7be9255;box-shadow:0 22px 60px #0006,inset 0 0 60px #d6b9780b!important;padding:clamp(19px,3vw,34px)}
.creation-form>label{font-size:12px;margin-top:17px}
.creation-form input,.creation-form select,.codex-search,.inventory-toolbar input,.world-toolbar input,.world-toolbar select{height:43px!important;border-radius:10px!important;border:1px solid #c7b5914a!important;background:#0a1e21!important;color:#eae7d8!important;font-size:12px!important}
.creation-form input:focus,.creation-form select:focus{border-color:#e7cf9b!important}
.field-help{font-size:11px;line-height:1.65;color:#a4b7ad}
.appearance-editor{border-radius:15px!important;background:#3245413b;border:1px solid #ac987353;gap:10px 12px;padding:19px}
.appearance-editor legend{color:#f0dba8;font-size:14px}
.appearance-editor label{font-size:11px}
.creation-fixed-value,.creation-sect-summary{border-radius:12px;border:1px solid #bea36a4e;background:#bd9a5820}
.creation-fixed-value strong{font-size:15px}
.creation-fixed-value span{font-size:12px;line-height:1.6}
.choice-chip,.trait-card{border-radius:11px!important;min-height:42px;font-size:11px;padding:12px}
.choice-chip.selected,.trait-card.selected{background:#b8945836;border-color:#dbbd81aa}
.trait-card b{font-size:11px}.trait-card small{font-size:10px}
.creation-accept{border-radius:11px;font-size:12px}.form-summary{border-radius:11px;padding:16px}
.creation-form .form-submit{height:52px;font-size:13px}

/* In-world interface: calmer typography, ornamental silhouettes and layered parchment */
.game-screen{background:radial-gradient(ellipse at 50% 0%,#294b4780,transparent 60%),#081519}
.game-topbar{position:sticky;top:0;z-index:30;height:66px;padding:0 clamp(14px,2vw,34px);background:#0b1b1fe8;border-bottom:1px solid #c8ab7360;backdrop-filter:blur(16px);box-shadow:0 10px 25px #02090c6b;border-radius:0!important}
.brand-seal.small{width:37px;height:37px;border-radius:10px 3px 10px 3px;border:1px solid #d0ae70a3;background:#d1a96615}
.app-brand b{font-size:14px;letter-spacing:.15em;color:#f4e4c0}.app-brand small{font-size:9px}
.topbar-world{font-size:10px}.topbar-world b{font-size:10px}.save-status{font-size:9px;color:#a8b5ac}
.icon-button{border-radius:9px;width:35px;height:35px;border-color:#b9ab7945;font-size:15px}
.game-layout{min-height:calc(100vh - 66px);grid-template-columns:226px minmax(0,1fr)}
.sidebar{position:sticky;top:66px;height:calc(100vh - 66px);min-height:0;padding:19px 12px;overflow-y:auto;overflow-x:hidden;border-right:1px solid #c3ad8340;background:linear-gradient(180deg,#0f2223f5,#09191cfc);scrollbar-width:thin;scrollbar-color:#a9916442 transparent;border-radius:0!important}
.sidebar::before{content:"";position:absolute;top:9px;left:10px;right:10px;height:1px;background:linear-gradient(90deg,transparent,#e7c78188,transparent)}
.mini-profile{gap:12px;padding:9px 8px 19px;border-bottom:1px solid #dfbf8440}
.mini-avatar{width:43px;height:43px;border-radius:50%;border-color:#c5a97185;flex:none;box-shadow:0 0 22px #b4d0b220}
.mini-avatar svg{width:68px;height:87px;top:-15px}
.mini-ident b{font-size:13px;color:#f2e1bb;font-weight:600}.mini-ident small{font-size:10px;line-height:1.4}
.sidebar-progress{font-size:9px;padding:16px 9px}.sidebar-progress b{font-size:10px}
.mini-progress,.wide-progress{height:7px;border-radius:20px;background:#0b1419;overflow:hidden}
.mini-progress i,.wide-progress i{border-radius:20px;background:linear-gradient(90deg,#977247,#d4ad70,#ffdb9a)}
.primary-nav{gap:3px}
.nav-button{height:39px;padding:0 11px;gap:11px;font-size:11px;border:1px solid transparent!important;color:#b7c3ba;transition:background .2s,color .2s,transform .2s}
.nav-button>span{font-size:17px;width:21px;color:#a1b6aa}
.nav-button:hover{background:#244139a8;color:#f1e6d0}
.nav-button.active{background:linear-gradient(90deg,#9f784c42,#1b322b88);border:1px solid #d0ae725b!important;color:#f5dfb2;font-weight:600}
.nav-button.active::after{content:"";width:3px;height:16px;border-radius:3px;background:#e8c88f;margin-left:3px}
.nav-badge{font-size:9px;color:#8fa69a}
.sidebar-bottom{padding-top:12px}
.sidebar-build{font-size:8px;color:#d2b78066}
.content-wrap{padding:clamp(20px,2.7vw,38px) clamp(17px,3vw,50px) 65px}
.view-pane{max-width:1450px}
.page-heading{align-items:end;gap:24px;margin-bottom:28px;padding-bottom:15px;border-bottom:1px solid #beaa8240}
.page-heading h1,.panel-card h2,.creation-copy h2{font-family:'Playfair Display',Georgia,serif!important;letter-spacing:-.015em!important;line-height:1.3!important}
.page-heading h1{font-size:clamp(28px,3vw,43px)!important}
.page-heading .eyebrow,.eyebrow{font-size:10px;letter-spacing:.17em;color:#cfb27c}
.page-subtitle{font-size:12px;line-height:1.7}
.heading-day{background:#d7ba7d13;border-left:2px solid #d7b87e;border-radius:0 12px 12px 0;padding:14px 16px}
.heading-day small{font-size:9px}.heading-day b{font-size:15px}
.heading-day span{font-size:11px}
.panel-card,.destination-card,.creation-form,.modal-card{border-radius:17px!important;background:linear-gradient(142deg,#193036dc,#112325f5)!important;border:1px solid #c2ae8140;box-shadow:0 13px 36px #02090c39,inset 0 1px 0 #b4c5b414!important;overflow:hidden}
.panel-card{padding:22px}.panel-card h2{font-size:clamp(17px,1.6vw,24px)!important;font-weight:500}
.panel-card h3{font-family:'Playfair Display',Georgia,serif;font-size:19px}
.panel-card p,.world-card p,.world-details p,.world-era li{font-size:12px;line-height:1.72;color:#aebdb6}
.card-copy{font-size:12px;line-height:1.8;color:#b6c4b9}
.heading-badge,.risk-chip,.status-pill{border-radius:30px;padding:7px 10px;font-size:9px}
.world-card-grid{gap:16px}
.world-card{padding:21px}.world-card h2{font-size:18px!important}
.world-card>small,.world-toolbar small{font-size:9px}
.destination-card{overflow:hidden}.destination-info{padding:18px}.destination-art{border:0}.destination-art:after,.feature-art:after{background:none}
.destination-info h2{font-family:'Playfair Display',Georgia,serif;font-size:18px}
.layer-tab,.filter-tab{font-size:11px;padding:10px 14px}
.layer-tab.selected,.filter-tab.active{background:#b9965b29;border:1px solid #b9965b7b}
.world-toolbar{padding:18px}
.world-toolbar b{font-size:14px}
.quest-row,.saga-row{border:1px solid #c4ae7738!important}

/* Signature character hero. Strong identity on the first in-game view. */
#view-overview>.page-heading{margin-bottom:18px}
#view-overview>.page-heading h1{font-size:25px!important}
.cultivator-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.42fr) minmax(240px,.72fr);min-height:315px;overflow:hidden;border-radius:25px 85px 24px 24px;border:1px solid #d4b57866;background:linear-gradient(90deg,#142a2eea 0%,#172d2bb8 51%,#132a2e30 100%),url('../assets/realm-landscape.svg') 60% 53%/cover no-repeat;box-shadow:0 20px 50px #0007;margin:0 0 16px}
.cultivator-hero::before{content:"";position:absolute;top:13px;bottom:13px;left:13px;right:13px;pointer-events:none;border:1px solid #e5c98b1c;border-radius:19px 72px 18px 18px}
.hero-body{position:relative;z-index:2;padding:35px clamp(22px,3vw,45px)}
.hero-body h2{font:500 clamp(28px,2.8vw,45px)/1.15 'Playfair Display',Georgia,serif;letter-spacing:-.02em;color:#fff4d7;margin:12px 0 14px}
.hero-body h2 em{color:#e1c083}
.hero-body>p:not(.eyebrow){max-width:490px;font-size:12px;line-height:1.8;color:#c6d0c2}
.hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.hero-current{display:flex;flex-wrap:wrap;gap:19px;align-items:center;margin-top:23px;font:10px 'DM Mono',monospace;color:#c0b99e}
.hero-current span{display:flex;gap:9px;align-items:center;letter-spacing:.1em}
.hero-current i{width:6px;height:6px;border-radius:50%;background:#9bdbad;box-shadow:0 0 10px #9fdda9}
.hero-current b{font-weight:500;color:#e4cea1}
.hero-portrait-scene{position:relative;min-height:260px;isolation:isolate}
.hero-moon{position:absolute;top:16%;left:48%;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,#dac79b70,#d1b27813 63%,transparent 75%);transform:translateX(-50%);box-shadow:0 0 100px #ddc58a45}
.hero-avatar{position:absolute;bottom:-28px;left:48%;transform:translateX(-50%);width:min(310px,100%);height:335px;filter:drop-shadow(0 20px 18px #041012db)}
.hero-avatar svg{height:100%;width:100%}
.hero-engraving{position:absolute;right:16px;bottom:-21px;color:#dbba7a33;font:160px Georgia,serif;z-index:-1}
.quest-compass{display:flex;align-items:center;gap:18px;margin-bottom:17px;border:1px solid #bba17469;border-radius:15px;padding:14px 20px;background:linear-gradient(110deg,#243833ee,#15292aec);box-shadow:0 8px 25px #0005}
.compass-seal{display:grid;place-items:center;flex:none;width:47px;height:47px;border-radius:50%;border:1px solid #dbc39083;background:#ddc07b16;color:#f2d39d;font:26px Georgia,serif}
.compass-message{flex:1;min-width:0}
.compass-message small{font:9px 'DM Mono',monospace;letter-spacing:.14em;color:#dfc38d}
.compass-message h3{margin:4px 0 3px;font:500 18px 'Playfair Display',Georgia,serif;color:#f3e5c8}
.compass-message p{margin:0;color:#b4c2b6;font-size:11px;line-height:1.5}
.compass-progress{margin-top:9px;height:5px;max-width:380px;border-radius:10px;background:#0b1c1b;overflow:hidden}
.compass-progress span{display:block;height:100%;background:linear-gradient(90deg,#8eb9a1,#e5c586);border-radius:10px;transition:width .2s}
.quest-compass>.button{flex:none}
.overview-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:15px}
.overview-grid>.current-place{grid-column:span 7}.overview-grid>.event-card{grid-column:span 5}
.overview-grid>.action-card{grid-column:span 5}.overview-grid>.status-card{grid-column:span 7}
.feature-card{background:#152728;border:1px solid #c2ae8140;border-radius:18px;overflow:hidden;box-shadow:0 13px 36px #02090c39}
.feature-art{height:240px;background:linear-gradient(180deg,#14293225,#091719af),url('../assets/realm-landscape.svg') 64% 54%/cover no-repeat;image-rendering:auto}
.feature-art .art-mountains{opacity:.28}
.art-caption{left:22px;bottom:22px}.art-caption small{font-size:10px}.art-caption b{font-size:clamp(20px,2vw,27px)}
.art-label{top:19px;left:22px;font-size:9px;color:#f4d7a3}.art-kanji{font-size:38px;right:24px;top:18px}
.place-footer{padding:16px 22px;gap:20px}.place-footer p{font-size:12px;line-height:1.65}
.action-card,.status-card{min-height:278px}
.action-list{gap:10px}
.action-tile{min-height:56px;grid-template-columns:38px 1fr 15px;padding:10px 12px;border:1px solid #c2ae813f;background:#c3b0860a}
.action-tile:hover{border-color:#e2c28798;background:#d7b98120}
.tile-icon{font-size:21px}.action-tile b{font-size:13px}.action-tile small{font-size:10px;margin-top:4px}
.status-metrics{padding:15px 0;gap:13px}.status-metrics small{font-size:9px}.status-metrics b{font-size:12px}
.status-bar-label{font-size:11px}.status-bar-label b{font-size:11px}.inventory-peek>span{font-size:9px}.inventory-peek>b{font-size:11px}
.event-card{min-height:300px}.event-card .card-copy{max-width:400px}.event-card .eyebrow{font-size:10px}
.event-emblem{border-radius:50%;width:72px;height:72px;opacity:.55}
.bottom-grid{gap:15px;margin-top:16px}.journal-list li{font-size:11px;padding:10px 0}.journal-list time{font-size:9px}
.quick-map-card h2{font-size:23px!important}.map-glyph{font-size:70px}

/* Sect career: active mission is legible and gives direct feedback. */
#sect-career-panel{position:relative;padding:clamp(18px,2.3vw,32px)!important;background:linear-gradient(135deg,#1a3332,#122527)!important;border-color:#d2b78565}
#sect-career-panel::before{content:"";position:absolute;top:-6px;right:22px;width:150px;height:150px;background:url(../assets/icones/v77/seita.png) center/contain no-repeat;opacity:.07;pointer-events:none} /* V77: sem caractere chinês */
#sect-career-panel h2{font-size:29px!important}
#sect-career-panel h3{font-size:22px;color:#f2d9a5;margin:25px 0 13px}
.sect-mentor,.sect-exam-preview{border-radius:15px;background:#091f2196;padding:19px;box-shadow:inset 0 1px 0 #d3b4761c}
.sect-rank-track{height:10px;border-radius:20px}.sect-rank-track>div{border-radius:20px}
.sect-active-mission{padding:20px;gap:13px;background:linear-gradient(115deg,#c5a35a1c,#1e39364a);border:1px solid #cfb07983;border-radius:16px}
.sect-active-mission>b{font:500 23px 'Playfair Display',Georgia,serif;color:#f4dbac}
.sect-active-mission>p{min-height:0;font-size:12px;line-height:1.7;margin:0}
.mission-counter{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #bfab7e38;padding-top:13px}
.mission-counter>span{font:10px 'DM Mono',monospace;color:#c8b889;letter-spacing:.14em}
.mission-counter strong{font:700 30px 'DM Sans',sans-serif;color:#b5e0bd;white-space:nowrap}
.mission-counter strong small{font-size:15px;color:#889b90}
.mission-progress-track{height:9px;border-radius:30px;background:#061718;border:1px solid #c2ab7156;overflow:hidden}
.mission-progress-track>i{display:block;height:100%;border-radius:30px;background:linear-gradient(90deg,#76aa8d,#d8cb8d);transition:width .3s}
.sect-active-mission .mission-hint{font-size:12px;line-height:1.7;color:#e2d1a8;padding:10px 15px;border-left:3px solid #d8b57c;background:#d5b57813;margin:0}
.mission-footer-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.sect-mission-grid .panel-card{padding:18px}.sect-mission-grid b{font-size:14px}.sect-mission-grid p{font-size:12px}
.journey-dialog{border-radius:22px!important;border:1px solid #d2b37b75!important;background:linear-gradient(150deg,#1d3433,#0b1c20)!important;box-shadow:0 40px 140px #000d!important}
.sect-exam-interaction{border-radius:15px}
.library-empty{border-radius:16px}

/* Make responsive instead of forcing desktop-like columns. */
@media(max-width:1200px){
  .game-layout{grid-template-columns:192px minmax(0,1fr)}
  .sidebar{padding:15px 9px}.nav-button{font-size:10px;padding:0 8px}
  .content-wrap{padding:22px 19px 40px}
  .cultivator-hero{grid-template-columns:minmax(0,1.5fr) minmax(185px,.65fr)}
  .hero-body{padding:27px}.hero-avatar{width:265px;height:310px}
}
@media(max-width:850px){
  .game-layout{grid-template-columns:60px minmax(0,1fr)}
  .sidebar{padding:12px 6px;top:66px}.mini-profile{padding:5px 0 11px;justify-content:center}.mini-avatar{width:40px;height:40px}
  .mini-ident,.status-dot,.sidebar-progress,.nav-badge,.sidebar-build{display:none}
  .primary-nav{margin-top:12px}.nav-button,.nav-button.active{width:47px;height:44px;padding:0;justify-content:center;font-size:0!important}
  .nav-button>span,.nav-button.active>span{font-size:20px}.nav-button.active::after{display:none}
  .sidebar-bottom .nav-button{font-size:0!important}
  .overview-grid>.current-place,.overview-grid>.event-card,.overview-grid>.action-card,.overview-grid>.status-card{grid-column:span 6}
  .creation-layout{grid-template-columns:1fr;gap:10px}.creation-copy{position:relative!important;top:auto!important;max-width:700px;display:block!important}
  .creation-copy>p:not(.eyebrow){max-width:700px}.creation-form{max-width:740px;width:100%;margin:auto}
  .avatar-creation-stage{margin:20px auto 10px}.creation-screen{padding:0 20px 30px}
}
@media(max-width:680px){
  .title-screen{padding:32px 23px 19px;background:linear-gradient(90deg,#07151bef,#07151bb0),url('../assets/realm-landscape.svg') 67% 50%/cover no-repeat!important}
  .title-screen::after{display:none}.title-menu h2{font-size:clamp(37px,9vw,58px)!important}
  .title-brand h1{font-size:16px!important}.title-brand .brand-seal{width:40px;height:40px}.title-brand small{font-size:7px}
  .title-menu{margin:38px 0 30px}.title-menu .eyebrow{font-size:9px}.title-prologue{font-size:13px}
  .title-badges{font-size:10px}.title-footer{font-size:8px;gap:14px}.title-footer span:nth-child(2){display:none}
  .topbar-world{display:none}.app-brand b{font-size:11px}
  .game-layout{grid-template-columns:54px minmax(0,1fr)}.sidebar{padding:9px 3px}
  .nav-button,.nav-button.active{width:46px}.content-wrap{padding:17px 12px 32px}
  .page-heading h1{font-size:28px!important}.page-subtitle{font-size:11px}
  #view-overview>.page-heading{display:none}
  .cultivator-hero{min-height:0;grid-template-columns:1fr;overflow:hidden;border-radius:18px 50px 18px 18px}
  .hero-body{padding:27px 21px 35px}.hero-body h2{font-size:clamp(29px,6vw,38px)}.hero-body>p:not(.eyebrow){font-size:11px}
  .hero-portrait-scene{display:none}.hero-current{font-size:9px}
  .quest-compass{align-items:flex-start;flex-wrap:wrap;padding:15px;gap:12px}.compass-seal{width:35px;height:35px;font-size:19px}.compass-message{flex-basis:calc(100% - 55px)}.quest-compass>.button{margin-left:auto}
  .overview-grid{grid-template-columns:1fr}
  .overview-grid>.current-place,.overview-grid>.event-card,.overview-grid>.action-card,.overview-grid>.status-card{grid-column:1}
  .feature-art{height:173px}.place-footer{flex-direction:column;align-items:flex-start}
  .bottom-grid{grid-template-columns:1fr}.panel-card{padding:16px}
  .appearance-editor{grid-template-columns:1fr 1fr;padding:13px}
  .avatar-creation-stage{min-height:285px;max-width:290px}.avatar-creation-frame{height:270px}
  .creation-copy h2{font-size:38px!important}
  .creation-form{padding:19px}.mission-footer-actions{justify-content:stretch}.mission-footer-actions .button{flex:1}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.nav-button,.mini-progress i,.mission-progress-track i,.compass-progress span{transition:none!important}}
/* Temporal world gates — legendary but readable; no square admin widgets. */
#secret-realms-panel{position:relative;overflow:hidden;margin:20px 0 27px;border-radius:24px!important;padding:clamp(18px,2vw,27px)!important;background:linear-gradient(140deg,rgba(23,45,46,.96),rgba(8,25,30,.98));border:1px solid rgba(212,179,116,.38)!important;box-shadow:0 16px 45px #0004,inset 0 0 60px #8da79608}
#secret-realms-panel::before{content:'';position:absolute;right:24px;top:-20px;width:190px;height:190px;background:url(../assets/icones/v77/reino.png) center/contain no-repeat;opacity:.06;pointer-events:none} /* V77 */
#secret-realms-panel>.card-heading{position:relative;align-items:flex-start;gap:12px}#secret-realms-panel .card-heading h2{font:500 clamp(22px,2vw,31px)/1.18 'Playfair Display',Georgia,serif!important;max-width:620px;letter-spacing:-.02em}
.world-event-time{white-space:nowrap;font:10px 'DM Mono',monospace;color:#ebd3a7;background:#e1c78c12;border:1px solid #e1c78c40;padding:9px 11px;border-radius:40px}
.world-event-description{font-size:12px;color:#b9c8bd;line-height:1.75;max-width:720px;position:relative}
.realm-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:21px 0}
.realm-event-card{position:relative;padding:19px 21px;border-radius:18px 46px 18px 18px;border:1px solid #b5a7843c;background:radial-gradient(circle at 93% 9%,#b1c59d20,transparent 40%),linear-gradient(140deg,#213739bf,#0e2024);overflow:hidden;min-width:0}
.realm-event-card.realm-open{border-color:#e3bd787a;background:radial-gradient(circle at 94% 7%,#bf9e5439,transparent 48%),linear-gradient(140deg,#26433f,#122629);box-shadow:inset 0 1px 0 #e9d39a26,0 10px 36px #0003}
.realm-event-mark{position:absolute;top:9px;right:10px;font:64px Georgia,serif;line-height:1;color:#e8d4a019;user-select:none}
.realm-event-heading{position:relative}.realm-event-heading>span{font:9px 'DM Mono',monospace;color:#aaa;letter-spacing:.13em}.realm-open .realm-event-heading>span{color:#bbdca8}
.realm-event-heading h3{font:500 24px/1.22 'Playfair Display',Georgia,serif!important;color:#f5e0b0;margin:10px 0 5px}.realm-event-heading small{color:#bac9b9;font-size:11px}
.realm-event-card>p{font-size:12px;line-height:1.7;min-height:50px;color:#b4c3b9;margin:15px 0}
.realm-event-possession{font:10px/1.6 'DM Mono',monospace;color:#e3c691;border-left:2px solid #be9b65;padding:9px 11px;background:#0003;border-radius:0 9px 9px 0;min-height:48px}
.realm-event-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}.realm-event-bottom>span{color:#9fafab;font-size:10px}
.relic-ownership-bar{display:flex;align-items:center;gap:15px;padding:16px 18px;border-radius:14px;background:#0d1a1de8;border:1px solid #cda96844;position:relative}.relic-ownership-bar>span{flex:none;font:32px Georgia,serif;color:#e5c383}.relic-ownership-bar div{flex:1;min-width:0}.relic-ownership-bar b{color:#f4dfad;font:600 14px 'DM Sans',sans-serif}.relic-ownership-bar p{margin:5px 0 0;color:#b1c2b8;font-size:11px;line-height:1.5}
@media(max-width:850px){.realm-event-grid{grid-template-columns:1fr}.world-event-time{font-size:9px}}@media(max-width:540px){#secret-realms-panel>.card-heading{flex-direction:column}.relic-ownership-bar{flex-wrap:wrap}.relic-ownership-bar>.button{width:100%}.realm-event-bottom>.button{width:100%}}

.realm-seal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:20px 0 14px;color:#eed49f;font-size:12px}.realm-seal-head strong{font:26px Georgia,serif;color:#e7bd72;margin-left:8px}
.realm-seal-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.realm-seal-choices button{min-height:80px;font:32px Georgia,serif;color:#eddfb5;background:linear-gradient(150deg,#2b4442,#132a2c);border:1px solid #d1b78166;border-radius:15px 32px 15px 15px;cursor:pointer;transition:transform .15s,border-color .15s}.realm-seal-choices button:hover{transform:translateY(-3px);border-color:#f6da9c;background:#3e5448}.realm-seal-choices button:focus-visible{outline:2px solid #f9d79a;outline-offset:3px}
