/* ==========================================================================
   Borewho Talkies — Bollywood single-screen cinema theme
   Warm cream paper, maroon + marigold + pink + peacock teal, ink outlines.
   ========================================================================== */
:root {
  --cream: #fff4e0;
  --paper: #fffaf0;
  --ink: #3a0f1f;
  --maroon: #7a1f3d;
  --pink: #d42f6a;          /* text-safe pink */
  --pink-soft: #fbd0df;
  --marigold: #f5a524;
  --marigold-soft: #ffe3a8;
  --teal: #0f7c80;
  --teal-soft: #cde9e6;
  --green: #2f7a43;
  --muted: #6e4b52;
  --line: rgba(58, 15, 31, .14);
  --display: "Rozha One", "DejaVu Serif", Georgia, serif;
  --body: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  /* legacy names still used by the admin panel */
  --bg: var(--cream); --bg-2: var(--paper); --card: var(--paper); --text: var(--ink);
  --brand-1: var(--maroon); --brand-2: var(--pink); --brand-3: var(--marigold);
}
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  min-height: 100vh;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-secondary-color: var(--muted);
  --bs-heading-color: var(--maroon);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 122, 31, 61;
  --bs-link-hover-color-rgb: 212, 47, 106;
}
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 400; color: var(--maroon); }
a { color: var(--maroon); }
.text-secondary { color: var(--muted) !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- bunting + garland ---------- */
.bunting { height: 34px; background:
  linear-gradient(135deg, transparent 50%, var(--cream) 50%) 0 0/32px 34px,
  linear-gradient(225deg, transparent 50%, var(--cream) 50%) 0 0/32px 34px,
  repeating-linear-gradient(90deg, var(--pink) 0 32px, var(--marigold) 32px 64px, var(--teal) 64px 96px, var(--green) 96px 128px); }
.bunting.flip { transform: rotate(180deg); }
.garland { height: 22px; overflow: hidden; white-space: nowrap; font-size: 18px; line-height: 22px; letter-spacing: 2px; margin-top: -4px; text-align: center; user-select: none; }

/* ---------- nav ---------- */
.site-nav { padding: 12px 0 0; }
.brand { font-family: var(--display); font-size: 1.75rem; color: var(--maroon) !important; line-height: 1; text-decoration: none; display: inline-flex; flex-direction: column; }
.brand small { font-family: var(--body); font-size: .62rem; letter-spacing: .32em; color: #a8741c; font-weight: 700; margin-bottom: 4px; }
.brand-mark { display: none; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btn-ghost { color: var(--muted); border: 2px solid transparent; font-weight: 700; }
.btn-ghost:hover { color: var(--maroon); border-color: var(--line); }
.hall { background: var(--maroon); color: var(--cream); padding: 6px 14px; border-radius: 8px; border: 3px double var(--marigold); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- now-showing ticker ---------- */
.ticker { background: var(--ink); color: var(--marigold-soft); border-block: 3px solid var(--marigold); overflow: hidden; white-space: nowrap; font-weight: 700; letter-spacing: .06em; font-size: .9rem; padding: 6px 0; margin-top: 14px; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 38s linear infinite; }
.ticker span { margin-right: 2.5rem; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- hero: cinema marquee ---------- */
.marquee-hero { position: relative; margin-top: 26px; border-radius: 26px; background: var(--maroon); padding: 22px; box-shadow: 0 9px 0 var(--ink); }
.marquee-hero::before { content: ""; position: absolute; inset: 9px; border-radius: 20px; pointer-events: none;
  background:
    radial-gradient(circle, #ffe08a 0 4px, transparent 5px) 0 0/26px 26px repeat-x,
    radial-gradient(circle, #ffe08a 0 4px, transparent 5px) 0 100%/26px 26px repeat-x,
    radial-gradient(circle, #ffe08a 0 4px, transparent 5px) 0 0/26px 26px repeat-y,
    radial-gradient(circle, #ffe08a 0 4px, transparent 5px) 100% 0/26px 26px repeat-y; }
.screen { position: relative; border-radius: 14px; background: var(--paper); border: 4px solid var(--marigold); padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 52px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle at 0 0, rgba(245,165,36,.22) 0 130px, transparent 131px),
  radial-gradient(circle at 100% 100%, rgba(212,47,106,.14) 0 170px, transparent 171px); }
.screen > * { position: relative; }
.now-showing { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; letter-spacing: .24em; font-size: .78rem; padding: 6px 14px; border-radius: 4px; transform: rotate(-2deg); }
.title-filmy { font-family: var(--display); font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: .98; margin: 16px 0 10px; color: var(--pink); letter-spacing: .5px;
  text-shadow: 3px 3px 0 var(--marigold), 6px 6px 0 var(--maroon); }
.title-filmy .l2 { display: block; color: var(--marigold); font-style: italic; text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--maroon); }
.dialogue { font-family: "DejaVu Serif", Georgia, serif; font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--maroon); margin: 10px 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ticket-shaped buttons */
.ticket { position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 28px; background: var(--marigold); color: var(--ink) !important; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 3px solid var(--ink); border-radius: 4px; cursor: pointer;
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left/51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right/51% 100% no-repeat;
  transition: transform .15s ease, filter .15s ease; }
.ticket:hover { transform: translateY(-2px) rotate(-1deg); filter: brightness(1.05); color: var(--ink) !important; }
.ticket.teal { background: var(--teal); color: #fff !important; }
.ticket.pink { background: var(--pink); color: #fff !important; }
.ticket.sm { padding: 9px 18px; font-size: .92rem; }

/* cast: reel, clapboard, popcorn */
.cast { position: relative; height: 300px; }
.reel { position: absolute; right: 6px; top: 0; width: 190px; height: 190px; border-radius: 50%; background: var(--ink);
  background-image: radial-gradient(circle at 50% 50%, var(--marigold) 0 20px, var(--ink) 21px 28px, transparent 29px),
   radial-gradient(circle at 50% 21%, var(--cream) 0 21px, transparent 22px), radial-gradient(circle at 50% 79%, var(--cream) 0 21px, transparent 22px),
   radial-gradient(circle at 21% 50%, var(--cream) 0 21px, transparent 22px), radial-gradient(circle at 79% 50%, var(--cream) 0 21px, transparent 22px);
  animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.clap { position: absolute; left: 0; bottom: 18px; width: 220px; background: var(--ink); color: var(--cream); border-radius: 10px; transform: rotate(-6deg); padding: 50px 16px 14px; font-family: "DejaVu Sans Mono", monospace; font-size: .78rem; line-height: 1.7; }
.clap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(45deg, var(--cream) 0 17px, var(--ink) 17px 34px); }
.popcorn { position: absolute; right: 34px; bottom: -6px; font-size: 88px; line-height: 1; }
.sparkle { position: absolute; font-size: 38px; }

/* ---------- toolbar ---------- */
.toolbar { margin: 46px 0 6px; }
.filter-group .btn { white-space: nowrap; color: var(--maroon); background: var(--paper); border: 2px solid var(--maroon); font-weight: 700; padding: 7px 16px; }
.filter-group .btn.active { background: var(--maroon); color: var(--cream); }
.search { max-width: 320px; background: var(--paper); border: 2px solid var(--maroon); color: var(--ink); font-weight: 600; }
.search:focus { background: var(--paper); color: var(--ink); border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(15,124,128,.2); }
@media (max-width: 767px) { .search { max-width: none; } }

/* ---------- section headers ---------- */
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin: 40px 0 22px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 0; }
.section-head h2 em { color: var(--pink); }
.section-head .sub { color: var(--muted); font-weight: 700; }

/* ---------- poster cards (party games) ---------- */
.poster { --c: var(--pink); position: relative; height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 7px 7px 0 var(--maroon); transition: transform .18s ease, box-shadow .18s ease; }
.poster:hover, .poster:focus-within { transform: translateY(-4px) rotate(-.6deg); box-shadow: 10px 11px 0 var(--maroon); }
.poster .art { position: relative; height: 210px; display: grid; place-items: center; border-bottom: 3px solid var(--ink);
  background: repeating-conic-gradient(from 0deg at 50% 115%, var(--c) 0 8deg, color-mix(in srgb, var(--c) 45%, #fff) 8deg 16deg); }
.poster .art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,250,240,.92) 0 64px, transparent 66px); }
.poster .emoji { position: relative; z-index: 1; font-size: 82px; line-height: 1; transform: translateY(-14px); }
.poster .title-band { position: absolute; left: 8px; right: 8px; bottom: 12px; z-index: 2; text-align: center; }
.poster .title-band h3 { display: inline-block; margin: 0; background: var(--ink); color: var(--marigold); font-size: 1.45rem; padding: 4px 14px 2px; border-radius: 4px; transform: rotate(-2deg); max-width: 100%; }
.poster .title-band h3 a { color: inherit; text-decoration: none; }
.poster .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.poster .tagline { font-family: "DejaVu Serif", Georgia, serif; font-style: italic; color: var(--maroon); font-size: .98rem; margin: 0 0 6px; }
.poster .starring { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.poster .foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.poster .foot .book { margin-left: auto; }
.cert { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .72rem; background: var(--cream); }
.book { padding: 7px 14px; background: var(--pink); color: #fff; font-weight: 800; font-size: .85rem; border-radius: 4px; border: 2px solid var(--ink); white-space: nowrap; }
.info-link { position: relative; z-index: 3; white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.info-link:hover { color: var(--maroon); }
.stretched-link::after { z-index: 2; }
.ribbon { position: absolute; top: 20px; left: -44px; z-index: 4; transform: rotate(-40deg); width: 180px; white-space: nowrap; text-align: center; background: var(--marigold); color: var(--ink); font-weight: 800; font-size: .62rem; letter-spacing: .1em; padding: 4px 0; border-block: 2px solid var(--ink); }
.ribbon.up { background: var(--green); color: #fff; }
.ribbon.down { background: var(--marigold); color: var(--ink); }
.hit { position: absolute; top: 10px; right: 10px; z-index: 4; width: 64px; height: 64px; border-radius: 50%; background: var(--marigold); border: 3px solid var(--ink); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .66rem; line-height: 1.05; transform: rotate(12deg); color: var(--maroon); }

/* ---------- film-strip cards (solo games) ---------- */
.film { --c: var(--marigold-soft); position: relative; height: 100%; display: flex; border: 3px solid var(--ink); border-radius: 6px; background: var(--paper); overflow: hidden; box-shadow: 6px 6px 0 var(--teal); transition: transform .18s ease; }
.film:hover, .film:focus-within { transform: translateY(-3px); }
.film .strip { flex: none; width: 26px; background: var(--ink); background-image: radial-gradient(circle, var(--cream) 0 5px, transparent 6px); background-size: 26px 22px; }
.film .ic { flex: none; width: 100px; display: grid; place-items: center; font-size: 46px; background: var(--c); border-right: 3px solid var(--ink); }
.film .t { padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.film h3 { font-size: 1.22rem; margin: 0 0 2px; }
.film h3 a { color: var(--maroon); text-decoration: none; }
.film p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.film .row-end { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.film .play { font-weight: 800; font-size: .82rem; letter-spacing: .06em; color: var(--pink); }

/* ---------- interval (random pick) ---------- */
.interval { margin: 56px auto 0; max-width: 880px; background: var(--teal); color: #fff; border: 4px double var(--marigold); border-radius: 14px; padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; box-shadow: 7px 7px 0 var(--ink); }
.interval .big { font-family: var(--display); font-size: 2.6rem; letter-spacing: .1em; color: var(--marigold); text-shadow: 3px 3px 0 var(--ink); line-height: 1; }
.interval p { margin: 6px 0 0; }
.chits { display: flex; gap: 8px; margin-left: auto; }
.chit { width: 54px; height: 54px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: center; font-size: 28px; transform: rotate(var(--r, 0deg)); transition: transform .2s ease; }
.chits.shuffling .chit { animation: shuffle .32s ease-in-out infinite alternate; }
.chits.shuffling .chit:nth-child(2) { animation-delay: .1s; } .chits.shuffling .chit:nth-child(3) { animation-delay: .2s; }
@keyframes shuffle { to { transform: translateY(-10px) rotate(12deg); } }
.pick-result { width: 100%; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 2px solid var(--ink); }
.pick-result .btn-link { color: var(--maroon); }
.pick-result b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--maroon); }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 46px 0 18px; color: var(--muted); font-family: "DejaVu Serif", Georgia, serif; font-style: italic; }

/* ---------- game detail page ---------- */
.crumbs { font-size: .9rem; margin: 22px 0 18px; }
.crumbs a { color: var(--maroon); font-weight: 700; }
.game-hero { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.game-hero .poster { height: auto; }
.game-hero .poster .art { height: 300px; }
.game-hero .poster .emoji { font-size: 120px; }
.game-hero .poster .art::after { background: radial-gradient(circle at 50% 50%, rgba(255,250,240,.92) 0 92px, transparent 94px); }
.game-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); line-height: 1.02; margin: 10px 0 8px; color: var(--pink); text-shadow: 3px 3px 0 var(--marigold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chip { display: inline-block; border: 2px solid var(--ink); border-radius: 6px; padding: 3px 10px; font-weight: 800; font-size: .78rem; letter-spacing: .04em; background: var(--marigold-soft); transform: rotate(-1.5deg); }
.chip:nth-child(2) { background: var(--teal-soft); transform: rotate(1deg); }
.chip:nth-child(3) { background: var(--pink-soft); transform: rotate(-.5deg); }
.screenplay { margin-top: 34px; max-width: 860px; background: #fffdf6; border: 3px solid var(--ink); border-radius: 4px; padding: 26px 30px; box-shadow: 6px 6px 0 var(--marigold); position: relative; }
.screenplay::before { content: "SCRIPT"; position: absolute; top: -14px; left: 22px; background: var(--ink); color: var(--marigold); font-weight: 800; letter-spacing: .2em; font-size: .72rem; padding: 3px 10px; border-radius: 3px; }
.screenplay h2 { font-size: 1.9rem; margin-bottom: 12px; }
.screenplay p, .screenplay li { color: #4a2a33; line-height: 1.6; }
.screenplay li { margin-bottom: .35rem; }
@media (max-width: 767px) {
  .game-hero { grid-template-columns: 1fr; }
  .game-hero .poster { max-width: 320px; margin: 0 auto; }
}

/* ---------- 404 ---------- */
.page-404 { display: flex; flex-direction: column; min-height: 100vh; }
.the-end { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.the-end h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--pink); text-shadow: 3px 3px 0 var(--marigold), 6px 6px 0 var(--maroon); margin: 0; }

/* ---------- shared bits used by admin ---------- */
.card-dark { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(58,15,31,.18); }
.btn-primary-grad { background: var(--maroon); color: var(--cream); border: 2px solid var(--ink); font-weight: 700; }
.btn-primary-grad:hover, .btn-primary-grad:focus { background: var(--pink); color: #fff; }
.admin-table td, .admin-table th { vertical-align: middle; }
.admin-table .emoji-cell { font-size: 1.6rem; width: 3rem; text-align: center; }
.form-control, .form-select { background-color: #fff; border-color: rgba(58,15,31,.3); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .screen { grid-template-columns: 1fr; }
  .cast { display: none; }
}
@media (max-width: 575px) {
  body { font-size: 16px; }
  .marquee-hero { padding: 14px; margin-top: 18px; border-radius: 18px; }
  .marquee-hero::before { inset: 4px; background-size: 18px 18px; }
  .interval .big { font-size: 2rem; }
  .chits { margin-left: 0; }
  .hall { font-size: .78rem; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .reel, .chits.shuffling .chit { animation: none; }
  .ticker-track { padding-left: 0; }
  .poster, .film, .ticket { transition: none; }
  .poster:hover, .film:hover, .ticket:hover { transform: none; }
}
