/* Cart Rave — Main Menu Styles (vanilla) */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Shade&family=Space+Mono:wght@400;700&family=Archivo+Black&display=swap');

:root {
  --mono: "Space Mono", ui-monospace, monospace;
  --display: "Bungee", "Archivo Black", sans-serif;
  --shade: "Bungee Shade", "Bungee", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cr-root {
  position: fixed; inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at center 40%, #0a0014 0%, #000 90%);
}

.cr-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  perspective: 700px;
  perspective-origin: 50% 0%;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
}
.cr-floor-grid {
  position: absolute;
  left: -20%; right: -20%; top: 0;
  height: 180%;
  background-image:
    linear-gradient(to right, var(--c1, #ff2bd6) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c2, #22e6ff) 1px, transparent 1px);
  background-size: 60px 60px;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  opacity: 0.45;
  animation: cr-floor-scroll 1.8s linear infinite;
  filter: drop-shadow(0 0 4px var(--c1, #ff2bd6));
}
@keyframes cr-floor-scroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 60px, 0 60px; }
}

.cr-lights {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 2;
  mix-blend-mode: screen;
  overflow: hidden;
}
.cr-light {
  position: absolute;
  top: -10%;
  width: 280px; height: 140%;
  background: radial-gradient(ellipse at top, var(--col) 0%, transparent 60%);
  filter: blur(24px);
  transform-origin: 50% 0%;
  animation: cr-light-sway var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
@keyframes cr-light-sway {
  0%   { transform: rotate(-18deg) translateX(-30px); opacity: 0.5; }
  50%  { opacity: 0.9; }
  100% { transform: rotate(18deg) translateX(30px); opacity: 0.5; }
}

.cr-vignette {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.cr-scan {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.06) 0,
    rgba(255,255,255,0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.12;
}

.cr-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.cr-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  animation: cr-float linear infinite;
}
@keyframes cr-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

.cr-content {
  position: absolute; inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  padding: 48px 56px;
  gap: 32px;
}

.cr-kbm-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 43, 214, 0.28);
  box-shadow:
    0 0 18px rgba(255, 43, 214, 0.16),
    0 0 10px rgba(34, 230, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.cr-kbm-toast-text {
  text-shadow: 0 0 10px rgba(34, 230, 255, 0.18);
}

.cr-kbm-toast-close {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.14);
}

.cr-kbm-toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cr-kbm-toast-close:active {
  transform: translateY(1px);
}

/* Mobile-only: scale toast for readability without affecting desktop. */
@media (pointer: coarse) and (max-width: 1024px) {
  .cr-kbm-toast {
    top: clamp(14px, 3.2vw, 22px);
    gap: clamp(10px, 2.6vw, 14px);
    padding: clamp(12px, 3.2vw, 18px) clamp(14px, 3.8vw, 22px);
    border-width: 1px;
    max-width: min(92vw, 560px);
    justify-content: center;
    text-align: center;
    font-size: clamp(13px, 3.6vw, 16px);
    letter-spacing: 0.09em;
  }

  .cr-kbm-toast-text {
    line-height: 1.25;
  }

  .cr-kbm-toast-close {
    width: clamp(28px, 7.5vw, 36px);
    height: clamp(28px, 7.5vw, 36px);
    line-height: clamp(28px, 7.5vw, 36px);
    font-size: clamp(16px, 4.8vw, 20px);
  }
}

/* Touch controls (mobile / coarse pointer) */
.cr-touch {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.cr-joy {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(34, 230, 255, 0.28);
  box-shadow:
    0 0 18px rgba(34, 230, 255, 0.14),
    0 0 12px rgba(255, 43, 214, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  touch-action: none;
}

.cr-joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 43, 214, 0.28);
  box-shadow:
    0 0 16px rgba(255, 43, 214, 0.22),
    0 0 10px rgba(34, 230, 255, 0.14);
}

.cr-touch-btns {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  pointer-events: auto;
}

.cr-touch-btn {
  width: 108px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.30);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: none;
}

.cr-touch-btn--boost {
  border-color: rgba(34, 230, 255, 0.24);
  box-shadow: 0 0 16px rgba(34, 230, 255, 0.14);
}

.cr-touch-btn--hop {
  border-color: rgba(255, 43, 214, 0.24);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.14);
}

.cr-touch-btn:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.06);
}

@media (pointer: fine) {
  .cr-touch { display: none; }
}

.cr-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.cr-cart-stage {
  position: relative;
  width: 320px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.cr-cart-shadow {
  position: absolute;
  bottom: -10px; left: 50%;
  width: 240px; height: 40px;
  transform: translateX(-50%);
  border-radius: 50%;
  transition: transform 120ms ease-out;
  pointer-events: none;
  filter: blur(6px);
}
#cr-cart-holder svg { transition: transform 90ms linear; overflow: visible; }

.cr-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  padding: 14px 18px;
  background: rgba(10, 0, 20, 0.92);
  border: 1px solid rgba(255, 43, 214, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.2);
  backdrop-filter: blur(8px);
  width: max-content;
  max-width: 320px;
  z-index: 100;
  pointer-events: none;
  font-family: "Space Mono", monospace;
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.cr-cart-stage:hover .cr-tooltip { display: block; }

.cr-tooltip-headline {
  color: #ff2bd6;
  font-weight: bold;
  font-size: 13px;
  margin: 0 0 8px 0;
}

.cr-tooltip-list {
  margin: 0 0 8px 0;
  padding-left: 16px;
}

.cr-tooltip-list li {
  margin-bottom: 4px;
}

.cr-tooltip-list strong {
  color: #2bd6ff;
}

.cr-tooltip-footer {
  margin: 0;
  color: #888;
  font-size: 11px;
}

.cr-stats {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cr-stat-num {
  font-family: var(--display);
  font-size: 28px; line-height: 1;
  text-shadow: 0 0 10px currentColor;
  letter-spacing: 0.02em;
}
.cr-stat-lbl {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
}
#cr-stats-local { position: relative; padding-top: 26px; }
.cr-stats-global { position: relative; padding-top: 26px; }
.cr-stats-global .cr-stat-num { font-size: 22px; }
.cr-stats-tag {
  position: absolute;
  top: -9px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
}
.cr-stat-div { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }

.cr-center { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cr-tagline {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.cr-tagline span:nth-child(2) { color: #22e6ff; text-shadow: 0 0 8px #22e6ff; }
.cr-tagline span:nth-child(odd) { color: rgba(255,255,255,0.35); font-size: 8px; }

.cr-title {
  font-family: var(--display);
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.9;
  margin: 4px 0 14px;
  text-align: center;
  letter-spacing: -0.01em;
  transition: transform 90ms linear;
  text-wrap: balance;
}
.cr-title-word { display: inline-block; margin: 0 6px; }

.cr-title-stack {
  display: flex; flex-direction: column; gap: 0;
  font-size: clamp(72px, 8.5vw, 140px);
}
.cr-title-stack .cr-title-word { margin: 0; }
.cr-title-stack .cr-title-word:nth-child(1) {
  color: var(--t1, #ff2bd6);
  text-shadow: 4px 4px 0 var(--t2, #22e6ff), 0 0 24px var(--t1, #ff2bd6);
}
.cr-title-stack .cr-title-word:nth-child(2) {
  color: var(--t3, #ffe53d);
  text-shadow: -4px 4px 0 var(--t1, #ff2bd6), 0 0 24px var(--t3, #ffe53d);
  margin-top: -8px;
}

.cr-buttons {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 420px; margin-top: 6px;
}
.cr-btn {
  position: relative; display: block; width: 100%;
  padding: 14px 24px;
  background: rgba(0,0,0,0.55);
  border: 2px solid var(--glow);
  border-radius: 6px;
  color: #fff;
  font-family: var(--display);
  font-size: 18px; letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 12px var(--glow),
    0 0 28px color-mix(in oklab, var(--glow), transparent 60%);
  text-shadow: 0 0 8px var(--glow);
  overflow: hidden;
}
.cr-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--glow), transparent 75%), transparent);
  transform: translateX(-100%);
  transition: transform 550ms ease;
  pointer-events: none;
}
.cr-btn:hover::before { transform: translateX(100%); }
.cr-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(0,0,0,0.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 20px var(--glow),
    0 0 44px var(--glow),
    0 8px 24px rgba(0,0,0,0.5);
}
.cr-btn:active { transform: translateY(0) scale(0.99); }
.cr-btn-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cr-btn-label {
  color: var(--glow);
  text-shadow: 0 0 12px var(--glow), 0 0 28px var(--glow);
}
.cr-btn-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 2px solid var(--glow);
  filter: drop-shadow(0 0 6px var(--glow));
}
.cr-btn-corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.cr-btn-corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.cr-btn-corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.cr-btn-corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.cr-right { display: flex; flex-direction: column; gap: 12px; }
.cr-player-card {
  position: relative; z-index: 5;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.5));
  border: 1px solid color-mix(in oklab, var(--pc), transparent 60%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px color-mix(in oklab, var(--pc), transparent 80%),
    0 0 30px color-mix(in oklab, var(--pc), transparent 75%);
}
.cr-player-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.cr-player-status { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); }
.cr-pulse {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: cr-pulse 1.2s ease-in-out infinite;
}
@keyframes cr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cr-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cr-name-display {
  flex: 1;
  font-family: var(--display);
  font-size: 22px; letter-spacing: 0.02em;
  cursor: text;
  text-shadow: 0 0 10px currentColor;
  padding: 6px 10px;
  border: 1px dashed transparent;
  border-radius: 6px;
  transition: border-color 150ms;
}
.cr-name-display:hover { border-color: rgba(255,255,255,0.2); }
.cr-tag { opacity: 0.6; margin-right: 2px; }
.cr-edit-hint { font-family: var(--mono); font-size: 11px; opacity: 0.4; margin-left: 6px; }
.cr-name-input {
  flex: 1;
  background: rgba(0,0,0,0.6);
  border: 1px solid;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--display);
  font-size: 22px; letter-spacing: 0.02em;
  outline: none;
  text-shadow: 0 0 10px currentColor;
}
.cr-reroll {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 18px;
  cursor: pointer;
  transition: transform 200ms ease, background 150ms;
}
.cr-reroll:hover { background: rgba(255,255,255,0.12); transform: rotate(180deg); }

.cr-color-label {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.cr-color-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-bottom: 4px;
}
.cr-color-chip {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  border: 2px solid color-mix(in oklab, var(--cc), transparent 75%);
  cursor: pointer;
  transition: all 150ms ease;
}
.cr-color-chip:hover { border-color: var(--cc); transform: translateY(-2px); }
.cr-color-chip.active {
  border-color: var(--cc);
  background: color-mix(in oklab, var(--cc), transparent 85%);
  box-shadow: 0 0 0 1px var(--cc) inset, 0 0 14px var(--cc);
}
.cr-color-chip.active::after {
  content: ""; position: absolute;
  top: 3px; right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 6px var(--cc);
}

.cr-audio {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cr-mute-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
  color: var(--mc, #22e6ff);
  cursor: pointer;
  transition: transform 150ms, background 150ms, border-color 150ms;
  flex-shrink: 0;
}
.cr-mute-btn:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.06);
  border-color: var(--mc, #22e6ff);
}
.cr-mute-btn.muted {
  background: rgba(255,0,0,0.08);
  border-color: rgba(255,80,80,0.3);
  color: #888;
}
.cr-vol-stack {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}
.cr-vol-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 7px;
}
.cr-vol-label {
  width: 14px;
  text-align: center;
  color: var(--mc, #22e6ff);
  font-size: 12px;
  text-shadow: 0 0 6px var(--mc, #22e6ff);
}
.cr-vol-track {
  flex: 1 1 auto; height: 6px;
  min-width: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}
.cr-vol-fill { height: 100%; border-radius: 3px; transition: width 100ms ease; }
.cr-vol-val {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  min-width: 26px; text-align: right;
}

.cr-controls {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.5));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cr-controls-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  margin-bottom: 2px;
}
.cr-ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-ctl-keys { display: flex; gap: 4px; flex-shrink: 0; }
.cr-ctl-keys kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid var(--kc, rgba(255,255,255,0.35));
  border-radius: 4px;
  font-family: var(--display);
  font-size: 11px; font-weight: 400;
  color: var(--kc, #fff);
  letter-spacing: 0.04em;
  box-shadow:
    0 0 8px color-mix(in oklab, var(--kc, #fff), transparent 55%),
    inset 0 0 4px color-mix(in oklab, var(--kc, #fff), transparent 75%);
  text-shadow: 0 0 6px var(--kc, #fff);
}
.cr-ctl-keys kbd.wide { min-width: 60px; font-size: 10px; letter-spacing: 0.12em; }
.cr-ctl-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 1180px) {
  .cr-content { grid-template-columns: 1fr 1.2fr; padding: 32px; }
  .cr-left { display: none; }
}
@media (max-width: 780px) {
  .cr-content { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .cr-right { display: none; }
}

.cr-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease;
  margin-bottom: 8px;
}
.cr-portal:hover {
  transform: scale(1.08);
}
.cr-portal-swirl {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2bff7a, #0a2a1a, #00ff88, #003a20, #2bff7a, #0a4a2a, #00ffaa, #002a15, #2bff7a);
  animation: cr-swirl-spin 1.5s linear infinite;
  box-shadow: 0 0 20px #2bff7a, 0 0 40px rgba(43, 255, 122, 0.5), 0 0 60px rgba(43, 255, 122, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.4);
  position: relative;
}
.cr-portal-swirl::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #00ff88, #002a15, #2bff7a, #0a2a1a, #00ffaa, #003a20, #2bff7a);
  animation: cr-swirl-spin-reverse 2.2s linear infinite;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}
.cr-portal-swirl::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 35%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #000 0%, #001a0a 60%, #002a15 100%);
  z-index: 2;
  box-shadow: 0 0 10px #000, 0 0 20px rgba(0, 40, 20, 0.8);
}
@keyframes cr-swirl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cr-swirl-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.cr-portal-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #2bff7a;
  text-shadow: 0 0 8px #2bff7a;
  opacity: 0;
  transition: opacity 200ms ease;
}
.cr-portal:hover .cr-portal-label {
  opacity: 1;
}
@media (hover: none) {
  .cr-portal-label {
    opacity: 1;
  }
}

#cr-friends-screen {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a0014 0%, #000 90%);
}
.cr-friends-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 520px;
  width: 90%;
  padding: 40px 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(43, 255, 122, 0.1);
}
.cr-friends-title {
  font-family: var(--display);
  font-size: 32px;
  color: #ffe53d;
  text-shadow: 0 0 12px #ffe53d, 0 0 28px rgba(255, 229, 61, 0.4);
  letter-spacing: 0.06em;
  margin: 0;
}
.cr-friends-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  letter-spacing: 0.03em;
  margin: 0;
}
.cr-friends-link-row {
  display: flex;
  width: 100%;
  gap: 8px;
}
.cr-friends-link {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #22e6ff;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  text-shadow: 0 0 6px #22e6ff;
}
.cr-friends-copy {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #22e6ff;
  border-radius: 8px;
  color: #22e6ff;
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 150ms ease;
  box-shadow: 0 0 8px rgba(34, 230, 255, 0.3);
}
.cr-friends-copy:hover {
  background: rgba(34, 230, 255, 0.1);
  box-shadow: 0 0 16px rgba(34, 230, 255, 0.5);
}
.cr-friends-enter {
  width: 100%;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #2bff7a;
  border-radius: 6px;
  color: #2bff7a;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease;
  box-shadow: 0 0 12px #2bff7a, 0 0 28px rgba(43, 255, 122, 0.4);
  text-shadow: 0 0 12px #2bff7a;
}
.cr-friends-enter:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px #2bff7a, 0 0 44px #2bff7a;
}
.cr-friends-back {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: color 150ms, border-color 150ms;
}
.cr-friends-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
