:root{
  --paper:#FAF6E7;
  --ink:#131210;
  --yellow:#FFC22E;
  --orange:#FF7A1A;
  --pink:#FF1F9C;
  --purple:#6E4EF0;
  --lime:#D6FF3D;
  --green:#2EA662;
  --red:#E23C3C;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{
  background:var(--paper); color:var(--ink);
  font-family:'Space Mono', monospace;
  overflow-x:hidden;
  cursor:none;
  min-height:100vh;
}
a, button{ cursor:none; font-family:'Space Mono', monospace; }
@media (hover:none), (pointer:coarse){
  html,body,a,button{ cursor:auto; }
  #siri-cursor{ display:none; }
}
a{ color:inherit; text-decoration:none; }

#siri-cursor{ position:fixed; top:0; left:0; width:0; height:0; pointer-events:none; z-index:9999; }
#siri-cursor .glow{
  position:absolute; top:0; left:0; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%;
  background:conic-gradient(from 0deg, #FF7A1A, #FF1F9C, #6E4EF0, #FFC22E, #FF7A1A);
  filter:blur(7px) saturate(1.5);
  animation:siriSpin 2.6s linear infinite, siriPulse 2.1s ease-in-out infinite;
  transition:width .25s ease, height .25s ease, margin .25s ease, filter .25s ease;
}
#siri-cursor .core{ position:absolute; top:0; left:0; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:var(--ink); }
body.cursor-hover #siri-cursor .glow{ width:52px; height:52px; margin:-26px 0 0 -26px; filter:blur(9px) saturate(1.7); }
@keyframes siriSpin{ to{ transform:rotate(360deg); } }
@keyframes siriPulse{ 0%,100%{ opacity:0.85; transform:scale(1) rotate(0deg);} 50%{ opacity:1; transform:scale(1.12) rotate(180deg);} }
@media (prefers-reduced-motion:reduce){ #siri-cursor .glow{ animation:none; } }

.drift{ position:absolute; pointer-events:none; z-index:0; opacity:0.9; }
.drift.d1{top:14%; left:6%; animation:driftA 9s ease-in-out infinite;}
.drift.d2{top:60%; left:3%; animation:driftB 11s ease-in-out infinite;}
.drift.d3{top:8%; right:8%; animation:driftC 13s ease-in-out infinite;}
.drift.d4{bottom:6%; right:5%; animation:driftA 10s ease-in-out infinite reverse;}
@keyframes driftA{ 0%,100%{transform:translate(0,0) rotate(0deg);} 50%{transform:translate(14px,-18px) rotate(12deg);} }
@keyframes driftB{ 0%,100%{transform:translate(0,0) rotate(0deg);} 50%{transform:translate(-16px,12px) rotate(-10deg);} }
@keyframes driftC{ 0%,100%{transform:translate(0,0) rotate(0deg);} 50%{transform:translate(10px,16px) rotate(8deg);} }
@media (prefers-reduced-motion:reduce){ .drift{animation:none;} }

nav{ display:flex; align-items:center; justify-content:space-between; padding:26px 40px; position:relative; z-index:5; }
.logo{font-size:19px; font-weight:700;}
.nav-links{display:flex; gap:32px; font-size:14px; font-weight:700;}
.nav-links a{position:relative;}
.nav-links a.active::after{ content:''; position:absolute; left:0; right:0; bottom:-5px; height:2px; background:var(--ink); }
.nav-cta{ background:var(--lime); border:2px solid var(--ink); font-weight:700; font-size:13px; padding:8px 16px; border-radius:100px; }
.menu-btn{ display:none; flex-direction:column; gap:4px; background:none; border:none; padding:6px; }
.menu-btn span{width:22px; height:2px; background:var(--ink); display:block;}
.mobile-menu{ display:none; flex-direction:column; gap:14px; padding:0 40px 20px; font-size:15px; font-weight:700; }
.mobile-menu.open{display:flex;}
@media (max-width:760px){ .nav-links{display:none;} .menu-btn{display:flex;} nav{padding:22px 24px;} }

header.feed-header{ display:flex; align-items:center; justify-content:space-between; padding:26px 40px; }
.live-tag{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; border:2px solid var(--ink); border-radius:100px; padding:6px 14px; }
.live-tag .dot{width:7px; height:7px; border-radius:50%; background:var(--red); animation:blink 1.4s ease-in-out infinite;}
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:.25;} }
@media (max-width:600px){ header.feed-header{padding:20px 22px;} }

.hero{ padding:20px 40px 10px; position:relative; z-index:2; }
@media (max-width:760px){ .hero{padding:10px 24px 0;} }
.headline-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
h1{ font-size:clamp(2.1rem, 6vw, 4.4rem); line-height:1.02; font-weight:700; letter-spacing:-0.01em; max-width:820px; }
.mark-wrap{ width:96px; height:96px; flex-shrink:0; margin-top:8px; animation:floatMark 6s ease-in-out infinite; }
@keyframes floatMark{
  0%,100%{ transform:translate(0,0) rotate(0deg); }
  25%{ transform:translate(4px,-10px) rotate(8deg); }
  50%{ transform:translate(-4px,-4px) rotate(-6deg); }
  75%{ transform:translate(6px,6px) rotate(4deg); }
}
@media (max-width:760px){ .mark-wrap{width:56px; height:56px;} }
@media (prefers-reduced-motion:reduce){ .mark-wrap{animation:none;} }

.rule-row{ display:flex; align-items:center; justify-content:space-between; border-top:2px solid var(--ink); margin-top:26px; padding-top:8px; font-size:13px; font-weight:700; }

.taglist{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.taglist span{ border:2px solid var(--ink); border-radius:100px; padding:6px 14px; font-size:12.5px; font-weight:700; }
.taglist span:nth-child(1){background:var(--yellow);}
.taglist span:nth-child(2){background:var(--orange); color:#3A1400;}
.taglist span:nth-child(3){background:var(--pink); color:#3A0018;}
.taglist span:nth-child(4){background:var(--purple); color:#F3EEE2;}

.deck-stage{ margin-top:56px; min-height:340px; position:relative; }

.deck{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;
  opacity:1; transform:scale(1);
  transition:opacity .35s ease, transform .35s ease;
}
.deck.fade-out{ opacity:0; transform:scale(.94); pointer-events:none; }
@media (max-width:1080px){ .deck{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .deck{grid-template-columns:1fr;} }

.card{
  position:relative; display:flex; height:300px; border:3px solid var(--ink); border-radius:6px;
  overflow:hidden; background:var(--paper);
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform:translateY(-8px); box-shadow:8px 8px 0 var(--ink); }

.poster{ width:44%; position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:10px; border-right:3px solid var(--ink); }
.poster .num{ font-size:12px; font-weight:700; position:relative; z-index:1;}
.poster .art{ position:absolute; inset:0; z-index:0; opacity:.7; }

.info{ width:56%; padding:14px; display:flex; flex-direction:column; gap:8px; justify-content:flex-start; }
.info .title{ font-size:16px; font-weight:700; line-height:1.15; }
.info .row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.genre-pill{ border:2px solid var(--ink); border-radius:100px; padding:3px 10px; font-size:10.5px; font-weight:700; }
.rating{ font-size:12px; font-weight:700; display:flex; align-items:center; gap:4px; }
.desc{ font-size:11px; line-height:1.5; opacity:0.75; margin-top:2px; }

.hover-cta{
  position:absolute; inset:0; z-index:5;
  background:rgba(19,18,16,0.86); color:var(--paper);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; text-align:center; padding:14px;
  opacity:0; transform:scale(.92);
  transition:opacity .25s ease, transform .25s ease;
}
.card:hover .hover-cta{ opacity:1; transform:scale(1); }
.hover-cta .cta-line{ font-weight:700; font-size:13px; letter-spacing:.02em; }
.card:hover .hover-cta .arrow{ animation:arrowBounce 1s ease-in-out infinite; display:inline-block; }
@keyframes arrowBounce{ 0%,100%{transform:translateX(0);} 50%{transform:translateX(6px);} }

.pile-view{ position:relative; }
.pile-stage{ position:relative; height:300px; }
.pile-card-wrap{
  position:absolute; width:150px; height:210px; left:50%; top:50%;
  margin-left:-75px; margin-top:-105px;
  opacity:0; transform:translate(0,-50px) scale(.55) rotate(0deg);
  transition:opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.pile-stage.show .p1{ opacity:1; transform:translate(-95px,12px) rotate(-16deg); transition-delay:.05s; z-index:1; }
.pile-stage.show .p2{ opacity:1; transform:translate(-25px,-22px) rotate(9deg); transition-delay:.15s; z-index:2; }
.pile-stage.show .p3{ opacity:1; transform:translate(35px,18px) rotate(-8deg); transition-delay:.25s; z-index:3; }
.pile-stage.show .p4{ opacity:1; transform:translate(95px,-14px) rotate(17deg); transition-delay:.35s; z-index:2; }

.pile-card{
  width:100%; height:100%; border:3px solid var(--ink); border-radius:12px;
  box-shadow:6px 6px 0 rgba(19,18,16,0.18);
  animation:idleWobble 5s ease-in-out infinite;
  transition:transform .2s ease, box-shadow .2s ease;
}
.p2 .pile-card{ animation-duration:5.6s; animation-delay:.3s; }
.p3 .pile-card{ animation-duration:4.7s; animation-delay:.55s; }
.p4 .pile-card{ animation-duration:5.9s; animation-delay:.15s; }
@keyframes idleWobble{ 0%,100%{transform:translate(0,0) rotate(0deg);} 50%{transform:translate(3px,-5px) rotate(2deg);} }
.pile-card-wrap:hover .pile-card{ animation-play-state:paused; transform:translateY(-10px) scale(1.04); box-shadow:10px 10px 0 rgba(19,18,16,.24); }
@media (prefers-reduced-motion:reduce){ .pile-card{animation:none;} }

.pile-caption{
  text-align:center; font-weight:700; font-size:15px; margin-top:26px;
  opacity:0; transform:translateY(8px);
  transition:opacity .5s ease .45s, transform .5s ease .45s;
}
.pile-stage.show ~ .pile-caption{ opacity:1; transform:translateY(0); }

.session-overlay{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.session-overlay.active{ opacity:1; pointer-events:auto; }
.session-backdrop{ position:absolute; inset:0; background:rgba(19,18,16,0.55); backdrop-filter:blur(3px); }
.session-stage{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:16px; }
.session-close{
  position:absolute; top:-46px; right:0; width:34px; height:34px; border-radius:50%;
  background:var(--paper); border:2px solid var(--ink); font-weight:700; font-size:16px;
  display:flex; align-items:center; justify-content:center;
}

.rating-card-stack{ position:relative; width:min(90vw,360px); }
.rating-card-stack.big{ width:min(92vw, 460px); }
.stack-behind{ position:absolute; inset:0; background:var(--paper); border:3px solid var(--ink); border-radius:14px; }
.stack-s2{ transform:translate(12px,16px) rotate(-3deg); z-index:0; opacity:.6; }
.stack-s1{ transform:translate(6px,9px) rotate(-1.5deg); z-index:1; opacity:.85; }
.rating-card-stack.big .stack-behind{ border-radius:18px; }
.rating-card-stack.big .stack-s2{ transform:translate(16px,20px) rotate(-3deg); }
.rating-card-stack.big .stack-s1{ transform:translate(8px,11px) rotate(-1.5deg); }

.rating-card{
  position:relative; z-index:2; background:var(--paper); border:3px solid var(--ink);
  border-radius:14px; overflow:hidden; touch-action:none; user-select:none;
  box-shadow:10px 10px 0 rgba(19,18,16,0.12);
}
.rating-card.big{ border-radius:18px; box-shadow:14px 14px 0 rgba(19,18,16,0.12); }

.tint-layer{ position:absolute; inset:0; z-index:6; pointer-events:none; opacity:0; }
.stamp{
  position:absolute; top:18px; z-index:7; font-weight:700; font-size:15px;
  padding:5px 12px; border-radius:6px; border:3px solid currentColor; opacity:0;
}
.stamp.big{ top:22px; font-size:20px; padding:8px 16px; border-radius:8px; border-width:4px; }
.stamp.like{ right:16px; color:var(--green); transform:rotate(10deg); }
.stamp.nope{ left:16px; color:var(--red); transform:rotate(-10deg); }
.stamp.like.big{ right:20px; }
.stamp.nope.big{ left:20px; }

.poster-big{ position:relative; height:190px; overflow:hidden; border-bottom:3px solid var(--ink); }
.poster-big.tall{ height:280px; }
.art-big{ position:absolute; inset:0; opacity:.55; }
.title-overlay{ position:absolute; bottom:14px; right:16px; text-align:right; font-size:26px; font-weight:700; line-height:1.05; }
.title-overlay.big{ bottom:20px; right:22px; font-size:32px; }

.meta-row{ padding:14px 16px 4px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.meta-row.big{ padding:22px 24px 6px; }
.meta-row .label{ font-weight:700; font-size:12px; display:block; margin-bottom:4px; opacity:.6; }
.about{ max-width:62%; }
.about .about-text{ font-size:11.5px; line-height:1.5; }
.meta-row.big .about-text{ font-size:13.5px; line-height:1.6; }
.rating-big{ text-align:right; white-space:nowrap; }
.rating-big .rating-value{ font-size:18px; font-weight:700; }
.meta-row.big .rating-value{ font-size:24px; }
.genre-row{ padding:10px 16px 16px; display:flex; gap:8px; flex-wrap:wrap; }
.genre-row.big{ padding:14px 24px 24px; gap:10px; }
.genre-row.big .genre-pill{ font-size:12px; padding:5px 14px; }

main.feed-main{ display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding:20px 20px 80px; min-height:calc(100vh - 90px); }
.stage-title{ text-align:center; margin-bottom:34px; }
.stage-title h1{ font-size:clamp(1.7rem,4vw,2.6rem); font-weight:700; letter-spacing:-0.01em; }
.stage-title p{ margin-top:10px; font-size:13px; opacity:.65; max-width:48ch; }
.source-note{ display:inline-block; margin-top:10px; font-size:11px; font-weight:700; padding:4px 12px; border:2px solid var(--ink); border-radius:100px; }
.card-zone{ position:relative; width:min(92vw, 460px); }

.loading-block{ display:flex; flex-direction:column; align-items:center; gap:18px; padding:60px 0; }
.loading-orb{ width:56px; height:56px; border-radius:50%; background:conic-gradient(from 0deg, #FF7A1A, #FF1F9C, #6E4EF0, #FFC22E, #FF7A1A); filter:blur(2px); animation:siriSpin 1.8s linear infinite; }
.loading-text{ font-size:13px; font-weight:700; opacity:.7; }

.progress-row{ display:flex; align-items:center; justify-content:center; gap:16px; margin-top:24px; font-size:12px; font-weight:700; opacity:.7; }
.swipe-hint{ display:flex; gap:20px; font-size:11.5px; }
.swipe-hint span{ display:flex; align-items:center; gap:5px; }

.done-block{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; padding:50px 20px; }
.done-emoji{ font-size:44px; }
.done-text{ font-weight:700; font-size:17px; }
.done-sub{ font-size:12.5px; opacity:.65; max-width:38ch; }
.btn-reset{ background:var(--lime); border:2px solid var(--ink); font-weight:700; font-size:13px; padding:12px 24px; border-radius:100px; margin-top:4px; }

.session-progress{ font-size:12px; font-weight:700; opacity:.7; }
.session-done{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }

.scroll-cue{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; margin:40px 40px 30px; opacity:0.65; }
.scroll-cue .arrow{animation:bounce 1.6s ease-in-out infinite;}
@keyframes bounce{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

footer{ border-top:2px solid var(--ink); padding:22px 40px; display:flex; justify-content:space-between; font-size:12.5px; font-weight:700; flex-wrap:wrap; gap:10px; }
footer.feed-footer{ text-align:center; justify-content:center; font-size:11px; opacity:.5; font-weight:400; }
