/* V17 visual realignment — a dark three-part panoramic concept, without baked UI. */
body.vault-page-realms{background:#05060b;color:#e6c99d}
.vault-page-realms .gate-v16-heading{padding:5px 14px 7px;margin:0 auto;max-width:1800px}
.vault-page-realms .gate-v16-heading h1{font-size:clamp(23px,2.45vw,39px);margin:0}
.vault-page-realms .gate-v16-heading p{margin:2px 0 0}
.gate-v17-stage{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px;max-width:1840px;margin:auto;padding:0 10px}
.gate-v17-side{align-self:stretch;border:1px solid #725333;background:linear-gradient(135deg,#120d13,#060810);padding:8px 4px;display:flex;flex-direction:column;gap:3px}
.gate-v17-side a{display:flex;align-items:center;gap:8px;min-height:49px;padding:10px 8px;color:#ceb78d;text-decoration:none;font:11px Georgia,serif;letter-spacing:.04em;border-bottom:1px solid #5b402959}
.gate-v17-side a.current,.gate-v17-side a:hover,.gate-v17-side a:focus-visible{background:#4b2b18;color:#f6dda8;outline:1px solid #b78d53}
.gate-v17-stage .vault-gate-v12{max-width:none;margin:0;padding:0;grid-template-columns:minmax(0,1.36fr) minmax(330px,.98fr);gap:7px}
.gate-v17-stage .gate-v12-visual{min-height:560px!important;max-height:640px;overflow:hidden}
.gate-v17-stage .gate-v12-dial{width:min(63%,465px);top:47%;left:35%}
.gate-v17-stage .gate-v12-portal{top:47%;left:35%}
.gate-v17-stage .gate-v12-sigil-horror{top:26%;left:15%}.gate-v17-stage .gate-v12-sigil-fantasy{top:11%;left:35%}.gate-v17-stage .gate-v12-sigil-nightmare{top:26%;left:59%}.gate-v17-stage .gate-v12-sigil-science{top:68%;left:13%}.gate-v17-stage .gate-v12-sigil-earthly{top:68%;left:59%}
.gate-v17-stage .gate-v16-warden{right:0;top:10%;bottom:4%;width:28%;background:linear-gradient(0deg,#030409f2,transparent 65%);border:0}
.gate-v17-stage .gate-v16-warden img{object-position:50% 20%;height:83%}
.gate-v17-stage .gate-v12-corner-note{display:none}.gate-v17-stage .gate-v12-visual-caption{bottom:25px;left:34%;font-size:11px}
.gate-v17-stage .gate-v12-panel{background:linear-gradient(130deg,#12121b,#080910 65%,#15101a)!important;border:2px ridge #a47b4b!important;color:#e4c699!important;padding:8px 9px!important;min-height:560px!important;max-height:640px;overflow-y:auto}
.gate-v17-stage .gate-v12-panel .panel-title{border-bottom:1px solid #ad844f;margin-bottom:5px;padding:5px 1px;text-align:center}
.gate-v17-stage .gate-v12-panel .panel-title h2{font-size:clamp(22px,2vw,30px);color:#f2d39d;margin:2px}
.gate-v17-stage .gate-v12-panel .panel-title p{color:#bf9e76;font-size:11px;margin:0}
.gate-v17-stage .gate-v12-panel .panel-title .eyebrow{color:#bd9b6c}
.gate-v17-stage .gate-v16-realm-atlas{position:relative;background:#080a13;border:1px solid #b38850;box-shadow:inset 0 0 0 2px #2a201d;margin:0;padding:7px}
.gate-v17-stage .gate-v16-atlas-title{color:#edd1a4;padding:3px 4px 5px}.gate-v17-stage .gate-v16-atlas-icon{color:#deb36b}.gate-v17-stage .gate-v16-status{color:#cbb189}
.gate-v17-stage .gate-v16-atlas-art{height:215px;margin-right:31%;border:1px solid #aa8045}
.gate-v17-stage .gate-v16-realm-overview,.gate-v17-realm-overview{position:absolute;top:46px;right:6px;width:30%;bottom:42px;overflow-y:auto;background:#0a0d14;border:1px solid #73542f;padding:2px;display:flex;flex-direction:column;gap:2px}
.gate-v17-realm-option{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:5px;text-align:left;align-content:center;flex:1;min-height:33px;background:transparent;color:#efd2a4;border:0;border-bottom:1px solid #7b5a3666;cursor:pointer;padding:3px}
.gate-v17-realm-option>span{grid-row:span 2;color:var(--v17-color);text-shadow:0 0 10px var(--v17-color);font:23px Georgia}.gate-v17-realm-option strong{font:12px Georgia;text-transform:uppercase}.gate-v17-realm-option small{font:9px Georgia;color:#c2b1a1}
.gate-v17-realm-option:hover,.gate-v17-realm-option:focus-visible,.gate-v17-realm-option[aria-pressed=true]{background:#50352675;outline:1px solid var(--v17-color)}
.gate-v17-stage .gate-v16-atlas-tabs{margin:5px 0 0}.gate-v17-stage .gate-v16-atlas-tabs a{background:#181018;color:#e6c394;border-color:#765533}
.gate-v17-stage .gate-v12-panel-copy p{font-size:11px;color:#d8c2a0;margin:5px}.gate-v17-stage .gate-v12-realm-state{color:#eccc91;background:#1b121c;border:1px solid #735638;padding:5px;font-size:11px}.gate-v17-stage .gate-v12-instruction{font-size:10px!important}
.gate-v17-stage .gate-v12-actions .action-primary,.gate-v17-stage .gate-v12-actions .action-secondary{background:#221018;color:#eecb8b;border:1px solid #a97b42;min-height:33px;padding:6px;font-size:10px}
.gate-v17-stage .gate-v15-preview{padding:5px;margin:3px 0}.gate-v17-stage .gate-v15-preview-list{max-height:95px}.gate-v17-stage .gate-v15-preview h3{font-size:10px}.gate-v17-stage .gate-v12-panel-bottom{padding:4px 0 0;margin:2px}.gate-v17-stage .gate-v12-panel-bottom a{font-size:10px;color:#d9b782}
.gate-v17-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-width:1840px;margin:8px auto;padding:0 10px}
.gate-v17-card{min-height:186px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;padding:12px 8px;overflow:hidden;border:2px ridge #997044;color:#e8ca98;background:linear-gradient(0deg,#03030af5 0%,#05061088 53%,#04060a21 100%),var(--v17-bg) center/cover}
.gate-v17-card:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 30px 4px #000b}
.gate-v17-card-symbol{font-size:27px;color:var(--v17-accent);text-shadow:0 0 9px var(--v17-accent)}.gate-v17-card h2{font:clamp(15px,1.5vw,23px) Georgia;margin:4px 0;font-variant:small-caps}.gate-v17-card p{font:11px Georgia;color:#e5d3b7;margin:3px 0 8px}.gate-v17-card a{z-index:1;display:block;border:1px solid #b88e56;color:#f3d39a;background:#120e17d9;text-decoration:none;padding:7px;font:10px Georgia}.gate-v17-card a:hover,.gate-v17-card a:focus-visible{background:#5c3023;outline:1px solid #ecc88c}
.gate-v17-lower{max-width:1840px;padding:0 10px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.7fr) minmax(220px,.7fr);gap:8px;margin:0 auto 12px}
.gate-v17-box{border:2px ridge #987044;background:linear-gradient(140deg,#14111a,#08090f);padding:12px;min-height:225px}.gate-v17-box h2{font:22px Georgia;color:#f0cc95;margin:0 0 5px;font-variant:small-caps}.gate-v17-box p{font:12px/1.5 Georgia;color:#b5a187;margin:0 0 8px}
.gate-v17-archive-group{display:flex;align-items:center;gap:10px;border-top:1px solid #5e452b;padding:5px 0}.gate-v17-archive-heading{flex:0 0 135px;font:12px Georgia;color:var(--v17-accent);text-decoration:none}.gate-v17-record-row{display:flex;gap:5px;min-width:0;overflow-x:auto}.gate-v17-record-row a{display:flex;align-items:center;gap:5px;flex:0 0 130px;color:#dbc3a0;text-decoration:none;font:11px Georgia;background:#18101a;padding:4px;border:1px solid #63482f}.gate-v17-record-row a img{height:41px;width:41px;object-fit:cover}.gate-v17-sealed-note{font:11px Georgia;color:#b7a189}
.gate-v17-keeper a{display:flex;flex-direction:column;text-decoration:none;color:#e6cc9e}.gate-v17-keeper img{height:135px;width:100%;object-fit:cover;object-position:center 25%;border:1px solid #6b4a30}.gate-v17-keeper strong{font:13px Georgia;margin:8px 0}.gate-v17-keeper span{font:11px Georgia;color:#dbaa71}.gate-v17-admin a{display:block;color:#dbb47a;text-decoration:none;border:1px solid #6d4e31;padding:9px;margin-top:6px;font:12px Georgia}.gate-v17-admin a:hover{background:#56341f}
.vault-page-realms .gate-v16-journey{display:none}
@media(max-width:1190px){.gate-v17-stage{grid-template-columns:100px minmax(0,1fr)}.gate-v17-side a span{font-size:9px}.gate-v17-stage .vault-gate-v12{grid-template-columns:1fr}.gate-v17-stage .gate-v12-panel{max-height:none;min-height:420px!important}.gate-v17-stage .gate-v16-warden{width:25%}.gate-v17-lower{grid-template-columns:1fr 1fr}.gate-v17-archive{grid-column:span 2}}
@media(max-width:750px){.gate-v17-stage{grid-template-columns:1fr}.gate-v17-side{flex-direction:row;flex-wrap:wrap}.gate-v17-side a{min-height:33px}.gate-v17-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gate-v17-lower{grid-template-columns:1fr}.gate-v17-archive{grid-column:auto}.gate-v17-stage .gate-v12-visual{min-height:485px!important}.gate-v17-realm-overview{top:43px;bottom:40px}.gate-v17-stage .gate-v16-atlas-art{height:200px}}
@media(max-width:480px){.gate-v17-stage .gate-v12-visual{min-height:430px!important}.gate-v17-stage .gate-v12-dial{left:39%;top:43%;width:68%}.gate-v17-stage .gate-v12-portal{left:39%;top:43%}.gate-v17-stage .gate-v16-warden{width:29%;height:33%;top:auto;bottom:8%}.gate-v17-stage .gate-v12-sigil{width:53px;min-height:53px}.gate-v17-realm-overview{width:34%;top:39px;bottom:40px}.gate-v17-stage .gate-v16-atlas-art{margin-right:35%;height:195px}.gate-v17-realm-option{grid-template-columns:18px 1fr}.gate-v17-realm-option>span{font-size:16px}.gate-v17-realm-option strong{font-size:9px}.gate-v17-realm-option small{font-size:8px}.gate-v17-card{min-height:165px}.gate-v17-card h2{font-size:16px}}
