:root {
    --gold: #d4af37;
    --gold-light: #f5e6a8;
    --gold-dark: #8c6a1f;
    --amber: #ffb547;
  }
  html, body { background: #030408; }
  body { font-family: 'Manrope', system-ui, sans-serif; color: #e8e6df; -webkit-font-smoothing: antialiased; }
  ::selection { background: rgba(212,175,55,.35); color: #fff; }

  /* ---------- Scenografia di sfondo ---------- */
  .stage-bg {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,.16), transparent 60%),
      radial-gradient(900px 700px at 100% 110%, rgba(40,60,140,.22), transparent 60%),
      radial-gradient(800px 600px at -10% 90%, rgba(20,30,80,.35), transparent 60%),
      linear-gradient(180deg, #05060b 0%, #070913 45%, #030408 100%);
  }
  .stage-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .35;
    background-image:
      linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  }
  .beam {
    position: fixed; top: -20vh; width: 38vw; height: 140vh; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(245,230,168,.13), rgba(212,175,55,.04) 40%, transparent 75%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    filter: blur(6px); mix-blend-mode: screen; transform-origin: 50% 0;
  }
  .beam.l { left: 2vw;  animation: sway 11s ease-in-out infinite; }
  .beam.r { right: 2vw; animation: sway 13s ease-in-out infinite reverse; }
  .beam.c { left: 31vw; opacity: .55; animation: sway 17s ease-in-out infinite; }
  @keyframes sway { 0%,100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

  .particles span {
    position: fixed; bottom: -10px; width: 2px; height: 2px; border-radius: 9999px; z-index: -1; pointer-events: none;
    background: #f5e6a8; box-shadow: 0 0 6px 1px rgba(245,230,168,.7);
    animation: rise linear infinite;
  }
  @keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-110vh); opacity: 0; } }

  /* ---------- Tipografia oro ---------- */
  .gold-text {
    background: linear-gradient(180deg, #fff6d5 0%, #f0d77a 30%, #d4af37 55%, #9b7623 80%, #e8c766 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .gold-sheen {
    background: linear-gradient(100deg, #9b7623 0%, #d4af37 25%, #fff3c4 45%, #d4af37 60%, #9b7623 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: sheen 6s linear infinite;
  }
  @keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
  .tracking-mega { letter-spacing: .32em; }

  /* ---------- Superfici ---------- */
  .panel {
    background: linear-gradient(180deg, rgba(18,22,38,.72), rgba(7,9,16,.86));
    border: 1px solid rgba(212,175,55,.14);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent); }
  .cut { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
  .cut-sm { clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }

  /* ---------- Card candidato ---------- */
  .nominee {
    position: relative;
    background: linear-gradient(180deg, rgba(20,24,40,.9), rgba(6,8,14,.96));
    border: 1px solid rgba(212,175,55,.16);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s;
  }
  .nominee:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.45); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(212,175,55,.08); }
  .nominee.is-first {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px #d4af37, 0 0 28px rgba(212,175,55,.38), 0 0 80px -10px rgba(255,181,71,.25), inset 0 0 30px rgba(212,175,55,.08);
  }
  .nominee.is-second {
    border-color: #c3c9d6;
    box-shadow: 0 0 0 1px rgba(223,227,236,.85), 0 0 24px rgba(195,201,214,.28), inset 0 0 26px rgba(195,201,214,.06);
  }
  .nominee.is-winner {
    border-color: #ffb547;
    box-shadow: 0 0 0 2px #ffb547, 0 0 50px rgba(255,181,71,.45);
  }
  .nominee .poster-img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
  .nominee:hover .poster-img { transform: scale(1.06); }
  .nominee .shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,240,190,.16) 50%, transparent 65%);
    background-size: 250% 100%; background-position: 150% 0; transition: background-position .9s ease;
  }
  .nominee:hover .shine { background-position: -50% 0; }

  /* ---------- Pulsanti ---------- */
  .btn-gold {
    background: linear-gradient(180deg, #f3dc8a 0%, #d4af37 45%, #a9832a 100%);
    color: #1a1305; font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255,240,190,.4) inset, 0 8px 24px -8px rgba(212,175,55,.6);
    transition: filter .2s, transform .15s, box-shadow .3s;
  }
  .btn-gold:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,240,190,.6) inset, 0 10px 30px -6px rgba(212,175,55,.8); }
  .btn-gold:active { transform: translateY(1px); }
  .btn-ghost {
    border: 1px solid rgba(212,175,55,.35); color: #f0db8f; background: rgba(212,175,55,.04);
    transition: background .2s, border-color .2s, color .2s, box-shadow .3s;
  }
  .btn-ghost:hover { background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.7); color: #fff3c4; }
  .btn-plat {
    background: linear-gradient(180deg, #ffffff 0%, #dfe3ec 40%, #9aa2b4 100%);
    color: #11141c; font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 8px 22px -8px rgba(195,201,214,.6);
  }
  .btn-plat-ghost {
    border: 1px solid rgba(195,201,214,.32); color: #dfe3ec; background: rgba(195,201,214,.04);
    transition: background .2s, border-color .2s;
  }
  .btn-plat-ghost:hover { background: rgba(195,201,214,.12); border-color: rgba(223,227,236,.7); }
  button:disabled { opacity: .35; cursor: not-allowed; filter: grayscale(.5); }

  /* ---------- Badge ---------- */
  .badge-gold {
    background: linear-gradient(180deg, #fff1b8 0%, #e6c35a 40%, #b38a26 100%);
    color: #231804; font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255,236,170,.7) inset, 0 0 14px rgba(212,175,55,.55);
    animation: pulseGold 2.8s ease-in-out infinite;
  }
  @keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 1px rgba(255,236,170,.7) inset, 0 0 10px rgba(212,175,55,.45); } 50% { box-shadow: 0 0 0 1px rgba(255,236,170,.9) inset, 0 0 20px rgba(255,200,80,.75); } }
  .badge-plat {
    background: linear-gradient(180deg, #ffffff 0%, #d9dee8 45%, #8e97aa 100%);
    color: #141821; font-weight: 800;
    box-shadow: 0 0 0 1px rgba(255,255,255,.75) inset, 0 0 12px rgba(195,201,214,.4);
  }

  /* ---------- Tabelle ---------- */
  .tga-table th, .tga-table td { border-bottom: 1px solid rgba(212,175,55,.08); }
  .tga-table tbody tr:hover td { background: rgba(212,175,55,.04); }
  .sticky-col { position: sticky; left: 0; z-index: 2; background: linear-gradient(90deg, #0a0c16 85%, rgba(10,12,22,.0)); }

  .scroll-thin::-webkit-scrollbar { height: 6px; width: 6px; }
  .scroll-thin::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 9999px; }
  .scroll-thin::-webkit-scrollbar-track { background: transparent; }
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { scrollbar-width: none; }

  input, select, textarea { color-scheme: dark; }
  .field {
    background: rgba(5,7,12,.75); border: 1px solid rgba(212,175,55,.2); color: #f4f1e8;
    transition: border-color .2s, box-shadow .2s;
  }
  .field:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,.15), 0 0 20px rgba(212,175,55,.15); }

  /* ---------- Animazioni ---------- */
  .fade-up { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .stagger > * { animation: fadeUp .55s cubic-bezier(.2,.8,.2,1) both; }
  .stagger > *:nth-child(1){animation-delay:.02s}.stagger > *:nth-child(2){animation-delay:.06s}.stagger > *:nth-child(3){animation-delay:.10s}
  .stagger > *:nth-child(4){animation-delay:.14s}.stagger > *:nth-child(5){animation-delay:.18s}.stagger > *:nth-child(6){animation-delay:.22s}
  .stagger > *:nth-child(7){animation-delay:.26s}.stagger > *:nth-child(8){animation-delay:.30s}

  .reveal-overlay { animation: revealIn .5s ease both; }
  @keyframes revealIn { from { opacity: 0; } to { opacity: 1; } }
  .reveal-title { animation: revealZoom 1.1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes revealZoom { from { opacity: 0; transform: scale(.82); letter-spacing: .6em; filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  .burst { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 8%, rgba(212,175,55,.12) 9% 10%, transparent 11% 20%, rgba(212,175,55,.1) 21% 22%, transparent 23% 33%, rgba(212,175,55,.12) 34% 35%, transparent 36% 46%, rgba(212,175,55,.1) 47% 48%, transparent 49% 58%, rgba(212,175,55,.12) 59% 60%, transparent 61% 71%, rgba(212,175,55,.1) 72% 73%, transparent 74% 84%, rgba(212,175,55,.12) 85% 86%, transparent 87%); animation: spin 30s linear infinite; mask-image: radial-gradient(circle, black 10%, transparent 65%); -webkit-mask-image: radial-gradient(circle, black 10%, transparent 65%); }
  @keyframes spin { to { transform: rotate(360deg); } }

  .tab-active { color: #fff3c4; }
  .tab-active::after {
    content: ''; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    box-shadow: 0 0 12px rgba(212,175,55,.9);
  }
  .hidden-key { opacity: .18; transition: opacity .3s; }
  .hidden-key:hover { opacity: .7; }
