/* ============================================================================
   mc.css — CMDBLOCK Minecraft-soul components
   Pairs with scripts/mc.js. Additive; leans on styles.css design tokens.
   ========================================================================== */

/* Pixel-perfect rendering for every real game texture (Language B: assets/mc/) */
.mc-sprite,
.mc-face,
.mc-toast-icon,
.mc-chat-face,
.mc-hotbar-slot img,
[data-mc-sprite] { image-rendering: pixelated; image-rendering: crisp-edges; }

/* Language A: RENDERED emblems (ore tiers + editions, from assets/icons/) must stay
   SMOOTH. These hosts only ever carry rendered art — force auto to undo any page-level
   image-rendering:pixelated that would muddy them. */
.edition-switcher img, .ps-ore, .cc-emblem, .tier-ico, .tier-banner-img, .project-banner,
.next-up-icon, .achievement-icon, .achievement-icon img, .complete-medal img,
.sidebar-course-art, .platform-chip-icon, .ec-tag img, .edition-pill img,
.rank-netherite, .ncc-ore, .pr-ore {
  image-rendering: auto !important;
}
/* keep non-square emblems (e.g. four_blocks.png 750x581) from distorting in square hosts */
.achievement-icon, .achievement-icon img, .project-banner, .tier-banner-img,
.sidebar-course-art, .ps-ore, .cc-emblem, .next-up-icon { object-fit: contain; }

/* Pixel font face — the community "Minecraft" webfont */
@font-face {
  font-family: 'MC';
  src: url('font/minecraft.woff2') format('woff2'), url('font/minecraft.woff') format('woff');
  font-display: swap;
}
.mc-pixel { font-family: 'MC', var(--font-pixel), monospace; letter-spacing: .02em; }

/* shared blink for "live" dots / carets (was defined per-page, drifted) */
@keyframes blink { 50% { opacity: 0; } }

/* ── Panorama background layer ─────────────────────────────────────────── */
.mc-panorama {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* Pin the world background across MPA navigations so it stays continuous
     (only the page content slides) — kills the page-switch background jitter. */
  view-transition-name: mc-panorama;
}
/* keep the pinned background BEHIND the sliding page content during the transition */
::view-transition-group(mc-panorama) { z-index: -1; animation-duration: 0.01s; }
::view-transition-old(mc-panorama), ::view-transition-new(mc-panorama) { animation: none; mix-blend-mode: normal; }
html[data-reduce-motion="1"] .mc-panorama { view-transition-name: none; }
.mc-pano-parallax {
  position: absolute; inset: -8% 0; will-change: transform;
  transition: transform 0.12s linear;
}
.mc-pano-track {
  position: absolute; top: 50%; left: 0; height: 130vh; transform: translateY(-50%);
  display: flex; width: 500%; will-change: transform;
  animation: mc-pano-pan 96s linear infinite;
}
.mc-pano-face {
  width: 20%; height: 100%; background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.mc-pano-veil {
  position: absolute; inset: 0;
  /* lighter than before so the shader scene reads through (betterbedrock-style),
     while the lower fade to --bg keeps page content legible */
  background:
    radial-gradient(125% 100% at 50% 8%, rgba(5,6,8,0.14) 0%, rgba(5,6,8,0.52) 52%, rgba(5,6,8,0.86) 82%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5,7,9,0.10) 0%, rgba(5,6,8,0.30) 34%, rgba(5,6,8,0.72) 100%);
  backdrop-filter: blur(1px);
}
@keyframes mc-pano-pan { from { transform: translate(0, -50%); } to { transform: translate(-80%, -50%); } }
html[data-theme="light"] .mc-pano-veil {
  background:
    radial-gradient(125% 100% at 50% 8%, rgba(247,245,239,0.30) 0%, rgba(247,245,239,0.66) 52%, rgba(247,245,239,0.90) 82%, var(--bg) 100%),
    linear-gradient(180deg, rgba(247,245,239,0.24) 0%, rgba(247,245,239,0.55) 40%, rgba(247,245,239,0.88) 100%);
}
html[data-theme="light"] .mc-pano-face { filter: saturate(.9) brightness(1.02); }
@media (prefers-reduced-motion: reduce) { .mc-pano-track { animation: none; } }

/* ── Scroll band: full-bleed world screenshot that content scrolls over ── */
.mc-scene {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 62vh; display: grid; place-items: center;
  padding: 80px 24px; margin: 0;
}
.mc-scene-bg {
  position: absolute; inset: -12% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform; transform: scale(1.18);
}
.mc-scene-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 100% at 50% 50%, rgba(5,6,8,0.35), rgba(5,6,8,0.72) 70%, rgba(5,6,8,0.92)),
    linear-gradient(180deg, var(--bg) 0%, transparent 16% 84%, var(--bg) 100%);
}
.mc-scene-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.mc-scene-kicker {
  display: inline-block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cmd-green); margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.mc-scene-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2rem, 5.5vw, 4rem); color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.mc-scene-sub {
  margin-top: 16px; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
@media (max-width: 720px) { .mc-scene { min-height: 48vh; padding: 56px 20px; } }
@media (prefers-reduced-motion: reduce) { .mc-scene-bg, .mc-pano-parallax { transform: none !important; transition: none; } }

/* ── betterbedrock-style alternating feature showcase rows ── */
.showcase-rows { display: flex; flex-direction: column; gap: 28px; }
.showcase-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.showcase-row:nth-child(even) .showcase-media { order: 2; }
.showcase-media {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.showcase-media .mc-shot { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.showcase-copy { padding: 8px 4px; }
.showcase-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel), monospace; font-size: 0.62rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--cmd-green);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(85,255,85,0.07); border: 1px solid rgba(85,255,85,0.22); margin-bottom: 16px;
}
.showcase-eyebrow .mc-ico { width: 14px; height: 14px; }
.showcase-copy h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.08; margin: 0 0 12px; color: var(--text);
}
.showcase-copy p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.6; margin: 0 0 18px; }
.showcase-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 820px) {
  .showcase-row { grid-template-columns: 1fr; gap: 22px; }
  .showcase-row:nth-child(even) .showcase-media { order: 0; }
}

/* ── Team / builders section ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 24px 18px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(85,255,85,0.3); }
.team-avatar { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), 0 6px 18px -8px rgba(0,0,0,0.6); }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); }
.team-role { font-family: var(--font-pixel), monospace; font-size: 0.6rem; letter-spacing: 0.5px; color: var(--cmd-green); text-transform: uppercase; }
.team-card.helper .team-avatar { width: 52px; height: 52px; }

/* Section-scoped panorama (behind one panel instead of the whole page) */
.mc-pano-scope { position: relative; overflow: hidden; isolation: isolate; }
.mc-pano-scope > .mc-pano-inset {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit;
}
.mc-pano-scope > .mc-pano-inset .mc-pano-face { filter: saturate(1) brightness(.8); }

/* ── Voxel block (CSS-3D from real face textures) ──────────────────────── */
.mc-voxel {
  --v: 64px; width: var(--v); height: var(--v);
  perspective: 640px; display: inline-block; vertical-align: middle;
}
.mc-voxel-cube {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-36deg);
}
.mc-voxel-spin .mc-voxel-cube { animation: mc-voxel-spin 14s linear infinite; }
@keyframes mc-voxel-spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.mc-face {
  position: absolute; width: var(--v); height: var(--v);
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
/* MC's own directional face lighting */
.mc-face-top    { transform: rotateX(90deg)  translateZ(calc(var(--v) / 2)); filter: brightness(1); }
.mc-face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--v) / 2)); filter: brightness(.5); }
.mc-face-front  { transform: translateZ(calc(var(--v) / 2)); filter: brightness(.86); }
.mc-face-back   { transform: rotateY(180deg) translateZ(calc(var(--v) / 2)); filter: brightness(.7); }
.mc-face-right  { transform: rotateY(90deg)  translateZ(calc(var(--v) / 2)); filter: brightness(.62); }
.mc-face-left   { transform: rotateY(-90deg) translateZ(calc(var(--v) / 2)); filter: brightness(.72); }

/* ── XP bar ────────────────────────────────────────────────────────────── */
.mc-xp { position: relative; width: 100%; padding-top: 18px; }
.mc-xp-lvl {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  font-family: 'MC', var(--font-pixel), monospace; font-size: 15px; line-height: 1;
  color: var(--cmd-green); text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.85); z-index: 2;
}
.mc-xp-track {
  height: 10px; border-radius: 2px; overflow: hidden;
  background: #0a0d0a; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.6), inset 0 2px 3px rgba(0,0,0,.5);
  image-rendering: pixelated;
}
.mc-xp-fill {
  height: 100%; width: 0; border-radius: 1px;
  background: linear-gradient(180deg, #9CFF6B 0%, #55D423 45%, #35A016 100%);
  box-shadow: 0 0 8px rgba(85,255,85,.5), inset 0 1px 0 rgba(255,255,255,.35);
  transition: width .7s var(--ease);
}
.mc-xp-cap { margin-top: 5px; font-size: 11px; color: var(--text-faint); letter-spacing: .04em; text-align: center; }
html[data-theme="light"] .mc-xp-track { background: #d7e6cf; }
html[data-theme="light"] .mc-xp-lvl { color: #146E20; text-shadow: 1px 1px 0 rgba(255,255,255,.7); }

/* ── Advancement toast ─────────────────────────────────────────────────── */
.mc-toast-layer {
  position: fixed; top: 18px; right: 18px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.mc-toast {
  transform: translateX(120%); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.mc-toast.in { transform: translateX(0); opacity: 1; }
.mc-toast.out { transform: translateX(120%); opacity: 0; }
.mc-toast-frame {
  display: flex; align-items: center; gap: 12px; min-width: 268px; max-width: 340px;
  padding: 12px 16px 12px 12px;
  background: linear-gradient(180deg, rgba(20,26,20,.96), rgba(11,15,11,.98));
  border: 2px solid #2a2f2a; border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04);
}
.mc-toast-task     .mc-toast-frame { border-color: #3a5f2f; }
.mc-toast-goal     .mc-toast-frame { border-color: var(--emerald); }
.mc-toast-challenge .mc-toast-frame {
  border-color: #7a3fb0;
  background: linear-gradient(180deg, rgba(28,18,34,.97), rgba(14,10,18,.98));
}
.mc-toast-icon {
  width: 34px; height: 34px; flex: none; background-size: 82%; background-repeat: no-repeat;
  background-position: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.mc-toast-kicker {
  font-family: 'MC', var(--font-pixel), monospace; font-size: 11px; letter-spacing: .02em;
  color: var(--gold); text-shadow: 1px 1px 0 rgba(0,0,0,.7);
}
.mc-toast-challenge .mc-toast-kicker { color: #D890FF; }
.mc-toast-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; margin-top: 2px; }
.mc-toast-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }

/* ── Screenshot slot with labeled fallback ─────────────────────────────── */
.mc-shot {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; background: #0a0c10;
  box-shadow: var(--shadow-card);
}
.mc-shot-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .5s ease;
}
.mc-shot.filled .mc-shot-img { opacity: 1; }
.mc-shot.filled .mc-shot-ph { opacity: 0; }
.mc-shot-ph {
  position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s ease;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 12px, transparent 12px 24px),
    radial-gradient(120% 100% at 50% 0%, rgba(80,200,120,.06), transparent 60%);
  border: 1.5px dashed var(--border-strong);
  border-radius: inherit;
}
.mc-shot-ph-inner { text-align: center; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mc-shot-ph-cam {
  width: 30px; height: 24px; opacity: .55; background: currentColor; color: var(--text-faint);
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}
.mc-shot-ph-label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.mc-shot-ph-hint {
  font-family: var(--font-pixel), monospace; font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); opacity: .7;
}
/* soft gradient so overlaid captions stay readable on filled shots */
.mc-shot.filled::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5,6,8,.55) 100%);
}

/* ── Minecraft chat styling (reskin for terminals/previews) ────────────── */
.mc-chat {
  font-family: 'MC', var(--font-pixel), monospace; font-size: 12.5px; line-height: 1.85;
  background: rgba(6,8,10,.72); border-radius: 8px; padding: 12px 14px;
  color: #e9ece9; text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.65);
}
.mc-chat .mc-chat-line { display: flex; align-items: flex-start; gap: 7px; white-space: pre-wrap; word-break: break-word; }
.mc-chat-face { width: 15px; height: 15px; flex: none; margin-top: 3px; background-size: cover; }
.mc-chat .u  { color: var(--cmd-aqua); }     /* usernames  */
.mc-chat .g  { color: var(--cmd-green); }     /* success    */
.mc-chat .y  { color: var(--cmd-yellow); }
.mc-chat .r  { color: var(--cmd-red); }       /* errors     */
.mc-chat .p  { color: var(--cmd-purple); }
.mc-chat .dim { color: #9aa39a; }

/* ── Hotbar strip (real GUI slot frames) ───────────────────────────────── */
.mc-hotbar { display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(0,0,0,.28); border-radius: 4px; image-rendering: pixelated; }
.mc-hotbar-slot {
  width: 40px; height: 40px; position: relative; display: grid; place-items: center;
  background: rgba(139,139,139,.22); box-shadow: inset -2px -2px 0 rgba(0,0,0,.35), inset 2px 2px 0 rgba(255,255,255,.12);
}
.mc-hotbar-slot img { width: 30px; height: 30px; image-rendering: pixelated; }
.mc-hotbar-slot .mc-count {
  position: absolute; right: 2px; bottom: 0; font-family: 'MC', var(--font-pixel), monospace;
  font-size: 12px; color: #fff; text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.9);
}
.mc-hotbar-slot.sel { box-shadow: 0 0 0 2px #fff, inset -2px -2px 0 rgba(0,0,0,.35); }

/* ── Small inline item sprite (row/chip icons) ─────────────────────────── */
.mc-ico {
  display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  image-rendering: pixelated;
}
.mc-ico-lg { width: 22px; height: 22px; }

/* ── Player-head avatar ────────────────────────────────────────────────── */
.mc-avatar {
  image-rendering: pixelated; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px -2px rgba(0,0,0,.5);
}

@media (max-width: 560px) {
  .mc-toast-layer { top: 10px; right: 10px; left: 10px; }
  .mc-toast-frame { min-width: 0; max-width: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Beta announcement bar — pinned status banner w/ live countdown
   Injected site-wide by mc.js (MC.betaBanner). Shifts the floating nav down.
   ═════════════════════════════════════════════════════════════════════════ */
:root { --beta-h: 42px; }
html.has-beta-bar .app-nav { top: calc(var(--beta-h) + 12px); }
@media (max-width: 720px) { html.has-beta-bar .app-nav { top: calc(var(--beta-h) + 8px); } }
/* the resources masthead's top padding was tuned to the un-shifted nav — give it breathing room */
html.has-beta-bar .res-banner-wrap { padding-top: 132px; }
@media (max-width: 720px) { html.has-beta-bar .res-banner-wrap { padding-top: 116px; } }

.beta-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  height: var(--beta-h);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(80,200,120,0.16), rgba(80,200,120,0.05) 40%, rgba(80,200,120,0.05) 60%, rgba(80,200,120,0.16)),
    linear-gradient(180deg, rgba(11,13,18,0.92), rgba(6,8,11,0.90));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(80,200,120,0.28);
  box-shadow: 0 8px 30px -14px rgba(0,0,0,0.7), inset 0 -1px 0 rgba(80,200,120,0.15);
  transform: translateY(-100%);
  animation: betaDrop 0.6s cubic-bezier(.16,.84,.44,1) 0.1s forwards;
  font-size: 13px; line-height: 1;
}
@keyframes betaDrop { to { transform: translateY(0); } }
html.beta-bar-closing .beta-bar { animation: betaLift 0.35s ease forwards; }
@keyframes betaLift { to { transform: translateY(-100%); } }

.beta-bar-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 16px;
}
.beta-bar-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.beta-bar-lead .beta-ico-img { width: 17px; height: 17px; image-rendering: pixelated; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

.beta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'MC', var(--font-pixel), monospace; letter-spacing: .07em;
  font-size: 11px; font-weight: 700; color: #8CF0AE;
  padding: 4px 10px 3px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(85,255,122,0.20), rgba(80,200,120,0.08));
  border: 1px solid rgba(85,255,122,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 16px -4px rgba(85,255,122,0.5);
  text-shadow: 0 0 10px rgba(85,255,122,0.6);
  flex-shrink: 0;
}
.beta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #55FF7A;
  box-shadow: 0 0 8px #55FF7A; animation: blink 1.4s steps(1,end) infinite;
}
.beta-msg { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beta-msg b { color: var(--text); font-weight: 600; }
.beta-msg .beta-until { color: #8FEBAE; font-weight: 600; }
.beta-sm { display: none; }   /* phone-only short form of the message */
/* simple (lite) banner: icon sits inline next to the message */
.beta-bar-lite .beta-bar-inner > .beta-ico-img { width: 16px; height: 16px; }

.beta-bar-count { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.beta-bar-count .beta-ico-img { width: 16px; height: 16px; image-rendering: pixelated; margin-right: 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.beta-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 30px; }
.beta-num {
  font-family: 'MC', var(--font-pixel), monospace;
  font-size: 15px; font-weight: 700; color: #EAFBF0; font-style: normal;
  padding: 4px 7px 3px; border-radius: 6px; min-width: 27px; text-align: center;
  background: linear-gradient(180deg, rgba(80,200,120,0.20), rgba(80,200,120,0.05));
  border: 1px solid rgba(80,200,120,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px -3px rgba(0,0,0,.6);
  text-shadow: 0 0 9px rgba(85,255,122,0.35);
  transform-origin: 50% 100%;
}
.beta-num.tick { animation: betaTick 0.5s cubic-bezier(.2,.7,.3,1); }
@keyframes betaTick {
  0%   { transform: rotateX(-88deg); filter: brightness(2.2); color: #9CF3BB; }
  55%  { transform: rotateX(8deg); }
  100% { transform: rotateX(0); filter: brightness(1); }
}
.beta-unit i { font-style: normal; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.beta-sep { color: #56B478; font-weight: 700; font-size: 14px; align-self: flex-start; margin-top: 4px; animation: blink 1.6s steps(1,end) infinite; }

.beta-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--text-faint);
  font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s var(--ease);
}
.beta-close:hover { color: var(--text); background: rgba(255,255,255,0.06); border-color: var(--border); }

/* animated diagonal sheen sweeping across the bar */
.beta-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(114deg, transparent 30%, rgba(155,243,187,0.14) 47%, rgba(255,255,255,0.10) 50%, rgba(155,243,187,0.14) 53%, transparent 70%);
  mix-blend-mode: screen;
  transform: translateX(-40%);
  animation: betaSheen 6s ease-in-out 1.2s infinite;
}
@keyframes betaSheen { 0% { transform: translateX(-60%); } 55%,100% { transform: translateX(60%); } }

/* thin progress line along the bottom — fills as launch approaches */
.beta-prog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.beta-prog-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2E8B57, #55FF7A);
  box-shadow: 0 0 10px rgba(85,255,122,0.65);
  border-radius: 0 2px 2px 0;
  transition: width 1s linear;
}

/* light theme */
html[data-theme="light"] .beta-bar {
  background:
    linear-gradient(90deg, rgba(23,138,70,0.12), rgba(23,138,70,0.03) 40%, rgba(23,138,70,0.03) 60%, rgba(23,138,70,0.12)),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,245,239,0.92));
  border-bottom-color: rgba(23,138,70,0.30);
}
html[data-theme="light"] .beta-tag { color: #0F7A3C; background: rgba(23,138,70,0.10); border-color: rgba(23,138,70,0.35); text-shadow: none; }
html[data-theme="light"] .beta-num { background: rgba(20,22,28,0.04); border-color: rgba(20,22,28,0.10); }
html[data-theme="light"] .beta-msg .beta-until { color: #178A46; }
html[data-theme="light"] .beta-sep { color: #178A46; }
html[data-theme="light"] .beta-tag { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 14px -6px rgba(23,138,70,0.4); }
html[data-theme="light"] .beta-prog { background: rgba(20,22,28,0.08); }
html[data-theme="light"] .beta-prog-fill { background: linear-gradient(90deg, #178A46, #34C759); }

@media (prefers-reduced-motion: reduce) {
  .beta-bar { animation: none; transform: none; }
  .beta-sheen, .beta-dot, .beta-sep { animation: none; }
  .beta-num.tick { animation: none; }
}

/* responsive: tighten on tablet, drop labels + message on phones */
@media (max-width: 820px) {
  .beta-bar-inner { gap: 12px; }
  .beta-msg .beta-full { display: none; }
}
@media (max-width: 560px) {
  :root { --beta-h: 38px; }
  .beta-bar { font-size: 12px; }
  .beta-bar-inner { justify-content: center; gap: 8px; padding-right: 40px; }
  .beta-bar-inner > .beta-ico-img { display: none; }
  .beta-tag { font-size: 10px; padding: 3px 7px 2px; }
  .beta-lg { display: none; }
  .beta-sm { display: inline; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Launch / maintenance overlay — full-screen splash shown until go-live
   ═════════════════════════════════════════════════════════════════════════ */
html.launch-locked, html.launch-locked body { overflow: hidden !important; }
.launch-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; place-items: center; overflow: hidden;
  color: #EAF3EC; opacity: 0; animation: loIn 0.5s ease forwards;
}
@keyframes loIn { to { opacity: 1; } }
.launch-overlay.lo-out { animation: loOut 0.5s ease forwards; }
@keyframes loOut { to { opacity: 0; transform: scale(1.03); } }

.lo-bg {
  position: absolute; inset: -4%; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06); filter: saturate(1.06);
  animation: loDrift 44s ease-in-out infinite alternate;
}
@keyframes loDrift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.13) translate(-2.2%, -1.4%); } }
.lo-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 92% at 50% 28%, rgba(4,8,6,0.42), rgba(4,7,6,0.78) 58%, rgba(3,5,5,0.95)),
    linear-gradient(180deg, rgba(8,26,15,0.30), rgba(3,6,5,0.72));
  backdrop-filter: blur(3px);
}
.lo-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 660px; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: loRise 0.7s cubic-bezier(.16,.84,.44,1) 0.08s both;
}
@keyframes loRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.lo-brand { display: flex; align-items: center; gap: 11px; }
.lo-logo { width: 40px; height: 40px; border-radius: 9px; image-rendering: auto;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.7); }
/* official wordmark — same font as the site nav logo (Silkscreen) */
.lo-word { font-family: var(--font-pixel); font-size: 20px; letter-spacing: .5px; color: var(--text); }
.lo-word b { color: var(--cmd-green); font-weight: 700; text-shadow: 0 0 18px rgba(85,255,85,0.5); }

.lo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #9BEBB6; padding: 6px 14px; border-radius: 999px;
  background: rgba(85,255,122,0.10); border: 1px solid rgba(85,255,122,0.30);
}
.lo-eyebrow.lo-live { color: #EAFBF0; background: rgba(85,255,122,0.20); border-color: rgba(85,255,122,0.55); }
.lo-dot { width: 7px; height: 7px; border-radius: 50%; background: #55FF7A; box-shadow: 0 0 10px #55FF7A; animation: blink 1.4s steps(1,end) infinite; }

.lo-title {
  margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(30px, 6vw, 52px);
  line-height: 1.05; font-weight: 700;
  letter-spacing: -0.02em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
.lo-sub { margin: 0; max-width: 490px; font-size: 15.5px; line-height: 1.55; color: rgba(235,243,236,0.82); }
.lo-sub b { color: #BFF6D2; font-weight: 600; }

.lo-count { display: flex; gap: 10px; margin-top: 10px; }
.lo-unit { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 76px; }
.lo-num {
  font-family: var(--font-pixel); font-style: normal;
  font-size: clamp(24px, 5.4vw, 34px); font-weight: 700; color: #EAFBF0;
  width: 100%; padding: 14px 6px 11px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,28,21,0.74), rgba(8,14,11,0.64));
  border: 1px solid rgba(85,255,122,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 32px -18px rgba(0,0,0,.85);
  text-shadow: 0 0 16px rgba(85,255,122,0.35);
  transform-origin: 50% 100%;
}
.lo-num.tick { animation: betaTick 0.5s cubic-bezier(.2,.7,.3,1); }
.lo-unit i { font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(235,243,236,0.55); }

.lo-when { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: rgba(235,243,236,0.72); }
.lo-when b { color: #EAF3EC; font-weight: 600; }
.lo-when .mc-ico { width: 15px; height: 15px; display: inline-block; background-size: contain; background-repeat: no-repeat; vertical-align: middle; }

.lo-enter {
  margin-top: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: #062012;
  padding: 13px 22px; border-radius: 12px; border: none;
  background: linear-gradient(180deg, #7BF59C, #46D172);
  box-shadow: 0 12px 28px -12px rgba(85,255,122,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.lo-enter:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(85,255,122,0.9), inset 0 1px 0 rgba(255,255,255,0.4); }
.lo-enter span { transition: transform .15s var(--ease); }
.lo-enter:hover span { transform: translateX(3px); }

/* passcode gate */
.lo-gate { display: flex; gap: 10px; margin-top: 16px; }
.lo-gate .lo-enter { margin-top: 0; }
.lo-code {
  width: 210px; padding: 12px 16px; border-radius: 12px;
  font-family: var(--font-mono); letter-spacing: .22em; font-size: 16px; font-weight: 500;
  color: #EAFBF0; text-align: center;
  background: rgba(8,14,11,0.62); border: 1px solid rgba(85,255,122,0.28);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lo-code::placeholder { color: rgba(235,243,236,0.42); letter-spacing: .03em; }
.lo-code:focus { border-color: rgba(85,255,122,0.65); box-shadow: 0 0 0 3px rgba(85,255,122,0.16); }
.lo-err { min-height: 17px; margin-top: 9px; font-size: 13px; color: #FF9090; font-weight: 500; }
.lo-note { margin: 2px 0 0; font-size: 12.5px; color: rgba(235,243,236,0.5); }
.lo-shake { animation: loShake 0.4s cubic-bezier(.36,.07,.19,.97); }
@keyframes loShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

@media (max-width: 560px) {
  .lo-count { gap: 7px; }
  .lo-unit { min-width: 0; flex: 1; }
  .lo-num { font-size: 26px; padding: 11px 4px 9px; border-radius: 11px; }
  .lo-content { gap: 13px; padding: 28px 18px; }
  .lo-title br { display: none; }
  .lo-gate { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .lo-code { width: 100%; }
  .lo-gate .lo-enter { justify-content: center; }
  .lo-count { gap: 6px; width: 100%; }
  .lo-unit i { font-size: 8.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-overlay, .lo-content, .lo-bg { animation: none !important; }
  .lo-num.tick { animation: none; }
}

/* ── Guided tour (stepped progress indicator) ─────────────────────────── */
.mc-tour { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(4,6,10,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.28s var(--ease, ease); }
.mc-tour.show { opacity: 1; }
html[data-theme="light"] .mc-tour { background: rgba(20,22,28,0.45); }
.mc-tour-card { position: relative; width: min(440px, 100%); text-align: center; padding: 34px 28px 26px;
  background: linear-gradient(180deg, rgba(22,26,34,0.98), rgba(14,17,23,0.98));
  border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(14px) scale(0.97); opacity: 0;
  transition: transform 0.36s var(--ease, ease), opacity 0.36s var(--ease, ease); }
.mc-tour.show .mc-tour-card { transform: none; opacity: 1; }
html[data-theme="light"] .mc-tour-card { background: #fff; border-color: rgba(20,22,28,0.1); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.35); }
.mc-tour-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-faint, #8a8f98); cursor: pointer; display: grid; place-items: center; transition: 0.15s; }
.mc-tour-x svg { width: 15px; height: 15px; }
.mc-tour-x:hover { background: rgba(255,255,255,0.06); color: var(--text, #fff); }
html[data-theme="light"] .mc-tour-x:hover { background: rgba(20,22,28,0.06); }
.mc-tour-body { min-height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: opacity 0.26s var(--ease, ease), transform 0.26s var(--ease, ease); }
.mc-tour-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(85,255,85,0.1); border: 1px solid rgba(85,255,85,0.24); color: var(--cmd-green, #55FF55); }
.mc-tour-icon svg { width: 28px; height: 28px; }
.mc-tour-title { font-family: var(--font-display, inherit); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--text, #fff); }
.mc-tour-text { font-size: 0.95rem; line-height: 1.55; color: var(--text-dim, #9ea1a8); margin: 4px 0 0; max-width: 340px; }
.mc-tour-text b { color: var(--text, #fff); font-weight: 600; }
.mc-tour-dots { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; height: 14px; margin: 26px 0 22px; }
.mc-tdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); position: relative; z-index: 2; transition: background 0.3s var(--ease, ease); }
.mc-tdot.passed { background: rgba(255,255,255,0.92); }
html[data-theme="light"] .mc-tdot { background: rgba(20,22,28,0.18); }
html[data-theme="light"] .mc-tdot.passed { background: #fff; }
.mc-tfill { position: absolute; top: 50%; left: 0; height: 12px; width: 16px; transform: translateY(-50%); border-radius: 999px; z-index: 1;
  background: linear-gradient(90deg, #39d353, var(--cmd-green, #55FF55)); box-shadow: 0 0 14px rgba(85,255,85,0.5);
  transition: width 0.5s var(--ease, ease), left 0.5s var(--ease, ease); }
.mc-tour-actions { display: flex; align-items: center; gap: 10px; }
.mc-tour-back { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: rgba(255,255,255,0.06); color: var(--text, #fff); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.16s;
  animation: mcTourBackIn 0.4s var(--ease, ease); }
.mc-tour-back:hover { background: rgba(255,255,255,0.12); }
html[data-theme="light"] .mc-tour-back { background: rgba(20,22,28,0.05); color: #1a1c22; }
html[data-theme="light"] .mc-tour-back:hover { background: rgba(20,22,28,0.09); }
@keyframes mcTourBackIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.mc-tour-next { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #63ff7a, #37d94f); color: #04140a; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(85,255,85,0.6), inset 0 1px 0 rgba(255,255,255,0.4); transition: transform 0.16s var(--ease, ease), box-shadow 0.16s var(--ease, ease); }
.mc-tour-next:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(85,255,85,0.72), inset 0 1px 0 rgba(255,255,255,0.4); }
.mc-tour-next:active { transform: translateY(0); }
.mc-tour-next svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) {
  .mc-tour, .mc-tour-card, .mc-tour-body, .mc-tfill, .mc-tdot, .mc-tour-next, .mc-tour-back { transition: none !important; animation: none !important; }
}
