:root {
  --kattha: #2a0c17;
  --kattha-2: #3a1322;
  --kattha-3: #4a1a2d;
  --cream: #fff1dc;
  --cream-dim: #d9c2b4;
  --magenta: #e8317a;
  --saffron: #ffa41b;
  --emerald: #19b37c;
  --blue: #4f7cff;
  --hair: rgba(255, 241, 220, 0.14);
  --display: "Rozha One", Georgia, serif;
  --body: "Hind", system-ui, -apple-system, sans-serif;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--kattha);
  color: var(--cream);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--saffron); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
img { display: block; }
.screen img { object-fit: cover; background: var(--kattha-2); }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 28px/1 var(--display); }
.brand img { width: 40px; height: 40px; }
.site-head nav { display: flex; gap: 22px; font-size: 16px; }
.site-head nav a { color: var(--cream-dim); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px;
  align-items: center; padding: 28px 0 104px;
}
.wordmark {
  font: clamp(72px, 10vw, 128px)/0.95 var(--display);
  color: var(--saffron); letter-spacing: -0.5px;
}
.define { color: var(--cream-dim); font-size: 17px; margin: 10px 0 34px; }
.define i { color: var(--cream); }
.hero h1 { font: clamp(36px, 4.6vw, 56px)/1.08 var(--display); max-width: 14ch; margin-bottom: 18px; }
.lede { color: var(--cream-dim); font-size: 20px; max-width: 36ch; margin-bottom: 30px; }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 12px; border-radius: 999px;
  background: var(--magenta); color: #fff;
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease;
}
.cta:hover { color: #fff; transform: translateY(-1px); }
.cta svg { width: 20px; height: 20px; flex: none; }
.play { position: relative; display: inline-block; margin-left: -12px; }
.play .soon {
  position: absolute; top: 2px; right: -6px; padding: 2px 10px; border-radius: 999px;
  background: var(--saffron); color: var(--kattha); font-size: 13px; font-weight: 600; line-height: 1.5;
}
.play img { width: 220px; height: auto; }
.play:focus-visible { border-radius: 12px; }
.note { margin-top: 4px; font-size: 15px; color: var(--cream-dim); }

/* ---------- Phone frame ---------- */
.phone {
  --w: 320px;
  width: var(--w); aspect-ratio: 9 / 19.2;
  padding: 10px; border-radius: 46px;
  background: #140409;
  box-shadow: 0 0 0 1px rgba(255, 241, 220, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  font-size: 12px; line-height: 1.35;
}
.phone-sm { --w: 280px; }
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 37px; padding: 0 14px;
  display: flex; flex-direction: column;
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px 8px; font-weight: 600; font-size: 12px; }
.status-r { display: flex; gap: 4px; align-items: center; }
.status-r i { width: 4px; height: 8px; border-radius: 1px; background: var(--cream); }
.status-r i + i { height: 10px; }
.status-r b { width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid var(--cream); position: relative; }
.status-r b::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--cream); border-radius: 1px; }
.screen svg { display: block; }
.screen-title { text-align: center; font-weight: 600; font-size: 14px; margin: 2px 0 10px; }

/* ---------- Room screen ---------- */
.room-screen {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(232, 49, 122, 0.35), transparent 60%),
    linear-gradient(180deg, #3d1028 0%, #2a0c17 55%, #1e0711 100%);
}
.room-top { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.room-cover { width: 36px; height: 36px; border-radius: 10px; background: var(--saffron); }
.room-name { flex: 1; min-width: 0; }
.room-name strong { display: block; font-size: 14px; }
.room-name span { color: var(--cream-dim); font-size: 11px; }
.room-name em { font-style: normal; color: var(--emerald); font-weight: 600; }
.pill { padding: 3px 9px; border-radius: 999px; background: rgba(255, 164, 27, 0.18); color: var(--saffron); font-weight: 600; font-size: 11px; }

.top-givers { display: flex; align-items: center; margin: 10px 0 14px; }
.top-givers > span { position: relative; margin-right: -6px; }
.top-givers img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--kattha); }
.top-givers .crown { position: absolute; width: 14px; height: 10px; top: -8px; left: 5px; }
.top-givers small { margin-left: 14px; color: var(--cream-dim); font-size: 11px; }

.seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 6px; }
.s { position: relative; text-align: center; }
.s img, .s i {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  border: 2px solid rgba(255, 241, 220, 0.18);
}
.s span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--cream-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s.empty i { display: grid; place-items: center; background: rgba(255, 241, 220, 0.06); border-style: dashed; color: rgba(255, 241, 220, 0.45); }
.s.empty svg { width: 18px; height: 18px; }
.s .tag {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  padding: 0 6px; border-radius: 999px; background: var(--saffron); color: var(--kattha);
  font-size: 9px; font-weight: 600; line-height: 14px;
}
.s.talk img { border-color: var(--emerald); }
.s.talk::before {
  content: ""; position: absolute; left: 50%; top: 23px; width: 46px; height: 46px;
  margin: -23px 0 0 -23px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(25, 179, 124, 0.7);
  animation: speak 2.4s ease-out infinite;
}
.s.t2::before { animation-delay: 0.8s; }
.s.t3::before { animation-delay: 1.6s; }
@keyframes speak {
  0% { box-shadow: 0 0 0 0 rgba(25, 179, 124, 0.7); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(25, 179, 124, 0); }
}

.gift-banner {
  display: flex; align-items: center; gap: 8px;
  margin: 16px -14px 0; padding: 6px 14px 6px 8px;
  background: linear-gradient(90deg, rgba(232, 49, 122, 0.95), rgba(232, 49, 122, 0.15));
  border-radius: 0 999px 999px 0; width: 86%;
  animation: banner 6s ease-in-out infinite;
}
.gift-banner img { width: 26px; height: 26px; border-radius: 50%; }
.gift-banner p { flex: 1; font-size: 11.5px; }
.gift-banner .g { width: 30px; height: 30px; }
.gift-banner b { font: 20px/1 var(--display); color: var(--saffron); }
@keyframes banner {
  0%, 62% { transform: translateX(0); }
  72%, 84% { transform: translateX(-105%); }
  94%, 100% { transform: translateX(0); }
}

.game-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 10px 12px; border-radius: 16px;
  background: rgba(79, 124, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.4);
}
.gc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: var(--cream); }
.gc-icon svg { width: 20px; height: 20px; }
.game-card p { flex: 1; }
.game-card strong { display: block; font-size: 12.5px; font-weight: 600; }
.game-card p span { color: var(--cream-dim); font-size: 11px; }
.game-card .join { padding: 5px 14px; border-radius: 999px; background: var(--cream); color: var(--kattha); font-weight: 600; }

.chat { margin-top: auto; display: flex; flex-direction: column; gap: 5px; padding-bottom: 10px; }
.chat p { align-self: flex-start; max-width: 100%; padding: 5px 9px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); font-size: 11.5px; }
.chat strong { color: var(--saffron); font-weight: 600; margin-right: 4px; }
.chat .lv { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 9.5px; font-weight: 600; line-height: 14px; vertical-align: 1px; }
.chat .sys { background: rgba(25, 179, 124, 0.18); color: #bff0dc; }
.chat .join { background: none; padding: 0 2px; color: var(--cream-dim); }
.chat .join strong { color: var(--cream); }

.bar { display: flex; align-items: center; gap: 7px; padding: 8px 0 18px; }
.say { flex: 1; padding: 8px 12px; border-radius: 999px; background: rgba(255, 241, 220, 0.1); color: var(--cream-dim); font-size: 11.5px; }
.bar .b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 241, 220, 0.1); color: var(--cream); }
.bar .b svg { width: 17px; height: 17px; }
.bar .gift { background: var(--magenta); color: #fff; }

/* ---------- Inside section ---------- */
.inside { padding-bottom: 104px; }
.inside h2, .nights h2, .faq h2 { font: clamp(34px, 4vw, 48px)/1.1 var(--display); margin-bottom: 12px; }
.sub { color: var(--cream-dim); max-width: 48ch; margin-bottom: 48px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio figure { display: flex; flex-direction: column; align-items: center; }
.trio figcaption { max-width: 280px; margin-top: 22px; color: var(--cream-dim); font-size: 16px; }
.trio figcaption strong { display: block; color: var(--cream); font-size: 18px; font-weight: 600; }

/* Ludo screen */
.ludo-screen { background: linear-gradient(180deg, #23103a 0%, #2a0c17 100%); }
.players { display: flex; justify-content: space-between; }
.players.top { margin-bottom: 8px; }
.players.bottom { margin-top: 8px; }
.pl { display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 241, 220, 0.08); font-size: 11px; }
.pl img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c); }
.pl.red { --c: var(--magenta); } .pl.green { --c: var(--emerald); } .pl.yellow { --c: var(--saffron); } .pl.blue { --c: var(--blue); }
.pl.turn { background: rgba(25, 179, 124, 0.25); box-shadow: 0 0 0 1.5px var(--emerald); }
.board { width: 100%; height: auto; border-radius: 8px; }
.dice-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; color: var(--cream-dim); font-size: 11.5px; }
.die { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--cream); color: var(--kattha); font-weight: 600; font-size: 15px; }
.mini-chat { display: flex; flex-direction: column; gap: 4px; }
.mini-chat p { align-self: flex-start; padding: 4px 9px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); font-size: 11px; }
.mini-chat strong { color: var(--saffron); font-weight: 600; margin-right: 4px; }

/* Gift screen */
.gift-screen { background: linear-gradient(180deg, #3d1028 0%, #2a0c17 100%); }
.seats-dim { opacity: 0.45; }
.big-gift { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.big-gift svg { width: 118px; height: 118px; filter: drop-shadow(0 0 22px rgba(255, 164, 27, 0.55)); }
.big-gift p { padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 12px; }
.big-gift strong { color: var(--saffron); font-weight: 600; }
.big-gift b { font: 18px/1 var(--display); color: var(--saffron); margin-left: 4px; }
.seats-dim .s img { width: 40px; height: 40px; }
.sheet {
  margin: 0 -14px; padding: 14px 14px 18px;
  background: #1d0811; border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.to { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--cream-dim); }
.to img { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--saffron); }
.to strong { color: var(--cream); font-weight: 600; }
.tabs { display: flex; gap: 14px; margin: 12px 0 10px; font-size: 12.5px; color: var(--cream-dim); }
.tabs b { color: var(--cream); font-weight: 600; box-shadow: inset 0 -2px var(--magenta); padding-bottom: 3px; }
.tabs.center { justify-content: center; margin-top: 0; }
.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gifts > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; }
.gifts > div.on { background: rgba(232, 49, 122, 0.18); box-shadow: inset 0 0 0 1.5px var(--magenta); }
.gifts svg { width: 34px; height: 34px; }
.gifts span { font-size: 10.5px; }
.gifts small { display: flex; align-items: center; gap: 2px; font-size: 10px; color: var(--saffron); }
.gifts small svg, .send svg, .podium small svg, .ranks small svg { width: 10px; height: 10px; }
.send { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.bal { flex: 1; display: flex; align-items: center; gap: 4px; color: var(--saffron); font-weight: 600; }
.qty { padding: 5px 10px; border-radius: 999px; background: rgba(255, 241, 220, 0.1); }
.go { padding: 6px 18px; border-radius: 999px; background: var(--magenta); font-weight: 600; }

/* Leaderboard screen */
.rank-screen { background: radial-gradient(90% 50% at 50% 18%, rgba(255, 164, 27, 0.28), transparent 70%), #2a0c17; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; margin: 8px 0 14px; text-align: center; }
.podium > div { position: relative; display: flex; flex-direction: column; align-items: center; }
.podium img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--cream-dim); }
.podium .p1 img { width: 70px; height: 70px; border-color: var(--saffron); }
.podium .p3 img { border-color: #c98a5b; }
.podium .crown { width: 30px; height: 20px; margin-bottom: -2px; }
.podium strong { margin-top: 6px; font-size: 12px; font-weight: 600; }
.podium small { display: flex; align-items: center; gap: 3px; color: var(--saffron); font-size: 11px; }
.podium i {
  width: 100%; margin-top: 6px; border-radius: 10px 10px 0 0;
  background: rgba(255, 241, 220, 0.08); font: 20px/1 var(--display); font-style: normal; padding: 8px 0;
}
.podium .p1 i { padding: 16px 0; background: rgba(255, 164, 27, 0.2); color: var(--saffron); }
.podium .p2 i { padding: 11px 0; }
.ranks { list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: rank 3; }
.ranks li { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 241, 220, 0.05); counter-increment: rank; }
.ranks li::before { content: counter(rank); width: 14px; color: var(--cream-dim); font-size: 11px; text-align: center; }
.ranks img { width: 28px; height: 28px; border-radius: 50%; }
.ranks span { flex: 1; font-size: 12px; }
.ranks small { display: flex; align-items: center; gap: 3px; color: var(--saffron); font-size: 11px; }
.ranks .me { margin-top: 6px; background: rgba(232, 49, 122, 0.2); box-shadow: inset 0 0 0 1.5px var(--magenta); }
.ranks .me::before { content: "48"; }

/* ---------- Nights rows ---------- */
.nights { padding-bottom: 104px; }
.rows { border-top: 1px solid var(--hair); margin-top: 28px; }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 340px) minmax(0, 1fr); gap: 8px 28px;
  align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--hair);
}
.row svg { width: 28px; height: 28px; align-self: center; }
.row h3 { font: 26px/1.2 var(--display); }
.row p { color: var(--cream-dim); max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; padding-bottom: 104px; scroll-margin-top: 24px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--saffron); font-size: 26px; font-weight: 400; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--cream-dim); padding: 0 36px 20px 0; max-width: 62ch; }

.mohalla { max-width: 40ch; margin-bottom: 96px; }
.mohalla h2 { font: clamp(32px, 4vw, 44px)/1.15 var(--display); margin-bottom: 12px; }
.mohalla p { color: var(--cream-dim); }

@media (prefers-reduced-motion: reduce) {
  .s.talk::before, .gift-banner { animation: none; }
  .cta, .faq summary::after { transition: none; }
}

/* ---------- Legal and info pages ---------- */
.page { padding: 24px 0 88px; max-width: 720px; }
.page h1 { font: clamp(38px, 6vw, 52px)/1.1 var(--display); margin-bottom: 6px; }
.page .updated { color: var(--cream-dim); font-size: 15px; margin-bottom: 36px; }
.page h2 { font: 28px/1.25 var(--display); margin: 40px 0 10px; }
.page h3 { font-size: 18px; font-weight: 600; margin: 22px 0 6px; }
.page p, .page li { color: #f0dfd2; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { margin: 10px 0 0 22px; }
.page li + li { margin-top: 6px; }
.callout { margin-top: 18px; padding: 18px 22px; border-radius: 14px; background: var(--kattha-2); }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--hair); padding: 28px 0 44px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  color: var(--cream-dim); font-size: 15px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--cream-dim); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-bottom: 80px; }
  .phone-hero { justify-self: center; }
  .row { grid-template-columns: 40px 1fr; }
  .row p { grid-column: 2; }
}
@media (max-width: 640px) {
  .trio { grid-template-columns: 1fr; gap: 56px; }
  .site-head nav { gap: 14px; font-size: 15px; }
  .phone { --w: min(320px, calc(100vw - 48px)); }
  .phone-sm { --w: min(290px, calc(100vw - 48px)); }
}
