/* V16 visual alignment — real DOM overlays, not screenshot UI. No backend or schema changes. */
:root{--v16-gold:#d5ae70;--v16-deep:#07080e;--v16-ink:#231a18}
.gate-v16-heading{max-width:1780px;margin:10px auto 0;text-align:center;padding-bottom:14px}
.gate-v16-heading h1{font-size:clamp(29px,3.1vw,49px);font-variant:small-caps;letter-spacing:.095em;line-height:1.18;color:#f0d09e;text-shadow:0 2px 20px #07030a}
.gate-v16-heading p{letter-spacing:.19em;font:11px/1.7 Georgia,serif;color:#bd9e6c}
.vault-gate-v12{max-width:1840px;grid-template-columns:minmax(0,1.53fr) minmax(390px,.99fr);gap:8px;padding:0 12px;margin-bottom:0}
.vault-gate-v12 .gate-v12-visual{min-height:750px;border:1px solid #876139;background-image:linear-gradient(105deg,#07060bd9,#05060b25 52%,#05050de9),var(--world);background-position:center;background-size:cover;background-color:#080911}
.gate-v12-visual:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 35% 46%,#0b091480 5%,#07050b45 55%,#0203087a);z-index:0}
.gate-v12-visual .gate-v12-halo{background:radial-gradient(ellipse at 36% 46%,transparent 8%,#07051266 50%,#020308aa 80%)}
.gate-v12-dial{left:37%;top:46%;width:min(61%,545px);border:13px ridge #91683f;background:repeating-conic-gradient(from 9deg,#c09b5f45 0 3deg,#06070e15 3deg 12deg,#ad834a44 12deg 15deg,#09090f10 15deg 24deg);box-shadow:0 0 0 4px #130e12,0 0 0 7px #e0b26c,0 0 0 14px #12111b,0 0 0 18px #ac854a85,0 0 38px 16px #000e,inset 0 0 0 5px #bc8b4d,inset 0 0 27px 18px #080910}
.gate-v12-portal{left:37%;top:46%;height:46%;width:min(27%,238px)}
@keyframes vault-gate-v12-spin{0%{transform:translate(-50%,-50%) rotate(0)}100%{transform:translate(-50%,-50%) rotate(360deg)}}
.gate-v12-sigil{width:86px;min-height:86px;background:radial-gradient(circle,#221c24 20%,#0a0913 80%);border-width:3px;z-index:7}
.gate-v12-sigil-horror{left:16%;top:26%}.gate-v12-sigil-nightmare{left:62%;top:27%}.gate-v12-sigil-science{left:10%;top:65%}.gate-v12-sigil-fantasy{left:37%;top:12%}.gate-v12-sigil-earthly{left:62%;top:66%}
.gate-v12-visual-caption{left:36%;bottom:74px;width:auto;max-width:55%;white-space:normal;line-height:1.4;pointer-events:none;z-index:8;background:#090a12df}
.gate-v12-corner-note{left:4%;right:30%;bottom:18px;text-align:center}
.gate-v16-warden{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:absolute;z-index:5;right:1.2%;top:17%;bottom:9%;width:27%;text-decoration:none;background:linear-gradient(0deg,#05050deb 4%,transparent 52%);border:1px solid #af885024;color:#f1d1a2;overflow:hidden;box-shadow:inset 0 -90px 55px #05050ccc}
.gate-v16-warden img{position:absolute;width:100%;height:86%;top:0;left:0;object-fit:cover;object-position:37% 22%;mask-image:linear-gradient(180deg,#000 60%,transparent 100%);filter:contrast(1.06)}
.gate-v16-warden span{position:relative;z-index:1;display:block;text-align:center;text-shadow:0 2px 8px #000}
.gate-v16-warden-name{font:clamp(14px,1.5vw,24px)/1.3 Georgia,serif;letter-spacing:.07em}
.gate-v16-warden-motto{font:italic 12px/1.5 Georgia,serif;color:#c6ac87;margin:4px 0 10px}
.gate-v16-warden-action{border:1px solid #bf9159;padding:8px 13px;font:11px Georgia,serif;letter-spacing:.1em;background:#120d14e8;color:#f6d3a0;margin-bottom:18px}
.gate-v16-warden:is(:hover,:focus-visible){outline:2px solid #e2b677;outline-offset:-3px}.gate-v16-warden:hover .gate-v16-warden-action{background:#422719}
.vault-gate-v12 .gate-v12-panel{min-height:750px;background:linear-gradient(130deg,#f1dfc2,#d9c2a1 55%,#efdbb8);border:3px double #a47c48;padding:16px 16px 24px;color:var(--v16-ink)}
.gate-v12-panel .panel-title{padding:4px 2px 8px;border-bottom:1px solid #a98960}.gate-v12-panel .panel-title h2{font:clamp(24px,2.3vw,38px)/1.15 Georgia,serif;color:#3b291c;margin:5px 0}.gate-v12-panel .panel-title .eyebrow{font-size:10px;color:#72513b}
.gate-v16-realm-atlas{border:1px solid #9d7649;background:#e5ceb0;box-shadow:inset 0 0 0 4px #d2b58d;margin-top:8px;padding:9px}
.gate-v16-atlas-title{display:flex;align-items:center;gap:11px;padding:4px 3px 10px;color:#3d291d}.gate-v16-atlas-icon{font-size:27px;color:#956b34}.gate-v16-atlas-title div{flex:1;min-width:0}.gate-v16-atlas-title small{display:block;font:9px Georgia;letter-spacing:.15em}.gate-v16-atlas-title strong{display:block;font:clamp(17px,1.5vw,23px) Georgia,serif}.gate-v16-status{font:9px Georgia;color:#725136;text-align:right;max-width:114px;line-height:1.4}
.gate-v16-atlas-art{position:relative;height:250px;overflow:hidden;border:3px ridge #a6814a;background:linear-gradient(110deg,#07070f55,#09070f11),url('/assets/realm-v15/scenes/earthly.webp') center/cover no-repeat;transition:background-image .1s}
.gate-v16-atlas-art:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06070ed5,transparent 32%);pointer-events:none}
.gate-v16-atlas-marker{position:absolute;font:25px Georgia;color:#ffce76;text-shadow:0 0 13px #ffd37a,0 0 25px #b67a2f;pointer-events:none}.gate-v16-atlas-marker.m1{left:18%;top:22%}.gate-v16-atlas-marker.m2{left:66%;top:16%;color:#ff7079}.gate-v16-atlas-marker.m3{left:41%;top:54%;color:#e5c897}.gate-v16-atlas-marker.m4{left:78%;top:68%}
.gate-v16-atlas-caption{position:absolute;bottom:11px;left:15px;font:10px Georgia;letter-spacing:.14em;color:#e9d0a7}
.gate-v16-atlas-tabs{display:flex;gap:3px;margin-top:8px}.gate-v16-atlas-tabs a{flex:1;text-align:center;text-decoration:none;font:9px Georgia;letter-spacing:.045em;padding:9px 4px;color:#f2d6ad;border:1px solid #95764e;background:#1b171d}.gate-v16-atlas-tabs a:hover,.gate-v16-atlas-tabs a:focus-visible{background:#624127;outline:1px solid #b48a55}
.gate-v12-panel-copy{flex:0}.gate-v12-panel-copy p{font-size:13px;line-height:1.45;margin:10px 0}.gate-v12-realm-state{margin:7px 0;padding:8px}.gate-v12-instruction{font-size:12px!important}.gate-v12-steps{display:none}.gate-v12-actions{display:flex;gap:8px}.gate-v12-actions .action-primary,.gate-v12-actions .action-secondary{flex:1;min-width:0;min-height:43px;font-size:11px;padding:10px 6px}
.gate-v12-sealed{margin:8px 0}.gate-v13-warden{display:none}.gate-v12-panel-bottom{margin:12px 0 0;padding:12px 0 0;gap:3px}.gate-v15-preview{margin-top:11px;padding:9px;background:#151019}.gate-v15-preview h3{font-size:11px;margin:0 0 5px}.gate-v15-preview-list{max-height:175px;gap:4px}.gate-v15-preview-item{grid-template-columns:48px 1fr;padding:5px}.gate-v15-preview-item img{width:48px;height:48px}.gate-v15-preview-item strong{font:13px Georgia;margin:0}.gate-v15-preview-item small{font-size:10px}.gate-v15-atlas-link{margin-top:5px;padding:8px;font-size:10px}
.gate-v16-journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-width:1840px;padding:0 12px;margin:8px auto 45px}.gate-v16-journey>div{position:relative;min-height:95px;padding:15px 12px 12px 50px;background:linear-gradient(125deg,#17131c,#07080e);border:1px solid #ac8450;box-shadow:inset 0 0 0 2px #100f16}.gate-v16-journey b{position:absolute;top:12px;left:13px;font:20px Georgia;color:#f1d2a5;border:1px solid #d1a66d;width:30px;height:30px;display:grid;place-items:center;border-radius:50%}.gate-v16-journey strong{display:block;color:#e9c997;font:12px/1.4 Georgia;letter-spacing:.065em}.gate-v16-journey small{display:block;color:#ad9b89;font:11px/1.4 Georgia;margin-top:6px}
/* Realm Discovery Atlas: larger cinematic scene + narrower ornate parchment, close to approved concept. */
.realm-v13{max-width:1860px;margin:0 auto;grid-template-columns:minmax(0,1.67fr) minmax(380px,.8fr);gap:7px;padding:9px 12px 28px}.realm-v13-scene{min-height:770px;border:2px solid #977147}.realm-v13-intro{max-width:315px;padding:36px 25px;background:linear-gradient(95deg,#080810d9,#080a13aa 62%,transparent);border-left:2px solid #b08d57}.realm-v13-intro h1{font-variant:small-caps;letter-spacing:.11em}.realm-v13-paper{box-shadow:0 12px 38px #0009,inset 0 0 0 6px #e9d3ac;border:4px ridge #b18b53}.realm-v13-paper-head{padding:20px 18px 12px}.realm-v13-paper-head h2{font-variant:small-caps;font-size:30px}.realm-v13-tabs{padding:10px}.realm-v13-tabs button{font-size:11px;padding:9px 8px}.realm-v13-list{max-height:640px;padding:0 10px 12px}.realm-v13-row{grid-template-columns:77px minmax(0,1fr);gap:10px;padding:9px 6px 11px}.realm-v13-thumb{width:76px;height:80px}.realm-v13-row-copy h3{font-size:18px;margin:4px 0}.realm-v13-row-copy p{font-size:12px;line-height:1.4}.realm-v13-row-end{font-size:11px}.realm-v13-pin{box-shadow:0 0 0 6px #aa824b35,0 0 25px #e8b16b66}
@media(max-width:1250px){.gate-v16-warden{width:24%}.vault-gate-v12{grid-template-columns:minmax(0,1.1fr) minmax(350px,.9fr)}.gate-v12-dial{width:69%}.gate-v12-sigil{width:70px;min-height:70px}.gate-v12-glyph{font-size:25px}.realm-v13{grid-template-columns:minmax(0,1.2fr) minmax(370px,.87fr)}}
@media(max-width:920px){.vault-gate-v12{grid-template-columns:1fr}.vault-gate-v12 .gate-v12-visual{min-height:650px}.gate-v12-panel{min-height:0!important}.gate-v16-journey{grid-template-columns:repeat(3,1fr)}.realm-v13{grid-template-columns:1fr}.realm-v13-scene{min-height:650px}}
@media(max-width:600px){.vault-gate-v12 .gate-v12-visual{min-height:500px}.gate-v12-dial{left:40%;top:43%;width:67%;border-width:7px}.gate-v12-portal{left:40%;top:43%;width:30%;height:42%;border-width:5px}.gate-v12-sigil{width:57px;min-height:57px;padding:1px}.gate-v12-glyph{font-size:18px}.gate-v12-sigil-name{font-size:7px}.gate-v12-sigil-horror{left:13%;top:24%}.gate-v12-sigil-nightmare{left:68%;top:24%}.gate-v12-sigil-science{left:12%;top:63%}.gate-v12-sigil-fantasy{left:40%;top:9%}.gate-v12-sigil-earthly{left:68%;top:65%}.gate-v16-warden{width:30%;height:35%;top:auto;bottom:9%;right:1%}.gate-v16-warden-name{font-size:12px}.gate-v16-warden-motto{display:none!important}.gate-v16-warden-action{font-size:8px;padding:6px}.gate-v12-visual-caption{left:35%;bottom:39px;font-size:9px}.gate-v16-atlas-art{height:205px}.gate-v16-journey{grid-template-columns:1fr 1fr;gap:5px}.gate-v16-journey>div{min-height:80px;padding:12px 8px 12px 44px}.gate-v16-journey strong{font-size:10px}.gate-v16-journey small{font-size:10px}.realm-v13-scene{min-height:560px}.realm-v13-intro{max-width:260px;padding:18px 12px}}
@media(prefers-reduced-motion:reduce){.gate-v16-atlas-art{transition:none}}
