@layer components {
  .hero {
    padding: 10px 0 4px;
  }
  
  .hero-card {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
      linear-gradient(135deg, rgba(255, 91, 46, 0.12), rgba(255, 255, 255, 0.03)),
      var(--card);
    box-shadow: var(--shadow);
  }
  
  .hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    gap: 10px 12px;
    align-items: stretch;
  }
  
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
  }
  
  h1 {
    margin: 0 0 4px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }
  
  .hero-subtitle {
    max-width: min(100%, 1080px);
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
  }
  
  .hero-main-column {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    align-self: stretch;
  }
  
  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding-top: 0;
    margin-left: 0;
  }
  
  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }
  
  .hero-hourly-promo {
    position: relative;
    overflow: hidden;
    grid-column: 2 / 3;
    grid-row: 1;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 209, 102, 0.34);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 91, 46, 0.14)),
      rgba(21, 19, 20, 0.92);
    box-shadow: 0 18px 38px rgba(255, 91, 46, 0.14);
  }
  
  .hero-hourly-promo-title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(255, 209, 102, 0.46);
    border-radius: 8px;
    background: rgba(255, 209, 102, 0.14);
    color: #ffd166;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 26px rgba(255, 209, 102, 0.18);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
  
  .hero-hourly-promo-title:hover,
  .hero-hourly-promo-title:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 209, 102, 0.8);
    background: rgba(255, 209, 102, 0.22);
    color: #fff2bd;
  }
  
  .hero-hourly-promo-title:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.62);
    outline-offset: 3px;
  }
  
  .hero-hourly-promo-title.pulse-attention {
    animation: pulseAttention 2.1s infinite, hourlyPromoBlink 1.35s ease-in-out infinite;
  }
  
  @keyframes hourlyPromoBlink {
    0%,
    100% {
      text-shadow: 0 0 10px rgba(255, 209, 102, 0.28);
    }
    50% {
      text-shadow:
        0 0 18px rgba(255, 209, 102, 0.78),
        0 0 34px rgba(255, 91, 46, 0.52);
    }
  }
  
  .hero-hourly-promo-note {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.35;
  }
  
  .hero-hourly-winner-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 82px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 91, 46, 0.08)),
      rgba(14, 18, 24, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 18px 38px rgba(0, 0, 0, 0.24);
  }
  
  .hero-hourly-winner-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -34px;
    width: 210px;
    height: 210px;
    background: url("../../assets/crown.png") center / contain no-repeat;
    opacity: 0.2;
    transform: rotate(12deg);
    pointer-events: none;
  }
  
  .hero-hourly-winner-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -48px auto;
    width: 210px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.22), transparent 70%);
    pointer-events: none;
  }
  
  .hero-hourly-winner-copy,
  .hero-hourly-winner-media {
    position: relative;
    z-index: 1;
  }
  
  .hero-hourly-winner-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  
  .hero-hourly-winner-label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .hero-hourly-winner-name {
    min-width: 0;
    margin-bottom: 0;
    color: var(--text);
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    font-weight: 950;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-hourly-winner-meta {
    min-width: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-hourly-winner-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
  }
  
  .hero-hourly-winner-car {
    position: absolute;
    right: -8px;
    bottom: -2px;
    width: min(190px, 46%);
    height: auto;
    max-height: 102px;
    object-fit: contain;
    opacity: 0.52;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34));
  }
  
  .hero-hourly-card {
    --hero-hourly-track-photo: none;
    position: relative;
    grid-column: 2 / 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    min-height: 100%;
    margin-inline: 0;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 209, 102, 0.26);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 193, 86, 0.14), rgba(255, 91, 46, 0.08)),
      rgba(36, 33, 38, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 18px 40px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  
  .hero-hourly-card:hover,
  .hero-hourly-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 24px 46px rgba(0, 0, 0, 0.28);
  }
  
  .hero-hourly-card:focus-visible {
    outline: 2px solid rgba(255, 209, 102, 0.55);
    outline-offset: 3px;
  }
  
  .hero-hourly-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      linear-gradient(120deg, rgba(8, 12, 18, 0.25) 0%, rgba(8, 12, 18, 0.25) 38%, rgba(8, 12, 18, 0.25) 100%),
      radial-gradient(circle at top right, rgba(255, 184, 77, 0.08), transparent 32%),
      var(--hero-hourly-track-photo);
    background-position: center, top right, center;
    background-size: cover, auto, cover;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  
  .hero-hourly-card > * {
    position: relative;
    z-index: 1;
  }
  
  .hero-hourly-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  
  .hero-hourly-eyebrow {
    margin: 0;
    color: #ffcc5c;
    font-size: 0.84rem;
  }
  
  .hero-hourly-meta {
    display: grid;
    gap: 10px;
  }
  
  .hero-hourly-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }
  
  .hero-hourly-meta-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  .hero-hourly-meta-value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
  }
  
  .hero-hourly-meta-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  
  .hero-hourly-meta-time {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  
  .hero-hourly-card .btn.hero-hourly-btn {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff8b2c, #ff5b2e);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(255, 91, 46, 0.28);
  }
  
  .hero-hourly-btn {
    align-self: stretch;
  }
  
  .hero-hourly-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .hero-hourly-btn.is-disabled {
    opacity: 0.75;
    pointer-events: none;
  }
  
  .hero-hourly-btn.is-voted {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(20, 184, 166, 0.88));
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 12px 26px rgba(20, 184, 166, 0.26);
  }
  
  .hero-hourly-btn.is-voted,
  .hero-hourly-btn:disabled,
  .hourly-modal-cta-btn.is-voted,
  .hourly-modal-cta-btn:disabled {
    cursor: default;
  }
  
  .hero-hourly-btn.is-voted:hover,
  .hero-hourly-btn:disabled:hover,
  .hourly-modal-cta-btn.is-voted:hover,
  .hourly-modal-cta-btn:disabled:hover {
    transform: none;
    filter: none;
  }
  
  .hero-hourly-cancel,
  .hourly-modal-cta-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 107, 107, 0.34);
    border-radius: 999px;
    background: rgba(180, 35, 35, 0.92);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  }
  
  .hero-hourly-cancel[hidden],
  .hourly-modal-cta-cancel[hidden] {
    display: none !important;
  }
  
  .hero-hourly-cancel:hover:not(:disabled),
  .hourly-modal-cta-cancel:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
  
  .hero-hourly-cancel:disabled,
  .hourly-modal-cta-cancel:disabled {
    cursor: default;
    opacity: 0.84;
  }
  
  .hero-hourly-votes {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(8, 12, 18, 0.42);
    color: #f6f0dc;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    backdrop-filter: blur(10px);
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
  }
}
