/* V2.2.6: shared fantasy surfaces, controls and compact workspaces. */
:root{--vr225-ink:#30251e;--vr225-muted:#635642;--vr225-paper:#fff5df;--vr225-edge:#bea575;--vr225-green:#315d49;--vr225-purple:#68457e}
[hidden]{display:none!important}
.realm-main,.admin-main{min-width:0;gap:18px}.realm-card{border-radius:18px;box-shadow:0 3px 0 #8c704e55,0 8px 24px #171e2410;min-width:0;overflow-wrap:anywhere}.realm-card h2{font-size:clamp(21px,2.2vw,28px);line-height:1.2}.realm-card h3{font-size:20px}.realm-card p{line-height:1.65}.realm-eyebrow{letter-spacing:.09em;line-height:1.5}.realm-heading{gap:18px;align-items:center}.section-intro,.field-hint{line-height:1.55}
.realm-main :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=range],[type=color]),select,textarea),.admin-main :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=range],[type=color]),select,textarea),dialog :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea){font:inherit;color:var(--vr225-ink);background:#fffaf0;border:1px solid #a58d65;border-radius:10px;min-height:44px;padding:10px 12px;max-width:100%;box-shadow:inset 0 2px 3px #70522d12}
.realm-main textarea,.admin-main textarea,dialog textarea{width:100%;resize:vertical;line-height:1.6;min-height:130px}.realm-main label,.admin-main label,dialog label{font-weight:600;line-height:1.5}.realm-main label:has(>input:not([type=checkbox],[type=radio])),.realm-main label:has(>select),.admin-main label:has(>input:not([type=checkbox],[type=radio])),.admin-main label:has(>select){display:grid;gap:6px;min-width:0}
input[type=checkbox],input[type=radio]{accent-color:var(--vr225-green);width:19px;height:19px;vertical-align:middle;flex-shrink:0}.check-row{align-items:center;gap:10px}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#a6302d!important;box-shadow:0 0 0 2px #a6302d25!important}input:disabled,select:disabled,textarea:disabled{opacity:.65;cursor:not-allowed}.field-error{color:#9d2828}.form-status:not(:empty){border-left:4px solid #477756;background:#e7eddb;color:#264231;padding:10px 14px;border-radius:8px;line-height:1.5}.form-status.is-error{border-color:#a94132;background:#ffebdf;color:#862c24}
.realm-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;transition:filter .15s,transform .15s}.realm-button .ui-icon{width:22px;height:22px}.realm-button:hover{filter:brightness(1.07)}.realm-button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.6}.realm-main :is(a,button,input,select,textarea):focus-visible,.admin-app :is(a,button,input,select,textarea):focus-visible,dialog :is(a,button,input,select,textarea):focus-visible{outline:3px solid #26789b;outline-offset:3px}
:is(.realm-section-tabs,.building-dialog-tabs,.building-detail-tabs,.vr-townhall-tabs,.map-guide-tabs,.vr-codex-tablist,[role=tablist]){display:flex;flex-wrap:wrap;margin:14px 0}
dialog.realm-dialog{color:var(--vr225-ink);background:var(--vr225-paper);border:2px solid #9e8154;border-radius:20px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain}dialog::backdrop{background:#122823b3;backdrop-filter:blur(3px)}dialog p{line-height:1.6}dialog blockquote{padding:18px;border-radius:12px;background:#e6ead6;border-left:4px solid #548165;white-space:pre-wrap;overflow-wrap:anywhere}.vr-townhall [data-welcome-count]{display:block;text-align:right;color:#67563f;font-size:13px;margin:8px 0}.vr-townhall [data-welcome-input]{font-size:17px;min-height:160px}.vr-hall-actions{padding:12px;background:#e9ecd9;border:1px solid #aeb997;border-radius:12px}.vr-hall-actions button,[data-hall-buildings] button{background:#315d49;color:#fff5dc;border:1px solid #65856c}.vr-townhall-identity{margin-bottom:12px}
.site-nav .vr-join-cta{color:#35271c!important;background:linear-gradient(#ffe3a0,#e4b965)!important;border:1px solid #ffe8ac;text-shadow:none;box-shadow:0 3px #38271a}.site-nav .vr-join-cta:hover{filter:brightness(1.1)}.site-nav .profile-menu>summary,.site-nav .profile-menu>summary:is(:hover,:active,:focus),.site-nav .profile-menu[open]>summary{background:transparent!important;box-shadow:none!important}.site-nav .profile-menu>summary:focus-visible{outline:3px solid #ffe4a0;outline-offset:3px}.profile-menu .vr-avatar{border-radius:50%!important;object-fit:cover;aspect-ratio:1;flex:none}.profile-summary-avatar{width:30px!important;height:30px!important}
.vr-guest-access{display:flex;align-items:center;gap:20px;padding:20px 24px;border:1px solid #b4a071;border-radius:20px;background:linear-gradient(120deg,#e6ecd5,#fff3d4);box-shadow:0 3px #9c855e55}.vr-guest-access>div{flex:1}.vr-guest-access h2{font-size:24px;margin:4px 0}.vr-guest-access p{margin:4px 0}.vr-guest-access nav{display:flex;gap:10px;flex-wrap:wrap}.vr-landing-feature h3{color:#315d49}.vr-landing-world:hover{border-color:#67457e;box-shadow:0 4px #67457e66}.vr-landing-rewards .vr-lead{font-size:20px;font-weight:650;color:#315d49}
/* The HUD remains a single scrolling line, including production and time. */
.realm-village-page .vr-resource-strip{overflow:visible}.realm-village-page .vr-resource-strip-inner{display:flex!important;flex-wrap:nowrap!important;width:auto!important;max-width:max-content!important;gap:8px!important;align-items:center!important;overflow-x:auto;overflow-y:hidden;padding:5px 10px!important;scrollbar-width:thin;scroll-snap-type:x proximity}
.realm-village-page .vr-resource-token{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;padding:8px 10px!important;height:40px!important;white-space:nowrap;border-radius:10px;scroll-snap-align:start}.realm-village-page .vr-resource-amount{display:inline-flex!important;gap:3px!important;align-items:baseline!important;font-size:15px!important;font-variant-numeric:tabular-nums}.realm-village-page .vr-resource-name{font-size:12px!important}.realm-village-page .vr-resource-progress,.realm-village-page .vr-resource-room{display:none!important}.realm-village-page .vr-resource-status-row{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:12px!important;width:auto!important;align-items:center!important;white-space:nowrap}.vr-resource-status-row [data-resource-message]:empty{display:none}.vr-resource-status-row [data-building-production]{font-size:12px!important;white-space:nowrap}.vr-resource-status-row .vr-realm-clock{font-size:12px!important;white-space:nowrap;margin:0!important;min-width:0!important}.has-immersive-hud [data-resource-hud]{top:0!important;left:0!important;right:0!important;max-width:none!important;z-index:12}
/* Codex, account and wallet retain their real data and actions. */
.vr-codex-panel{padding:clamp(16px,2.5vw,28px)!important}.vr-tab-heading{border-bottom:1px solid #bca479;padding-bottom:14px;margin-bottom:18px}.vr-tab-heading h3{font-size:28px}.vr-codex-history-grid{gap:16px!important}.vr-codex-history-card,.vr-village-chart{padding:18px!important;border:1px solid #baa578;border-radius:14px;background:#fff6e2}.vr-village-visit-counters>div{min-height:0!important;padding:18px!important;border-radius:14px}.vr-village-visit-counters strong{font-size:30px!important}.vr-village-visit-counters span{line-height:1.5}.village-identity-form{display:grid;gap:14px}.vr-avatar-editor{display:grid!important;grid-template-columns:112px minmax(180px,1fr) minmax(220px,1fr)!important;gap:22px!important;align-items:center;padding:24px!important}.vr-avatar-editor>img{grid-column:1;grid-row:1;width:112px!important;height:112px!important;object-fit:cover;border-radius:50%;border:4px solid #c5a873;box-shadow:0 4px 0 #81654255}.vr-avatar-editor>div{grid-column:2;grid-row:1}.vr-avatar-editor>form[data-avatar-form]{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;gap:10px}.vr-avatar-editor form>label{flex-basis:100%}.vr-avatar-editor h2{margin:5px 0}.vr-account-hub .realm-card{padding:20px!important;margin-bottom:14px;min-height:0!important}.vr-account-hub [role=tabpanel]{min-width:0}.account-detail-list>div{padding:12px 0!important;border-bottom:1px solid #c7b48f}.account-password-change{background:#eee5cf;border-radius:14px;padding:18px;margin:16px 0}.wallet-core{display:grid;gap:16px}.wallet-core .realm-card{margin:0!important;padding:22px!important}.wallet-core .wallet-heading{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}.wallet-heading>div:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.wallet-balance-overview{gap:14px!important}.wallet-summary-token{border-radius:14px!important;padding:16px!important}.wallet-balance{min-height:0!important;gap:20px!important}.wallet-amount{font-size:clamp(30px,4vw,48px)!important;font-variant-numeric:tabular-nums}.wallet-reserved{padding:14px;border-radius:12px;background:#e9dfcb;color:#473c2e}.wallet-reserved small{display:block;margin-top:6px}.wallet-estimate small{line-height:1.5}
.achievements>header{display:grid;grid-template-columns:1fr auto;gap:8px 24px;align-items:center}.achievements>header>.realm-eyebrow,.achievements>header>h1,.achievements>header>p:first-of-type{grid-column:1}.achievements>header>p:nth-of-type(2){grid-column:2;grid-row:1/4;max-width:230px;line-height:1.8}.achievements>header>progress{grid-column:1/-1;width:100%;height:10px}.achievement-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:16px!important;align-items:stretch}.achievement-card{display:grid!important;grid-template-columns:64px minmax(0,1fr);gap:8px 14px!important;align-content:start;min-height:0!important}.achievement-card .achievement-badge{width:64px!important;height:64px!important;grid-row:1/4;object-fit:contain}.achievement-card>:not(img){grid-column:2}.achievement-card h2{font-size:21px!important;margin:0!important}.achievement-card p{font-size:14px;margin:0!important}.achievement-card>strong{font-size:20px;color:#68457e}.achievement-card progress{width:100%;height:9px;accent-color:#477957}.achievement-card.is-locked{opacity:1!important}.achievement-card[data-achievement-state=completed]{border-color:#66805a;box-shadow:inset 0 3px #66805a,0 3px 0 #8c704e44}.achievement-card[data-achievement-state=paused]{border-style:dashed}.achievement-pagination{display:flex;justify-content:center;gap:12px}
/* All administrative sections share the same controls, density and hierarchy. */
.admin-main{width:100%;max-width:1500px;margin-inline:auto;padding:clamp(16px,2vw,30px)!important}.admin-main>.realm-card,.admin-main details.realm-card{padding:22px!important;margin-bottom:16px;min-height:0!important}.admin-main .realm-heading h1{font-size:clamp(28px,3vw,40px)}.admin-main .realm-heading .section-intro{max-width:75ch}.admin-main :is(.kpi-grid,.ops-grid){gap:14px;align-items:start}.admin-main .kpi-grid .realm-card{padding:18px!important}.admin-main .kpi-grid h2{font-size:18px}.admin-main .kpi-grid strong{font-variant-numeric:tabular-nums}.admin-main .realm-form{display:grid;gap:14px}.admin-main .realm-form>.realm-button{justify-self:start}.admin-main :is(.comm-actions,.realm-filters){display:flex;flex-wrap:wrap;gap:12px;align-items:end}.admin-main .comm-actions label{flex:1 1 160px}.admin-main details>summary{cursor:pointer;font-weight:650;min-height:40px;padding:10px 0}.admin-main details[open]>summary{margin-bottom:12px;border-bottom:1px solid #c9b58c}.admin-main fieldset{padding:18px;border:1px solid #bba275;border-radius:14px}.admin-main legend{float:none;width:auto;padding:0 8px;font-size:18px}.admin-main table,.wallet-core table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}.admin-main :is(th,td),.wallet-core :is(th,td){padding:12px 14px!important;border-bottom:1px solid #d0bf99;vertical-align:middle}.admin-main th,.wallet-core th{color:#fff2d5;background:#365747;font-weight:650;text-align:left}.admin-main tbody tr:nth-child(even),.wallet-core tbody tr:nth-child(even){background:#e9dfc647}.admin-main .table-responsive{border:1px solid #b7a075;border-radius:12px;overflow:auto;margin-block:12px}.admin-main .empty-state{padding:24px;border:1px dashed #ad966d;border-radius:14px;background:#f8efd9;text-align:center}.vr-balance-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.vr-balance-steps article{padding:18px;background:#e7ecd8;border:1px solid #a5b18d;border-radius:14px}.vr-balance-steps strong{color:#315d49}.vr-balance-steps p{font-size:14px;margin:8px 0 0}.vr-placement-status{display:inline-block;padding:4px 9px;border-radius:20px;background:#e5e9d5;color:#304c3b;font-size:13px;font-weight:650}.vr-ad-config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
@media(max-width:900px){.vr-guest-access{flex-wrap:wrap}.vr-guest-access nav{width:100%}.vr-avatar-editor{grid-template-columns:86px minmax(0,1fr)!important;gap:16px!important}.vr-avatar-editor>img{width:86px!important;height:86px!important}.vr-avatar-editor>form[data-avatar-form]{grid-column:1/-1;grid-row:2}.vr-balance-steps{grid-template-columns:1fr}.achievements>header{display:block}.achievements>header>p:nth-of-type(2){max-width:none}.realm-card{padding:18px}.wallet-balance-overview{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.realm-village-page .building-production-card summary,.realm-village-page .building-rates{display:flex!important;flex-wrap:nowrap!important;gap:5px;white-space:nowrap}.realm-village-page .vr-resource-status-row [data-building-production]{flex:0 0 auto!important;width:auto!important;padding:0!important}.realm-village-page .building-production-card .building-rate{padding:4px 6px;min-height:32px}.realm-village-page .building-production-detail{position:fixed!important;top:155px!important;left:50%!important;right:auto!important;transform:translateX(-50%);z-index:401;width:min(600px,calc(100vw - 32px));max-height:60dvh;overflow:auto;white-space:normal}.has-immersive-hud .building-production-detail{top:75px!important}
/* Explicit priority over legacy modal tab rules. */
.realm-dialog>header button[data-townhall-close],.realm-dialog>header button[data-map-guide-close]{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid #ad9469;background:#e9d9b6;color:#3b2c1e;font-size:26px;line-height:1}.realm-dialog>header button:hover{filter:brightness(1.08)}
.vr-landing-hero figure{position:relative;min-height:260px}.vr-landing-hero figure>img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center}.vr-landing-hero figcaption{position:absolute;inset:auto 0 0;background:#fff4dbdf;color:#3a4d3b;padding:8px 12px}.vr-townhall>.building-heading{position:sticky;top:-22px;z-index:3;background:#fff5df;padding-block:8px;border-bottom:1px solid #cfbc96}
@media(max-width:800px){.vr-landing-hero figure{min-height:150px;aspect-ratio:3/1}.vr-landing-hero figure>img{max-height:none}.vr-townhall>.building-heading{top:-14px}}

/* Auth card is the actual shared registration/login form. */
.vr-landing-hero{align-items:start;grid-template-columns:minmax(0,1fr) minmax(320px,460px)}.vr-home-auth{padding:24px!important;background:#26302f!important;color:#f6eedb;border:1px solid #637168}.vr-home-auth h2{color:#ffe1a1;margin:0 0 16px}.vr-home-auth .realm-form{display:grid;gap:10px;margin:14px 0}.vr-home-auth .gateway-fields{display:grid;grid-template-columns:1fr;gap:10px}.vr-home-auth label{display:block}.vr-home-auth .field-hint{font-size:12px;color:#c3c9bd}.vr-home-auth a{color:#ffdfa1}.vr-auth-tabs{display:flex;gap:8px}.vr-auth-tabs button{flex:1;min-height:44px;border-radius:12px;border:1px solid #748875;background:#303f38;color:#f9efd6}.vr-auth-tabs [aria-pressed=true]{background:#efd194;color:#30251e}.vr-home-auth .realm-captcha{background:#1e2827;color:#f4ecd9;border:1px solid #71836b}.vr-home-auth .registration-password-rules{font-size:12px}.vr-landing-scene figure{margin:0}.vr-landing-scene img{width:100%;max-height:280px;object-fit:cover;border-radius:20px}.vr-landing-scene figcaption{font-size:12px}.realm-captcha{padding:10px 12px;gap:5px}.realm-captcha legend{font-size:16px!important}.realm-captcha .captcha-art{min-height:0!important;height:auto!important}.realm-captcha img{display:block;max-width:260px!important;height:auto!important;margin:5px auto!important}.realm-captcha p{margin:4px 0!important;font-size:12px}.realm-captcha .captcha-actions{display:flex;gap:8px;margin:4px 0}.realm-captcha button{min-height:44px}.realm-captcha input[name=captcha_answer]{min-height:44px!important;width:180px!important;max-width:100%;font-size:20px;letter-spacing:.2em}.realm-captcha audio{max-width:100%;height:40px}
.site-nav .profile-menu>summary{display:flex;align-items:center;gap:8px;padding:5px 8px;color:inherit!important;border:0;background:none!important;min-height:44px;list-style:none}.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu .profile-summary-avatar{width:40px!important;height:40px!important;border:0!important}.profile-menu-head small a:is(:hover,:focus-visible){text-decoration:underline}.profile-chevron{font-size:12px}
.vr-townhall textarea.vr-welcome-editor{display:block;width:100%!important;min-height:170px!important;border-radius:16px!important;padding:16px!important;background:#283632!important;color:#fff4dd!important;border:1px solid #84957b!important;box-sizing:border-box;font-size:16px;line-height:1.6}.vr-welcome-editor:focus{outline:3px solid #ddbd7a;outline-offset:2px}.vr-townhall label:has(.vr-welcome-editor){display:block;width:100%}.vr-shortage-badge{display:inline-block;border:1px solid #cfaa74;background:#4c3529;color:#ffe3b4;border-radius:20px;padding:5px 10px;font-size:13px;line-height:1.5}
.dashboard-checklist .admin-attention-cards{display:grid;gap:8px}.dashboard-checklist .admin-attention-cards article{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:8px 14px;padding:12px 16px;border:1px solid #63776a;border-radius:14px;background:#283b34;color:#f7eed8}.dashboard-checklist article h3{font-size:16px;margin:0;grid-column:2}.dashboard-checklist article strong{font-size:20px;grid-column:3;grid-row:1}.dashboard-checklist article small{grid-column:2;color:#c5d5bf}.dashboard-checklist article a{grid-column:4;grid-row:1/3}.vr-checklist-icon{grid-column:1;grid-row:1/3;border-radius:50%;background:#66846b;text-align:center;width:30px;line-height:30px;color:#fff}.dashboard-checklist [data-pending=true] .vr-checklist-icon{background:#966038}.withdraw-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}.withdraw-settings-grid label{display:grid;gap:6px}.withdraw-settings-grid input,.withdraw-settings-grid select{width:100%}[data-fee-preview]{grid-column:1/-1;padding:16px;border:1px solid #a8946c;border-radius:14px;background:#283b34;color:#fff2d6;font-variant-numeric:tabular-nums}
@media(max-width:850px){.vr-landing-hero{grid-template-columns:1fr}.vr-home-auth{width:100%;max-width:560px;justify-self:center}.vr-balance-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-checklist .admin-attention-cards article{grid-template-columns:30px minmax(0,1fr) auto}.dashboard-checklist article a{grid-column:2/-1;grid-row:3;justify-self:start}.dashboard-checklist article strong{grid-column:3}}
@media(max-width:520px){.vr-home-auth{padding:16px!important}.vr-balance-steps{grid-template-columns:1fr}.vr-resource-strip-inner{justify-content:flex-start!important}.profile-menu>summary>span[title]{max-width:100px;overflow:hidden;text-overflow:ellipsis}}

.has-immersive-hud>.partner-ad-group{position:absolute;left:0;right:0;bottom:0;z-index:11;max-height:115px;overflow:auto;margin:0;background:#22322deF}


.vr-landing-hero{background:linear-gradient(135deg,#243d36,#1c2928)!important;color:#f4ead4!important;border-color:#78917a}.vr-landing-hero h1{color:#fff1c9!important}.vr-landing-hero h1 em{color:#d4aff2!important}.vr-landing-hero .realm-eyebrow,.vr-landing-hero p,.vr-landing-hero small{color:#d3ddcb!important}.vr-home-auth a:link,.vr-home-auth a:visited{color:#ffe1a1!important}.vr-home-auth .realm-captcha p,.vr-home-auth .realm-captcha label,.vr-home-auth .realm-captcha legend{color:#f8efd7!important}.vr-home-auth .realm-captcha .captcha-actions button{background:#ead3a0;color:#2f3022!important;border:1px solid #998759;min-height:44px;font-weight:600}.vr-home-auth .realm-captcha .field-error{color:#ffbaaa!important}.vr-home-auth .realm-captcha input{color:#30251e}.vr-home-auth .check-row{display:flex!important}.vr-home-auth .auth-links{display:flex;flex-wrap:wrap;gap:12px}.vr-home-auth .password-control{position:relative}.vr-home-auth .password-control input{padding-right:110px}.vr-home-auth .password-visibility{position:absolute;right:3px;top:2px;bottom:2px;min-height:40px;background:#e5cf9e;color:#322a20;border-radius:9px;border:1px solid #a28b60}.vr-home-auth .realm-captcha{margin:6px 0}.vr-home-auth .gateway-terms span{color:#f4ecd8}.vr-home-auth .registration-journey{font-size:12px}
