/* Monocraft (Idrees Hassan, SIL OFL 1.1, see Monocraft-OFL.txt) and Inter (SIL OFL 1.1), as in the launcher. */
@font-face { font-family: 'Monocraft'; src: url('/assets/Monocraft.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/assets/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/assets/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .relative {
    position: relative;
  }
  .z-10 {
    z-index: 10;
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .min-w-0 {
    min-width: 0px;
  }
  .flex-1 {
    flex: 1;
  }
  .grow {
    flex-grow: 1;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-1 {
    gap: var(--spacing);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--line-height));
  }
  .text-6xl {
    font-size: var(--text-6xl);
    line-height: var(--tw-leading, var(--text-6xl--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .break-all {
    word-break: break-all;
  }
}
:root {
  color-scheme: dark;
  --font-display: 'Monocraft', ui-monospace, monospace;
  --dpr: 1;
  --fp: calc(1em / 9);
  font-variant-ligatures: none;
  --font-body: 'Inter Variable', system-ui, sans-serif;
  --bg: #0d1117;
  --text: #f4f7ff;
  --text-muted: rgb(244 247 255 / 0.68);
  --text-subtle: rgb(244 247 255 / 0.45);
  --danger: #ff6b6b;
  --panel: rgb(16 20 32 / 0.72);
  --panel-solid: #141a2a;
  --panel-border: #000;
  --panel-inner: rgb(255 255 255 / 0.08);
  --play: #3c8527;
  --play-hover: #4a9e31;
  --play-hi: #6cc349;
  --play-lo: #1f5a12;
  --stone: #6f6f78;
  --stone-hover: #81818b;
  --stone-hi: #a3a3ad;
  --stone-lo: #45454d;
  --progress-track: rgb(0 0 0 / 0.5);
  --progress-fill: linear-gradient(#8ef05a, #4fbf26);
  --chip-bg: rgb(0 0 0 / 0.35);
  --chip-accent: #ffcf5a;
}
html, body, #root {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.app {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-shadow: var(--fp) 0 0 currentColor, var(--fp) var(--fp) 0 rgb(0 0 0 / 0.45), calc(2 * var(--fp)) var(--fp) 0 rgb(0 0 0 / 0.45);
}
.display.text-lg {
  font-size: calc(max(2, round(nearest, 16 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.display.text-xl {
  font-size: calc(max(2, round(nearest, 20 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.display.text-2xl {
  font-size: calc(max(2, round(nearest, 24 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.display.text-4xl {
  font-size: calc(max(2, round(nearest, 36 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.display.text-6xl {
  font-size: calc(max(2, round(nearest, 60 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.text-muted {
  color: var(--text-muted);
}
.text-danger {
  color: var(--danger);
}
code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: rgb(0 0 0 / 0.3);
  padding: 0 4px;
}
.app-drag {
  -webkit-app-region: drag;
}
.app-no-drag, .app-drag button {
  -webkit-app-region: no-drag;
}
.titlebar {
  position: relative;
  z-index: 30;
  display: flex;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 14px;
}
.titlebar--mac {
  padding-left: 84px;
}
.titlebar__name {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  font-weight: 400;
  text-shadow: var(--fp) 0 0 currentColor, var(--fp) var(--fp) 0 rgb(0 0 0 / 0.5), calc(2 * var(--fp)) var(--fp) 0 rgb(0 0 0 / 0.5);
}
.titlebar__btn {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  color: var(--text-muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.titlebar__btn:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.1);
}
.titlebar__btn--close:hover {
  background: #d93a3a;
  color: #fff;
}
.panel {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  box-shadow: inset 0 0 0 2px var(--panel-inner), 0 16px 48px rgb(0 0 0 / 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
}
.mc-btn {
  --btn: var(--stone);
  --btn-hover: var(--stone-hover);
  --btn-hi: var(--stone-hi);
  --btn-lo: var(--stone-lo);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  color: #fff;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 17 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  font-weight: 400;
  text-shadow: var(--fp) var(--fp) 0 rgb(0 0 0 / 0.45);
  background: var(--btn);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -4px 0 var(--btn-lo);
  cursor: pointer;
  transition: background 0.12s, transform 0.08s, filter 0.2s;
}
.mc-btn:hover:not(:disabled) {
  background: var(--btn-hover);
}
.mc-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 2px 4px 0 var(--btn-lo), inset -2px -2px 0 var(--btn-hi);
}
.mc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.mc-btn:disabled {
  cursor: default;
  filter: saturate(0.25) brightness(0.8);
}
.mc-btn--play {
  --btn: var(--play);
  --btn-hover: var(--play-hover);
  --btn-hi: var(--play-hi);
  --btn-lo: var(--play-lo);
}
.mc-btn--stone {
  --btn: var(--stone);
}
.mc-btn--danger {
  --btn: #b3312c;
  --btn-hover: #c93a34;
  --btn-hi: #e46a5f;
  --btn-lo: #6e1a17;
}
.mc-btn--square {
  width: 48px;
  height: 48px;
  padding: 0;
}
.mc-btn--small {
  height: 38px;
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  padding: 0 14px;
}
.dock .mc-btn--play {
  min-width: 280px;
  height: 64px;
  font-size: calc(max(2, round(nearest, 30 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  text-transform: uppercase;
}
.dock .mc-btn--play.is-busy {
  filter: saturate(0.5) brightness(0.9);
}
.dock .mc-btn--square {
  height: 64px;
  width: 56px;
}
.progress {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: var(--progress-track);
  border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgb(0 0 0 / 0.35);
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--progress-fill);
  transition: width 0.45s var(--ease-out);
}
.progress--indeterminate > i {
  width: 28%;
  animation: progress-sweep 1.4s steps(14) infinite;
}
@keyframes progress-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(360%);
  }
}
.home {
  position: relative;
  z-index: 10;
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 8px 22px 22px;
}
.hero {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 0 40px 18px;
}
.hero__logo {
  cursor: default;
  animation: logo-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes logo-in {
  from {
    transform: translateY(-10px) scale(0.97);
    opacity: 0.4;
  }
}
.hero__tagline {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.6);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 14 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  padding: 4px 10px;
  background: var(--chip-bg);
  border: 2px solid rgb(0 0 0 / 0.6);
  color: var(--text-muted);
}
.chip--accent {
  color: #1a1206;
  background: var(--chip-accent);
}
.side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--side-offset, 0px);
}
.news {
  flex: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px 18px 6px;
}
.news__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(255 255 255 / 0.08);
}
.news__body {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 4px 12px 0;
  user-select: text;
}
.news__meta {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 14 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.markdown {
  line-height: 1.55;
  color: var(--text-muted);
}
.markdown h3, .markdown h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 14px 0 6px;
  font-size: calc(max(2, round(nearest, 17 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.markdown h3:first-child, .markdown h4:first-child {
  margin-top: 0;
}
.markdown ul {
  display: grid;
  gap: 4px;
  margin: 4px 0 8px;
}
.markdown li {
  position: relative;
  padding-left: 16px;
}
.markdown li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--chip-accent);
}
.markdown strong {
  color: var(--text);
}
.markdown p {
  margin: 4px 0 8px;
}
.dock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
}
.play {
  position: relative;
}
.play__stop {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
}
.dock__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
.account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  justify-self: start;
  padding: 6px 12px 6px 6px;
  color: inherit;
  background: rgb(0 0 0 / 0.25);
  border: 2px solid rgb(0 0 0 / 0.5);
  cursor: pointer;
}
.account:hover {
  background: rgb(255 255 255 / 0.08);
}
.account__head {
  image-rendering: pixelated;
  border: 2px solid #000;
  background: #222;
}
.account__label {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.account__name {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 18 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  white-space: nowrap;
  text-overflow: ellipsis;
}
.login {
  display: grid;
  width: 100%;
  max-width: 460px;
  justify-items: center;
  gap: 14px;
  padding: 34px 32px 26px;
  text-align: center;
}
.login__logo {
  margin-bottom: 6px;
}
.mc-btn--login {
  width: 100%;
  height: 56px;
  margin-top: 8px;
  font-size: calc(max(2, round(nearest, 20 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.login__note {
  display: flex;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-subtle);
}
.login__note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 2px solid #000;
}
.notice--error {
  color: #ffd9d9;
  background: rgb(160 30 30 / 0.45);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.55);
  animation: fade 0.15s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel-solid);
  animation: modal-in 0.2s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.modal--wide {
  max-width: 760px;
}
.modal--settings {
  max-width: 940px;
}
.settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px 18px;
}
.settings__col {
  display: grid;
  gap: 12px;
}
.settings__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: var(--text-muted);
}
.settings__switches {
  gap: 12px;
}
.server {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.server__dot {
  width: 10px;
  height: 10px;
  background: var(--text-subtle);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.5);
}
.server--online .server__dot {
  background: var(--play-hi);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.5), 0 0 10px rgb(121 220 111 / 0.6);
}
.server--offline .server__dot {
  background: #e05555;
}
.server__title {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.server__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.server__detail span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip svg {
  display: inline;
  vertical-align: -2px;
}
.settings__wide {
  grid-column: 1 / -1;
}
.modal--settings .modal__foot {
  position: sticky;
  bottom: -22px;
  z-index: 1;
  margin: 0 -22px -22px;
  padding: 12px 22px 16px;
  background: var(--panel-solid);
  border-top: 2px solid rgb(255 255 255 / 0.06);
}
.settings__advanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .settings, .settings__advanced {
    grid-template-columns: minmax(0, 1fr);
  }
}
@keyframes modal-in {
  from {
    transform: translateY(12px) scale(0.98);
  }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 22px;
  border-bottom: 2px solid rgb(255 255 255 / 0.06);
}
.modal__body {
  padding: 18px 22px 22px;
}
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-weight: 600;
}
.field__label strong {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  margin-left: 6px;
  color: var(--chip-accent);
}
.field__hint {
  font-size: 12px;
  color: var(--text-subtle);
}
.input {
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  font: inherit;
  background: rgb(0 0 0 / 0.4);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  outline: none;
  user-select: text;
}
.input:focus {
  box-shadow: inset 0 0 0 1px #fff;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--play-hi);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--play-hi);
}
.setting-block {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: rgb(0 0 0 / 0.22);
  border: 2px solid rgb(0 0 0 / 0.45);
}
.setting-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.uninstall-list {
  max-height: 150px;
  overflow: auto;
  padding: 8px 10px;
  font: 12px/1.6 ui-monospace, monospace;
  color: var(--text-muted);
  background: rgb(0 0 0 / 0.35);
  border: 2px solid #000;
  word-break: break-all;
  user-select: text;
}
.advanced summary {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 15 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  cursor: pointer;
  color: var(--text-muted);
}
.log {
  max-height: 46vh;
  overflow: auto;
  padding: 12px;
  font: 12px/1.45 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: rgb(0 0 0 / 0.5);
  border: 2px solid #000;
  user-select: text;
}
.notes {
  display: grid;
  gap: 8px;
}
.notes--floating {
  position: fixed;
  top: 56px;
  right: 22px;
  z-index: 40;
  width: 340px;
}
.note {
  --tone: var(--chip-accent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--tone);
  animation: note-in 0.25s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.note--busy {
  --tone: #7cc7ff;
}
.note--success {
  --tone: #7ee35a;
}
.note--warn {
  --tone: #ffcf5a;
}
.note--error {
  --tone: var(--danger);
}
.note__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--tone);
  background: rgb(0 0 0 / 0.3);
  border: 2px solid rgb(0 0 0 / 0.5);
}
.note--busy .note__icon svg {
  animation: spin 1.2s steps(8) infinite;
}
.note__body {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.note__title {
  font-weight: 600;
  line-height: 1.3;
}
.note__detail {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.note__action {
  height: 34px;
  font-size: calc(max(2, round(nearest, 14 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
@keyframes note-in {
  from {
    transform: translateX(14px);
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.18);
  border: 2px solid transparent;
  background-clip: padding-box;
}
@media (max-width: 1060px) {
  .home {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .dock .mc-btn--play {
    min-width: 220px;
  }
}
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 0.16s;
  --dur: 0.3s;
  --dur-slow: 0.6s;
  --dur-leave: 0.22s;
}
.mc-btn {
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, filter var(--dur) ease, opacity var(--dur) ease;
}
.mc-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.mc-btn:active:not(:disabled) {
  transform: translateY(2px);
  transition-duration: 0.05s;
}
.dock .mc-btn--play:not(:disabled) {
  box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -4px 0 var(--btn-lo), 0 0 0 rgb(121 220 111 / 0);
}
.dock .mc-btn--play:hover:not(:disabled) {
  box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -4px 0 var(--btn-lo), 0 6px 28px rgb(121 220 111 / 0.35);
}
.play__label {
  display: inline-block;
  animation: label-in var(--dur) var(--ease-out);
}
.titlebar__btn, .account, .chip, .input, .segmented__option {
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.account:hover {
  transform: translateY(-1px);
}
.account__head {
  transition: transform var(--dur) var(--ease-spring);
}
.account:hover .account__head {
  transform: rotate(-6deg) scale(1.06);
}
.home > .hero > * {
  animation: rise var(--dur-slow) var(--ease-out) both;
}
.home > .hero > *:nth-child(2) {
  animation-delay: 0.08s;
}
.home > .hero > *:nth-child(3) {
  animation-delay: 0.16s;
}
.home > .side {
  animation: slide-left var(--dur-slow) var(--ease-out) 0.1s both;
}
.home > .dock {
  animation: rise var(--dur-slow) var(--ease-out) 0.18s both;
}
.login {
  animation: pop var(--dur-slow) var(--ease-spring) both;
}
.chip {
  animation: pop var(--dur) var(--ease-spring) both;
}
.news__body {
  animation: fade var(--dur) ease both;
}
.view-swap {
  animation: rise var(--dur) var(--ease-out) both;
}
.presence {
  display: contents;
}
.modal-backdrop {
  animation: fade var(--dur) ease both;
}
.modal {
  animation: modal-in var(--dur) var(--ease-spring) both;
}
.presence.is-leaving .modal-backdrop {
  animation: fade-out var(--dur-leave) ease forwards;
}
.presence.is-leaving .modal {
  animation: modal-out var(--dur-leave) ease forwards;
}
.note-wrap {
  display: grid;
  grid-template-rows: 1fr;
}
.note-wrap > .note {
  min-height: 0;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.note__icon {
  transition: color var(--dur) ease, transform var(--dur) var(--ease-spring);
}
.note__title {
  animation: label-in var(--dur) var(--ease-out);
}
.note-wrap.is-leaving {
  overflow: hidden;
  pointer-events: none;
  animation: collapse var(--dur-leave) ease forwards;
}
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--segments, 2), 1fr);
  padding: 3px;
  background: rgb(0 0 0 / 0.4);
  border: 2px solid #000;
}
.segmented__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--segments, 2));
  background: var(--play);
  box-shadow: inset 2px 2px 0 var(--play-hi), inset -2px -3px 0 var(--play-lo);
  transition: transform var(--dur) var(--ease-spring);
}
.segmented__option {
  position: relative;
  z-index: 1;
  height: 34px;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 16 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.segmented__option.is-active {
  color: #fff;
  text-shadow: var(--fp) var(--fp) 0 rgb(0 0 0 / 0.4);
}
.segmented + .field__hint {
  animation: label-in var(--dur) var(--ease-out);
}
.chip--dev {
  color: #fff;
  background: #7a3cff;
  border-color: rgb(0 0 0 / 0.6);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}
@keyframes label-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
@keyframes collapse {
  from {
    opacity: 1;
    grid-template-rows: 1fr;
  }
  to {
    opacity: 0;
    grid-template-rows: 0fr;
    margin-top: -8px;
    transform: translateX(16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.modlist {
  display: grid;
  gap: 14px;
}
.modlist__bar {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -18px -22px 0;
  padding: 14px 22px 10px;
  background: var(--panel-solid);
}
.modlist__search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
}
.modlist__search .input {
  flex: 1;
}
.modlist__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modlist__chip {
  cursor: pointer;
  font-size: 13px;
}
.modlist__chip:hover {
  color: var(--text);
}
.modlist__chip.is-active {
  color: #1a1206;
  background: var(--chip-accent);
}
.modgroup {
  background: rgb(0 0 0 / 0.22);
  border: 2px solid rgb(0 0 0 / 0.45);
}
.modgroup > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.modgroup > summary::-webkit-details-marker {
  display: none;
}
.modgroup > summary::before {
  content: '▸';
  color: var(--text-subtle);
  transition: transform var(--dur-fast, 0.12s) ease;
}
.modgroup[open] > summary::before {
  transform: rotate(90deg);
}
.modgroup__title {
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 18 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
}
.modgroup__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-subtle);
  text-align: right;
}
.modgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 4px 12px 12px;
  list-style: none;
}
.mod {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  background: rgb(255 255 255 / 0.04);
  border: 2px solid rgb(0 0 0 / 0.4);
}
.mod.is-link {
  cursor: pointer;
}
.mod.is-link:hover {
  background: rgb(255 255 255 / 0.09);
}
.mod.is-disabled {
  opacity: 0.55;
}
.mod__icon {
  flex: none;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  background: rgb(0 0 0 / 0.35);
}
.mod__icon--none {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 20 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: var(--text-subtle);
}
.mod__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: start;
}
.mod__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.mod__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mod__version, .mod__tag {
  font-size: 11px;
  color: var(--text-subtle);
}
.mod__tag {
  padding: 0 5px;
  border: 1px solid rgb(255 255 255 / 0.2);
}
.mod__tag--off {
  color: var(--danger);
  border-color: var(--danger);
}
.mod__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-muted);
}
.mod__authors {
  font-size: 11px;
  color: var(--text-subtle);
}
.skin {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}
.skin__stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--panel-solid);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--panel-solid) 70%, black);
  }
  border: 2px solid var(--border, rgba(255, 255, 255, 0.12));
}
.skin__figure {
  width: 160px;
  height: 320px;
  image-rendering: pixelated;
}
.skin__figure--none {
  display: grid;
  place-items: center;
  color: var(--text-subtle);
  text-align: center;
}
.skin__stage-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skin__controls {
  display: grid;
  gap: 16px;
}
.skin__section {
  display: grid;
  gap: 8px;
}
.skin__title {
  margin: 0;
  font-size: 15px;
}
.skin__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.skin__row .input {
  flex: 1;
  min-width: 160px;
}
.skin__variant {
  display: flex;
  gap: 6px;
}
.skin__capes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skin__cape {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 92px;
  padding: 8px 6px;
  color: inherit;
  font: inherit;
  font-size: 12px;
  background: var(--panel-solid);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--panel-solid) 70%, black);
  }
  border: 2px solid transparent;
  cursor: pointer;
}
.skin__cape:hover:not(:disabled) {
  border-color: var(--accent, #5cc8e8);
}
.skin__cape.is-active {
  border-color: var(--accent, #5cc8e8);
}
.skin__cape-thumb {
  width: 40px;
  height: 64px;
  image-rendering: pixelated;
}
.skin__cape-none {
  display: grid;
  place-items: center;
  width: 40px;
  height: 64px;
  color: var(--text-subtle);
  font-size: 22px;
}
@media (max-width: 760px) {
  .skin {
    grid-template-columns: 1fr;
  }
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.switch {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 132px;
  height: 38px;
  padding: 3px;
  font: inherit;
  background: rgb(0 0 0 / 0.42);
  border: 2px solid #000;
  box-shadow: inset 2px 3px 0 rgb(0 0 0 / 0.55);
  cursor: pointer;
}
.switch:focus-visible {
  outline: 2px solid var(--play-hi);
  outline-offset: 2px;
}
.switch__label {
  align-self: center;
  justify-self: center;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 16 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.switch.is-on .switch__label--on {
  opacity: 1;
  color: var(--play-hi);
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.7);
}
.switch:not(.is-on) .switch__label--off {
  opacity: 1;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  display: grid;
  place-items: center;
  background: var(--stone);
  box-shadow: inset 2px 2px 0 var(--stone-hi), inset -2px -3px 0 var(--stone-lo), 2px 3px 0 rgb(0 0 0 / 0.55);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) ease;
}
.switch.is-on .switch__thumb {
  transform: translateX(100%);
  background: var(--play);
  box-shadow: inset 2px 2px 0 var(--play-hi), inset -2px -3px 0 var(--play-lo), -2px 3px 0 rgb(0 0 0 / 0.55);
}
.switch__thumb::after {
  content: '';
  width: 10px;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / 0.35) 0 2px, transparent 2px 4px);
}
.switch:hover .switch__thumb {
  background: var(--stone-hover);
}
.switch.is-on:hover .switch__thumb {
  background: var(--play-hover);
}
.switch:active .switch__thumb {
  box-shadow: inset 2px 2px 0 var(--stone-lo), inset -2px -3px 0 var(--stone-hi);
  transform: translateY(1px);
}
.switch.is-on:active .switch__thumb {
  transform: translateX(100%) translateY(1px);
  box-shadow: inset 2px 2px 0 var(--play-lo), inset -2px -3px 0 var(--play-hi);
}
.skin__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.skin__library {
  display: grid;
  gap: 14px;
}
.skin__saved {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skin__card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: var(--panel-solid);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--panel-solid) 70%, black);
  }
  border: 2px solid rgb(0 0 0 / 0.45);
}
.skin__figure--small {
  width: 80px;
  height: 160px;
  font-size: 12px;
}
.skin__card-name {
  width: 100%;
  text-align: center;
}
.skin__card-actions {
  display: flex;
  gap: 6px;
}
.slider {
  --fill: 50%;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.slider:focus-visible {
  outline: 2px solid var(--play-hi);
  outline-offset: 2px;
}
.slider::-webkit-slider-runnable-track {
  height: 20px;
  background: linear-gradient(90deg, var(--play) 0 var(--fill), rgb(0 0 0 / 0.42) var(--fill) 100%);
  border: 2px solid #000;
  box-shadow: inset 2px 3px 0 rgb(0 0 0 / 0.55), inset 0 -2px 0 var(--play-lo);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 32px;
  margin-top: -8px;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgb(0 0 0 / 0.35) 7px 9px, transparent 9px 11px, rgb(0 0 0 / 0.35) 11px 13px, transparent 13px 22px), var(--stone);
  box-shadow: inset 2px 2px 0 var(--stone-hi), inset -2px -3px 0 var(--stone-lo), 2px 3px 0 rgb(0 0 0 / 0.55);
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.slider:hover::-webkit-slider-thumb {
  background-color: var(--stone-hover);
}
.slider:active::-webkit-slider-thumb {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 0 var(--stone-lo), inset -2px -3px 0 var(--stone-hi);
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}

/* WINDERWONDALÄND: Winternacht, Eis, Lichterketten, Zuckerstangen. */
:root {
  /* Die Lichterkette hängt bis ~70 px herab */
  --side-offset: 22px;
  --bg: #070b1a;
  --text: #f3f8ff;
  --text-muted: rgb(222 234 255 / 0.74);
  --text-subtle: rgb(200 218 250 / 0.5);

  --panel: rgb(11 19 46 / 0.74);
  --panel-solid: #0f1838;
  --panel-border: #050816;
  --panel-inner: rgb(170 210 255 / 0.14);

  --play: #36a046;
  --play-hover: #41b552;
  --play-hi: #79dc6f;
  --play-lo: #1d6428;

  --stone: #4b5a86;
  --stone-hover: #5a6a99;
  --stone-hi: #8193c8;
  --stone-lo: #2c3659;

  --chip-bg: rgb(5 10 28 / 0.55);
  --chip-accent: #ffd166;
  --danger: #ff7a7a;

  --progress-track: rgb(3 6 18 / 0.7);
}

/* ---------- Szene ---------- */
.ww-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #9aa7bd;
  animation: ww-scene-in 1.4s var(--ease-out, ease) both;
}
@keyframes ww-scene-in {
  from {
    opacity: 0;
    filter: brightness(0.4) blur(6px);
  }
}
.ww-bg,
.ww-bg__img,
.ww-grade,
.ww-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ww-bg__img {
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 2.4s ease;
  animation: ww-camera 48s ease-in-out infinite alternate;
  filter: saturate(0.95) brightness(1.02);
}
.ww-bg__img.is-active {
  opacity: 1;
}
/* Langsame Kamerafahrt wie beim Titelbildschirm */
@keyframes ww-camera {
  from {
    transform: scale(1.12) translate(-3%, 0.5%);
  }
  to {
    transform: scale(1.18) translate(3%, -0.5%);
  }
}
/* Kalte Farbstimmung und Abdunkelung, damit Text und Panels lesbar bleiben */
.ww-grade {
  background:
    linear-gradient(180deg, rgb(10 18 48 / 0.45) 0%, transparent 18%, transparent 62%, rgb(8 14 38 / 0.5) 100%),
    linear-gradient(90deg, rgb(10 18 48 / 0.6) 0%, rgb(10 18 48 / 0.28) 34%, transparent 58%);
}
.ww-snow {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 2px rgb(255 255 255 / 0.5));
}

/* Lichterkette: Rot, Grün, Gold, Blau */
.ww-light {
  animation: ww-blink-bulb 2.1s steps(1) infinite;
}
.ww-light--0 {
  fill: #ff4d4d;
  color: #ff4d4d;
}
.ww-light--1 {
  fill: #4dff88;
  color: #4dff88;
  animation-delay: -0.5s;
}
.ww-light--2 {
  fill: #ffd34d;
  color: #ffd34d;
  animation-delay: -1s;
}
.ww-light--3 {
  fill: #5ac8ff;
  color: #5ac8ff;
  animation-delay: -1.5s;
}
.ww-light {
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
}
@keyframes ww-blink-bulb {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.ww-garland {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

/* ---------- Logo ---------- */
.ww-logo__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: calc(max(2, round(nearest, 18 * var(--dpr) / 9, 1)) * 9px / var(--dpr));
  color: #ffd166;
  text-transform: uppercase;
  text-shadow: var(--fp) var(--fp) 0 #2a1a05;
}
.ww-logo__img {
  display: block;
  width: min(640px, 52vw);
  height: auto;
  filter: drop-shadow(0 10px 0 rgb(5 8 30 / 0.55)) drop-shadow(0 0 32px rgb(110 180 255 / 0.45));
  animation: ww-float 6s ease-in-out infinite;
}
.login .ww-logo__img {
  width: 360px;
}
.login .ww-logo__kicker {
  justify-content: center;
}
.hero__logo:active .ww-logo__img {
  animation: ww-wiggle 0.4s steps(4);
}
@keyframes ww-float {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes ww-wiggle {
  50% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
}

/* ---------- Schneehauben auf Panels und Buttons ---------- */
.news::before,
.dock::before,
.login::before,
.dock .mc-btn--play::before,
.mc-btn--login::before {
  content: '';
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' shape-rendering='crispEdges'%3E%3Cpath fill='%23f3f8ff' d='M0 6H4V4H10V2H18V4H22V6H28V4H32V2H38V4H44V6H48V12H0Z'/%3E%3Cpath fill='%23bcd2f3' d='M0 10H48V12H0Z'/%3E%3C/svg%3E")
    repeat-x;
}
.news::before,
.dock::before,
.login::before {
  left: -2px;
  right: -2px;
  top: -16px;
  height: 24px;
  background-size: 96px 24px;
}
.dock .mc-btn--play::before,
.mc-btn--login::before {
  left: 6px;
  right: 6px;
  top: -9px;
  height: 12px;
  background-size: 48px 12px;
}

/* Eiszapfen unter dem Neuigkeiten-Panel */
.news::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -14px;
  height: 14px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23cfe6ff' fill-opacity='.85' d='M2 0h6v4H6v4H4V4H2zM14 0h4v2h-2v3h-2zM24 0h8v4h-2v6h-2v4h-2V4h-2zM36 0h3v3h-2z'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 40px 14px;
}

/* Zuckerstangen-Fortschritt */
.progress > i {
  background: repeating-linear-gradient(-45deg, #e8384a 0 6px, #fff4f4 6px 12px);
  background-size: 17px 17px;
  animation: ww-cane 0.6s linear infinite;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2);
}
.progress--indeterminate > i {
  animation:
    progress-sweep 1.4s steps(14) infinite,
    ww-cane 0.6s linear infinite;
}
@keyframes ww-cane {
  to {
    background-position: 17px 0;
  }
}

.news__head svg {
  color: #ff5f6d;
  filter: drop-shadow(0 0 6px rgb(255 95 109 / 0.6));
}
.markdown li::before {
  background: #ff5f6d;
  box-shadow: 2px 2px 0 #2f7a3a;
}
.account__head {
  border-color: #050816;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.15);
}
::-webkit-scrollbar-thumb {
  background-color: rgb(190 225 255 / 0.25);
}
