/* Shared ICE / Uplink scanline background.
 *
 * Pure CSS, no images, no JS. Static layers carry the look; only three small layers move, and they move
 * with transform / opacity only (compositor work, no repaint), so a TV or phone GPU stays idle.
 *
 * Default palette is the ICE 404 page (red / magenta / purple). Member pages add .ice-bg--blue (and
 * html.ice-uplink) for the cyan / electric-blue / deep-navy version. Downloads and Support use
 * html.ice-violet / .ice-bg--violet: the same animated field, recoloured electric blue / indigo /
 * violet / deep navy, with a dark scrim so page type stays readable. The Command Deck uses html.ice-deck
 * / .ice-bg--deck: teal and mint strands fading into coral at the floor. html.ice-lock (expired / locked
 * Vault notice) and the renew page restore the default ICE red palette. Admin uses the default ICE palette.
 * .ice-page / .ice-card styles below are only for the 404 ICE page, so that page stays identical.
 */

:root {
  --ice-bg: #06030a;
  --ice-crim: #ff1744;
  --ice-mag: #ff2bd6;
  --ice-vio: #7a3cff;
  --ice-ink: #f6eaf3;
  --ice-dim: #b9a6bd;
  --ice-field: #10030a;
  --ice-wash: rgba(255, 23, 68, .18);
  --ice-band-a: rgba(255, 23, 68, .34);
  --ice-band-b: rgba(255, 23, 68, .52);
  --ice-band-c: rgba(122, 60, 255, .30);
  --ice-band-d: rgba(255, 43, 214, .26);
  --ice-band-e: rgba(255, 43, 214, .55);
  --ice-band-f: rgba(255, 23, 68, .40);
  --ice-slat-1: rgba(6, 3, 10, .82);
  --ice-slat-2: rgba(6, 3, 10, .55);
  --ice-slat-3: rgba(6, 3, 10, .5);
  --ice-lit-a: rgba(255, 120, 210, .20);
  --ice-lit-b: rgba(150, 110, 255, .22);
  --ice-haze-a: rgba(255, 60, 220, .55);
  --ice-haze-b: rgba(255, 43, 214, .22);
  --ice-tear-a: rgba(255, 80, 200, .20);
  --ice-tear-b: rgba(255, 23, 68, .16);
  --ice-vig: rgba(4, 1, 7, .82);
  --ice-vig-top: rgba(4, 1, 7, .55);
  --ice-vig-bot: rgba(4, 1, 7, .7);
}

html.ice-uplink, .ice-bg--blue {
  --ice-bg: #03060d;
  --ice-crim: #00b8ff;
  --ice-mag: #00f0ff;
  --ice-vio: #3d6bff;
  --ice-ink: #e8f4ff;
  --ice-dim: #8fb0c9;
  --ice-field: #041018;
  --ice-wash: rgba(0, 80, 180, .22);
  --ice-band-a: rgba(0, 184, 255, .28);
  --ice-band-b: rgba(0, 240, 255, .42);
  --ice-band-c: rgba(40, 80, 220, .32);
  --ice-band-d: rgba(0, 200, 255, .22);
  --ice-band-e: rgba(0, 240, 255, .48);
  --ice-band-f: rgba(0, 140, 255, .36);
  --ice-slat-1: rgba(3, 6, 13, .82);
  --ice-slat-2: rgba(3, 6, 13, .55);
  --ice-slat-3: rgba(3, 6, 13, .5);
  --ice-lit-a: rgba(80, 220, 255, .22);
  --ice-lit-b: rgba(80, 140, 255, .24);
  --ice-haze-a: rgba(0, 200, 255, .50);
  --ice-haze-b: rgba(0, 160, 255, .20);
  --ice-tear-a: rgba(80, 220, 255, .22);
  --ice-tear-b: rgba(0, 180, 255, .16);
  --ice-vig: rgba(1, 4, 12, .84);
  --ice-vig-top: rgba(1, 4, 12, .58);
  --ice-vig-bot: rgba(1, 4, 12, .74);
}


/* Command Deck: dense vertical strands, teal / mint up top, coral floor (no figures, CSS only). */
html.ice-deck, .ice-bg--deck {
  --ice-bg: #030806;
  --ice-crim: #ff4a2a;
  --ice-mag: #7fffd4;
  --ice-vio: #12c8a0;
  --ice-ink: #e8fff6;
  --ice-dim: #8fb8aa;
  --ice-field: #041510;
  --ice-wash: rgba(255, 80, 40, .18);
  --ice-band-a: rgba(20, 210, 170, .28);
  --ice-band-b: rgba(80, 255, 210, .42);
  --ice-band-c: rgba(10, 140, 110, .30);
  --ice-band-d: rgba(40, 230, 190, .22);
  --ice-band-e: rgba(70, 255, 210, .48);
  --ice-band-f: rgba(0, 160, 130, .36);
  --ice-slat-1: rgba(1, 3, 3, .92);
  --ice-slat-2: rgba(1, 3, 3, .72);
  --ice-slat-3: rgba(1, 3, 3, .58);
  --ice-lit-a: rgba(180, 255, 230, .30);
  --ice-lit-b: rgba(40, 255, 200, .18);
  --ice-haze-a: rgba(70, 255, 210, .48);
  --ice-haze-b: rgba(20, 200, 160, .16);
  --ice-tear-a: rgba(180, 255, 230, .20);
  --ice-tear-b: rgba(255, 90, 40, .16);
  --ice-vig: rgba(2, 3, 4, .72);
  --ice-vig-top: rgba(2, 10, 8, .32);
  --ice-vig-bot: rgba(0, 0, 0, .94);
}


/* Downloads / Support: same animated Uplink field, blue / purple (not the cyan login palette). */
html.ice-violet, .ice-bg--violet {
  --ice-bg: #05061a;
  --ice-crim: #4d8dff;
  --ice-mag: #9b6bff;
  --ice-vio: #5b45ff;
  --ice-ink: #e8ecff;
  --ice-dim: #9aa3c9;
  --ice-field: #07091c;
  --ice-wash: rgba(90, 50, 220, .32);
  --ice-band-a: rgba(50, 120, 255, .30);
  --ice-band-b: rgba(100, 70, 255, .44);
  --ice-band-c: rgba(50, 30, 160, .36);
  --ice-band-d: rgba(160, 80, 255, .32);
  --ice-band-e: rgba(80, 150, 255, .44);
  --ice-band-f: rgba(70, 40, 200, .40);
  --ice-slat-1: rgba(4, 5, 16, .88);
  --ice-slat-2: rgba(4, 5, 16, .70);
  --ice-slat-3: rgba(4, 5, 16, .58);
  --ice-lit-a: rgba(120, 160, 255, .18);
  --ice-lit-b: rgba(170, 110, 255, .20);
  --ice-haze-a: rgba(120, 90, 255, .50);
  --ice-haze-b: rgba(60, 40, 210, .18);
  --ice-tear-a: rgba(140, 160, 255, .18);
  --ice-tear-b: rgba(90, 70, 255, .12);
  --ice-vig: rgba(3, 4, 14, .90);
  --ice-vig-top: rgba(3, 4, 14, .68);
  --ice-vig-bot: rgba(3, 4, 14, .84);
}

/* Expired / locked Vault notice: force the ICE red palette even on a blue or Deck page. */
html.ice-lock,
html.ice-lock.ice-uplink,
html.ice-lock.ice-deck,
html.ice-lock.ice-violet,
html.ice-lock .ice-bg {
  --ice-bg: #06030a;
  --ice-crim: #ff1744;
  --ice-mag: #ff2bd6;
  --ice-vio: #7a3cff;
  --ice-ink: #f6eaf3;
  --ice-dim: #b9a6bd;
  --ice-field: #10030a;
  --ice-wash: rgba(255, 23, 68, .18);
  --ice-band-a: rgba(255, 23, 68, .34);
  --ice-band-b: rgba(255, 23, 68, .52);
  --ice-band-c: rgba(122, 60, 255, .30);
  --ice-band-d: rgba(255, 43, 214, .26);
  --ice-band-e: rgba(255, 43, 214, .55);
  --ice-band-f: rgba(255, 23, 68, .40);
  --ice-slat-1: rgba(6, 3, 10, .82);
  --ice-slat-2: rgba(6, 3, 10, .55);
  --ice-slat-3: rgba(6, 3, 10, .5);
  --ice-lit-a: rgba(255, 120, 210, .20);
  --ice-lit-b: rgba(150, 110, 255, .22);
  --ice-haze-a: rgba(255, 60, 220, .55);
  --ice-haze-b: rgba(255, 43, 214, .22);
  --ice-tear-a: rgba(255, 80, 200, .20);
  --ice-tear-b: rgba(255, 23, 68, .16);
  --ice-vig: rgba(4, 1, 7, .82);
  --ice-vig-top: rgba(4, 1, 7, .55);
  --ice-vig-bot: rgba(4, 1, 7, .7);
}

/* Hide the 2077 wash, Blackwall scene and old grids when this background is in use (one layer, not three). */
html.has-ice-bg { background: var(--ice-bg) !important; }
html.has-ice-bg::before,
html.has-ice-bg::after,
body.has-ice-bg::before,
body.has-ice-bg::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}
body.has-ice-bg { background: transparent !important; }
/* Let the ICE field show through the decrypting / gate overlay (Blackwall had pinned this to solid black). */
body.has-ice-bg.gate-pending { background: transparent !important; }
body.has-ice-bg #loadingScreen,
body.has-ice-bg .gate-loader {
  background: color-mix(in srgb, var(--ice-bg) 38%, transparent) !important;
}

body.has-ice-bg .v77-grain,
body.has-ice-bg .bg-radial,
body.has-ice-bg .bg-grid,
body.has-ice-bg .bg-grid-red,
body.has-ice-bg .bg-clip,
body.has-ice-bg .scanlines { display: none !important; }
/* Vault theatre / cinema: no competing wallpaper behind the picture. */
body.theater-mode .ice-bg,
body.cinema-fullscreen .ice-bg { display: none !important; }

.ice-bg {
  position: fixed;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  right: 0;
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: 0;
  width: auto;
  height: auto;
  min-height: 100dvh;
  min-height: 100lvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 120%, var(--ice-wash), transparent 60%),
    linear-gradient(90deg, var(--ice-field) 0%, var(--ice-band-a) 14%, var(--ice-band-b) 30%, var(--ice-band-c) 46%, var(--ice-band-d) 60%, var(--ice-band-e) 82%, var(--ice-band-f) 100%),
    var(--ice-bg);
}
.ice-bg i { position: absolute; display: block; }
/* Soft floor shade so the field fades smoothly down to the bottom nav,
   with no hard band or seam when a page is scrolled to the end. Uses the
   current palette token, so each ICE skin keeps its own colours. */
.ice-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48vh, 26rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--ice-bg) 28%, transparent) 36%,
    color-mix(in srgb, var(--ice-bg) 64%, #000) 72%,
    color-mix(in srgb, var(--ice-bg) 86%, #000) 100%
  );
}

/* Vertical teal → coral wash for the Command Deck (strands are the slats cut through this field). */
html.ice-deck .ice-bg,
.ice-bg.ice-bg--deck {
  background:
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(4, 1, 1, .45) 82%, #010101 100%),
    radial-gradient(110% 90% at 90% 86%, rgba(255, 62, 28, .80) 0%, rgba(255, 90, 40, .48) 28%, rgba(255, 70, 30, .16) 52%, transparent 72%),
    radial-gradient(80% 65% at 10% 92%, rgba(255, 80, 40, .38) 0%, rgba(220, 60, 30, .14) 40%, transparent 66%),
    linear-gradient(180deg, transparent 38%, rgba(255, 100, 50, .12) 52%, rgba(255, 70, 35, .34) 72%, rgba(120, 20, 10, .50) 100%),
    radial-gradient(90% 80% at 40% 18%, rgba(90, 255, 210, .60) 0%, rgba(20, 210, 160, .30) 38%, transparent 70%),
    radial-gradient(50% 60% at 22% 14%, rgba(180, 255, 230, .32), transparent 62%),
    linear-gradient(180deg, #0a3a30 0%, #0d8a6c 16%, #1ad4a8 34%, #0e9a78 50%, #3a3020 64%, #4a2014 78%, #1a0c08 100%),
    #030806;
}
html.ice-deck .ice-cut,
.ice-bg--deck .ice-cut {
  background:
    repeating-linear-gradient(90deg, var(--ice-slat-1) 0 2px, transparent 2px 5px, var(--ice-slat-2) 5px 6px, transparent 6px 9px),
    repeating-linear-gradient(90deg, transparent 0 6px, var(--ice-slat-3) 6px 7px, transparent 7px 14px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, #000 16%, #000 72%, rgba(0, 0, 0, .12) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, #000 16%, #000 72%, rgba(0, 0, 0, .12) 100%);
}
html.ice-deck .ice-haze,
.ice-bg--deck .ice-haze {
  top: -18%; bottom: 30%; right: auto; left: 4%; width: 70%;
  background: radial-gradient(closest-side at 40% 35%, var(--ice-haze-a), var(--ice-haze-b) 55%, transparent 100%);
}

/* Locked / expired: drop any Deck-specific field and use the default ICE stripes. */
html.ice-lock .ice-bg,
html.ice-lock .ice-bg.ice-bg--deck,
html.ice-lock .ice-bg.ice-bg--blue,
html.ice-lock .ice-bg.ice-bg--violet {
  background:
    radial-gradient(120% 90% at 50% 120%, var(--ice-wash), transparent 60%),
    linear-gradient(90deg, var(--ice-field) 0%, var(--ice-band-a) 14%, var(--ice-band-b) 30%, var(--ice-band-c) 46%, var(--ice-band-d) 60%, var(--ice-band-e) 82%, var(--ice-band-f) 100%),
    var(--ice-bg);
}
html.ice-lock .ice-cut {
  background:
    repeating-linear-gradient(90deg, var(--ice-slat-1) 0 3px, transparent 3px 7px, var(--ice-slat-2) 7px 8px, transparent 8px 13px),
    repeating-linear-gradient(90deg, transparent 0 9px, var(--ice-slat-3) 9px 11px, transparent 11px 23px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%, #000 78%, rgba(0, 0, 0, .35) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%, #000 78%, rgba(0, 0, 0, .35) 100%);
}
html.ice-lock .ice-haze {
  top: -10%; bottom: -10%; right: -12%; left: auto; width: 58%;
  background: radial-gradient(closest-side at 62% 50%, var(--ice-haze-a), var(--ice-haze-b) 55%, transparent 100%);
}

/* Soft veil so Command Deck type and cards stay readable over the bright strands. */
html.ice-deck #dashPage {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  min-height: 100lvh;
}
html.ice-deck #dashPage::before {
  content: "";
  position: absolute;
  inset: -8px 0 0;
  background:
    radial-gradient(120% 80% at 50% 12%, rgba(0, 0, 0, .30), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .10) 50%, rgba(0, 0, 0, .22));
  pointer-events: none;
  z-index: 0;
}
html.ice-deck #dashPage > * { position: relative; z-index: 1; }

/* Soft veil so Downloads / Support type and cards stay readable over the strands. */
html.ice-violet .dl-wrap,
html.ice-violet #supportPage {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  min-height: 100lvh;
}
html.ice-violet .dl-wrap::before,
html.ice-violet #supportPage::before {
  content: "";
  position: absolute;
  inset: -8px 0 0;
  background:
    radial-gradient(140% 90% at 50% 8%, rgba(4, 5, 16, .72), transparent 58%),
    linear-gradient(180deg, rgba(4, 5, 16, .58) 0%, rgba(4, 5, 16, .40) 28%, rgba(4, 5, 16, .30) 55%, rgba(4, 5, 16, .42) 100%);
  pointer-events: none;
  z-index: 0;
}
html.ice-violet .dl-wrap > *,
html.ice-violet #supportPage > * { position: relative; z-index: 1; }

/* Lift the admin terminal above the ICE field so standalone type (Data Core) stays
   visible. Cards already paint above the wallpaper via position:relative; the page
   title does not, so it vanished into the scanlines. */
body.has-ice-bg #adminContent {
  position: relative;
  z-index: 10;
}

/* Dark vertical slats cut through the colour field: this is what makes the dense VHS stripe texture. */
.ice-cut {
  top: 0; bottom: 0; left: -24px; right: -24px;
  background:
    repeating-linear-gradient(90deg, var(--ice-slat-1) 0 3px, transparent 3px 7px, var(--ice-slat-2) 7px 8px, transparent 8px 13px),
    repeating-linear-gradient(90deg, transparent 0 9px, var(--ice-slat-3) 9px 11px, transparent 11px 23px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%, #000 78%, rgba(0, 0, 0, .35) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%, #000 78%, rgba(0, 0, 0, .35) 100%);
  animation: ice-jit 1.8s steps(1, end) infinite;
  will-change: transform;
}
/* A second, sparser set of bright slats drifts the other way, so the stripes never line up twice. */
.ice-lit {
  top: 0; bottom: 0; left: -24px; right: -24px;
  background:
    repeating-linear-gradient(90deg, transparent 0 17px, var(--ice-lit-a) 17px 18px, transparent 18px 41px),
    repeating-linear-gradient(90deg, transparent 0 29px, var(--ice-lit-b) 29px 31px, transparent 31px 67px);
  animation: ice-drift 2.6s steps(1, end) infinite;
  will-change: transform;
}
.ice-haze {
  top: -10%; bottom: -10%; right: -12%; width: 58%;
  background: radial-gradient(closest-side at 62% 50%, var(--ice-haze-a), var(--ice-haze-b) 55%, transparent 100%);
  animation: ice-haze 7s ease-in-out infinite;
  will-change: opacity;
}
/* Faint blue-grey grain (one tiny tiled SVG, rasterised once). */
.ice-noise {
  inset: 0;
  opacity: .10;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .55  0 0 0 0 .7  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
/* A thin bright tear sweeps down now and then. */
.ice-tear {
  left: 0; right: 0; top: -8%; height: 7%;
  background: linear-gradient(180deg, transparent, var(--ice-tear-a) 45%, var(--ice-tear-b) 55%, transparent);
  animation: ice-tear 9s linear infinite;
  will-change: transform;
}
.ice-vig {
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 38%, var(--ice-vig) 100%),
    linear-gradient(180deg, var(--ice-vig-top), transparent 30%, transparent 70%, var(--ice-vig-bot));
}

@keyframes ice-jit {
  0% { transform: translate3d(0, 0, 0); }
  12% { transform: translate3d(-5px, 0, 0); }
  13% { transform: translate3d(3px, 0, 0); }
  40% { transform: translate3d(-9px, 0, 0); }
  41% { transform: translate3d(-2px, 0, 0); }
  68% { transform: translate3d(4px, 0, 0); }
  69% { transform: translate3d(-7px, 0, 0); }
  88% { transform: translate3d(1px, 0, 0); }
}
@keyframes ice-drift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(7px, 0, 0); }
  26% { transform: translate3d(14px, 0, 0); }
  60% { transform: translate3d(-6px, 0, 0); }
  61% { transform: translate3d(-13px, 0, 0); }
  85% { transform: translate3d(5px, 0, 0); }
}
@keyframes ice-haze {
  0%, 100% { opacity: .62; }
  38% { opacity: 1; }
  41% { opacity: .7; }
  44% { opacity: .95; }
}
@keyframes ice-tear {
  0%, 62% { transform: translate3d(0, 0, 0); opacity: 0; }
  64% { opacity: 1; }
  100% { transform: translate3d(0, 1500%, 0); opacity: 0; }
}

@media (max-width: 560px) {
  .ice-cut {
    background:
      repeating-linear-gradient(90deg, var(--ice-slat-1) 0 2px, transparent 2px 5px, var(--ice-slat-2) 5px 6px, transparent 6px 10px),
      repeating-linear-gradient(90deg, transparent 0 7px, var(--ice-slat-3) 7px 8px, transparent 8px 17px);
  }
  html.ice-deck .ice-cut,
  .ice-bg--deck .ice-cut {
    background:
      repeating-linear-gradient(90deg, var(--ice-slat-1) 0 1.5px, transparent 1.5px 4px, var(--ice-slat-2) 4px 5px, transparent 5px 7px),
      repeating-linear-gradient(90deg, transparent 0 5px, var(--ice-slat-3) 5px 6px, transparent 6px 11px);
  }
  html.ice-lock .ice-cut {
    background:
      repeating-linear-gradient(90deg, var(--ice-slat-1) 0 2px, transparent 2px 5px, var(--ice-slat-2) 5px 6px, transparent 6px 10px),
      repeating-linear-gradient(90deg, transparent 0 7px, var(--ice-slat-3) 7px 8px, transparent 8px 17px);
  }
}

/* No motion for anyone who asks for less: the still image keeps the whole look. */
@media (prefers-reduced-motion: reduce) {
  .ice-cut, .ice-lit, .ice-haze, .ice-tear { animation: none; will-change: auto; }
  .ice-tear { display: none; }
  .ice-btn { transition: none; }
}

html:has(body.ice-page), body.ice-page { margin: 0; min-height: 100%; background: var(--ice-bg); color: var(--ice-ink); }

/* ---- 404 ICE page chrome (unchanged look; not used on other pages) ---- */
.ice-page {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Rajdhani", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  background: var(--ice-bg);
  color: var(--ice-ink);
}
.ice-page * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ice-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(max(24px, env(safe-area-inset-bottom)) + 76px) max(16px, env(safe-area-inset-left));
}
.ice-card {
  position: relative;
  width: min(640px, 100%);
  padding: 28px 26px 26px;
  background: linear-gradient(180deg, rgba(14, 5, 16, .86), rgba(8, 3, 11, .9));
  border: 1px solid rgba(255, 43, 214, .30);
  border-left: 5px solid var(--ice-crim);
  box-shadow: 0 0 0 1px rgba(255, 23, 68, .10), 0 18px 60px rgba(0, 0, 0, .65), 0 0 46px rgba(255, 23, 68, .16);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.ice-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice-mag);
}
.ice-tag svg { flex: none; width: 22px; height: 22px; color: var(--ice-crim); filter: drop-shadow(0 0 6px rgba(255, 23, 68, .7)); }
.ice-tag .ice-dot { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ice-dim); letter-spacing: .14em; font-size: 10px; }
.ice-tag .ice-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ice-crim); box-shadow: 0 0 8px var(--ice-crim); }
h1.ice-title {
  margin: 18px 0 4px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .02em;
  font-size: clamp(2.5rem, 11.5vw, 4.4rem);
  color: #fff;
  text-shadow: 3px 0 0 rgba(255, 23, 68, .85), -3px 0 0 rgba(122, 60, 255, .8), 0 0 28px rgba(255, 43, 214, .45);
}
h2.ice-sub {
  margin: 0 0 16px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.82rem, 3.4vw, 1.05rem);
  color: var(--ice-crim);
}
.ice-msg { margin: 0 0 16px; font-size: clamp(1rem, 4vw, 1.12rem); line-height: 1.5; font-weight: 500; color: #e6d3e4; }
.ice-route {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 22px;
  padding: 11px 13px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 2px solid rgba(255, 23, 68, .55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ice-dim);
}
.ice-route b { color: var(--ice-mag); font-weight: 700; }
.ice-route span { min-width: 0; overflow-wrap: anywhere; }
.ice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 43, 214, .10);
  border: 1px solid rgba(255, 43, 214, .45);
  transition: background .15s, border-color .15s, transform .15s;
}
.ice-btn svg { flex: none; width: 19px; height: 19px; }
.ice-btn:hover, .ice-btn:focus-visible { background: rgba(255, 23, 68, .26); border-color: var(--ice-crim); outline: none; }
.ice-btn:active { transform: translateY(1px); }
.ice-btn.is-primary {
  background: linear-gradient(180deg, rgba(255, 23, 68, .9), rgba(200, 10, 60, .9));
  border-color: #ff5c7f;
  box-shadow: 0 0 22px rgba(255, 23, 68, .35);
}
.ice-btn.is-primary:hover, .ice-btn.is-primary:focus-visible { background: linear-gradient(180deg, #ff3a5e, #d80f45); }
@media (max-width: 560px) {
  .ice-card { padding: 22px 18px 20px; }
  .ice-actions { grid-template-columns: 1fr; }
  .ice-btn { min-height: 52px; font-size: 13px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ice-wrap { place-items: start center; }
  h1.ice-title { font-size: clamp(2rem, 8vw, 3rem); margin-top: 12px; }
}
