:root {
  color-scheme: dark;
  --bg: #04111c;
  --bg-deep: #020914;
  --panel: rgba(7, 27, 42, 0.78);
  --panel-strong: rgba(4, 17, 30, 0.92);
  --panel-ice: rgba(221, 250, 255, 0.08);
  --text: #f4fdff;
  --muted: #b7d3dd;
  --soft: #85aeba;
  --line: rgba(140, 239, 255, 0.33);
  --line-strong: rgba(178, 247, 255, 0.64);
  --cyan: #46f0ff;
  --aqua: #34d7d0;
  --blue: #69adff;
  --white: #f7ffff;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(70, 240, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 15%, rgba(105, 173, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 58% 96%, rgba(52, 215, 208, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--bg-deep), var(--bg) 48%, #0c2032);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.78;
  background-image:
    linear-gradient(90deg, rgba(247, 255, 255, 0.28), rgba(70, 240, 255, 0.2) 5%, transparent 16%, transparent 84%, rgba(70, 240, 255, 0.2) 95%, rgba(247, 255, 255, 0.28)),
    radial-gradient(ellipse at left, rgba(247, 255, 255, 0.22), rgba(70, 240, 255, 0.1) 18%, transparent 34%),
    radial-gradient(ellipse at right, rgba(247, 255, 255, 0.22), rgba(70, 240, 255, 0.1) 18%, transparent 34%),
    linear-gradient(rgba(173, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 280px 100%, 280px 100%, 54px 54px, 54px 54px;
  background-position: center, left center, right center, center, center;
  mask-image: linear-gradient(90deg, black, black 16%, rgba(0, 0, 0, 0.56) 28%, rgba(0, 0, 0, 0.56) 72%, black 84%, black);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 3px),
    radial-gradient(circle at 82% 66%, rgba(70, 240, 255, 0.55) 0 1px, transparent 2.5px),
    radial-gradient(circle at 12% 72%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.76) 0 1px, transparent 2px);
  background-size: 180px 140px, 240px 200px, 170px 190px, 210px 160px, 130px 170px;
  animation: snowDrift 12s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.seo-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ice-app {
  display: grid;
  grid-template-columns: minmax(250px, 0.86fr) minmax(300px, 1.05fr) minmax(320px, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  width: min(1360px, calc(100vw - 28px));
  height: min(820px, calc(100dvh - 28px));
  margin: 14px auto;
  overflow: hidden;
}

.frost-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, var(--panel), var(--panel-strong));
  box-shadow: 0 28px 80px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.frost-panel::before {
  position: absolute;
  inset: 12px;
  z-index: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(184, 249, 255, 0.12);
  border-radius: calc(var(--radius) - 8px);
}

.topbar,
.identity-block,
.bio-tab,
.bio-card,
.favorite-colors,
.visit-counter,
.link-view,
.music-widget {
  position: relative;
  z-index: 1;
}

.info-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  font-family: "Noto Sans JP", sans-serif;
  background: rgba(70, 240, 255, 0.1);
  box-shadow: 0 0 22px rgba(70, 240, 255, 0.14);
}

.language-switcher {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(184, 249, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.lang-option {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option[aria-pressed="true"] {
  color: #02101a;
  outline: none;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  box-shadow: 0 0 22px rgba(70, 240, 255, 0.26);
}

.language-changing .language-switcher {
  border-color: var(--line-strong);
  box-shadow: 0 0 34px rgba(70, 240, 255, 0.26);
  transform: translateY(-2px);
}

[data-i18n],
[data-i18n-aria-label],
[data-i18n-alt],
[data-i18n-title] {
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.language-changing [data-i18n] {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(5px);
}

.identity-block {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.intro-snowflakes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.intro-snowflakes span {
  display: grid;
  width: clamp(30px, 3vw, 42px);
  height: clamp(30px, 3vw, 42px);
  place-items: center;
  border: 1px solid rgba(184, 249, 255, 0.24);
  border-radius: 50%;
  color: rgba(229, 253, 255, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(70, 240, 255, 0.82);
  background: rgba(2, 13, 22, 0.22);
  box-shadow: 0 0 28px rgba(70, 240, 255, 0.16);
  backdrop-filter: blur(8px);
  animation: sideSnowPulse 5s ease-in-out infinite;
}

.intro-snowflakes span:nth-child(2) { animation-delay: -1.2s; }
.intro-snowflakes span:nth-child(3) { animation-delay: -2.3s; }
.intro-snowflakes span:nth-child(4) { animation-delay: -3.4s; }
.intro-snowflakes span:nth-child(5) { animation-delay: -4.1s; }

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jp-text {
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 900;
  line-height: 1;
  text-rendering: geometricPrecision;
  font-variant-east-asian: normal;
}

.intro-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.56;
}

.bio-tab {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 5;
  width: 96px;
  height: 62px;
  border: 1px solid rgba(184, 249, 255, 0.5);
  border-radius: 16px;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  background: rgba(2, 12, 22, 0.58);
  box-shadow: 0 0 28px rgba(70, 240, 255, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mobile-bio {
  display: none;
}

.mobile-bio-tab {
  display: grid;
  width: 100%;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(184, 249, 255, 0.5);
  border-radius: 16px;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  background: rgba(2, 12, 22, 0.42);
  box-shadow: 0 0 28px rgba(70, 240, 255, 0.12);
  backdrop-filter: blur(9px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mobile-bio-tab:hover,
.mobile-bio-tab:focus-visible,
.mobile-bio-tab[aria-expanded="true"] {
  border-color: var(--line-strong);
  outline: none;
  background: rgba(70, 240, 255, 0.13);
}

.mobile-bio-card {
  display: grid;
  gap: 9px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  opacity: 0;
  background: rgba(2, 13, 22, 0.48);
  backdrop-filter: blur(10px);
  transition: max-height 320ms ease, opacity 260ms ease, padding 320ms ease, border-color 260ms ease;
}

.mobile-bio.bio-open .mobile-bio-card {
  max-height: 420px;
  padding: 16px;
  overflow: auto;
  opacity: 1;
  border-color: rgba(184, 249, 255, 0.24);
}

.mobile-bio-card div {
  display: grid;
  gap: 3px;
}

.mobile-bio-card dt {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-bio-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.36;
}

.bio-tab:hover,
.bio-tab:focus-visible,
.bio-tab[aria-expanded="true"] {
  border-color: var(--line-strong);
  outline: none;
  background: rgba(70, 240, 255, 0.13);
  transform: translateY(-2px);
}

.bio-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  align-content: start;
  width: min(360px, calc(100% - 56px));
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(184, 249, 255, 0.24);
  border-radius: 16px;
  background: rgba(2, 13, 22, 0.48);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.985);
  filter: blur(6px);
  pointer-events: none;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24), inset 0 0 34px rgba(70, 240, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
}

.character-panel.bio-open .bio-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
  pointer-events: auto;
  box-shadow: inset 0 0 34px rgba(70, 240, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.bio-card div {
  display: grid;
  gap: 3px;
}

.bio-card dt {
  color: var(--cyan);
  font-size: clamp(0.74rem, 0.9vw, 0.88rem);
  font-weight: 900;
}

.bio-card dd {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 700;
  line-height: 1.36;
}

.favorite-colors {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(184, 249, 255, 0.26);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  background: rgba(2, 11, 20, 0.42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(9px);
  transition: background-color 420ms ease, border-color 420ms ease, box-shadow 420ms ease, opacity 420ms ease;
}

.color-dots {
  display: flex;
  gap: 9px;
}

.color-dots i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(70, 240, 255, 0.26);
}

.dot-blue { background: var(--blue); }
.dot-aqua { background: var(--aqua); }
.dot-white { background: var(--white); }

.visit-counter {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 5;
  display: grid;
  min-width: 48px;
  height: 42px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(184, 249, 255, 0.38);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  background: rgba(2, 11, 20, 0.42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), 0 0 20px rgba(70, 240, 255, 0.12);
  backdrop-filter: blur(9px);
}

.visit-counter strong {
  color: var(--white);
  font-size: 1.1rem;
}

.character-panel {
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: visible;
  padding: 14px;
}

.character-panel::after {
  position: absolute;
  inset: 14px;
  z-index: 2;
  content: "";
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  background: rgba(1, 8, 15, 0.58);
  backdrop-filter: blur(2px);
  transition: opacity 260ms ease;
}

.character-panel.bio-open::after {
  opacity: 1;
}

.character-panel.bio-open .character-info {
  opacity: 0.28;
  transform: translateX(-50%) translateY(4px) scale(0.985);
  pointer-events: none;
}

.character-panel img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(184, 249, 255, 0.25);
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.character-info {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 56px);
  transform: translateX(-50%);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
  will-change: opacity, transform;
}

.character-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 182px;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: rgba(2, 11, 20, 0.44);
  backdrop-filter: blur(9px);
  transition: background-color 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.action-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 18px;
}

.link-view {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  animation: panelIn 260ms ease both;
}

.link-view[data-link-view="main"] {
  grid-template-rows: repeat(5, auto) 1fr auto;
}

.link-view[hidden] {
  display: none;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: clamp(58px, 8.1vh, 76px);
  padding: 12px;
  border: 1px solid rgba(184, 249, 255, 0.26);
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(90deg, rgba(70, 240, 255, 0.2), transparent 70%);
  transition: opacity 180ms ease;
}

.link-card:hover,
.link-card:focus-visible,
.back-button:hover,
.back-button:focus-visible,
.track-button:hover,
.track-button:focus-visible,
.playlist-link:hover,
.playlist-link:focus-visible {
  border-color: var(--line-strong);
  outline: none;
  background: rgba(70, 240, 255, 0.13);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.link-card > * {
  position: relative;
  z-index: 1;
}

.link-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card button,
.link-card {
  appearance: none;
}

button.link-card {
  width: 100%;
  border-color: rgba(184, 249, 255, 0.32);
}

.link-icon,
.arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #02101a;
  background: linear-gradient(135deg, var(--white), var(--cyan) 55%, var(--blue));
  box-shadow: 0 0 24px rgba(70, 240, 255, 0.18);
}

.link-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.04);
}

.youtube .link-icon { background: linear-gradient(135deg, #ffffff, #75edff); }
.tiktok .link-icon { background: linear-gradient(135deg, #34d7d0, #ffffff, #69adff); }
.twitch .link-icon { background: linear-gradient(135deg, #a9fbff, #6b8cff); }
.game-profiles .link-icon { background: linear-gradient(135deg, #f7ffff, #46f0ff, #69adff); }
.steam .link-icon { background: linear-gradient(135deg, #e9ffff, #55b6ff, #294461); color: #fff; }
.hoyolab .link-icon { background: linear-gradient(135deg, #ffffff, #34d7d0, #69adff); }
.minecraft .link-icon,
.hypixel .link-icon,
.namemc .link-icon { background: linear-gradient(135deg, #dfffff, #34d7d0, #69adff); }

.donate-button {
  display: grid;
  align-self: end;
  justify-self: center;
  width: 98px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  color: #04111c;
  background: linear-gradient(135deg, var(--white), var(--cyan), var(--aqua));
  box-shadow: 0 0 34px rgba(70, 240, 255, 0.28), 0 14px 30px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.donate-button:hover,
.donate-button:focus-visible {
  outline: none;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 44px rgba(70, 240, 255, 0.38), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.donate-button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.back-button,
.track-button,
.playlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(184, 249, 255, 0.32);
  border-radius: 12px;
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.back-button {
  width: max-content;
  gap: 8px;
}

.music-widget {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 150px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 14px;
  min-height: 184px;
  padding: 14px;
  border: 1px solid rgba(184, 249, 255, 0.24);
  border-radius: 16px;
  background: rgba(2, 13, 22, 0.45);
}

.music-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.music-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cyan);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  background: rgba(70, 240, 255, 0.1);
}

.music-copy h2 {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.1;
}

.music-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.record-shell {
  position: relative;
  display: grid;
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  align-self: center;
  place-items: center;
  width: 150px;
  height: 150px;
}

.record {
  position: relative;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(184, 249, 255, 0.42);
  border-radius: 50%;
  cursor: pointer;
  transform: rotate(var(--record-angle, 0deg));
  background:
    radial-gradient(circle at center, #06121f 0 14%, transparent 15%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 10px),
    radial-gradient(circle at 35% 30%, rgba(70, 240, 255, 0.38), transparent 34%),
    #07111d;
  box-shadow: 0 0 30px rgba(70, 240, 255, 0.22), inset 0 0 28px rgba(0, 0, 0, 0.45);
}

.record::after {
  position: absolute;
  inset: 4px;
  z-index: 3;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(184, 249, 255, 0.28);
}

.record-art {
  position: absolute;
  inset: 25px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(70, 240, 255, 0.55), rgba(255, 255, 255, 0.85)),
    url("assets/vromix-character.png") center / cover;
}

.record-hole {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #02101a;
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  box-shadow: 0 0 22px rgba(70, 240, 255, 0.42);
}

.spotify-embed-host,
.record-shell iframe {
  position: absolute;
  inset: 7px;
  z-index: 0;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.45);
  transform-origin: center;
  transition: opacity 180ms ease;
}

.music-widget.spotify-ready .spotify-embed-host {
  opacity: 0;
  pointer-events: none;
}

.music-widget.spotify-fallback .record-shell iframe {
  z-index: 4;
  opacity: 0.96;
  pointer-events: auto;
}

.music-widget.is-playing .record {
  animation: spinRecord 5s linear infinite;
}

.music-actions {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 8px;
  align-self: end;
}

.track-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.track-button.next {
  gap: 6px;
}

.playlist-link {
  gap: 7px;
  white-space: nowrap;
}

@keyframes snowDrift {
  from { background-position: 0 -220px, 0 -180px, 0 -240px, 0 -160px, 0 -200px; }
  to { background-position: 80px 220px, -70px 260px, 50px 230px, -40px 240px, 30px 260px; }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes spinRecord {
  from { transform: rotate(var(--record-angle, 0deg)); }
  to { transform: rotate(calc(var(--record-angle, 0deg) + 360deg)); }
}

@keyframes sideSnowPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translateY(0) rotate(0deg) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: translateY(-8px) rotate(18deg) scale(1);
  }
}

@media (max-width: 1080px) {
  .ice-app {
    grid-template-columns: minmax(245px, 0.9fr) minmax(270px, 1fr) minmax(300px, 1fr);
    gap: 12px;
    width: calc(100vw - 18px);
    height: calc(100dvh - 18px);
    margin: 9px auto;
  }

  .info-panel,
  .action-panel {
    padding: 14px;
  }

  .music-widget {
    grid-template-columns: 1fr 118px;
    min-height: 164px;
  }

  .record-shell {
    width: 118px;
    height: 118px;
  }

  .record {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ice-app {
    grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
    grid-template-rows: auto auto;
    width: calc(100vw - 12px);
    height: auto;
    min-height: calc(100dvh - 12px);
    margin: 6px auto;
    overflow: visible;
  }

  .character-panel {
    display: grid;
    min-height: min(720px, calc(100dvh - 12px));
  }

  .info-panel {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .identity-block {
    gap: 8px;
  }

  .intro-text {
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .bio-tab {
    position: absolute;
    top: 18px;
    right: auto;
    left: 18px;
    width: 78px;
    height: 52px;
    font-size: 0.95rem;
  }

  .bio-card {
    top: 50%;
    right: 12px;
    bottom: auto;
    left: 50%;
    align-content: start;
    width: min(320px, calc(100% - 28px));
    max-height: calc(100% - 132px);
    padding: 12px;
    gap: 7px;
  }

  .bio-card dt {
    font-size: 0.7rem;
  }

  .bio-card dd {
    font-size: 0.75rem;
    line-height: 1.26;
  }

  .favorite-colors {
    align-self: end;
    gap: 6px;
  }

  .visit-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .action-panel {
    grid-column: 1 / -1;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .link-view {
    gap: 7px;
  }

  .link-card {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    min-height: 48px;
    padding: 7px;
    gap: 9px;
  }

  .link-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .link-icon svg {
    width: 23px;
    height: 23px;
  }

  .arrow {
    width: 30px;
    height: 30px;
  }

  .link-card strong {
    font-size: 0.86rem;
  }

  .donate-button {
    width: 86px;
    height: 44px;
  }

  .music-widget {
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 128px;
    padding: 9px;
    gap: 7px 9px;
  }

  .music-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .music-copy {
    gap: 9px;
  }

  .music-copy h2 {
    font-size: 0.9rem;
  }

  .music-copy p {
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .record-shell {
    width: 102px;
    height: 102px;
  }

  .record {
    width: 94px;
    height: 94px;
  }

  .record-art {
    inset: 19px;
  }

  .record-hole {
    width: 34px;
    height: 34px;
  }

  .music-actions {
    grid-template-columns: 38px 1fr auto;
    gap: 6px;
  }

  .back-button,
  .track-button,
  .playlist-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .ice-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: calc(100vw - 10px);
    min-height: 100dvh;
    margin: 5px auto;
  }

  .info-panel {
    min-height: auto;
  }

  .character-panel {
    display: none;
  }

  .mobile-bio {
    display: grid;
    gap: 10px;
  }

  .intro-snowflakes span {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .action-panel {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .ice-app {
    grid-template-rows: auto auto;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .lang-option {
    min-width: 27px;
    height: 27px;
    padding: 0 5px;
    font-size: 0.62rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .intro-text {
    max-width: none;
  }

  .bio-tab {
    top: 14px;
    left: 14px;
    width: 74px;
    height: 50px;
  }

  .favorite-colors span,
  .visit-counter {
    font-size: 0.68rem;
  }

  .color-dots i {
    width: 16px;
    height: 16px;
  }

  .action-panel {
    padding: 8px;
  }

  .music-widget {
    grid-template-columns: 1fr 92px;
    min-height: 122px;
  }

  .record-shell {
    width: 92px;
    height: 92px;
  }

  .record {
    width: 86px;
    height: 86px;
  }

  .music-actions {
    grid-column: 1 / -1;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .ice-app {
    height: calc(100dvh - 12px);
    margin: 6px auto;
  }

  .info-panel,
  .action-panel {
    padding: 12px;
  }

  .bio-card {
    top: 50%;
    bottom: auto;
    gap: 7px;
    padding: 12px;
  }

  .link-card {
    min-height: 56px;
    padding: 8px;
  }

  .music-widget {
    min-height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
