/* Kodi Junction website: the game's night-maroon and gold, on every page. */
:root {
  --night: #14060f;
  --maroon: #4a0d1f;
  --panel: #26101f;
  --panel-2: #321526;
  --line: rgba(246, 199, 68, 0.28);
  --gold: #f6c744;
  --gold-light: #ffe9a8;
  --text: #fff4dc;
  --soft: rgba(255, 244, 220, 0.74);
  --crimson: #c62b3a;
  --teal: #0f9d8c;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  background-image:
    radial-gradient(circle at 50% -10%, #6b1430 0, transparent 55%),
    radial-gradient(circle at 100% 40%, rgba(90, 15, 36, 0.55) 0, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 "Baloo Bhai 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 6, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-light); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--gold); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); background: rgba(246, 199, 68, 0.1); }
@media (max-width: 640px) {
  .nav .optional { display: none; }
  .brand span { font-size: 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; color: #fff; border: 0; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); }
.btn-play { background: var(--crimson); box-shadow: 0 5px 0 #7d1822, 0 10px 28px rgba(198, 43, 58, 0.35); }
.btn-ghost { background: transparent; color: var(--gold-light); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 6px; }
.gujarati { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.1; margin: 0; color: var(--gold); text-shadow: 0 4px 22px rgba(246, 199, 68, 0.35); font-weight: 800; }
.hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.2; margin: 8px 0 14px; }
.hero .lead { color: var(--soft); font-size: 1.12rem; margin: 0 0 26px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; color: var(--soft); }
.hero-shot { justify-self: center; width: min(340px, 100%); filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)); }
.hero-shot img { border-radius: 26px; border: 2px solid var(--line); }
@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .actions, .chips { justify-content: center; }
  .hero-shot { width: min(300px, 82%); }
}

/* Sections */
section { padding: 48px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--gold-light); }
.section-sub { text-align: center; color: var(--soft); margin: 0 auto 30px; max-width: 38em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--gold-light); }
.card p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* How to play */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.throws { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.throw { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; }
.throw .shells { display: flex; justify-content: center; gap: 3px; margin-bottom: 8px; }
.shell { width: 11px; height: 17px; border-radius: 50%; background: #f3e6c8; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15); position: relative; }
.shell.open::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: #3a1d12; border-radius: 2px; }
.throw strong { display: block; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.throw span { font-size: 0.8rem; color: var(--soft); }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 44px; position: relative; color: var(--soft); }
.rules li::before { content: "✦"; position: absolute; left: 16px; top: 11px; color: var(--gold); }
.rules strong { color: var(--text); }
.note { color: var(--soft); font-size: 0.95rem; margin-top: 14px; }

/* Screenshot strip */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-color: var(--maroon) transparent; }
.shots img { width: 220px; flex: none; border-radius: 18px; border: 1.5px solid var(--line); scroll-snap-align: center; }

/* Closing call to action */
.cta { text-align: center; background: linear-gradient(135deg, #5a0f24, #2b0b1c); border: 1px solid var(--line); border-radius: 24px; padding: 40px 20px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--gold-light); }
.cta .section-sub { margin-bottom: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--soft); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold-light); }

/* Privacy policy and terms */
.doc { max-width: 760px; margin: 36px auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: 34px clamp(18px, 5vw, 44px); }
.doc h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; color: var(--gold); }
.doc h2 { margin: 30px 0 8px; font-size: 1.3rem; color: var(--gold-light); padding-top: 14px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--soft); }
.doc p:first-of-type { display: inline-block; background: rgba(246, 199, 68, 0.12); color: var(--gold-light); border-radius: 999px; padding: 2px 12px; font-size: 0.92rem; margin-top: 4px; }
.doc a { word-break: break-word; }
.doc-switch { max-width: 760px; margin: 0 auto 8px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.doc-switch a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.doc-switch a[aria-current="page"] { background: var(--gold); color: var(--night); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
