/* Animated frost day/night switch, shared by every page. */
html[data-theme] body .theme-toggle{position:relative;display:inline-grid;place-items:center;width:76px;min-width:76px;height:42px;padding:3px;border:1px solid #72aac4;border-radius:15px;background:linear-gradient(140deg,#f7fdff,#ccefff);color:#0b5274;box-shadow:inset 0 1px #fff,0 4px 15px #0e68971c;cursor:pointer;overflow:hidden;isolation:isolate;transition:background .35s,border-color .25s,box-shadow .25s;flex:none}
html[data-theme=dark] body .theme-toggle{background:linear-gradient(140deg,#244e69,#0b223a);color:#d7f5ff;border-color:#72b2d0;box-shadow:inset 0 1px #c6edff20,0 4px 18px #0003}
html[data-theme] body .theme-toggle:hover{transform:none;border-color:#35a9d1;box-shadow:0 0 0 3px #50ccff20,inset 0 1px #ffffff55}
html[data-theme] body .theme-toggle:focus-visible{outline:3px solid #45b9e5;outline-offset:4px}
.theme-scene{display:block;position:relative;width:100%;height:100%;border-radius:11px;overflow:hidden;background:radial-gradient(circle at 22% 40%,#fff8,transparent 65%)}
.theme-scene:before{content:none}
.theme-sun,.theme-moon{position:absolute;top:8px;width:19px;height:19px;transition:transform .5s,color .35s;z-index:2}
.theme-sun{left:8px;background:currentColor;mask:url('/assets/theme-sun.svg') center/contain no-repeat;-webkit-mask:url('/assets/theme-sun.svg') center/contain no-repeat;color:#12617f}
.theme-moon{right:8px;background:currentColor;mask:url('/assets/theme-moon.svg') center/contain no-repeat;-webkit-mask:url('/assets/theme-moon.svg') center/contain no-repeat;color:#4a7c99}
.theme-crystal{position:absolute;width:31px;height:29px;top:3px;left:3px;border:1px solid #83c6e0;border-radius:10px;background:linear-gradient(135deg,#fff,#8ddcf6);box-shadow:0 2px 7px #17648c25;transform:translateX(0);transition:transform .45s cubic-bezier(.2,.8,.2,1),background .35s}
.theme-crystal:after{content:'';position:absolute;inset:3px;border-radius:6px;background:linear-gradient(135deg,transparent 35%,#ffffff80 36%,transparent 65%)}
html[data-theme=dark] .theme-crystal{transform:translateX(32px);background:linear-gradient(135deg,#a4e9ff,#4a9ac0);border-color:#a1e3ff}
html[data-theme=dark] .theme-moon{color:#082c43;transform:rotate(-12deg)}
html[data-theme=dark] .theme-sun{color:#a2d7ea;transform:rotate(60deg) scale(.85)}

/* The community hero action now has the same bright ice presence as Twitch. */
html[data-theme=dark] .hero .actions .btn:not(.primary){background:linear-gradient(125deg,#d4f4ff,#a5dfef);color:#0a3e56;border-color:#c0f0ff;box-shadow:inset 0 1px #ffffffa0,0 7px 23px #05273b40}
html[data-theme=dark] .hero .actions .btn:not(.primary):hover{background:linear-gradient(125deg,#f0fdff,#c2efff);color:#082f44;border-color:#e4faff}
/* Member poll: generous selectable cards, clear selected state and results. */
.community-page .vote-card{position:relative;overflow:hidden;border:1px solid #9dc8dc;border-radius:25px;background:radial-gradient(ellipse at 100% 0%,#bdeaff65,transparent 60%),#f8fdff;box-shadow:0 12px 35px #165a8212;color:#214b65;padding:clamp(24px,3vw,36px)}
.community-page .vote-card>h2{font-size:clamp(25px,2.4vw,32px);line-height:1.35;color:#123e5c;max-width:25ch}
.community-page .vote-card>.eyebrow{background:none;border:0;box-shadow:none;padding:0;color:#086a94;letter-spacing:.13em}
.community-page .vote-card>p{color:#496b80;line-height:1.85}
.community-page .vote-card fieldset{min-width:0;padding:17px;border:1px solid #a9cedf;background:#eaf6fc;border-radius:18px;margin:22px 0 17px}
.community-page .vote-card legend{padding:0 8px;color:#155473;font-size:12px;font-weight:850;letter-spacing:.02em}
.community-page .vote-card .vote-option{display:flex;align-items:center;gap:13px;padding:16px;margin:9px 0;border:1px solid #b4d3e2;border-radius:13px;background:#fff;color:#20465e;font-size:14px;line-height:1.6;font-weight:750;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.community-page .vote-card .vote-option input{width:20px;height:20px;flex:none;margin:0;accent-color:#087fae;cursor:pointer}
.community-page .vote-card .vote-option:hover{border-color:#439bc0;background:#f2fbff}
.community-page .vote-card .vote-option:has(input:checked){background:#d3f1fc;border-color:#1588b4;box-shadow:inset 3px 0 #1588b4}
.community-page .vote-card .vote-option:has(input:focus-visible){outline:3px solid #258eb9;outline-offset:3px}
.community-page .vote-card .community-form>.btn{min-height:51px;border:1px solid #88c5df;border-radius:13px;background:linear-gradient(125deg,#bfeeff,#79cee9);color:#093c53;font-weight:850;box-shadow:inset 0 1px #ffffff80,0 6px 19px #08739b18}
.community-page .vote-card .community-form>.btn:hover{background:linear-gradient(125deg,#e0f8ff,#a8e6fa);color:#093c53;transform:translateY(-1px)}
.community-page .vote-card .community-form>.btn:focus-visible{outline:3px solid #258eb9;outline-offset:4px}
.community-page .vote-card .poll-results{margin-top:27px;padding-top:23px;border-top:1px solid #b7d4e3;display:grid;gap:18px}
.community-page .vote-card .result-label{color:#204e69;gap:15px;font-size:13px;line-height:1.7;margin-bottom:9px}
.community-page .vote-card .result-label strong{color:#076c95;white-space:nowrap;font-variant-numeric:tabular-nums}
.community-page .vote-card .poll-results>small{color:#4e7187;font-size:12px}
.community-page .vote-card progress{appearance:none;-webkit-appearance:none;border:0;height:9px;border-radius:99px;width:100%;overflow:hidden;background:#dbeaf2}
.community-page .vote-card progress::-webkit-progress-bar{background:#dbeaf2;border-radius:99px}
.community-page .vote-card progress::-webkit-progress-value{background:linear-gradient(90deg,#1889b6,#69d6ef);border-radius:99px}
.community-page .vote-card progress::-moz-progress-bar{background:linear-gradient(90deg,#1889b6,#69d6ef);border-radius:99px}
html[data-theme=dark] .community-page .vote-card{background:radial-gradient(ellipse at 100% 0%,#245b7845,transparent 60%),#102c40;border-color:#4a758d;color:#e2f3ff}
html[data-theme=dark] .community-page .vote-card>h2{color:#ecf9ff}
html[data-theme=dark] .community-page .vote-card>.eyebrow{color:#a6e4fa}
html[data-theme=dark] .community-page .vote-card>p{color:#c1d9e8}
html[data-theme=dark] .community-page .vote-card fieldset{background:#0c2435;border-color:#4c738a}
html[data-theme=dark] .community-page .vote-card legend{color:#c6edff}
html[data-theme=dark] .community-page .vote-card .vote-option{background:#183a50;color:#e2f4ff;border-color:#4e788f}
html[data-theme=dark] .community-page .vote-card .vote-option:hover{background:#214b62;border-color:#8fd8f5}
html[data-theme=dark] .community-page .vote-card .vote-option:has(input:checked){background:#245c72;border-color:#9feaff;box-shadow:inset 3px 0 #9feaff}
html[data-theme=dark] .community-page .vote-card .vote-option input{accent-color:#a3e6ff;color-scheme:dark}
html[data-theme=dark] .community-page .vote-card .result-label{color:#d3e9f7}
html[data-theme=dark] .community-page .vote-card .result-label strong{color:#acebff}
html[data-theme=dark] .community-page .vote-card .poll-results{border-color:#426b82}
html[data-theme=dark] .community-page .vote-card .poll-results>small{color:#b5cede}
html[data-theme=dark] .community-page .vote-card progress,html[data-theme=dark] .community-page .vote-card progress::-webkit-progress-bar{background:#29475b}
@media(max-width:650px){html[data-theme] body .theme-toggle{width:62px;min-width:62px;height:36px;border-radius:12px;padding:2px}.theme-sun,.theme-moon{top:6px;width:17px;height:17px}.theme-sun{left:6px}.theme-moon{right:6px}.theme-crystal{width:25px;height:25px;top:2px;left:2px;border-radius:8px}html[data-theme=dark] .theme-crystal{transform:translateX(26px)}.nav-preferences{gap:5px}.community-page .vote-card fieldset{padding:12px}.community-page .vote-card .vote-option{padding:14px 11px}.community-page .vote-card .result-label{flex-wrap:wrap;gap:4px 12px}}
@media(prefers-reduced-motion:reduce){html[data-theme] body .theme-toggle,.theme-crystal,.theme-sun,.theme-moon,.theme-scene:before,.community-page .vote-card .vote-option{transition:none}}
/* Reserve room for both preferences without covering the mobile menu. */
@media(max-width:650px){.nav{grid-template-columns:minmax(0,1fr) 40px auto;gap:5px}.nav .menu{width:40px;min-width:40px;min-height:40px;padding:7px}.nav .nav-preferences{min-width:137px}.nav .nav-wordmark{font-size:13px}.nav .nav-brand{gap:4px}}
/* Fixed scene dimensions also work inside the admin header's layout. */
.theme-scene{width:68px;height:34px;min-width:68px}
html[data-theme=dark] .admin-shell .eyebrow{color:#a6e4fa}
@media(max-width:650px){.theme-scene{width:56px;min-width:56px;height:30px}}
html[data-theme=dark] .community-page .password-details summary{color:#bfe9fc}
html[data-theme=dark] .community-page .community-logout{color:#c8ecff;text-decoration-color:#6ba7c3}
