/* sub home: a hero over a drifting collage of live thumbnails with the search in the middle, the wall (hover plays,
   click opens the spotlight), coins, steps. */

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: calc(100vh - var(--top)); max-height: 900px; display: grid; place-items: center; overflow: hidden; padding: 60px 20px 90px; }
.collage { position: absolute; inset: -40px 0; display: flex; flex-direction: column; gap: 14px; transform: rotate(-6deg) scale(1.15); opacity: .5; }
.collage .ln { display: flex; gap: 14px; width: max-content; animation: drift 120s linear infinite; }
.collage .ln:nth-child(2) { animation-direction: reverse; animation-duration: 150s; }
.collage .ln:nth-child(3) { animation-duration: 135s; }
.collage .ln:nth-child(4) { animation-direction: reverse; animation-duration: 165s; }
.collage img { width: 300px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--s2); flex: none; filter: saturate(.75); }
@keyframes drift { to { transform: translateX(-50%); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(10,10,10,.94) 30%, rgba(10,10,10,.72) 62%, rgba(10,10,10,.45) 100%),
              linear-gradient(180deg, rgba(10,10,10,.7), transparent 25%, transparent 70%, var(--bg)); }
.hin { position: relative; z-index: 2; text-align: center; max-width: 900px; width: 100%; }
.hin h1 { font-size: clamp(46px, 6.4vw, 96px); letter-spacing: -.06em; line-height: .95; margin: 22px 0 22px; animation: up 1s var(--ease) both; }
.hin h1 em { font-style: normal; color: var(--acc); }
.hin .lead { max-width: 600px; margin: 0 auto; animation: up 1s var(--ease) .1s both; }
.hin .lead b { color: var(--tx); font-weight: 600; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

/* the question everything starts with */
.ask { position: relative; max-width: 720px; margin: 40px auto 0; animation: up 1s var(--ease) .2s both; text-align: left; }
.ask > svg { position: absolute; left: 26px; top: 26px; width: 22px; height: 22px; stroke: var(--dim); fill: none; stroke-width: 1.8; z-index: 1; }
.ask input { width: 100%; height: 74px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(20,20,20,.92); backdrop-filter: blur(10px);
  padding: 0 170px 0 62px; font: 500 19px/1 var(--sans); letter-spacing: -.01em; outline: none; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: border-color .2s, box-shadow .2s; }
.ask input::placeholder { color: var(--dim); }
.ask input:focus { border-color: rgba(255,255,255,.39); box-shadow: 0 0 0 6px rgba(255,255,255,.07), 0 30px 80px rgba(0,0,0,.5); }
.ask .seg { position: absolute; right: 13px; top: 15px; }
.ask .seg button { height: 36px; padding: 0 12px; }
.ask .seg svg.pf { width: 18px; height: 18px; }
.drop2 { position: absolute; left: 0; right: 0; top: 84px; z-index: 5; background: var(--s1); border: 1px solid var(--line2); border-radius: 24px; padding: 8px; max-height: 420px; overflow: auto;
  box-shadow: 0 40px 90px rgba(0,0,0,.65); display: none; }
.drop2.open { display: block; }
.drop2 .msg { color: var(--dim); font-size: 14px; padding: 12px 14px; }
.hit { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: 16px; text-align: left; transition: background .15s; }
.hit:hover, .hit.on { background: var(--s2); }
.hit .av { position: relative; flex: none; }
.hit .av img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--s3); display: block; }
.hit .av .pfb { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--s1); }
.hit .av .pfb svg { width: 10px; height: 10px; }
.hit .tx { min-width: 0; flex: 1; }
.hit b { display: block; font: 600 16px/1.25 var(--head); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.hit .go { flex: none; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }

/* ------------------------------------------------------------------ the wall */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; grid-auto-flow: dense; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tile { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; cursor: pointer; isolation: isolate; }
.tile.big { grid-column: span 2; grid-row: span 2; }
/* hover: a light runs around the edge and the tile glows, outside the video so nothing covers it */
.tile::before { content: ''; position: absolute; inset: -2px; border-radius: 18px; z-index: -1; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--ang), rgba(255,255,255,.12) 0deg, rgba(255,255,255,.12) 210deg, #fff 300deg, rgba(255,255,255,.12) 360deg);
  animation: ring 2.4s linear infinite; animation-play-state: paused; }
.tile::after { content: ''; position: absolute; inset: -2px; border-radius: 18px; z-index: -2; opacity: 0; transition: opacity .35s;
  box-shadow: 0 0 40px rgba(255,255,255,.22), 0 24px 70px rgba(0,0,0,.6); }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; animation-play-state: running; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
@keyframes ring { to { --ang: 360deg; } }
.tin { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--well); outline: 1px solid var(--line); outline-offset: -1px; }
.tin > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ol { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 32%, transparent 52%, rgba(0,0,0,.82)); }
.tile .ol .top { display: flex; align-items: center; gap: 6px; }
.tile .ol .vw { font: 500 11.5px/1 var(--mono); color: #fff; background: rgba(0,0,0,.5); height: 20px; padding: 0 7px; border-radius: 5px; display: inline-flex; align-items: center; }
.tile .ol .top svg.pf { margin-left: auto; width: 20px; height: 20px; }
.tile .ol .bot { display: flex; align-items: center; gap: 10px; min-width: 0; transition: transform .35s var(--ease); }
.tile .ol .bot img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--s3); flex: none; border: 1.5px solid rgba(255,255,255,.2); }
.tile .ol .bot b { font: 600 15px/1.2 var(--head); letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tile .ol .bot small { display: block; font-size: 11.5px; color: rgba(255,255,255,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.big .ol { padding: 18px; }
.tile.big .ol .bot img { width: 42px; height: 42px; }
.tile.big .ol .bot b { font-size: 22px; }
/* hover: a bigger preview grows over the tile (Netflix style). It is sized, never scaled, and nothing sits on its video,
   so Twitch autoplays it; the action is the white strip under the video. */
.pop { position: fixed; z-index: 60; width: 460px; border-radius: 20px; background: var(--s1); opacity: 0; pointer-events: none; cursor: pointer; isolation: isolate; }
.pop.on { opacity: 1; pointer-events: auto; }
.pop::before { content: ''; position: absolute; inset: -2px; border-radius: 22px; z-index: -1;
  background: conic-gradient(from var(--ang), rgba(255,255,255,.14) 0deg, rgba(255,255,255,.14) 210deg, #fff 300deg, rgba(255,255,255,.14) 360deg); animation: ring 2.4s linear infinite; }
.pop::after { content: ''; position: absolute; inset: -2px; border-radius: 22px; z-index: -2; box-shadow: 0 0 60px rgba(255,255,255,.2), 0 40px 100px rgba(0,0,0,.75); }
.pop .pv { position: relative; aspect-ratio: 16 / 9; border-radius: 20px 20px 0 0; overflow: hidden; background: #000; }
.pop .pv img, .pop .pv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pop .pv iframe { pointer-events: none; }
.pmeta { display: flex; align-items: center; gap: 11px; padding: 12px 14px 12px; background: var(--s1); }
.pmeta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--s3); flex: none; }
.pmeta .t { min-width: 0; flex: 1; }
.pmeta b { display: flex; align-items: center; gap: 7px; font: 600 16px/1.2 var(--head); letter-spacing: -.02em; overflow: hidden; white-space: nowrap; }
.pmeta small { display: block; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.pmeta .vw { flex: none; font: 500 12px/1 var(--mono); color: var(--mut); }
.go3 { height: 50px; border-radius: 0 0 20px 20px; background: #fff; color: #0a0a0a; display: flex; align-items: center; justify-content: center; gap: 9px; font: 600 14.5px/1 var(--sans); letter-spacing: -.01em; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.go3 span { overflow: hidden; text-overflow: ellipsis; }
.go3 svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; flex: none; animation: nudge 1.2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.wall .skel { aspect-ratio: 16 / 9; border-radius: 16px; }

/* ------------------------------------------------------------------ spotlight */
/* closed, the spotlight is fully hidden: an invisible layer over the page (it has a backdrop filter) counts as covering
   every player under it, and Twitch then refuses to autoplay them */
.spot { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; transition: visibility 0s linear .5s; }
.spot.open { visibility: visible; transition-delay: 0s; }
.spot::before { content: ''; position: absolute; inset: 0; background: rgba(6,5,5,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.spot.open { pointer-events: auto; }
.spot.open::before { opacity: 1; }
.spot-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--s1); border-left: 1px solid var(--line2); box-shadow: -40px 0 120px rgba(0,0,0,.6);
  transform: translateX(104%); transition: transform .5s var(--ease); overflow-y: auto; padding: 16px 20px 30px; }
.spot.open .spot-in { transform: none; }
.spot .x { position: absolute; top: 24px; right: 28px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.spot .x svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }
.sp-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--well); }
.sp-vid iframe, .sp-vid img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sp-who { display: flex; align-items: center; gap: 14px; margin: 18px 4px 0; }
.sp-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--s3); flex: none; }
.sp-who b { display: flex; align-items: center; gap: 9px; font: 600 24px/1.15 var(--head); letter-spacing: -.03em; }
.sp-who small { display: block; color: var(--dim); font-size: 13px; margin-top: 3px; }
.sp-who a { margin-left: auto; flex: none; }
.sp-coins { margin: 16px 4px 0; }
.sp-coins:empty { display: none; }
.sp-coins .eyebrow { margin-bottom: 10px; display: flex; }
.sp-coins a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); margin-top: 6px; transition: border-color .2s; }
.sp-coins a:hover { border-color: var(--line3); }
.sp-coins a img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.sp-coins a b { font: 600 14px/1.2 var(--head); }
.sp-coins a span { margin-left: auto; color: var(--amber); font: 600 14px/1 var(--head); }
.sp-form { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--well); border: 1px solid var(--line); }
.sp-form .eyebrow { display: flex; margin-bottom: 14px; }
.sp-row { display: flex; gap: 14px; align-items: stretch; }
.sp-pic { position: relative; width: 112px; height: 112px; border-radius: 18px; overflow: hidden; background: var(--s3); flex: none; cursor: pointer; }
.sp-pic img { width: 100%; height: 100%; object-fit: cover; }
.sp-pic span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 6px 0; opacity: 0; transition: opacity .2s; }
.sp-pic:hover span { opacity: 1; }
.sp-names { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-names .inp { height: 51px; }
.sp-x { margin-top: 12px; height: 48px; font-size: 14px; }
.sp-buy { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; flex-wrap: wrap; }
.sp-buy > span { font-size: 13px; color: var(--mut); }
.steps2 { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.steps2 .s { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--dim); }
.steps2 .s i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line3); display: grid; place-items: center; flex: none; }
.steps2 .s.run { color: var(--tx); } .steps2 .s.run i { border-color: var(--acc); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps2 .s.done { color: var(--mut); } .steps2 .s.done i { background: var(--acc); border-color: var(--acc); }
body.spot-open { overflow: hidden; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps > div { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 30px; }
.steps b { display: block; font: 700 92px/.85 var(--head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.33); margin-bottom: 26px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--mut); font-size: 15px; line-height: 1.6; }
.steps .rv:nth-child(2) { transition-delay: .08s; } .steps .rv:nth-child(3) { transition-delay: .16s; }

@media (max-width: 1100px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 70px 16px 70px; }
  .collage img { width: 220px; }
  .ask input { height: 62px; font-size: 16px; padding: 0 20px 0 52px; }
  .ask > svg { top: 20px; left: 20px; }
  .ask .seg { position: static; margin-top: 10px; }
  .drop2 { top: 120px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .ol .bot small { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .tile .ol .vw { display: none; } .sp-pic { width: 92px; height: 92px; } }
.spoff { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.spoff i { position: absolute; inset: -20%; background: center / cover no-repeat; filter: blur(36px) saturate(1.2) brightness(.55); }
.spoff span { position: relative; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); background: rgba(0,0,0,.45); padding: 9px 14px; border-radius: 999px; }
