/* ==========================================================================
   Home (Figma: Dashboard / Home)
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  height: 400px; padding: 56px; border-radius: 32px; overflow: hidden;
  display: flex; align-items: center;
  background: var(--bg-panel);
}
.hero-copy { position: relative; z-index: 2; width: 470px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* Arena illustration — 620×425 artboard, pinned to the hero's right edge */
.arena { position: absolute; right: 0; top: -12.5px; width: 620px; height: 425px; }
.arena > * { position: absolute; }

.spot { transform-origin: 50% 0; animation: spot 6s ease-in-out infinite alternate; }
.spot-c { left: 180.1px; top: -14px; width: 259.7px; height: 358px; }
.spot-l { left: 70.1px;  top: -14px; width: 219.7px; height: 328px; animation-delay: -2s; }
.spot-r { left: 330.1px; top: -14px; width: 219.7px; height: 328px; animation-delay: -4s; }

.arena-stars { left: 13.4px; top: 3.6px; width: 597px; height: 286px; }
.arena-star { position: absolute; border-radius: 50%; background: var(--text); animation: twinkle var(--tw) ease-in-out var(--delay) infinite alternate; }

.pillar { animation: float 4s ease-in-out infinite; }
.pillar--crypto   { left: 31.3px;  top: 138.3px; width: 57.4px; height: 222.9px; }
.pillar--ai       { left: 139.3px; top: 196.5px; width: 41.4px; height: 126.5px; animation-delay: -1s; }
.pillar--football { left: 438.3px; top: 186.1px; width: 43.4px; height: 137.3px; animation-delay: -2s; }
.pillar--gaming   { left: 535.3px; top: 127.9px; width: 59.4px; height: 243.7px; animation-delay: -3s; }

.arena-tag {
  --amp: -10px;
  width: 80px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
  animation: float 4s ease-in-out infinite;
}
.arena-tag--crypto   { left: 20px;  top: 82.8px; }
.arena-tag--ai       { left: 120px; top: 141px;   animation-delay: -1s; }
.arena-tag--football { left: 420px; top: 130.6px; animation-delay: -2s; }
.arena-tag--gaming   { left: 525px; top: 72.4px;  animation-delay: -3s; }
.arena-tag__icon { position: relative; width: 22px; height: 22px; }
.arena-tag__icon img { position: absolute; left: -10.1px; top: -10.1px; width: 42.2px; height: 42.2px; }
.arena-tag--ai .arena-tag__icon img     { left: -11px; top: -11px;  width: 44.1px; height: 44.1px; }
.arena-tag--gaming .arena-tag__icon img { left: -11px; top: -6.5px; width: 44.1px; height: 35.8px; }

.ring--outer { left: 0;     top: 275px; width: 620px; height: 150px; opacity: .45; }
.ring--dash  { left: 80px;  top: 295px; width: 460px; height: 110px; opacity: .75; animation: ringDash 8s linear infinite; }
.ring--mid   { left: 160px; top: 314px; width: 300px; height: 72px;  opacity: .9;  animation: breathe 4s ease-in-out infinite; }
.ring--glow  { left: 180px; top: 290px; width: 260px; height: 90px;  opacity: .35; animation: ringGlow 4s ease-in-out infinite; }
.ring--glow img { position: absolute; left: -45px; top: -45px; width: 350px; height: 180px; }
.ring--inner { left: 225px; top: 328px; width: 170px; height: 44px; animation: pulse 4s ease-in-out infinite; }
@keyframes ringDash { 50% { opacity: .35; } }
@keyframes ringGlow { 50% { opacity: .6; transform: scale(1.08); } }

.arena-logo { left: 250px; top: 224px; width: 120px; height: 120px; animation: logoFloat 4s ease-in-out infinite; }
.arena-logo img { position: absolute; left: -23.6px; top: -24.5px; width: 167.1px; height: 186.9px; animation: logoGlow 4s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-10px); } }
@keyframes logoGlow  { 50% { filter: drop-shadow(0 0 14px rgba(103,232,249,.55)); } }

.arena-orbit { left: 141.3px; top: 201.5px; width: 337.3px; height: 137.1px; display: grid; place-items: center; }
.arena-orbit__tilt { transform: rotate(-12deg); }
.arena-orbit__ring { width: 330px; height: 70px; animation: orbitSway 6s ease-in-out infinite; }
@keyframes orbitSway { 50% { transform: rotate(-5deg) scale(1.03); } }

/* Stats row: see .stats / .stat in components.css */

/* ---------- Bottom row ---------- */
.bottom { display: flex; gap: 24px; }

.continue {
  flex: 1; min-width: 0; height: 184px; border-radius: 28px; overflow: hidden;
  display: flex; align-items: center; gap: 24px; padding: 28px 180px 28px 32px;
}
.continue:hover .round-btn { transform: scale(1.08); }
.continue__glow { position: absolute; right: -537px; top: -131px; width: 460px; height: 420px; pointer-events: none; animation: breathe 5s ease-in-out infinite; }
.continue__copy { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.progress { height: 6px; border-radius: 3px; background: var(--bg-subtle); overflow: hidden; }
.progress__fill { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--grad); box-shadow: 0 0 8px rgba(103,232,249,.6); transition: width 1.4s var(--ease-out); }

/* Continue-card illustration — 187.5px artboard */
.continue__art { position: absolute; right: -5px; bottom: -21px; width: 187.5px; height: 187.5px; }
.continue__art-clip { position: absolute; inset: 0; overflow: hidden; }
.continue__art-clip > img { position: absolute; }
.ca-bg   { left: 3.8px;   top: 25px;    width: 180px;   height: 150px; animation: breathe 4s ease-in-out infinite; }
.ca-ring { left: 15.7px;  top: 144.4px; width: 156.2px; height: 31.2px; animation: pulse 4s ease-in-out infinite; }
.ca-pillar { --amp: -4px; animation: float 4s ease-in-out infinite; }
.ca-pillar--l   { left: 43.8px;  top: 77.5px; width: 25px;    height: 97.5px; }
.ca-pillar--f   { left: 68.8px;  top: 92.5px; width: 50px;    height: 82.5px; }
.ca-pillar--r   { left: 118.8px; top: 77.5px; width: 25px;    height: 97.5px; }
.ca-pillar--top { left: 42.6px;  top: 61.9px; width: 102.4px; height: 31.2px; }
.ca-star--1 { left: 23px;    top: 35.5px; width: 4px;   height: 4px; }
.ca-star--2 { left: 161px;   top: 26px;   width: 3px;   height: 3px;   animation-delay: -1.2s; }
.ca-star--3 { left: 170.7px; top: 85.7px; width: 3.5px; height: 3.5px; animation-delay: -2.4s; }
.ca-chip { position: absolute; left: 59px; top: 5.5px; width: 69.5px; height: 69.5px; animation: chipFloat 4s ease-in-out infinite; }
.ca-chip img { position: absolute; left: -88.2px; top: -88.2px; width: 245.9px; height: 245.9px; }
@keyframes chipFloat { 50% { transform: translateY(-10px); filter: brightness(1.15); } }

/* Same rhythm as the Continue card: copy · arrow (vertically centred) · illustration */
.daily {
  flex: none; width: clamp(420px, 36cqw, 600px); height: 184px; border-radius: 28px; overflow: hidden;
  display: flex; align-items: center; gap: 20px; padding: 26px 28px;
}
.daily:hover .round-btn { transform: scale(1.08); }
.daily > * { position: relative; z-index: 1; }
.daily > .daily__deco { position: absolute; z-index: 0; pointer-events: none; }
.daily__glow1 { left: -141px;  top: 39px;   width: 380px; height: 320px; animation: breathe 5s ease-in-out infinite; }
.daily__glow2 { right: -165px; top: -171px; width: 480px; height: 400px; animation: breathe 6s ease-in-out -2s infinite; }
.daily__spot  { right: 4px;    top: -7px;   width: 172px; height: 196px; transform-origin: 70% 0; animation: spot 5s ease-in-out infinite alternate; }
.daily__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* Day ring: arc = share of today's challenge window still left */
.day-ring { flex: none; width: 96px; height: 96px; }
.day-ring__svg { width: 96px; height: 96px; transform: rotate(-90deg); overflow: visible; }
.day-ring__arc { filter: drop-shadow(0 0 6px rgba(103,232,249,.5)); transition: stroke-dashoffset 1s linear; }
.day-ring__trophy { position: absolute; inset: 0; display: grid; place-items: center; --amp: -4px; animation: float 4s ease-in-out infinite; }
.day-ring__trophy img { width: 46px; height: 47px; animation: trophyGlow 4s ease-in-out infinite; }
@keyframes trophyGlow { 50% { filter: drop-shadow(0 0 10px rgba(255,214,102,.55)); } }

/* ---------- Responsive ---------- */
/* Large: hero grows taller, arena scales with it */
@container content (min-width: 1180px) {
  .hero { height: clamp(400px, 30cqw, 520px); padding-inline: clamp(56px, 5cqw, 80px); }
  .hero-copy { width: clamp(470px, 38cqw, 560px); }
  .hero .display { font-size: clamp(50px, 3.6cqw + 8px, 64px); }
  .arena { transform: scale(var(--arena-l, 1)); transform-origin: right center; }
}

/* Medium: copy narrows, arena shrinks to limit overlap */
@container content (max-width: 1000px) {
  .hero-copy { width: min(420px, 48cqw); }
  .arena { transform: scale(var(--arena-m, .86)); transform-origin: right center; }
}

@container content (max-width: 900px) {
  .bottom { flex-direction: column; }
  .daily { width: 100%; }
}

/* Narrow: hero stacks, arena sits under the copy and scales to fit */
@container content (max-width: 760px) {
  .hero { height: auto; flex-direction: column; align-items: stretch; padding: 40px 32px 0; }
  .hero-copy { width: 100%; order: -1; }
  .arena {
    position: relative; right: auto; top: auto; align-self: center; flex: none;
    margin-top: 8px; margin-bottom: calc(425px * (var(--arena-s, 1) - 1));
    transform: scale(var(--arena-s, 1)); transform-origin: top center;
  }
}

@container content (max-width: 560px) {
  .hero { padding: 32px 24px 0; border-radius: var(--radius-lg); }
  .continue { height: auto; min-height: 184px; padding: 24px 150px 24px 24px; gap: 16px; }
  .continue .round-btn { display: none; }
  .continue__art { transform: scale(.85); transform-origin: right bottom; }
  .daily { padding: 24px; gap: 14px; }
  .daily .round-btn { display: none; }
}

@container content (max-width: 400px) {
  .continue { padding: 24px 24px 150px; }
  .continue__art { right: 50%; margin-right: -94px; }
  .countdown { gap: 4px; }
  .day-ring { display: none; }
}
