    :root {
      --font-main: 'Space Grotesk', sans-serif;
      --color-bg: #000;
      --color-text-primary: #fff;
      --color-text-muted: rgba(255, 255, 255, 0.7);
      --overlay-bg: rgba(20, 20, 20, 0.8);
      --transition-base: 0.3s ease;
    }

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

    body { 
      overflow: hidden; 
      background: var(--color-bg); 
      font-family: var(--font-main); 
      margin: 0; 
      padding: 0;
    }
    
    #canvas-container { 
      position: fixed; 
      inset: 0; 
      width: 100%; 
      height: 100%; 
    }

    #loading-overlay {
      position: fixed; 
      inset: 0; 
      background: radial-gradient(circle at center, #111 0%, #000 100%);
      display: flex; 
      flex-direction: column;
      justify-content: center; 
      align-items: center;
      z-index: 9999; 
      transition: opacity 1.2s ease-out;
    }

    .loader-indicator {
      width: 100px; 
      height: 100px; 
      border: 3px solid transparent;
      border-radius: 50%; 
      border-top-color: var(--color-text-primary); 
      border-bottom-color: #888;
      animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
      margin-bottom: 25px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loader-message {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1rem;
      letter-spacing: 4px;
      text-transform: uppercase;
      font-weight: 300;
    }

    .loader-progress-bar {
      width: 250px; 
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      margin-top: 20px;
      overflow: hidden;
    }

    .loader-progress-fill {
      height: 100%;
      background: var(--color-text-primary);
      border-radius: 4px;
      width: 0%;
      transition: width var(--transition-base);
    }

    .btn-wrap {
      position: relative;
      margin-top: 30px;
    }

    .btn-wrap button {
      position: relative;
      font-size: 1.5rem;
      font-family: var(--font-main);
      font-weight: 500;
      letter-spacing: 0.2ch;
      color: rgba(255, 255, 255, 0.75);
      cursor: pointer;
      border: 0;
      border-radius: 3rem;
      padding: 0.95em 2.4em 0.95em 1.6em;
      display: flex;
      align-items: center;
      gap: 0.7em;
      background: linear-gradient(150deg, #0d0d1f 0%, #1a1030 50%, #0d0d1f 100%);
      box-shadow:
        0 0 0 1px rgba(140, 90, 255, 0.35),
        0 0 18px rgba(120, 70, 255, 0.35),
        inset 0 0 22px rgba(120, 70, 255, 0.15);
      transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
      overflow: hidden;
      outline: none;
      white-space: nowrap;
    }

    .btn-wrap button:active {
      transform: translateY(1px) scale(0.98);
    }

    .btn-wrap.is-ready button {
      color: #ffffff;
      box-shadow:
        0 0 0 1px rgba(160, 120, 255, 0.7),
        0 0 28px rgba(130, 80, 255, 0.6),
        inset 0 0 26px rgba(120, 70, 255, 0.3);
    }

    .btn-wrap button::before {
      content: "";
      position: absolute;
      inset: -40% -30%;
      background: linear-gradient(115deg, transparent 0%, rgba(180, 140, 255, 0.5) 35%, rgba(255, 240, 180, 0.6) 50%, rgba(180, 140, 255, 0.5) 65%, transparent 100%);
      animation: rail 3.2s linear infinite;
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .btn-wrap.is-ready button::before {
      opacity: 1;
    }

    @keyframes rail {
      0% { transform: translateX(-55%); }
      100% { transform: translateX(55%); }
    }

    .btn-wrap .shine {
      position: absolute;
      inset: 0;
      border-radius: 3rem;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .btn-wrap.is-ready .shine {
      opacity: 1;
    }

    .btn-wrap .face {
      position: absolute;
      inset: 0;
      border-radius: 3rem;
      pointer-events: none;
      background: radial-gradient(circle at 30% 30%, rgba(160, 120, 255, 0.18), transparent 70%);
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .btn-wrap.is-ready .face {
      opacity: 1;
    }

    .btn-wrap .core {
      position: absolute;
      inset: 0;
      border-radius: 3rem;
      pointer-events: none;
      overflow: hidden;
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .btn-wrap.is-ready .core {
      opacity: 1;
    }

    .btn-wrap .star {
      width: calc(var(--size) * 1px);
      height: calc(var(--size) * 1px);
      border-radius: 50%;
      background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
      position: absolute;
      top: 50%;
      left: 50%;
      opacity: var(--alpha);
      animation: drift calc(var(--duration) * 1s) var(--delay) linear infinite;
    }

    .btn-wrap .star--dot {
      width: 3px;
      height: 3px;
      filter: brightness(2);
      animation-name: twinkle;
      animation-duration: calc(var(--duration) * 0.3s);
    }

    @keyframes drift {
      0% { transform: translate(-50%, -50%) rotate(0deg) translateX(calc(var(--distance) * 1px)) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg) translateX(calc(var(--distance) * 1px)) rotate(-360deg); }
    }

    @keyframes twinkle {
      0%, 100% { opacity: var(--alpha); transform: translate(0, 0); }
      50% { opacity: 0.15; transform: translate(calc(var(--distance) * 0.5px), -30px); }
    }

    .btn-wrap .orbit {
      position: absolute;
      inset: 0;
      border-radius: 3rem;
      overflow: hidden;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .btn-wrap.is-ready .orbit {
      opacity: 1;
    }

    .btn-wrap .ring {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 50%;
      border: 1px dashed rgba(190, 160, 255, 0.5);
      transform: rotate(12deg) scale(0.9);
      animation: breathe 6s ease-in-out infinite;
    }

    @keyframes breathe {
      0%, 100% { transform: rotate(12deg) scale(0.9); opacity: 0.6; }
      50% { transform: rotate(12deg) scale(1.05); opacity: 1; }
    }

    .btn-wrap .text {
      position: relative;
      z-index: 1;
      letter-spacing: 0.2ch;
    }

    #text-overlay {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 500;
      pointer-events: none;
      opacity: 0;
      text-align: center;
      width: 90%;
      max-width: 700px;
      padding: 20px;
    }

    #text-overlay h1 {
      font-size: clamp(1.8rem, 4.5vw, 3.5rem);
      color: var(--color-text-primary);
      letter-spacing: 4px;
      margin: 0;
      line-height: 1.4;
      font-weight: 600;
    }

    #text-overlay p {
      font-size: clamp(1.1rem, 3vw, 1.8rem);
      color: #ddd;
      letter-spacing: 2px;
      margin: 0;
      line-height: 1.6;
      font-weight: 300;
    }

    #photo-text {
      position: fixed;
      bottom: 15%;
      left: 50%;
      transform: translateX(-50%);
      z-index: 500;
      pointer-events: none;
      opacity: 0;
      text-align: center;
      width: 85%;
      max-width: 600px;
      padding: 25px 30px;
      background: var(--overlay-bg);
      border-radius: 5px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    #photo-text p {
      font-size: clamp(1rem, 2.5vw, 1.5rem);
      color: var(--color-text-primary);
      line-height: 1.7;
      letter-spacing: 0.5px;
      margin: 0;
    }

    #photo-text .idx {
      font-size: 0.8rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--color-text-muted);
      margin-bottom: 10px;
      display: block;
    }

    #vignette-overlay {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 400;
      background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.9) 100%);
      opacity: 0;
      transition: opacity 2s ease;
    }

    .pop {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      z-index: 1000;
      pointer-events: none;
      opacity: 0;
      text-align: center;
    }
    
    .pop h1 {
      font-size: clamp(2.5rem, 7vw, 6rem);
      color: var(--color-text-primary);
      letter-spacing: 8px;
      margin: 0;
      line-height: 1.3;
      font-weight: 700;
    }
    
    #end-title h1 {
      font-size: clamp(3rem, 8vw, 7rem);
      letter-spacing: 12px;
    }
    
    .pop .tag {
      font-size: clamp(1rem, 3vw, 2rem);
      letter-spacing: 6px;
      opacity: 0.9;
      margin-top: 15px;
      display: block;
      color: var(--color-text-primary);
      text-transform: uppercase;
    }

    #error-overlay {
      position: fixed; 
      inset: 0; 
      z-index: 99999;
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      justify-content: center;
      background: var(--color-bg); 
      color: var(--color-text-primary); 
      text-align: center; 
      padding: 20px; 
      gap: 14px;
    }

    #error-overlay[hidden] { 
      display: none; 
    }

    #error-overlay p { font-size: 1.4rem; font-weight: 700; margin: 0; }
    #error-overlay span { color: var(--color-text-muted); }
