.home-hero { position: relative; overflow: hidden; background: #131e20; border-color: rgba(105,255,69,.3); }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,15,15,.35),rgba(8,15,15,.08)); pointer-events: none; }
.home-event-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-hero .home-event-body { position: relative; z-index: 1; padding: 18px; gap: 10px; }
.home-eyebrow { color: var(--color-primary-fixed); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-event-title { margin: 0; color: var(--color-on-surface); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.home-hero .home-event-title { font-size: clamp(19px, 4vw, 26px); max-width: 650px; }
.home-event-meta { color: var(--color-on-surface-variant); font-size: 12px; margin: 0; }
.home-event-rewards { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }
.home-event-rewards strong { color: var(--color-primary-fixed); font-size: 17px; }
.home-hero .home-event-rewards strong { font-size: 24px; }
.home-event-rewards small { font-size: 10px; font-weight: 500; color: var(--color-on-surface-variant); }
.home-event-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.home-countdown { font-size: 11px; color: var(--color-secondary); font-variant-numeric: tabular-nums; }
.home-event { position: relative; overflow: hidden; padding: 14px; display: flex; min-width: 0; min-height: 140px; background: rgba(18,27,30,.9); }
.home-event::before { content: ''; position: absolute; inset: 0; background-image: var(--home-card-image); background-size: cover; background-position: center; opacity: .88; transform: scale(1.02); pointer-events: none; }
.home-event::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(8,14,16,.3),rgba(8,14,16,.08) 55%,rgba(8,14,16,.4)); pointer-events: none; }
.home-event > .home-event-body { position: relative; z-index: 1; flex: 1; justify-content: space-between; }
.home-event-registered { min-height: 112px; }
.home-matches { display: grid; gap: 10px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-empty { color: var(--color-on-surface-variant); font-size: 13px; padding: 12px 0; }
.home-welcome { padding: 12px 16px; background: rgba(105,255,69,.08); border-radius: 10px; color: var(--color-primary-fixed); }
.home-game-carousel { display: grid; gap: 10px; margin-bottom: 18px; }
.home-game-carousel:last-of-type { margin-bottom: 0; }
.home-game-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-game-heading h3 { margin: 0; color: var(--color-on-surface); font-size: 15px; line-height: 1.35; }
.home-game-heading p { margin: 3px 0 0; color: var(--color-on-surface-variant); font-size: 11px; line-height: 1.5; }
.home-game-rail { gap: 10px; padding-bottom: 4px; }
.home-rail-item { width: min(340px, 86vw); flex-shrink: 0; }
.home-rail-item .home-event { height: 100%; }
.home-rail-item .home-event-footer .btn { width: 100%; }
.home-quick-actions a { aspect-ratio: auto !important; min-height: 68px; }
.home-heading-spaced { margin-bottom: 12px; }
.home-intro { padding: 22px; display: grid; justify-items: start; gap: 12px; }
.home-intro p, .home-promo-copy p, .home-hub-card p, .home-steps p, .home-section-empty p { margin: 0; color: var(--color-on-surface-variant); font-size: 12px; line-height: 1.6; }
.home-section-empty { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 8px 12px; padding: 18px; }
.home-section-empty > .material-symbols-outlined { color: var(--color-secondary); font-size: 28px; }
.home-section-empty h3, .home-hub-card h3, .home-steps h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: var(--color-on-surface); }
.home-text-link { color: var(--color-secondary); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; line-height: 1.5; }
.home-section-empty > .home-text-link { grid-column: 2; min-height: 32px; }
.home-spin-promo { padding: 20px; display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg,rgba(105,255,69,.08),rgba(0,224,218,.04)); }
.home-promo-copy { min-width: 0; flex: 1; }
.home-promo-copy h3 { margin: 8px 0; font-size: 19px; line-height: 1.3; color: var(--color-on-surface); }
.home-promo-copy .btn { margin-top: 14px; }
.home-spin-art { width: clamp(80px,22vw,144px); height: auto; flex-shrink: 0; object-fit: contain; }
.home-result-card { width: min(280px,80vw); flex-shrink: 0; padding: 16px; overflow-wrap: anywhere; }
.home-result-card .badge { white-space: normal; }
.home-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-hub-card { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; overflow-wrap: anywhere; }
.home-hub-icon { font-size: 26px; width: 32px; height: 32px; overflow: hidden; color: var(--color-primary-fixed); }
.home-hub-card:nth-child(2) .home-hub-icon { color: var(--color-secondary); }
.home-wallet-balance { font-size: 22px; color: var(--color-primary-fixed); line-height: 1.2; }
.home-hub-card .home-text-link { margin-top: auto; padding-top: 6px; }
.home-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.home-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.home-step-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: rgba(105,255,69,.1); color: var(--color-primary-fixed); font-size: 12px; font-weight: 700; }
.home-support-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px 0; color: var(--color-secondary); font-size: 12px; }
@media (max-width: 359px) {
  .home-spin-promo { padding: 16px; gap: 8px; }
  .home-spin-art { width: 64px; }
  .home-hub-card { padding: 14px; }
}
@media (min-width: 768px) {
  .home-game-rail .home-rail-item { width: min(360px, 42vw); }
  .home-hero .home-event-body { padding: 22px 24px; }
  .home-hero .home-event-rewards { justify-content: flex-start; gap: 24px; }
  .home-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1280px) {
  .home-game-rail .home-rail-item { width: min(380px, 30vw); }
}

/* Keep the artwork clear; contrast belongs to the text, not a dark card overlay. */
.home-hero, .home-event, .home-hero:hover, .home-event:hover { box-shadow: none; }
.home-event-title, .home-event-meta, .home-event-rewards, .home-countdown {
  text-shadow: 0 1px 2px #000, 0 2px 7px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.6);
}
.home-event-meta, .home-event-rewards small { color: #fff; }
.home-event-rewards > span { color: #fff; }
.home-countdown { color: #c7fffc; }
.home-event-footer .btn { text-shadow: none; box-shadow: none; }
.home-hero { min-height: 200px; display: flex; align-items: flex-end; }
.home-hero .home-event-body { width: 100%; }
.home-event { min-height: 178px; }
.home-rail-item .home-event-footer .btn { width: auto; margin-left: auto; }
@media (max-width: 359px) { .home-event-footer { gap: 8px; } }
