:root {
  --text: #fff8ef;
  --muted: #e8d8c6b3;
  --glass: #1a0e0cb8;
  --glass-2: #ffffff14;
  --line: #ffffff26;
  --sindoor: #e8402f;
  --gold: #f2b84b;
  --teal: #1fc7b0;
  /* Baloo Da 2 covers both Bengali and Latin */
  --bn: "Baloo Da 2", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #0b0606;
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--gold); }

/* BACKGROUND */
.bg { position: fixed; inset: 0; overflow: hidden; }
.bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  opacity: 0; transition: opacity 2.5s ease;
  animation: drift 30s ease-in-out infinite alternate;
}
.bg img.on { opacity: 1; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.12) translateY(-1%); } }
/* the illustrations are bright, so dim more behind the title and bottom cards */
.shade {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, #0000004d, transparent 70%),
    radial-gradient(ellipse at 50% 40%, transparent 35%, #0007 100%),
    linear-gradient(180deg, #000a 0%, #0004 28%, #0003 50%, #000d 100%);
}

/* TOP BAR */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 0;
}
.glass-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 500; font-size: .88rem; transition: background .2s, transform .15s;
}
button.glass-pill:hover { background: #2a1714d9; }
button.glass-pill:active { transform: scale(.96); }
.brand { font-family: var(--bn); font-weight: 700; font-size: 1.05rem; padding-block: 6px; }
.brand-en { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sindoor); box-shadow: 0 0 10px var(--sindoor); }
.top-nav { display: flex; gap: 8px; }
.lang { padding: 3px; gap: 2px; font-family: var(--bn); }
.lang button {
  height: 30px; min-width: 34px; padding: 0 9px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--gold); color: #2a1406; }
.ico { font-size: .95rem; opacity: .85; }
.icon-only { width: 38px; height: 38px; padding: 0; justify-content: center; font-family: Georgia, serif; font-style: italic; font-weight: 700; }

/* STAGE */
.stage {
  position: relative; z-index: 2;
  height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.8vh, 18px);
  padding: 72px 16px max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.kicker {
  font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted);
  text-shadow: 0 1px 8px #000;
}
.title {
  font-family: var(--bn); font-weight: 800; line-height: .82;
  font-size: min(17vw, 18vh);
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 6px 30px #000a, 0 2px 0 #0004;
  margin-bottom: clamp(4px, 1.5vh, 16px);
  letter-spacing: -.01em;
}
.title span:last-child { color: var(--gold); }
/* wide tracking splits Bengali letters from their vowel signs */
html:not([lang="en"]) .kicker { font-family: var(--bn); font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
/* "Sharodiya" in Latin letters runs much wider than the Bengali word */
html[lang="en"] .title { font-size: min(13vw, 16vh); line-height: .9; letter-spacing: 0; }

/* MOOD PILL */
.mood {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 600; font-size: .92rem; transition: border-color .2s;
}
.mood-state {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px; background: #ffffff1f; color: var(--muted);
}
.mood-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.mood-bars i { width: 3px; height: 5px; border-radius: 2px; background: var(--muted); }
.mood[aria-pressed="true"] { border-color: #f2b84b88; }
.mood[aria-pressed="true"] .mood-state { background: var(--gold); color: #2a1406; }
.mood[aria-pressed="true"] .mood-bars i { background: var(--gold); animation: beat .42s infinite ease-in-out alternate; }
.mood[aria-pressed="true"] .mood-bars i:nth-child(2) { animation-delay: -.14s; }
.mood[aria-pressed="true"] .mood-bars i:nth-child(3) { animation-delay: -.28s; }
@keyframes beat { from { height: 4px; } to { height: 14px; } }

/* CARDS */
.card {
  width: min(560px, 100%);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 20px; text-align: left;
  box-shadow: 0 18px 50px #0007;
}
.fact-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px;
  width: min(520px, 100%);
  border-left: 3px solid var(--gold);
}
.fact-badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sindoor), #b3241a);
  font-family: var(--bn); font-weight: 800; font-size: 1.4rem;
}
.fact-body { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.fact-body strong { font-size: .9rem; }
.fact-body span {
  font-size: .8rem; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .3s;
}
.fact-body span.fade { opacity: 0; }
.cta {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px;
  background: var(--gold); color: #2a1406; font-weight: 700; font-size: .82rem;
  transition: transform .15s, filter .2s;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: scale(.96); }

/* PLAYER */
.player { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; }
.disc {
  --c: var(--sindoor);
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle, var(--c) 0 34%, transparent 35%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
  box-shadow: 0 0 0 2px #ffffff22, 0 6px 16px #0008;
  animation: spin 4s linear infinite; animation-play-state: paused;
}
.disc span { font-family: var(--bn); font-weight: 800; font-size: 1rem; color: #fff; line-height: 1; padding-top: 3px; }
.player[data-state="playing"] .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-mid { flex: 1; min-width: 0; }
.p-title { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { font-size: .78rem; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { display: flex; align-items: center; gap: 10px; }
.t { font: 500 .72rem/1 ui-monospace, "SF Mono", Consolas, monospace; color: var(--muted); min-width: 34px; }
.t:last-child { text-align: right; }
.track { flex: 1; height: 5px; border-radius: 99px; background: #ffffff26; cursor: pointer; position: relative; }
.track::before { content: ""; position: absolute; inset: -8px 0; }
.fill { height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width .4s linear; }
.p-ctrl { display: flex; align-items: center; gap: 8px; }
.round {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff12; border: 1px solid var(--line); transition: background .2s, transform .15s;
}
.round:hover { background: #ffffff24; }
.round:active { transform: scale(.94); }
.round svg { width: 16px; height: 16px; fill: currentColor; }
.round.big {
  width: 54px; height: 54px; background: var(--teal); border: 3px solid #ffffff55; color: #04241f;
  box-shadow: 0 0 0 4px #1fc7b033, 0 6px 20px #1fc7b055;
}
.round.big:hover { background: #2ad8c0; }
.round.big svg { width: 22px; height: 22px; }
.i-pause { display: none; }
.player[data-state="playing"] .i-pause { display: block; }
.player[data-state="playing"] .i-play { display: none; }
.player[data-state="loading"] .round.big { animation: ring 1s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px #1fc7b011; } }

/* WIDGETS */
.scrim { position: fixed; inset: 0; z-index: 9; background: #0006; backdrop-filter: blur(3px); animation: fade .2s; }
.widget {
  position: fixed; z-index: 10;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px)); max-height: min(78dvh, 680px);
  display: flex; flex-direction: column;
  background: #1a0e0cf2; border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px #000c;
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.widget header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.widget h2 { font-size: 1.15rem; font-weight: 700; }
.bn-sub { font-family: var(--bn); font-weight: 500; color: var(--gold); font-size: 1rem; margin-left: 6px; }
.x { width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; color: var(--muted); background: #ffffff10; }
.x:hover { color: var(--text); background: #ffffff20; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  border: 1px solid var(--line); color: var(--muted); transition: all .15s;
}
.chip:hover { color: var(--text); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--text); color: #1a0e0c; border-color: var(--text); }
.w-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 10px; }
.vol { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.vol input { width: 110px; accent-color: var(--teal); }

.list { list-style: none; overflow-y: auto; padding: 4px 12px 16px; overscroll-behavior: contain; }
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-thumb { background: #ffffff22; border-radius: 9px; }

.song {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 12px; cursor: pointer; transition: background .15s;
}
.song:hover { background: #ffffff0d; }
.song.on { background: #1fc7b01f; }
.song .mini {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--bn); font-weight: 800; font-size: .9rem; color: #fff;
  background:
    radial-gradient(circle, var(--c) 0 38%, transparent 39%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
}
.song-t { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-t em { font-family: var(--bn); font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.song-a { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-r { font: .74rem ui-monospace, Consolas, monospace; color: var(--muted); }
.song.on .song-r { color: var(--teal); }

.spot { display: block; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; }
.spot:hover { background: #ffffff0d; }
.spot-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.spot h3 { font-size: .95rem; font-weight: 700; }
.spot-area { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.spot p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.spot-metro { font-size: .72rem; color: var(--teal); margin-top: 4px; }

.facts { counter-reset: f; }
.facts li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 8px; font-size: .88rem; color: #f3e6d6; border-bottom: 1px solid #ffffff10; }
.facts li::before { content: counter(f, decimal-leading-zero); font-weight: 800; color: var(--sindoor); }
.facts li:last-child { border: 0; }

.about { padding: 0 20px 20px; overflow-y: auto; font-size: .88rem; color: #f3e6d6; }
.about p { margin-bottom: 10px; }
.about h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 14px 0 6px; }
.about ul { padding-left: 18px; color: var(--muted); font-size: .8rem; display: grid; gap: 6px; }
.keys { color: var(--muted); font-size: .8rem; }
kbd { font: 600 .72rem ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 5px; background: #ffffff1a; border: 1px solid var(--line); }

/* hidden audio-only YouTube engine */
.yt-host { position: fixed; left: 0; bottom: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; z-index: -1; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .top-nav .lbl { display: none; }
  .top-nav button.glass-pill { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .top-nav { gap: 6px; }
  .brand-en { display: none; }
  .player { flex-wrap: wrap; gap: 12px; }
  .p-mid { flex-basis: calc(100% - 74px); }
  .p-ctrl { width: 100%; justify-content: center; gap: 18px; }
  .fact-card .cta { padding: 8px 12px; }
}
@media (max-width: 460px) {
  .brand { display: none; }
  .top { justify-content: flex-end; }
}
@media (max-height: 640px) {
  .fact-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- HERO ACTIONS ---------- */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-pandals { padding-right: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 #1fc7b0aa; animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px #1fc7b000; } 100% { box-shadow: 0 0 0 0 #1fc7b000; } }
.hero-card { padding-right: 16px; }
.is-dashami .hero-card { border-color: var(--gold); background: #3a2208d9; animation: glow 2s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 22px #f2b84b66; } }

/* ---------- PANDAL WIDGET ---------- */
#w-pandals { max-height: min(84dvh, 760px); }
.spot-tools { display: flex; align-items: center; gap: 8px; padding: 0 20px 10px; }
.passport { font-size: .8rem; font-weight: 600; color: var(--gold); padding: 5px 11px; border-radius: 999px; background: #f2b84b1a; border: 1px solid #f2b84b40; }
#spotSort {
  margin-left: auto; font: inherit; font-size: .8rem; color: var(--text);
  background: #ffffff12; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
}
#spotSort option { background: #1a0e0c; }

.spot { display: block; padding: 14px; border-radius: 16px; margin-bottom: 8px; background: #ffffff06; border: 1px solid #ffffff12; position: relative; }
.spot:hover { background: #ffffff09; }
.spot.seen { border-color: #f2b84b40; }
.spot.seen::after {
  content: "✓"; position: absolute; top: -8px; left: -6px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #2a1406; font-weight: 800; font-size: .8rem; transform: rotate(-12deg);
}
.spot-top { align-items: center; }
.spot h3 { font-family: var(--bn); font-size: 1.05rem; }
.spot-area { display: block; text-transform: none; letter-spacing: 0; font-size: .74rem; color: var(--teal); margin-top: 1px; white-space: normal; }
.spot p { margin-top: 6px; }

.like {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--line); color: var(--muted); transition: all .15s;
}
.like:hover { color: var(--text); }
.like.on { color: #ff5a7a; border-color: #ff5a7a66; background: #ff5a7a1a; }
.like:active { transform: scale(.92); }

.crowd { margin-top: 8px; font-size: .78rem; color: var(--muted); padding: 6px 10px; border-radius: 10px; background: #ffffff08; }
.crowd b { font-weight: 700; }
.crowd.lvl-1 { background: #2ecc7120; color: #8ff0b6; }
.crowd.lvl-2 { background: #f1c40f1f; color: #f8e08a; }
.crowd.lvl-3 { background: #e67e221f; color: #f6b97a; }
.crowd.lvl-4 { background: #e74c3c24; color: #ff9b8f; }

.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.act {
  padding: 6px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; text-decoration: none;
  color: var(--text); background: #ffffff10; border: 1px solid var(--line); transition: background .15s;
}
.act:hover { background: #ffffff1c; }
.act[aria-pressed="true"] { background: #1fc7b026; border-color: #1fc7b066; color: #9ff3e6; }
.act[aria-expanded="true"] { background: #ffffff26; }

.report { margin-top: 10px; padding: 10px; border-radius: 12px; background: #00000030; }
.report > span { font-size: .8rem; font-weight: 600; display: block; margin-bottom: 8px; }
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.levels button { padding: 9px 8px; border-radius: 10px; font-size: .8rem; font-weight: 600; text-align: left; border: 1px solid var(--line); }
.levels .lvl-1 { background: #2ecc7118; } .levels .lvl-2 { background: #f1c40f18; }
.levels .lvl-3 { background: #e67e2218; } .levels .lvl-4 { background: #e74c3c1c; }
.levels button:hover { filter: brightness(1.3); }

.route-bar {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 10px 10px 10px 14px;
  border-radius: 14px; background: #1fc7b01f; border: 1px solid #1fc7b055; font-size: .85rem; font-weight: 600;
}
.route-bar #clearRoute { margin-left: auto; }

/* ---------- BIJOYA CARD ---------- */
#w-card { width: min(720px, calc(100vw - 24px)); }
.card-maker { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px; padding: 4px 20px 20px; overflow-y: auto; }
#cardCanvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 10px 30px #0008; }
.card-form { display: flex; flex-direction: column; gap: 14px; }
.card-form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.card-form input {
  font: inherit; font-family: var(--bn); font-size: 1rem; color: var(--text);
  background: #ffffff10; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none;
}
.card-form input:focus { border-color: var(--gold); }
.bg-picks { display: flex; gap: 8px; }
.bg-pick { width: 64px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid transparent; opacity: .7; }
.bg-pick[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.card-btns { display: flex; gap: 8px; margin-top: auto; }
.card-btns .cta { flex: 1; padding: 11px 16px; font-size: .9rem; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 14px;
  background: #fff8ef; color: #1a0e0c; font-weight: 600; font-size: .86rem; text-align: center;
  box-shadow: 0 10px 30px #0009; animation: pop-up .2s ease;
}
@keyframes pop-up { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 640px) {
  .card-maker { grid-template-columns: 1fr; }
  #cardCanvas { max-height: 36dvh; width: auto; justify-self: center; }
  .hero-actions .mood { font-size: .84rem; padding: 7px 9px 7px 13px; }
}
.route-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.route-links .cta { text-decoration: none; padding: 8px 13px; }
@media (max-width: 640px) { .route-bar { flex-wrap: wrap; } .route-links { width: 100%; justify-content: stretch; } .route-links .cta { flex: 1; text-align: center; } }

/* ---------- 99-pandal list: search + empty state ---------- */
.spot-search { padding: 0 20px 10px; }
.spot-search input {
  width: 100%; font: inherit; font-family: var(--bn); font-size: .92rem; color: var(--text);
  background: #ffffff10; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 9px 34px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8d8c6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; background-size: 16px;
}
.spot-search input:focus { border-color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: .9rem; }

/* ---------- usage guide + first-visit hint ---------- */
.guide-btn { font-family: var(--sans); font-style: normal; }
.hint {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 4px; border-radius: 999px;
  background: #f2b84b; color: #2a1406; box-shadow: 0 8px 24px #0006; animation: pop-up .3s ease;
}
.hint-open { padding: 5px 10px; font-weight: 700; font-size: .82rem; color: inherit; }
.hint-x { width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; color: inherit; background: #00000014; }
.hint-x:hover { background: #00000026; }

#w-guide { width: min(500px, calc(100vw - 24px)); }
.guide { padding: 0 20px 20px; overflow-y: auto; }
.guide-lead { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 12px; border-radius: 14px; background: #ffffff08; border: 1px solid #ffffff12;
  font-size: .86rem; color: #f3e6d6; line-height: 1.45;
}
.steps li b { color: var(--text); }
.step-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; background: #f2b84b22; }
.guide-more { color: var(--muted); font-size: .8rem; margin: 14px 2px; }
.guide-go { width: 100%; padding: 12px; font-size: .92rem; }

/* Turnstile only takes space when Cloudflare needs the visitor to tick a box */
.turnstile { display: flex; justify-content: center; }
.turnstile:empty { display: none; }
.turnstile > * { margin: 0 12px 10px; }

/* Turnstile box: hidden unless Cloudflare asks for a tick, then floats above the panels */
.turnstile { display: none; }
.ts-wrap {
  position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 16px; background: #1a0e0cf5; border: 1px solid #f2b84b66;
  box-shadow: 0 16px 40px #000c; max-width: calc(100vw - 24px);
}
.ts-wrap.show { display: flex; animation: pop-up .2s ease; }
.ts-wrap p { font-size: .85rem; font-weight: 600; color: var(--text); text-align: center; }
