/* PROTOCOL DROP - Premium Design System v2.1 - Fixed Roulette */

@layer reset, tokens, base, components, utilities;

@layer tokens {
  :root {
    /* Colors */
    --bg-0: #07090F;
    --bg-1: #0C111A;
    --bg-2: #131A24;
    --bg-3: #1A2130;
    --line: #1E2633;
    --line-light: #2A3344;
    
    --red: #FF4654;
    --red-600: #F03A49;
    --red-dark: #D92938;
    
    --twitch: #9146FF;
    --twitch-dark: #7C2FFF;
    
    --ink-1: #E6E9EE;
    --ink-2: #9AA3B2;
    --ink-3: #6B7585;
    
    --legendary: #FFD166;
    --ultra: #A78BFA;
    --exclusive: #38BDF8;
    --premium: #FF4654;
    
    /* Effects */
    --glow-red: 0 0 32px rgba(255, 70, 84, 0.35);
    --glow-red-sm: 0 0 16px rgba(255, 70, 84, 0.25);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-sm: 0.18s;
    --dur-md: 0.36s;
    --dur-lg: 0.6s;
    --dur-xl: 1s;
    
    /* Typography */
    --font-ui: 'Inter', system-ui, sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    
    /* Roulette specific */
    --roulette-item-width: 120px;
    --roulette-item-margin: 8px;
    --roulette-total-item-width: 136px; /* width + margins */
  }
}

@layer reset {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-ui);
    color: var(--ink-1);
    background: var(--bg-0);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
  }
  
  button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  input {
    font: inherit;
  }
  
  ul {
    list-style: none;
  }
}

@layer base {
  /* Geometric Grid Background */
  .geometric-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.03;
    background-image: 
      linear-gradient(rgba(255, 70, 84, 0.3) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 70, 84, 0.3) 1px, transparent 1px),
      linear-gradient(rgba(255, 70, 84, 0.2) 2px, transparent 2px),
      linear-gradient(90deg, rgba(255, 70, 84, 0.2) 2px, transparent 2px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    animation: gridShift 60s linear infinite;
  }
  
  @keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
  }
  
  /* Canvas Background */
  #bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
  }
  
  .scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: scanMove 8s linear infinite;
  }
  
  @keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
  }
  
  .container {
    width: min(1180px, 100% - 48px);
    margin-inline: auto;
  }
  
  /* Typography */
  h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  
  h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  
  h3 {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  h4 {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  code {
    font-family: 'Monaco', monospace;
    background: var(--bg-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--red);
  }
}

@layer components {
  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.98), rgba(7, 9, 15, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    transition: all var(--dur-md) var(--ease-out);
  }
  
  .header.scrolled {
    background: rgba(7, 9, 15, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
    position: relative;
    animation: logoPulse 4s ease-in-out infinite;
  }
  
  @keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
  }
  
  .logo-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-0);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  }
  
  .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #fff, #d8dde6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    transition: color var(--dur-sm);
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--dur-md) var(--ease-out);
  }
  
  .nav-link:hover {
    color: var(--ink-1);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .user-info {
    padding: 0.5rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
  }
  
  .user-status {
    font-size: 0.875rem;
    color: var(--ink-2);
  }
  
  .user-info.connected .user-status {
    color: #10B981;
    font-weight: 600;
  }
  
  .btn-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--red), var(--red-600));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    transition: all var(--dur-sm);
    position: relative;
    overflow: hidden;
  }
  
  .btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
  }
  
  .btn-auth:hover::before {
    left: 100%;
  }
  
  .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-red-sm);
  }
  
  .btn-auth.connected {
    background: linear-gradient(135deg, #10B981, #059669);
  }
  
  .btn-status {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  
  /* Hero Section */
  .hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: visible;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
  }
  
  .terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  
  .terminal-label {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: textGlow 2s ease-in-out infinite;
  }
  
  @keyframes textGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
  
  .terminal-time {
    font-family: 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--ink-2);
  }
  
  .hero-title {
    margin-bottom: 1.5rem;
    animation: titleSlide 0.8s var(--ease-out);
  }
  
  @keyframes titleSlide {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .title-line {
    display: block;
    background: linear-gradient(180deg, #fff 0%, #d8dde6 65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .title-line.accent {
    color: var(--red);
    -webkit-text-fill-color: var(--red);
    text-shadow: 0 0 40px rgba(255, 70, 84, 0.5);
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    color: var(--ink-2);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeIn 1s var(--ease-out) 0.2s both;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: statsSlide 1s var(--ease-out) 0.4s both;
  }
  
  @keyframes statsSlide {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red);
    letter-spacing: 0.02em;
  }
  
  .stat-label {
    font-size: 0.75rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s var(--ease-out) 0.6s both;
  }
  
  /* Showcase Container */
  .showcase-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
  }
  
  .showcase-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 70, 84, 0.15), transparent);
    filter: blur(80px);
    animation: glowPulse 4s ease-in-out infinite;
  }
  
  @keyframes glowPulse {
    0%, 100% { 
      opacity: 0.5; 
      transform: scale(1);
    }
    50% { 
      opacity: 1; 
      transform: scale(1.1);
    }
  }
  
  .showcase-frame {
    width: 350px;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 2px solid var(--line);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: showcaseFloat 6s ease-in-out infinite;
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.5),
      inset 0 0 40px rgba(255, 70, 84, 0.05);
  }
  
  @keyframes showcaseFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-10px) rotateX(-5deg) rotateY(5deg); }
  }
  
  .showcase-frame::before {
    width: 150%;
    height: 150%;
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 70, 84, 0.1) 50%, transparent 60%);
    animation: showcaseScan 4s linear infinite;
  }
  
  @keyframes showcaseScan {
    from { transform: translateX(-100%) translateY(-100%); }
    to { transform: translateX(100%) translateY(100%); }
  }
  
  .showcase-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .showcase-image {
    width: 80%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 70, 84, 0.2));
    animation: weaponRotate 10s linear infinite;
  }
  
  @keyframes weaponRotate {
    0%, 100% { transform: rotateY(0); }
    50% { transform: rotateY(180deg); }
  }
  
  .showcase-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  
  .showcase-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink-1);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
  }
  
  .showcase-rarity {
    font-size: 0.75rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  /* Collaboration Section */
  .collaboration {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  
  .collab-content {
    text-align: center;
  }
  
  .collab-header {
    margin-bottom: 3rem;
  }
  
  .collab-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .collab-logo {
    height: 40px;
    opacity: 0.9;
    transition: all var(--dur-sm);
  }
  
  .collab-logo:hover {
    opacity: 1;
    transform: scale(1.05);
  }
  
  .collab-x {
    font-size: 2rem;
    color: var(--ink-3);
  }
  
  .collab-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(90deg, var(--red), var(--twitch));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
  }
  
  .collab-subtitle {
    font-size: 1.125rem;
    color: var(--ink-2);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
  }
  
  .collab-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-inline: auto;
  }
  
  .collab-stat {
    padding: 1.5rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all var(--dur-md) var(--ease-out);
  }
  
  .collab-stat:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(255, 70, 84, 0.1);
  }
  
  .collab-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(180deg, var(--red), var(--red-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
  }
  
  .collab-stat-label {
    font-size: 0.875rem;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .collab-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .social-label {
    font-size: 0.875rem;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    transition: all var(--dur-sm);
  }
  
  .social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 70, 84, 0.3);
  }

  /* VAR 1: wordmark */
  .collab-logos.logos--wordmark .brand{
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    line-height: 1;
    display: inline-block;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .collab-logos.logos--wordmark .brand.valorant{
    background-image: linear-gradient(180deg, var(--red), var(--red-600));
    text-shadow: 0 0 18px rgba(255,70,84,.18);
  }

  .collab-logos.logos--wordmark .brand.twitch{
    background-image: linear-gradient(180deg, var(--twitch), #c9b6ff);
    text-shadow: 0 0 18px rgba(145,70,255,.18);
  }

  .collab-logos.logos--wordmark .brand-x{
    margin: 0 .9rem;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    color: var(--ink-3);
    transform: translateY(2px);
    transition: transform var(--dur-sm), color var(--dur-sm);
  }

  .collab-logos.logos--wordmark:hover .brand-x{
    color: var(--ink-1);
    transform: translateY(0);
  }
  
  /* Arsenal Section */
  .arsenal {
    padding: 80px 0;
    background: var(--bg-0);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-label {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    background: linear-gradient(180deg, #fff 0%, #d8dde6 65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .weapon-card {
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all var(--dur-md) var(--ease-out);
    animation: cardReveal 0.6s var(--ease-out) both;
  }
  
  @keyframes cardReveal {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .weapon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--dur-md);
  }
  
  .weapon-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow: var(--shadow-lg);
  }
  
  .weapon-card:hover::after {
    opacity: 1;
  }
  
  .weapon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
  }
  
  .weapon-badge.legendary {
    background: var(--legendary);
    color: var(--bg-0);
  }
  
  .weapon-badge.ultra {
    background: var(--ultra);
    color: white;
  }
  
  .weapon-badge.exclusive {
    background: var(--exclusive);
    color: white;
  }
  
  .weapon-badge.premium {
    background: var(--premium);
    color: white;
  }
  
  .weapon-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, transparent, rgba(255, 70, 84, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  
  .weapon-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.3) 48%,
      transparent 56%
    );
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
  }
  
  @keyframes shimmer {
    to { transform: translateX(100%); }
  }
  
  .weapon-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink-1);
  }
  
  .weapon-desc {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.5;
  }
  
  .weapon-tier {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 70, 84, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
  }
  
  .weapon-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
  
  .weapon-weight {
    font-size: 0.75rem;
    color: var(--ink-2);
    font-weight: 500;
  }
  
  .weapon-collection {
    font-size: 0.75rem;
    color: var(--ink-3);
    font-style: italic;
  }
  
  /* Decryption Terminal */
  .decrypt {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  }
  
  .terminal {
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
  }
  
  .terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 70, 84, 0.05) 50%,
      transparent 100%
    );
    animation: scan 3s linear infinite;
    pointer-events: none;
    border-radius: inherit;
  }
  
  @keyframes scan {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
  }
  
  .terminal-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .info-label {
    font-size: 0.75rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .info-value {
    font-weight: 700;
    color: var(--red);
  }
  
  #authStatus.guest {
    color: var(--ink-2);
  }
  
  #authStatus.online {
    color: #10B981;
  }
  
  /* FIXED ROULETTE SYSTEM */
  .roulette-window {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-0);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 2rem;
    /* Improved rendering performance */
    contain: layout style paint;
    transform: translateZ(0);
  }
  
  .roulette-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
      transparent 0%, 
      var(--red) 20%, 
      var(--red) 80%, 
      transparent 100%
    );
    z-index: 15;
    box-shadow: 
      0 0 15px rgba(255, 70, 84, 0.7),
      inset 0 0 10px rgba(255, 70, 84, 0.4);
    animation: indicatorGlow 2s ease-in-out infinite alternate;
  }
  
  @keyframes indicatorGlow {
    0% { 
      opacity: 0.8; 
      box-shadow: 
        0 0 15px rgba(255, 70, 84, 0.7),
        inset 0 0 10px rgba(255, 70, 84, 0.4);
    }
    100% { 
      opacity: 1; 
      box-shadow: 
        0 0 25px rgba(255, 70, 84, 0.9),
        inset 0 0 15px rgba(255, 70, 84, 0.6);
    }
  }
  
  .roulette-track {
    display: flex;
    align-items: center;
    height: 100%;
    /* Perfect centering calculation */
     /* padding: 0 calc(50% - var(--roulette-item-width) / 2);*/
    transform: translateX(0);
    transition: none;
    /* Performance optimizations */
    contain: layout style;
    will-change: auto;
  }
  
  .roulette-track.spinning {
    transition: transform 3.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  .roulette-item {
    flex: 0 0 var(--roulette-item-width);
    height: 120px;
    margin: 0 var(--roulette-item-margin);
    background: linear-gradient(135deg, 
      rgba(19, 26, 36, 0.95), 
      rgba(26, 33, 48, 0.95)
    );
    border: 2px solid var(--line-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    /* Prevent layout shifts */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* No hover transitions during spinning */
    transition: none;
  }
  
  .roulette-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255, 70, 84, 0.05) 0%, 
      transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .roulette-item:not(.winner):hover::before {
    opacity: 1;
  }
  
  .roulette-item.winner {
    border-color: var(--red);
    background: linear-gradient(135deg, 
      rgba(255, 70, 84, 0.15), 
      rgba(19, 26, 36, 0.95)
    );
    box-shadow: 
      0 0 30px rgba(255, 70, 84, 0.7),
      inset 0 0 25px rgba(255, 70, 84, 0.1);
    animation: winnerHighlight 1.2s ease-in-out;
    z-index: 10;
    transform: scale(1.05) translateZ(0);
  }
  
  @keyframes winnerHighlight {
    0% { 
      transform: scale(1) translateZ(0);
      box-shadow: 
        0 0 15px rgba(255, 70, 84, 0.4),
        inset 0 0 15px rgba(255, 70, 84, 0.05);
    }
    50% { 
      transform: scale(1.1) translateZ(0);
      box-shadow: 
        0 0 45px rgba(255, 70, 84, 0.9),
        inset 0 0 35px rgba(255, 70, 84, 0.2);
    }
    100% { 
      transform: scale(1.05) translateZ(0);
      box-shadow: 
        0 0 30px rgba(255, 70, 84, 0.7),
        inset 0 0 25px rgba(255, 70, 84, 0.1);
    }
  }
  
  .roulette-item-image {
    width: 80px;
    height: 60px;
    margin: 8px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(180deg, 
      rgba(255, 70, 84, 0.05), 
      rgba(255, 70, 84, 0.02)
    );
    overflow: hidden;
    position: relative;
  }
  
  .roulette-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
  }
  
  .roulette-item-info {
    padding: 4px 8px 8px 8px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .roulette-item-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .roulette-item-rarity {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: center;
    min-width: 20px;
    text-align: center;
  }
  
  /* Rarity Colors */
  .roulette-item-rarity.legendary,
  .rarity-badge.legendary,
  .prize-rarity.legendary {
    background: linear-gradient(135deg, #FFD166, #FFC107);
    color: #1A2130;
    box-shadow: 0 2px 8px rgba(255, 209, 102, 0.3);
  }
  
  .roulette-item-rarity.ultra,
  .rarity-badge.ultra,
  .prize-rarity.ultra {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    color: white;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
  }
  
  .roulette-item-rarity.exclusive,
  .rarity-badge.exclusive,
  .prize-rarity.exclusive {
    background: linear-gradient(135deg, #38BDF8, #0EA5E9);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
  }
  
  .roulette-item-rarity.premium,
  .rarity-badge.premium,
  .prize-rarity.premium {
    background: linear-gradient(135deg, #FF4654, #F03A49);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 70, 84, 0.3);
  }
  
  .roulette-fade {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 12;
  }
  
  .roulette-fade.left {
    left: 0;
    background: linear-gradient(90deg, 
      var(--bg-0) 0%, 
      rgba(12, 17, 26, 0.9) 40%,
      rgba(12, 17, 26, 0.5) 70%,
      transparent 100%
    );
  }
  
  .roulette-fade.right {
    right: 0;
    background: linear-gradient(-90deg, 
      var(--bg-0) 0%, 
      rgba(12, 17, 26, 0.9) 40%,
      rgba(12, 17, 26, 0.5) 70%,
      transparent 100%
    );
  }
  
  .terminal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .control-group {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .fairness-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
  }
  
  .fair-label {
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .terminal-result {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
      var(--bg-0), 
      rgba(19, 26, 36, 0.8)
    );
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
  }
  
  .terminal-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
      rgba(255, 70, 84, 0.02), 
      transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .terminal-result.success {
    border-color: var(--red);
    background: linear-gradient(135deg, 
      rgba(255, 70, 84, 0.08), 
      rgba(19, 26, 36, 0.95)
    );
    box-shadow: 
      0 0 30px rgba(255, 70, 84, 0.2),
      inset 0 0 30px rgba(255, 70, 84, 0.05);
  }
  
  .terminal-result.success::before {
    opacity: 1;
  }
  
  .result-placeholder {
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
  }
  
  .result-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  .result-text strong {
    display: block;
    font-size: 1.6rem;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .result-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
  }
  
  .result-proof {
    font-family: 'Monaco', monospace;
    font-size: 0.75rem;
    color: var(--ink-3);
    background: rgba(255, 70, 84, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 70, 84, 0.2);
  }
  
  .drop-rate {
    font-size: 0.85rem;
    color: var(--ink-2);
    font-weight: 500;
  }
  
  .claim-btn {
    margin-top: 1.5rem;
    animation: claimPulse 2s ease-in-out infinite;
  }
  
  @keyframes claimPulse {
    0%, 100% { 
      transform: scale(1);
      filter: brightness(1);
    }
    50% { 
      transform: scale(1.05);
      filter: brightness(1.1);
    }
  }
  
  /* Intel Section */
  .intel {
    padding: 80px 0;
    background: var(--bg-0);
  }
  
  .intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .intel-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all var(--dur-md) var(--ease-out);
  }
  
  .intel-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(255, 70, 84, 0.1);
  }
  
  .intel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--red);
    background: rgba(255, 70, 84, 0.1);
    border-radius: 12px;
  }
  
  .intel-icon svg {
    stroke-width: 1.5;
  }
  
  .intel-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--ink-1);
  }
  
  .intel-text {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.5;
  }
  
  /* Buttons */
  .btn {
    position: relative;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--dur-sm);
    display: inline-block;
  }
  
  .btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary .btn-inner {
    background: linear-gradient(135deg, var(--red), var(--red-600));
    color: white;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
  }
  
  .btn-primary:hover .btn-inner {
    box-shadow: var(--glow-red);
  }
  
  .btn-secondary .btn-inner {
    background: var(--bg-2);
    color: var(--ink-1);
    border: 1px solid var(--line);
  }
  
  .btn-secondary:hover {
    transform: translateY(-2px);
  }
  
  .btn-secondary:hover .btn-inner {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 70, 84, 0.2);
  }
  
  .btn-decrypt {
    min-width: 220px;
    position: relative;
  }
  
  .btn-decrypt .btn-inner {
    background: linear-gradient(135deg, var(--red), var(--red-600));
    color: white;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
  }
  
  .btn-decrypt .btn-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.2), 
      transparent
    );
    transition: left 0.6s ease;
  }
  
  .btn-decrypt:not(:disabled):hover .btn-inner::before {
    left: 100%;
  }
  
  .btn-decrypt:disabled .btn-inner {
    background: linear-gradient(135deg, var(--bg-3), var(--line));
    color: var(--ink-3);
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  .btn-decrypt:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
  }
  
  .btn-decrypt:not(:disabled):hover .btn-inner {
    box-shadow: 
      var(--glow-red),
      0 10px 30px rgba(255, 70, 84, 0.3);
  }
  
  .btn-status {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .hidden { display: none !important; }

  .btn.full {
    width: 100%;
  }
  
  .btn.full .btn-inner {
    width: 100%;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  
  .modal.active {
    display: flex;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .modal-content {
    position: relative;
    width: min(500px, 90%);
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.5rem;
    animation: modalSlideIn 0.3s var(--ease-out);
    box-shadow: var(--shadow-xl);
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ink-2);
    transition: all var(--dur-sm);
    border-radius: 4px;
  }
  
  .modal-close:hover {
    color: var(--red);
    background: rgba(255, 70, 84, 0.1);
  }
  
  .modal-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 70, 84, 0.1);
    border-radius: 50%;
    color: var(--red);
  }
  
  .modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #d8dde6 65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .modal-subtitle {
    font-size: 0.875rem;
    color: var(--ink-2);
  }
  
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .optional {
    font-weight: 400;
    color: var(--ink-3);
    text-transform: none;
  }
  
  .input {
    padding: 0.875rem 1rem;
    background: var(--bg-0);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-1);
    font-size: 0.875rem;
    transition: all var(--dur-sm);
  }
  
  .input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 70, 84, 0.1);
  }
  
  .input::placeholder {
    color: var(--ink-3);
  }
  
  .input-promo {
    background: var(--bg-0);
    border: 1px solid var(--twitch);
    border-style: dashed;
  }
  
  .input-promo:focus {
    border-color: var(--twitch);
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
  }
  
  .modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  
  .modal-footer-text {
    font-size: 0.875rem;
    color: var(--ink-2);
    margin-bottom: 0.5rem;
  }
  
  .link {
    color: var(--red);
    text-decoration: none;
    transition: all var(--dur-sm);
  }
  
  .link:hover {
    color: var(--red-600);
    text-decoration: underline;
  }
  
  /* Claim Modal */
  .prize-preview {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
  }
  
  .prize-image {
    width: 200px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(180deg, transparent, rgba(255, 70, 84, 0.05));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
  }
  
  .prize-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 0.5rem;
  }
  
  .prize-rarity {
    display: inline-block;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    background: var(--red);
    color: white;
  }
  
  .claim-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 70, 84, 0.05);
    border: 1px solid var(--red);
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }
  
  .claim-notice svg {
    color: var(--red);
    flex-shrink: 0;
  }
  
  .claim-notice p {
    font-size: 0.875rem;
    color: var(--ink-1);
  }
  
  /* Toast */
  .toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    transition: transform var(--dur-md) var(--ease-out);
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    max-width: 350px;
  }
  
  .toast.show {
    transform: translateX(0);
  }
  
  .toast-icon {
    color: var(--red);
    flex-shrink: 0;
  }
  
  .toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .toast-title {
    font-weight: 700;
    color: var(--ink-1);
  }
  
  .toast-message {
    font-size: 0.875rem;
    color: var(--ink-2);
  }
  
  /* Footer */
  .footer {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    padding: 60px 0 30px;
    margin-top: 100px;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-section {
    display: flex;
    flex-direction: column;
  }
  
  .footer-title {
    color: var(--red);
    margin-bottom: 1rem;
  }
  
  .footer-desc {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .footer-social {
    display: flex;
    gap: 0.75rem;
  }
  
  .footer-social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    transition: all var(--dur-sm);
  }
  
  .footer-social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
    transform: translateY(-2px);
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-links a {
    font-size: 0.875rem;
    color: var(--ink-2);
    transition: color var(--dur-sm);
  }
  
  .footer-links a:hover {
    color: var(--ink-1);
  }
  
  .footer-partners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .partner-logo {
    height: 30px;
    opacity: 0.7;
    transition: opacity var(--dur-sm);
  }
  
  .partner-logo:hover {
    opacity: 1;
  }
  
  .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 0.875rem;
    color: var(--ink-3);
  }
  
  /* Utilities */
  .surface {
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  
  /* Weapon Detail Modal Styles */
  .weapon-detail-modal {
    max-width: 600px;
    animation: modalSlideIn 0.3s ease;
  }
  
  .weapon-detail-image {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .weapon-detail-tier {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 70, 84, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
  }
  
  .weapon-detail-stats {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 70, 84, 0.05);
    border-radius: 4px;
  }
  
  .stat-value {
    color: #FF4654;
    font-weight: bold;
  }
  
  .tier-5 { color: #FFD166; }
  .tier-4 { color: #A78BFA; }
  .tier-3 { color: #38BDF8; }
  .tier-2 { color: #10B981; }
  .tier-1 { color: #9AA3B2; }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--ink-1);
    transition: all var(--dur-sm) var(--ease-out);
    border-radius: 1px;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .nav-menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
    animation: mobileMenuSlide 0.3s var(--ease-out);
  }
  
  .nav-menu-mobile.active {
    display: flex;
  }
  
  .nav-menu-mobile .nav-link {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all var(--dur-sm);
  }
  
  .nav-menu-mobile .nav-link:hover {
    background: rgba(255, 70, 84, 0.1);
  }
  
  @keyframes mobileMenuSlide {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@layer utilities {
  /* Responsive */
  @media (max-width: 968px) {
    .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .showcase-container {
      margin-top: 3rem;
    }
    
    .hero-subtitle {
      margin-inline: auto;
    }
    
    .hero-stats {
      justify-content: center;
    }
    
    .hero-actions {
      justify-content: center;
    }
    
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .mobile-menu-toggle {
      display: flex;
    }
    
    .nav-menu {
      display: none;
    }
    
    .nav-actions {
      gap: 0.75rem;
    }
    
    .user-info {
      min-width: 100px;
      padding: 0.4rem 0.75rem;
      font-size: 0.8rem;
    }
    
    .btn-auth {
      padding: 0.5rem 0.875rem;
      font-size: 0.8rem;
    }
    
    .hero {
      padding: 120px 0 80px;
      text-align: center;
    }
    
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      justify-items: center;
      margin-bottom: 2rem;
    }
    
    .showcase-container {
      height: 300px;
      margin-top: 2rem;
    }
    
    .showcase-frame {
      width: 300px;
      height: 220px;
    }
    
    .collab-stats {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .arsenal-grid {
      grid-template-columns: 1fr;
    }
    
    .intel-grid {
      grid-template-columns: 1fr;
    }
    
    /* Mobile Roulette Fixes */
    .roulette-window {
      height: 140px;
      margin: 0 -1rem 2rem -1rem;
      border-radius: 0;
      border-left: none;
      border-right: none;
    }
    
    .roulette-item {
      flex: 0 0 100px;
      height: 100px;
      margin: 0 6px;
    }
    
    .roulette-item-image {
      width: 70px;
      height: 50px;
      margin: 6px 0 2px 0;
    }
    
    .roulette-item-name {
      font-size: 0.65rem;
    }
    
    .roulette-item-rarity {
      font-size: 0.5rem;
      padding: 1px 4px;
    }
    
    .roulette-fade {
      width: 60px;
    }
    
    .btn-decrypt {
      min-width: 100%;
    }
    
    .btn-decrypt .btn-inner {
      padding: 1rem 1.5rem;
      font-size: 0.85rem;
    }
    
    .result-text {
      font-size: 1.2rem;
    }
    
    .result-text strong {
      font-size: 1.4rem;
    }
    
    .terminal {
      padding: 1.5rem;
    }
    
    .terminal-controls {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
    
    .control-group {
      justify-content: center;
    }
    
    .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .footer-social {
      justify-content: center;
    }
    
    .modal-content {
      width: calc(100% - 32px);
      margin: 16px;
      padding: 2rem;
      max-height: calc(100vh - 32px);
      overflow-y: auto;
    }
    
    .input {
      min-height: 48px;
      font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .toast {
      bottom: 1rem;
      right: 1rem;
      left: 1rem;
      max-width: none;
      transform: translateY(100px);
    }
    
    .toast.show {
      transform: translateY(0);
    }
  }
  
  @media (max-width: 480px) {
    :root {
      --roulette-item-width: 90px;
      --roulette-item-margin: 6px;
      --roulette-total-item-width: 102px;
    }
    
    .roulette-item {
      flex: 0 0 90px;
      height: 90px;
      margin: 0 4px;
    }
    
    .roulette-item-image {
      width: 60px;
      height: 40px;
    }
    
    .roulette-item-name {
      font-size: 0.6rem;
    }
    
    .terminal-result {
      padding: 1.5rem;
      min-height: 120px;
    }
    
    .result-details {
      flex-direction: column;
      gap: 0.5rem;
    }
  }
  
  /* Performance Optimizations */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
    
    .roulette-track.spinning {
      transition: transform 1s linear;
    }
    
    .roulette-item.winner {
      animation: none;
      border-color: var(--red);
      box-shadow: 0 0 25px rgba(255, 70, 84, 0.6);
    }
    
    .roulette-indicator {
      animation: none;
      opacity: 1;
    }
  }
  
  /* Safari Optimizations */
  @supports (-webkit-appearance: none) {
    .roulette-track {
      -webkit-transform: translateX(0);
      -webkit-transition: -webkit-transform 3.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    
    .roulette-track.spinning {
      -webkit-transition: -webkit-transform 3.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    
    .roulette-item {
      -webkit-backface-visibility: hidden;
      -webkit-transform: translateZ(0);
    }
  }
  
  /* Touch-friendly elements */
  .btn,
  .social-link,
  .nav-link,
  .input {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Hide/Show elements */
  .hide-mobile {
    display: block;
  }
  
  .show-mobile {
    display: none;
  }
  
  @media (max-width: 767px) {
    .hide-mobile {
      display: none;
    }
    
    .show-mobile {
      display: block;
    }
  }
  
  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  * {
    max-width: 100%;
  }
  
  img {
    height: auto;
    max-width: 100%;
  }
  
  /* Focus for keyboard navigation */
  .btn:focus-visible,
  .nav-link:focus-visible,
  .input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }
}

/* Promo Code Styles */
.promo-code-section {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.1), rgba(255, 70, 84, 0.05));
    border: 1px solid rgba(255, 70, 84, 0.3);
    border-radius: 8px;
    color: #FF4654;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.15), rgba(255, 70, 84, 0.1));
    border-color: #FF4654;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 70, 84, 0.2);
}

.promo-toggle-btn.active {
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.2), rgba(255, 70, 84, 0.1));
    border-color: #FF4654;
}

.promo-code-input-wrapper {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, #1A2332, #131A24);
    border: 1px solid rgba(255, 70, 84, 0.2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-code-form {
    display: flex;
    gap: 0.5rem;
}

.promo-code-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(255, 70, 84, 0.2);
    border-radius: 8px;
    color: #E5E7EB;
    font-family: 'Bebas Neue', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.promo-code-input:focus {
    outline: none;
    border-color: #FF4654;
    background: rgba(13, 17, 23, 0.95);
    box-shadow: 0 0 20px rgba(255, 70, 84, 0.2);
}

.promo-code-input::placeholder {
    color: rgba(229, 231, 235, 0.3);
}

.promo-submit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF4654, #E63946);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 70, 84, 0.4);
}

.promo-submit-btn:active {
    transform: translateY(0);
}

.promo-hints {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(229, 231, 235, 0.5);
    text-align: center;
}

.promo-hints code {
    padding: 2px 6px;
    background: rgba(255, 70, 84, 0.1);
    border-radius: 4px;
    color: #FF4654;
    font-family: monospace;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .promo-code-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .promo-code-input-wrapper {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
    }
}

/* Success animation */
@keyframes promoSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(34, 197, 94, 0.1);
        border-color: #22C55E;
    }
    100% {
        transform: scale(1);
    }
}

.promo-code-input.success {
    animation: promoSuccess 0.5s ease;
    border-color: #22C55E !important;
}

.promo-code-input.error {
    animation: shake 0.5s ease;
    border-color: #EF4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}
