/* ============ PRANAV AMAL — casino-felt fan shrine ============ */
:root {
  --felt: #0a4a30;
  --felt-deep: #06301f;
  --gold: #ffce3a;
  --gold-dim: #c79b1d;
  --cream: #fff6e0;
  --red: #ff4d4d;
  --ink: #1c1408;
  --display: 'Luckiest Guy', cursive;
  --comic: 'Bangers', cursive;
  --hand: 'Gochi Hand', cursive;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #0d5c3c 0%, var(--felt) 45%, var(--felt-deep) 100%);
  color: var(--cream);
  font-family: var(--mono);
  overflow-x: hidden;
  cursor: default;
}

/* felt noise grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ============ TICKER ============ */
.ticker {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 4px solid var(--ink);
  position: relative;
  z-index: 5;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding: 0.55rem 0;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  animation: tick 45s linear infinite;
}
.ticker-track span { flex-shrink: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 5rem 6vw 7rem;
  z-index: 2;
}
.hero-suits {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-suits span {
  position: absolute;
  font-size: 3rem;
  opacity: 0.08;
  animation: floaty 14s ease-in-out infinite;
}
.hero-suits span:nth-child(1)  { left: 4%;  top: 12%; font-size: 5rem; }
.hero-suits span:nth-child(2)  { left: 18%; top: 70%; animation-delay: -3s; }
.hero-suits span:nth-child(3)  { left: 30%; top: 22%; animation-delay: -6s; font-size: 4rem; }
.hero-suits span:nth-child(4)  { left: 47%; top: 82%; animation-delay: -2s; }
.hero-suits span:nth-child(5)  { left: 58%; top: 8%;  animation-delay: -9s; }
.hero-suits span:nth-child(6)  { left: 70%; top: 60%; animation-delay: -5s; font-size: 5rem; }
.hero-suits span:nth-child(7)  { left: 82%; top: 18%; animation-delay: -7s; }
.hero-suits span:nth-child(8)  { left: 90%; top: 75%; animation-delay: -4s; }
.hero-suits span:nth-child(9)  { left: 8%;  top: 45%; animation-delay: -11s; font-size: 6rem; }
.hero-suits span:nth-child(10) { left: 64%; top: 38%; animation-delay: -8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-28px) rotate(8deg); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: var(--comic);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 1.6rem;
  animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.92;
  color: var(--gold);
  text-shadow:
    4px 4px 0 var(--ink),
    8px 8px 0 rgba(0,0,0,0.35);
  -webkit-text-stroke: 2px var(--ink);
  animation: pop-in 0.7s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-rotator {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  margin: 1.4rem 0 1.2rem;
  animation: pop-in 0.7s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rotator-word {
  font-family: var(--hand);
  font-size: 1.25em;
  color: var(--gold);
  border-bottom: 3px dashed var(--gold-dim);
  display: inline-block;
  min-width: 12ch;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--gold-dim);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  animation: pop-in 0.7s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.status-pill strong { color: var(--red); }
.status-dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  animation: pop-in 0.7s 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.btn-wake {
  font-family: var(--comic);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-wake:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-wake:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost {
  font-family: var(--comic);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 4px solid var(--gold);
  border-radius: 14px;
  padding: 0.7rem 1.8rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--gold); color: var(--ink); }

.wake-counter {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
  animation: pop-in 0.7s 0.55s both;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ POLAROIDS ============ */
.polaroid {
  background: var(--cream);
  padding: 0.7rem 0.7rem 0.4rem;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  position: relative;
}
.polaroid img {
  width: 100%;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}
.polaroid figcaption {
  font-family: var(--hand);
  color: var(--ink);
  font-size: 1.15rem;
  text-align: center;
  padding: 0.5rem 0.3rem 0.45rem;
  line-height: 1.25;
}

.hero-photos {
  position: relative;
  height: clamp(340px, 42vw, 540px);
}
.hero-photos .polaroid { position: absolute; width: 58%; }
.hero-photos .polaroid img { aspect-ratio: 3 / 4; }
.p-main {
  left: 21%; top: 0;
  transform: rotate(2deg);
  z-index: 3;
  animation: deal-in 0.8s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.p-left {
  left: -4%; top: 12%;
  transform: rotate(-8deg);
  z-index: 2;
  animation: deal-in 0.8s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.p-right {
  right: -4%; top: 16%;
  transform: rotate(7deg);
  z-index: 1;
  animation: deal-in 0.8s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hero-photos .polaroid:hover { z-index: 5; }
@keyframes deal-in {
  from { opacity: 0; transform: translateY(60px) rotate(14deg) scale(0.9); }
}

.stamp {
  position: absolute;
  top: 8%; right: -6%;
  font-family: var(--comic);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  transform: rotate(12deg);
  background: rgba(255, 246, 224, 0.9);
  text-transform: uppercase;
}

/* ============ SECTIONS ============ */
section { padding: 5.5rem 6vw; position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  color: var(--cream);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  letter-spacing: 0.02em;
}
.section-title span { color: var(--gold); }
.section-sub {
  text-align: center;
  opacity: 0.75;
  margin: 0.8rem 0 3rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* ============ STATS ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.stat-card {
  background: rgba(0,0,0,0.32);
  border: 3px solid var(--gold-dim);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--gold); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.14em; opacity: 0.7; }
.stat-value {
  font-family: var(--comic);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
}
.stat-red { color: var(--red); }
.stat-note { font-size: 0.75rem; opacity: 0.65; font-style: italic; }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.4rem;
}
.g-card {
  transform: rotate(var(--rot));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  translate: 0 40px;
}
.g-card.shown { animation: g-reveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes g-reveal {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}
.g-card:hover { transform: rotate(0deg) scale(1.04); z-index: 4; }
.g-card img { aspect-ratio: 3 / 4; }
.g-card.sq img { aspect-ratio: 1 / 1; }
.g-card.wide { grid-column: span 1; }
.g-card figcaption { font-size: 1.05rem; }
.g-stamp {
  position: absolute;
  top: -12px; left: -10px;
  font-family: var(--comic);
  background: var(--red);
  color: var(--cream);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 3px solid var(--ink);
  transform: rotate(-6deg);
  letter-spacing: 0.12em;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ============ SKILLS ============ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.skill-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 2rem 1.7rem;
  transition: transform 0.2s;
}
.skill-card:hover { transform: translate(-3px, -3px) rotate(0.5deg); }
.skill-card.gold { background: var(--gold); }
.skill-card h3 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}
.skill-card p { font-size: 0.92rem; line-height: 1.55; }
.skill-stat {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  border-top: 2px dashed rgba(28,20,8,0.3);
  padding-top: 0.9rem;
}

.card-fan { display: flex; gap: 0.4rem; margin-bottom: 1.3rem; height: 110px; }
.pcard {
  width: 74px; height: 104px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  position: relative;
  font-family: var(--mono);
  font-weight: 600;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.25);
}
.pcard:nth-child(1) { transform: rotate(-8deg) translateY(6px); }
.pcard:nth-child(2) { transform: rotate(0deg); }
.pcard:nth-child(3) { transform: rotate(8deg) translateY(6px); }
.pc-corner { position: absolute; top: 6px; left: 7px; font-size: 0.95rem; }
.pc-mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; }
.red { color: var(--red); }
.pcard.back {
  background: repeating-linear-gradient(45deg, var(--felt) 0 8px, var(--felt-deep) 8px 16px);
  display: grid; place-items: center;
  font-size: 1.8rem;
}

.chess-line {
  display: flex; gap: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: repeating-conic-gradient(#d8cdb4 0% 25%, #b09c72 0% 50%) 0 0 / 44px 44px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.6rem 1.2rem;
  margin-bottom: 1.3rem;
  justify-content: center;
}

.medal { font-size: 3.6rem; text-align: center; margin-bottom: 0.8rem; animation: floaty 5s ease-in-out infinite; }

.formula {
  font-family: var(--comic);
  font-size: 2.6rem;
  text-align: center;
  letter-spacing: 0.08em;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  margin-bottom: 1.3rem;
  background: rgba(255, 206, 58, 0.25);
}

/* ============ TIMELINE ============ */
.tl { max-width: 760px; margin: 0 auto; position: relative; padding-left: 2rem; }
.tl::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: repeating-linear-gradient(var(--gold) 0 12px, transparent 12px 22px);
  border-radius: 2px;
}
.tl-item { margin-bottom: 2.2rem; position: relative; }
.tl-item::before {
  content: '♠';
  position: absolute; left: -2.55rem; top: 0;
  color: var(--gold);
  font-size: 1.3rem;
}
.tl-item:nth-child(2n)::before { content: '♞'; }
.tl-item:nth-child(3n)::before { content: '💤'; font-size: 1rem; }
.tl-year {
  font-family: var(--comic);
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.tl-text { font-size: 0.95rem; line-height: 1.55; opacity: 0.92; margin-top: 0.2rem; }

/* ============ LEAKED CHATS ============ */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.phone {
  background: #0b141a;
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.2s;
}
.phone:hover { transform: translateY(-5px) rotate(-0.5deg); }
.phone-head {
  background: #1f2c34;
  color: #e9edef;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phone-head span { font-size: 0.68rem; opacity: 0.55; font-weight: 400; }
.phone-body {
  padding: 1.1rem 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.025) 0 2px, transparent 2px),
    #0b141a;
  min-height: 250px;
}
.chat-sys {
  align-self: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8696a0;
  background: #1f2c34;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  margin: 0.3rem 0;
}
.bubble {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  line-height: 1.35;
  border-radius: 10px;
  position: relative;
}
.bubble.left {
  align-self: flex-start;
  background: #1f2c34;
  color: #e9edef;
  border-top-left-radius: 2px;
}
.bubble.right {
  align-self: flex-end;
  background: #005c4b;
  color: #e7ffdb;
  border-top-right-radius: 2px;
}

/* ============ QUOTES ============ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.quotes blockquote {
  background: rgba(0,0,0,0.32);
  border-left: 5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.5rem 1.5rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
  transition: transform 0.2s;
}
.quotes blockquote:hover { transform: rotate(-0.8deg) scale(1.02); }
.quotes cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--gold);
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 4.5rem 6vw 3rem;
  border-top: 4px solid var(--gold-dim);
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.9;
}
.foot-big {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.foot-tiny { font-size: 0.7rem; opacity: 0.6; margin-top: 1rem; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 50;
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============ SHAKE + ZZZ ============ */
.shaking { animation: shake 0.5s linear; }
@keyframes shake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-10px, 4px) rotate(-0.5deg); }
  40% { transform: translate(10px, -4px) rotate(0.5deg); }
  60% { transform: translate(-8px, -3px) rotate(-0.4deg); }
  80% { transform: translate(8px, 3px) rotate(0.4deg); }
}

.zzz {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 40;
  animation: zfloat 1.8s ease-out forwards;
}
@keyframes zfloat {
  from { opacity: 1; transform: translateY(0) rotate(0deg) scale(0.7); }
  to { opacity: 0; transform: translateY(-130px) rotate(24deg) scale(1.5); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero { padding-top: 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photos { height: auto; min-height: 320px; margin-top: 1rem; }
  .hero-photos .polaroid { width: 52%; }
  section { padding: 3.5rem 6vw; }
}
@media (max-width: 520px) {
  .hero-photos .polaroid { width: 62%; }
  .p-left { left: -6%; top: 18%; }
  .p-right { right: -6%; top: 30%; }
  .hero-photos { min-height: 420px; }
  .btn-wake, .btn-ghost { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
