/* ==================================================================
   @elqorix. — guns.lol-inspired 3D profile card
   monochrome, rounded, single card, no frameworks.
   ================================================================== */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #111111;
  --border: #232323;
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --faint: #454545;
  --white: #ffffff;
  --max: 680px;
  --radius: 26px;
  --radius-pill: 999px;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

::selection {
  background: var(--white);
  color: #000000;
}

/* ------------------------------------------------------------------
   background: starfield + uploaded video
   ------------------------------------------------------------------ */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.34;
  transition: opacity 0.6s ease;
}

body.has-video #starfield {
  opacity: 0.16;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
  pointer-events: none;
}

.bg-video[hidden] {
  display: none;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.95) contrast(1.05) blur(4px);
  transform: scale(1.05);
}

.bg-video-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.52) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.5));
}

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
  pointer-events: none;
}

.bg-image[hidden] {
  display: none;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.48) contrast(1.05);
  transform: scale(1.02);
}

.bg-image-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.78) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.68));
}

body.has-image #starfield {
  opacity: 0.13;
}

/* Background presets (owner-selectable, applied for everyone) */

.bg-preset {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-preset[data-preset="stars"] {
  display: none;
}

.bg-preset[data-preset="grid"] {
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000000 8%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000000 8%, transparent 76%);
}

.bg-preset[data-preset="beam"] {
  background:
    radial-gradient(ellipse 65% 50% at 50% -5%, rgba(255, 255, 255, 0.16), transparent 72%),
    radial-gradient(ellipse 45% 40% at 85% 105%, rgba(255, 255, 255, 0.05), transparent 72%);
}

.bg-preset[data-preset="solid"] {
  background: #000000;
}

body[data-bg="solid"] #starfield {
  display: none;
}

/* ------------------------------------------------------------------
   page frame
   ------------------------------------------------------------------ */

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100vh - 58px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 22px 26px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 6px 10px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.est-time {
  flex: 0 0 auto;
  margin: 0 0 18px;
  color: #747474;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.055em;
  text-align: center;
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   profile card / 3d scene
   ------------------------------------------------------------------ */

.profile-scene {
  width: min(100%, var(--max));
  perspective: 1500px;
  perspective-origin: 50% 42%;
  animation: sceneIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.982);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-card {
  position: relative;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(20, 20, 20, 0.94), rgba(7, 7, 7, 0.96)),
    var(--panel);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.card-bg::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(560px 240px at 12% 0%, rgba(255, 255, 255, 0.075), transparent 62%),
    radial-gradient(520px 300px at 100% 100%, rgba(255, 255, 255, 0.022), transparent 64%);
  content: "";
  pointer-events: none;
}

.card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(
    540px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.09),
    transparent 46%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.profile-card:hover .card-shine {
  opacity: 1;
}

.card-platform {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555555;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateZ(14px);
}

.card-platform svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 26px 28px 20px;
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------------
   profile block
   ------------------------------------------------------------------ */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
  transform-style: preserve-3d;
}

.profile-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  transform-style: preserve-3d;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  transform: translateZ(48px);
  transform-style: preserve-3d;
}

.avatar-ring {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f2f2f2, #6e6e6e 55%, #2a2a2a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 34px rgba(255, 255, 255, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.62);
  place-items: center;
}

.avatar-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #090909;
  border-radius: 50%;
  background: #111111;
}

.avatar-img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-decoration {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  pointer-events: none;
}

.avatar-decoration[hidden] {
  display: none;
}

.presence-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 17px;
  height: 17px;
  border: 3px solid #090909;
  border-radius: 50%;
  --dot-color: #80848e;
  --dot-glow: rgba(128, 132, 142, 0.42);
  --dot-ring: rgba(128, 132, 142, 0.3);
  background: var(--dot-color);
  box-shadow: 0 0 13px var(--dot-glow);
  animation: presencePulse 2.8s ease-out infinite;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.presence-dot.status-online {
  --dot-color: #23a55a;
  --dot-glow: rgba(35, 165, 90, 0.5);
  --dot-ring: rgba(35, 165, 90, 0.34);
}

.presence-dot.status-idle {
  --dot-color: #f0b232;
  --dot-glow: rgba(240, 178, 50, 0.46);
  --dot-ring: rgba(240, 178, 50, 0.3);
}

.presence-dot.status-dnd {
  --dot-color: #f23f43;
  --dot-glow: rgba(242, 63, 67, 0.48);
  --dot-ring: rgba(242, 63, 67, 0.32);
}

.presence-dot.status-offline {
  --dot-color: #7d818c;
  --dot-glow: rgba(125, 129, 140, 0.3);
  animation: none;
}

.presence-dot.status-unknown {
  background: #1b1b1b;
  border-color: #4a4a4a;
  box-shadow: none;
  animation: none;
}

@keyframes presencePulse {
  0% {
    box-shadow: 0 0 0 0 var(--dot-ring), 0 0 13px var(--dot-glow);
  }
  60%,
  100% {
    box-shadow: 0 0 0 7px transparent, 0 0 13px var(--dot-glow);
  }
}

.profile-copy {
  min-width: 0;
  transform: translateZ(30px);
}

.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.profile-badges {
  display: flex;
  min-height: 20px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.profile-badges:empty {
  display: none;
}

.badge {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #2b2b2b;
  border-radius: 7px;
  background: #0d0d0d;
  color: #9d9d9d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.38));
  place-items: center;
}

.badge-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.profile-handle {
  min-height: 18px;
  margin: 7px 0 0;
  color: #7a7a7a;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.015em;
}

.cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  background: var(--white);
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.profile-joined {
  margin: 5px 0 0;
  color: #626262;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.025em;
}

.profile-bio {
  max-width: 355px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #bbbbbb;
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-bio[hidden] {
  display: none;
}

/* ------------------------------------------------------------------
   elqorix ai button
   ------------------------------------------------------------------ */

.ai-button {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, #111111, #080808);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  text-align: left;
  transform: translateZ(40px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ai-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.52),
    0 0 30px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  transform: translateZ(40px) translateY(-2px);
}

.ai-icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eeeeee;
  color: #090909;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.17);
  place-items: center;
}

.ai-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.ai-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.ai-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-copy small {
  overflow: hidden;
  color: #666666;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  color: #a8a8a8;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  place-items: center;
}

.ai-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ai-button:hover .ai-arrow {
  border-color: transparent;
  background: #ffffff;
  color: #000000;
}

/* ------------------------------------------------------------------
   footer row: links + audio
   ------------------------------------------------------------------ */

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  transform: translateZ(18px);
}

.card-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  background: #0d0d0d;
  color: #d8d8d8;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  place-items: center;
}

.icon-button:hover {
  border-color: #555555;
  background: #151515;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.icon-button#copyDiscord svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.copy-label {
  margin-left: 1px;
  color: #565656;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  user-select: none;
}

/* ------------------------------------------------------------------
   social buttons (bottom of the card)
   ------------------------------------------------------------------ */

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  transform: translateZ(20px);
}

.social-button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #080808;
  place-items: center;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.social-button:hover {
  background: #ffffff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.social-button:active {
  transform: translateY(-1px) scale(0.96);
}

.social-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   volume control (top left)
   ------------------------------------------------------------------ */

.volume-control {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #cccccc;
  opacity: 0.62;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease;
}

.volume-control[hidden] {
  display: none;
}

.volume-control:hover,
.volume-control:focus-within,
.volume-control.blocked {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.volume-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #d8d8d8;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  place-items: center;
}

.volume-toggle:hover {
  background: #171717;
  color: #ffffff;
}

.volume-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.volume-toggle .icon-muted {
  display: none;
}

.volume-toggle.muted .icon-sound {
  display: none;
}

.volume-toggle.muted .icon-muted {
  display: block;
}

.volume-control.blocked .volume-toggle {
  animation: volumePulse 2.2s ease-out infinite;
}

@keyframes volumePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  65%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    #ededed 0 var(--fill, 55%),
    #2a2a2a var(--fill, 55%) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: var(--radius-pill);
  background: #2a2a2a;
}

.volume-slider::-moz-range-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: #ededed;
}

.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
}

.volume-slider:focus-visible {
  outline: none;
}

.volume-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* ------------------------------------------------------------------
   owner controls
   ------------------------------------------------------------------ */

.admin-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #262626;
  transform: translateZ(12px);
}

.admin-panel[hidden] {
  display: none;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-title {
  color: #666666;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-ip {
  padding: 2px 6px;
  border: 1px solid #242424;
  border-radius: var(--radius-pill);
  color: #4f4f4f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.admin-bio {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-bio input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #262626;
  border-radius: 10px;
  outline: none;
  background: #0b0b0b;
  color: #dddddd;
  font-family: var(--sans);
  font-size: 11.5px;
  transition: border-color 0.2s ease;
}

.admin-bio input::placeholder {
  color: #444444;
}

.admin-bio input:focus {
  border-color: #555555;
}

.admin-bio button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  background: #141414;
  color: #cccccc;
  font-size: 10.5px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-bio button:hover {
  border-color: #555555;
  color: #ffffff;
}

.admin-bg {
  margin-bottom: 8px;
}

.admin-label {
  display: block;
  margin-bottom: 5px;
  color: #4a4a4a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.admin-preset {
  height: 28px;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #0a0a0a;
  color: #5e5e5e;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.admin-preset:hover {
  border-color: #454545;
  color: #bbbbbb;
}

.admin-preset[aria-pressed="true"] {
  border-color: #8a8a8a;
  background: #171717;
  color: #ffffff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-upload {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #303030;
  border-radius: 10px;
  background: #0a0a0a;
  color: #888888;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-upload:hover {
  border-color: #555555;
  color: #dddddd;
}

.admin-upload.busy {
  border-color: #555555;
  color: #ffffff;
  pointer-events: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}

.admin-actions button {
  color: #555555;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.admin-actions button:hover {
  color: #aaaaaa;
}

.admin-actions button[hidden] {
  display: none;
}

.admin-note {
  margin: 8px 0 0;
  color: #4a4a4a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.admin-media-state {
  margin-top: 4px;
  color: #5c5c5c;
}

/* ------------------------------------------------------------------
   visitor preview
   ------------------------------------------------------------------ */

body.visitor-preview .admin-panel {
  display: none;
}

body.visitor-preview .toast {
  bottom: 72px;
}

.preview-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 90;
  display: flex;
  max-width: calc(100% - 28px);
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 14px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  color: #b5b5b5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
  animation: previewIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.preview-bar[hidden] {
  display: none;
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.preview-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ededed;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.preview-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-bar button {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #2e2e2e;
  border-radius: var(--radius-pill);
  background: #141414;
  color: #d2d2d2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.preview-bar button:hover {
  border-color: #555555;
  color: #ffffff;
}

/* ------------------------------------------------------------------
   hints, footer, toast
   ------------------------------------------------------------------ */

.tilt-hint {
  margin: 14px 0 0;
  color: #444444;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 22px;
  color: #3f3f3f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-sep {
  color: #2a2a2a;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 6px 12px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: #111111;
  color: #dddddd;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
   responsive
   ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .stage {
    min-height: calc(100vh - 52px);
    padding: 66px 16px 20px;
  }

  .est-time {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: 0.035em;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ai-button {
    width: 100%;
  }

  .profile-main {
    gap: 16px;
  }

  .avatar-wrap {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: clamp(1.7rem, 7.6vw, 2.15rem);
  }

  .profile-bio {
    max-width: none;
  }

  .card-inner {
    padding: 24px 20px 18px;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
  }

  .card-links {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .stage {
    padding: 60px 12px 16px;
  }

  .est-time {
    font-size: 9px;
    white-space: normal;
    line-height: 1.6;
  }

  .profile-scene {
    width: 100%;
  }

  .card-inner {
    padding: 22px 16px 16px;
  }

  .card-platform {
    top: 17px;
    right: 18px;
    font-size: 8px;
  }

  .profile-main {
    gap: 13px;
  }

  .avatar-wrap {
    width: 82px;
    height: 82px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-handle {
    font-size: 11.5px;
  }

  .profile-bio {
    font-size: 12.5px;
  }

  .ai-button {
    min-height: 72px;
    padding: 12px;
  }

  .ai-icon {
    width: 42px;
    height: 42px;
  }

  .ai-copy strong {
    font-size: 14px;
  }

  .copy-label {
    display: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-bio {
    flex-direction: column;
  }

  .admin-bio button {
    width: 100%;
  }

  .footer {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 8.5px;
  }
}

@media (hover: none) {
  .tilt-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-scene {
    animation: none;
  }

  .cursor,
  .presence-dot,
  .volume-toggle {
    animation: none;
  }

  .profile-card {
    transform: none !important;
  }

  .card-shine {
    display: none;
  }

  .ai-button,
  .icon-button,
  .social-button,
  .volume-toggle,
  .admin-upload {
    transition: none;
  }
}
