:root {
  --gold: #8ae8cc;
  --paper: #112932;
  --line: #2b4952;
  --mute: #b6cecf;
  color: #f3fcfa;
  background: #091b24;
}
body {
  background-image: linear-gradient(#85d6d50a 1px, transparent 1px), linear-gradient(90deg, #85d6d50a 1px, transparent 1px), radial-gradient(ellipse at 68% 0, #164040, transparent 980px);
  background-size: 64px 64px, 64px 64px, auto;
}
.top {background: #102731f7; border-color: #35505a}
.top nav a {color: #c4dbdd}
.top nav a:hover, .top nav a[aria-current=page] {color: #abf2df}
.copy, .search, .search:hover, .search:focus-within {background: #0c202a; border-color: #36545b}
.search label, .search input, .search input::placeholder {color: #c7dfdd; caret-color: #a4ead7}
.search kbd, .search button {background: #1c3640; border-color: #36545b}
.primary, .darkbtn {background: #a72e49; color: #fff9f9; box-shadow: inset 0 1px #ffb6ba59, 0 4px 14px #15091440}
.primary:hover, .darkbtn:hover {background: #c23956}
.hero {
  background: #153f4d;
  border: 1px solid #45656d;
  border-radius: 20px;
  min-height: clamp(350px, 28vw, 440px);
  box-shadow: 0 14px 40px #02101950;
}
.winter-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg,#06162ae8 0%,#071c2db3 25%,#071e301c 55%,transparent 80%), url(winter-valley.webp) center 52% / cover no-repeat, linear-gradient(125deg,#102638,#256967);
}
.hero .herotext {padding-top: clamp(45px,5.6vw,88px)}
.hero h1 {color: #f6fffe; font-size: clamp(40px,4.7vw,72px); text-shadow: 0 3px 22px #05203299; margin-block: 13px}
.hero .edition {color: #baf3df}
.hero .edition i {background: url(snowflake.svg) center/contain; width: 18px; height: 18px}
.edition i svg {display: none}
.hero p {color: #e2f2f4; text-shadow: 0 1px 5px #061826}
.hero .darkbtn {padding: 13px 18px; border: 1px solid #ea8da680}
.stage::before {background: radial-gradient(closest-side, #ade7df40, transparent 96%)}
.stage .shadow {background: radial-gradient(ellipse, #071f37ad, transparent 68%)}
.pager, .orbitHint {background: #0a2335dd; border-color: #9edbd061}
.pager button, .orbitHint {color: #daeeed}
.pager button:hover {background: #36545f}
.pager button[aria-pressed=true] {background: #c5f3e5; color: #10332f}
.winter-snow, .winter-garland {pointer-events: none; user-select: none}
.winter-snow {overflow: hidden; position: absolute; inset: 0}
.hero-snow {--fall: 490px; z-index: -1}
.page-snow {position: fixed; z-index: 4; --fall: calc(100dvh + 35px); opacity: .46}
.winter-flake {
  position: absolute;
  top: -25px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #e2faff;
  animation: snowfall var(--time) linear var(--delay) infinite;
}
.winter-flake.crystal {background: url(snowflake.svg) center / contain no-repeat}
@keyframes snowfall {
  0% {transform: translate3d(-25px,0,0) rotate(0); opacity: 0}
  8%,85% {opacity: .85}
  100% {transform: translate3d(var(--drift),var(--fall),0) rotate(130deg); opacity: 0}
}
.winter-garland {
  position: absolute; z-index: 1; width: 57%; height: 32px;
  top: -10px; right: -4%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q50 200 100 0' fill='none' stroke='%23163235' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.winter-garland i {
  position: absolute; width: 5px; height: 8px; border-radius: 40% 40% 55% 55%;
  background: var(--light); box-shadow: 0 0 7px 1px var(--light);
  animation: lamp-glow 3.8s ease-in-out var(--delay) infinite alternate;
}
@keyframes lamp-glow {from {opacity: .57} to {opacity: 1}}
.winter-paused :is(.winter-flake,.winter-garland i), .winter-out-of-view :is(.winter-flake,.winter-garland i) {animation-play-state: paused}
.community-panel, .community-overview .recent, .community-overview .top-preview, .card, dialog {
  background: #112a34; border-color: var(--line);
}
.community-banner, .ban-banner {
  background: linear-gradient(100deg,#0d2539f5,#123544bd 60%,#0c293f60), url(winter-valley.webp) center 50% / cover;
  border-color: #416268;
}
.community-banner h1, .community-banner>svg {color: #cefaed}
.community-banner p, .legal-copy p, .rules-note, .rule-list .penalty {color: #d3e6e5}
.rule-list li, .rank-entry, .ban-table td, .ban-table tr, .community-overview .purchase-card, .community-overview .purchase-card:nth-child(even) {background: #19333e; border-color: var(--line)}
.rank-entry:nth-child(-n+3) {background: linear-gradient(90deg,#1d4947,#18323c 65%); border-color: #345b59}
.rule-id, .rank-place, .rank-entry output, .ban-table td:first-child, .eyebrow, .legal-copy a, .legal-back, footer .footer-notice a {color: #a2e3d3}
.rating-tabs>button, .presets button, .step {background: #19343e; color: #ddefec; border-color: #395860}
.rating-tabs>button[aria-pressed=true] {background: #ace6d4; color: #12362f; border-color: #ace6d4}
.community-overview .serverTile {background: linear-gradient(110deg,#23544f,#186453); border-color: #357967}
.community-overview .rankTile {background: linear-gradient(110deg,#82334f,#9a3650)}
.community-overview .caseTile {background: linear-gradient(110deg,#385783,#416890)}
.community-overview .tgTile {background: linear-gradient(110deg,#24617c,#267c90)}
.community-overview .serverTile svg, .top-preview h2 svg {color: #aae9cf}
.preview-row+.preview-row, footer .footer-notice {border-color: var(--line)}
.preview-row svg, .recent-head h2 svg, .preview-row strong, .all-ranks, .shophead>span {background: #1d3b41; color: #aee4d4; border-color: #36575c}
.all-ranks:hover, .filters button:hover {background: #254c51}
.stream-status {background: #10232d; color: #cadfdc; border-color: #39565e}
.filters button[aria-pressed=true], .serverchoice, .presets button[aria-pressed=true] {background: #224840; border-color: #456b60; color: #bbf2de}
.buyrow {background: #a5e3ce; color: #10332d}
.exchange {background: radial-gradient(ellipse at 98% -42%,#305954,transparent 65%),#142c36; border-color: #40615f}
#quantity::-webkit-slider-runnable-track {background: linear-gradient(90deg,#91dcca var(--fill),#35515b var(--fill))}
#quantity::-webkit-slider-thumb {background: #c3f4e3; border-color: #7fd0be; box-shadow: 0 0 0 4px #a4f6db24}
#quantity::-moz-range-progress {background: #91dcca}
#quantity::-moz-range-thumb {background: #c3f4e3; border-color: #7fd0be}
.spark {background: #c6fff0}
@media (max-width: 640px) {
  .hero {min-height: 450px}
  .hero .herotext {padding: 29px 20px 0}
  .hero h1 {font-size: clamp(30px,8.5vw,46px); margin-block: 9px}
  .hero p {max-width: 30ch}
  .hero .darkbtn {padding: 10px 13px}
  .winter-sky {background-position: center, 56% center, center}
  .stage {inset: 39% 2% 7% 7%}
  .winter-garland {width: 76%; height: 24px; right: -12%}
  .page-snow .winter-flake:nth-child(even), .hero-snow .winter-flake:nth-child(3n) {display: none}
}
@media (prefers-reduced-motion: reduce) {
  .winter-snow {display: none}
  .winter-garland i {animation: none}
}
