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

  :root {
    --purple-deep: #1a0a2e;
    --purple-core: #4D1979;
    --purple-mid: #6b2fa0;
    --purple-light: #9b59b6;
    --teal-core: #00BCD4;
    --teal-bright: #00e5ff;
    --teal-glow: rgba(0,188,212,0.3);
    --gold: #f0c040;
    --surface: #0d0618;
    --surface-card: rgba(26,10,46,0.85);
    --surface-elevated: rgba(77,25,121,0.15);
    --text-primary: #f0edf5;
    --text-secondary: #a89bc2;
    --text-muted: #6b5a82;
    --field-green: #2d6b30;
    --field-green-light: #3a8c3e;
    --field-line: rgba(255,255,255,0.35);
    --radius: 12px;
    --radius-lg: 20px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* === BACKGROUND TEXTURE === */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% 0%, rgba(77,25,121,0.4) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,188,212,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  /* === LOCK SCREEN === */
  .lock-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .lock-screen.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .lock-bg-field {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lock-bg-field svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lock-content {
    position: relative;
    text-align: center;
    padding: 48px 32px;
    max-width: 380px;
    width: 100%;
  }

  .lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    animation: lockBounce 2s ease infinite;
  }

  .lock-icon svg {
    width: 100%;
    height: 100%;
  }

  @keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .lock-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 8vw, 52px);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--teal-bright), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
  }

  .lock-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 36px;
  }

  .lock-input-wrap {
    display: flex;
    gap: 0;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(77,25,121,0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .lock-input-wrap:focus-within {
    border-color: var(--teal-core);
    box-shadow: 0 0 20px rgba(0,188,212,0.15);
  }

  .lock-input {
    flex: 1;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    background: rgba(26,10,46,0.6);
    border: none;
    padding: 16px 20px;
    outline: none;
    min-width: 0;
  }

  .lock-input::placeholder {
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--text-muted);
    opacity: 0.6;
  }

  .lock-btn {
    width: 60px;
    background: var(--purple-core);
    border: none;
    color: var(--teal-bright);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }

  .lock-btn:hover {
    background: var(--purple-mid);
  }

  .lock-btn svg {
    width: 22px;
    height: 22px;
  }

  .lock-error {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #ff6b6b;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .lock-error.visible {
    opacity: 1;
  }

  .lock-hint {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
    opacity: 0.6;
  }

  .lock-input-wrap.shake {
    animation: shake 0.5s ease;
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-8px); }
    30%, 60%, 90% { transform: translateX(8px); }
  }

  /* === HEADER === */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,6,24,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(77,25,121,0.4);
    padding: 0 24px;
  }

  .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
    position: relative;
  }

  .brand-icon svg {
    width: 100%;
    height: 100%;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--teal-bright), var(--teal-core));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .brand-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .nav-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
  }

  .nav-btn:hover, .nav-btn.active {
    color: var(--teal-bright);
    background: rgba(0,188,212,0.08);
    border-color: rgba(0,188,212,0.2);
  }

  /* === HERO === */
  .hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 24px 48px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-core);
    background: rgba(0,188,212,0.08);
    border: 1px solid rgba(0,188,212,0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease both;
  }

  .hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-bright);
    box-shadow: 0 0 8px var(--teal-core);
    animation: pulse-dot 2s ease infinite;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease 0.1s both;
  }

  .hero h1 .accent {
    background: linear-gradient(135deg, var(--teal-bright), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 20px auto 0;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease 0.2s both;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* === PLAYS GRID === */
  .plays-section {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  .plays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
  }

  /* === PLAY CARD === */
  .play-card {
    background: var(--surface-card);
    border: 1px solid rgba(77,25,121,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardIn 0.5s ease both;
    position: relative;
  }

  .play-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,188,212,0.3), transparent 40%, transparent 60%, rgba(77,25,121,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .play-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,188,212,0.3);
    box-shadow:
      0 8px 32px rgba(0,0,0,0.4),
      0 0 60px rgba(0,188,212,0.06);
  }

  .play-card:hover::before { opacity: 1; }

  .play-card:nth-child(1) { animation-delay: 0.1s; }
  .play-card:nth-child(2) { animation-delay: 0.2s; }
  .play-card:nth-child(3) { animation-delay: 0.3s; }
  .play-card:nth-child(4) { animation-delay: 0.4s; }
  .play-card:nth-child(5) { animation-delay: 0.5s; }

  @keyframes cardIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Card header */
  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
  }

  .play-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-deep);
    background: var(--teal-core);
    padding: 4px 14px;
    border-radius: 6px;
  }

  .play-type {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(107,90,130,0.3);
    padding: 4px 12px;
    border-radius: 6px;
  }

  .play-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px 4px;
    line-height: 1.1;
  }

  .play-desc {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 0 24px 16px;
    line-height: 1.5;
  }

  /* === FIELD SVG === */
  .field-container {
    padding: 0 16px 16px;
  }

  .field-svg {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
  }

  /* Auto-animated routes (infinite loop) */
  @keyframes drawRoute {
    0%, 5% { stroke-dashoffset: 200; }
    40%, 70% { stroke-dashoffset: 0; }
    90%, 100% { stroke-dashoffset: 200; }
  }

  @keyframes drawFake {
    0%, 10% { stroke-dashoffset: 200; }
    45%, 70% { stroke-dashoffset: 0; }
    90%, 100% { stroke-dashoffset: 200; }
  }

  @keyframes showArrow {
    0%, 35% { opacity: 0; }
    45%, 70% { opacity: 1; }
    85%, 100% { opacity: 0; }
  }

  .play-card .route-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawRoute 3.5s ease infinite;
  }

  .play-card .route-fake {
    stroke-dasharray: 6 6;
    stroke-dashoffset: 200;
    animation: drawFake 3.5s ease infinite;
  }

  .play-card .route-arrow {
    opacity: 0;
    animation: showArrow 3.5s ease infinite;
  }

  /* Stagger routes within each card */
  .play-card .route-line:nth-child(2) { animation-delay: 0.15s; }
  .play-card .route-line:nth-child(3) { animation-delay: 0.3s; }
  .play-card .route-line:nth-child(4) { animation-delay: 0.45s; }
  .play-card .route-fake:nth-child(2) { animation-delay: 0.1s; }
  .play-card .route-fake:nth-child(3) { animation-delay: 0.2s; }
  .play-card .route-arrow:nth-child(2) { animation-delay: 0.15s; }
  .play-card .route-arrow:nth-child(3) { animation-delay: 0.3s; }
  .play-card .route-arrow:nth-child(4) { animation-delay: 0.45s; }

  /* Stagger each play card's animations */
  .play-card:nth-child(2) .route-line,
  .play-card:nth-child(2) .route-fake,
  .play-card:nth-child(2) .route-arrow { animation-delay: 0.5s; }
  .play-card:nth-child(3) .route-line,
  .play-card:nth-child(3) .route-fake,
  .play-card:nth-child(3) .route-arrow { animation-delay: 1.0s; }
  .play-card:nth-child(4) .route-line,
  .play-card:nth-child(4) .route-fake,
  .play-card:nth-child(4) .route-arrow { animation-delay: 1.5s; }
  .play-card:nth-child(5) .route-line,
  .play-card:nth-child(5) .route-fake,
  .play-card:nth-child(5) .route-arrow { animation-delay: 2.0s; }

  /* Player circles */
  .player-circle {
    transform-origin: center;
  }

  /* === COACHING TIP === */
  .coaching-tip {
    background: rgba(0,188,212,0.06);
    border-top: 1px solid rgba(0,188,212,0.12);
    padding: 16px 24px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .tip-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,188,212,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }

  .tip-icon svg {
    width: 12px;
    height: 12px;
  }

  .tip-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .tip-text strong {
    color: var(--teal-core);
    font-weight: 600;
  }

  /* === LEGEND === */
  .legend {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

  .legend-inner {
    background: var(--surface-card);
    border: 1px solid rgba(77,25,121,0.3);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
  }

  .legend-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    margin-bottom: -8px;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .legend-swatch {
    width: 36px;
    height: 4px;
    border-radius: 2px;
  }

  .legend-swatch.solid { background: var(--teal-bright); }
  .legend-swatch.dashed {
    background: repeating-linear-gradient(
      90deg,
      var(--gold) 0px,
      var(--gold) 6px,
      transparent 6px,
      transparent 12px
    );
  }
  .legend-swatch.handoff { background: #ff6b6b; }

  .legend-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 10px;
  }

  .legend-circle.offense {
    border-color: var(--teal-bright);
    color: var(--teal-bright);
  }

  .legend-circle.qb {
    border-color: var(--gold);
    color: var(--gold);
  }

  .legend-circle.center-c {
    border-color: var(--purple-light);
    color: var(--purple-light);
  }

  /* === FOOTER === */
  .footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid rgba(77,25,121,0.2);
    color: var(--text-muted);
    font-size: 13px;
  }

  .footer span {
    color: var(--purple-light);
  }

  .footer-credit {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
  }

  .footer-credit a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-credit a:hover {
    color: var(--teal-core);
  }

  /* === RESPONSIVE === */
  @media (max-width: 860px) {
    .plays-grid {
      grid-template-columns: 1fr;
      max-width: 520px;
      margin: 0 auto;
    }
    .header-inner { height: 60px; }
    .brand-title { font-size: 18px; }
    .hero { padding: 48px 24px 32px; }
    .nav { display: none; }
  }

  @media (max-width: 480px) {
    .play-name { font-size: 26px; }
    .plays-section { padding: 0 12px 48px; }
    .plays-grid { gap: 20px; }
    .legend-inner { padding: 20px; gap: 20px; }
  }

  /* Print friendly */
  @media print {
    body { background: white; color: black; }
    .header { position: static; background: white; }
    .play-card { break-inside: avoid; border: 2px solid #333; }
    .hero { padding: 20px; }
    body::before { display: none; }
  }
