/* Shared selectable palettes. Light retains the approved foundation in light-theme.css. */
:root[data-theme="burgundy"],:root[data-theme="emerald"]{
 color-scheme:dark;
 --page:#171315;--surface:#24191e;--sky:#35232b;--ink:#f1e5d4;--muted:#cdbfba;
 --gold:#e0b386;--gold-line:#806146;--line:#60464d;--field-line:#987a80;
 --primary:#e0b386;--primary-hover:#f2cda6;--focus:#f7d7a6;
 --error:#ffb4a8;--error-bg:#3c2023;--success:#b7dbb5;--success-bg:#1c3027;
 --info:#cbdbe6;--info-bg:#232d36;--shadow:0 12px 38px rgb(0 0 0 / 16%);
 --scene:url(optimized/v1/burgundy-palace.webp);--garden:url(optimized/v1/burgundy-garden.webp);--shade:23 19 21;--radius:3px;
}
:root[data-theme="emerald"]{
 --page:#081713;--surface:#10271f;--sky:#18382e;--ink:#f0f0df;--muted:#bdd0c6;
 --gold:#d7c79b;--gold-line:#788362;--line:#365d4e;--field-line:#789a8b;
 --primary:#d7c79b;--primary-hover:#eee1bb;--focus:#b1e8d2;
 --scene:url(optimized/v1/emerald-palace.webp);--garden:url(optimized/v1/emerald-garden.webp);--shade:8 23 19;--radius:7px;
}
/* The chooser is present on public, player and administration layouts. */
.theme-picker{position:relative;flex-shrink:0;font-size:16px;border:0;padding:0;margin:0;background:none}
.theme-picker summary{list-style:none;display:flex;align-items:center;gap:8px;border:1px solid var(--gold);border-radius:var(--radius);padding:8px 12px;min-height:44px;cursor:pointer}
.theme-picker summary::-webkit-details-marker{display:none}
.theme-picker summary::after{content:'\2304';color:var(--gold)}
.theme-picker[open] summary{background:var(--sky)}
.theme-picker summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.theme-picker .theme-options{position:absolute;right:0;top:calc(100% + 10px);width:265px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--gold-line);border-radius:var(--radius);padding:15px;box-shadow:var(--shadow)}
.theme-options fieldset{border:0;padding:0;margin:0;min-width:0}
.theme-options legend{font-weight:600;padding:0;margin-bottom:8px}
.theme-options label{display:flex;align-items:center;gap:10px;min-height:46px;cursor:pointer;font-size:16px}
.theme-options input{width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:var(--gold);flex-shrink:0}
.theme-options label:has(input:checked){color:var(--gold)}
.theme-options small{display:block;font-size:14px;line-height:1.4;margin-top:8px}
.site-header{gap:18px}.site-header>.brand{margin-right:auto}
.site-header nav{gap:clamp(14px,1.5vw,36px)}
.site-header .brand{width:clamp(190px,18vw,280px)}
:root:not([data-theme="light"]) .site-header{background:linear-gradient(100deg,var(--page),var(--surface),var(--page))}
:root:not([data-theme="light"]) .hero{background-image:var(--scene)}
:root:not([data-theme="light"]) .hero::before{background:linear-gradient(90deg,rgb(var(--shade) / 72%),rgb(var(--shade) / 54%) 39%,transparent 74%)}
:root:not([data-theme="light"]) .hero-content{text-shadow:0 2px 14px rgb(0 0 0 / 40%)}
:root:not([data-theme="light"]) .button,:root:not([data-theme="light"]) .nav-create{text-shadow:none;color:var(--page)}
:root:not([data-theme="light"]) .button.secondary{background:rgb(var(--shade) / 85%);color:var(--ink)}
:root:not([data-theme="light"]) .button.secondary:hover{background:var(--sky);color:var(--gold)}
:root:not([data-theme="light"]) .news-card{border:1px solid var(--line);background:var(--surface)}
:root:not([data-theme="light"]) .chronicles{background:var(--page)}
:root:not([data-theme="light"]) .begin-section{background:linear-gradient(90deg,rgb(var(--shade) / 97%),rgb(var(--shade) / 86%) 60%,rgb(var(--shade) / 65%)),var(--scene) right 25%/cover}
:root:not([data-theme="light"]) .community-banner{background:linear-gradient(90deg,rgb(var(--shade) / 91%),rgb(var(--shade) / 82%)),var(--scene) center 65%/cover}
:root:not([data-theme="light"]) .page-masthead{background:linear-gradient(90deg,rgb(var(--shade) / 96%),rgb(var(--shade) / 82%)),var(--scene) right 20%/cover}
:root:not([data-theme="light"]) .registration-page .page-content{background:linear-gradient(90deg,rgb(var(--shade) / 35%),rgb(var(--shade) / 86%) 63%,var(--page)),var(--scene) center 62%/cover no-repeat}
:root:not([data-theme="light"]) input::placeholder,:root:not([data-theme="light"]) textarea::placeholder{color:var(--muted);opacity:1}
@media(min-width:901px) and (max-width:1250px){
 :root{--header:85px}.menu-toggle{display:flex;gap:14px;align-items:center;min-height:44px;padding:9px 15px;border:1px solid var(--gold);border-radius:var(--radius);background:var(--surface);color:var(--ink)}
 .site-header nav{display:none;position:absolute;top:var(--header);left:0;right:0;padding:22px var(--space);background:var(--surface);border-bottom:1px solid var(--gold-line);box-shadow:var(--shadow)}
 .site-header nav.open{display:grid}.site-header nav a{padding:8px 12px}
}
@media(max-width:900px){
 :root:not([data-theme="light"]) .hero::before{background:linear-gradient(180deg,rgb(var(--shade) / 91%),rgb(var(--shade) / 81%) 42%,rgb(var(--shade) / 8%) 75%)}
 :root:not([data-theme="light"]) .registration-page .page-content{background:linear-gradient(180deg,rgb(var(--shade) / 40%),var(--page) 650px),var(--scene) center top/auto 750px no-repeat}
}
@media(max-width:600px){.site-header{gap:9px}.site-header .brand{width:clamp(125px,35vw,180px)}.menu-toggle{padding:8px 10px;gap:7px;font-size:15px}.theme-picker{font-size:15px}.theme-picker summary{padding:8px 10px}}
