/* Jhandi Burja landing: the game room's festival night, turned into a page.
   Colours come from the Flutter room (festive_background.dart, game_mat.dart,
   chip_rack.dart). The page CSP allows no inline styles or scripts. */

:root {
    --night: #0a0a26;
    --plum: #231036;
    --wine: #3a0b19;
    --felt: #8f1727;
    --felt-deep: #5d0d1a;
    --gold: #d4a72c;
    --gold-soft: #ffe082;
    --saffron: #ffd166;
    --cream: #fff4d1;
    --ivory: #f7f3ea;
    --pink: #ff6fb5;
    --mint: #64ffda;
    --lime: #b2ff59;
    --orange: #ff9e40;
    --chip-red: #c62828;
    --chip-blue: #1565c0;
    --chip-green: #2e7d32;
    --ink: #1b0f24;
    --text: #fff8ec;
    --muted: #d9c9e6;
    --radius: 28px;
    --display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--display);
    font-size: 18px;
    line-height: 1.5;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

em {
    font-style: normal;
    color: var(--saffron);
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--saffron);
    color: var(--ink);
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

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

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(180deg, var(--saffron), #f5b73b);
    color: var(--ink);
    box-shadow: 0 4px 0 #b9811b, 0 10px 24px rgba(255, 209, 102, .3);
}

.btn-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 16px;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-buttons a {
    border-radius: 12px;
    transition: transform .2s ease, filter .2s ease;
}

.store-buttons a:hover {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 10px 18px rgba(255, 209, 102, .35));
}

.store-buttons img {
    width: 169px;
    height: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 38, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 224, 130, .14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand img {
    width: 110px;
    height: auto;
}

.header-nav {
    display: flex;
    gap: 28px;
    font-weight: 800;
    font-size: 16px;
}

.header-nav a {
    text-decoration: none;
    color: var(--muted);
}

.header-nav a:hover {
    color: var(--saffron);
}

/* Hero: night sky, kites, fireworks, diyas */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 140px;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 111, 181, .18), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(217, 30, 54, .25), transparent 45%),
        linear-gradient(180deg, var(--night) 0%, var(--plum) 55%, var(--wine) 100%);
}

.sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stars {
    position: absolute;
    inset: 0 0 30%;
    background-image:
        radial-gradient(1.6px 1.6px at 8% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 22% 32%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 37% 8%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 48% 26%, #fff 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 63% 14%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 74% 40%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 88% 9%, #fff 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 95% 30%, #fff 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 15% 52%, #fff 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 56% 48%, #fff 50%, transparent 51%);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.kite {
    position: absolute;
    width: 34px;
    height: 34px;
    transform: rotate(45deg);
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .28) 0 50%, transparent 50%), var(--kite);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    animation: kite-drift 14s ease-in-out infinite;
}

.kite::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, .85);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.kite-red { --kite: #e53935; top: 3%; left: 2%; }
.kite-yellow { --kite: #fdd835; top: 5%; left: 52%; width: 26px; height: 26px; animation-delay: -4s; animation-duration: 11s; }
.kite-green { --kite: #43a047; top: 18%; right: 5%; width: 40px; height: 40px; animation-delay: -7s; animation-duration: 17s; }
.kite-blue { --kite: #1e88e5; top: 34%; left: 40%; width: 24px; height: 24px; animation-delay: -2s; animation-duration: 12s; }

.firework {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    color: var(--fw);
    background: currentColor;
    box-shadow:
        0 -44px currentColor, 31px -31px currentColor, 44px 0 currentColor, 31px 31px currentColor,
        0 44px currentColor, -31px 31px currentColor, -44px 0 currentColor, -31px -31px currentColor,
        17px -41px currentColor, 41px -17px currentColor, 41px 17px currentColor, 17px 41px currentColor,
        -17px 41px currentColor, -41px 17px currentColor, -41px -17px currentColor, -17px -41px currentColor;
    animation: firework-burst 3.4s ease-out infinite;
}

.firework-gold { --fw: var(--saffron); top: 14%; left: 30%; }
.firework-pink { --fw: var(--pink); top: 8%; right: 22%; animation-delay: -1.3s; animation-duration: 4.3s; }
.firework-mint { --fw: var(--mint); top: 40%; right: 8%; animation-delay: -2.6s; animation-duration: 5.6s; }

.diyas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.diyas i {
    position: relative;
    width: 40px;
    height: 16px;
    border-radius: 0 0 40px 40px;
    background: #a0461f;
    border-top: 3px solid #e07a3f;
}

.diyas i::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 14px;
    height: 22px;
    margin-left: -7px;
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    background: linear-gradient(180deg, #fff59d, #ff9800);
    transform-origin: 50% 100%;
    animation: diya-flicker 1.4s ease-in-out infinite alternate;
}

.diyas i::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 128, .5), rgba(255, 145, 0, .14) 40%, transparent 70%);
}

.diyas i:nth-child(2n)::before { animation-delay: -.5s; }
.diyas i:nth-child(3n)::before { animation-delay: -.9s; animation-duration: 1.1s; }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 209, 102, .14);
    border: 1px solid rgba(255, 209, 102, .4);
    color: var(--saffron);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .02em;
}

.hero h1 {
    margin: 20px 0 18px;
    display: grid;
    line-height: .95;
}

.h1-nepali {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--pink);
    margin-bottom: 8px;
}

.h1-main {
    font-size: clamp(64px, 11vw, 132px);
    font-weight: 900;
    letter-spacing: -.04em;
    text-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}

.h1-main em {
    display: inline-block;
    background: linear-gradient(180deg, #fff2a8, var(--saffron) 45%, var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h1-sub {
    margin-top: 12px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--mint);
    letter-spacing: -.01em;
}

.hero-lede {
    max-width: 30ch;
    margin-bottom: 28px;
    font-size: clamp(19px, 2vw, 22px);
    color: var(--muted);
}

.hero-fineprint {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 248, 236, .62);
}

/* Hero stage: rolling dice over the crimson mat */

.hero-stage {
    position: relative;
    padding-top: 74px;
}

.roll-dice {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.roll-dice span {
    width: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 12px;
    background: var(--ivory);
    box-shadow: 0 6px 0 #c9bfa8, 0 14px 22px rgba(0, 0, 0, .45);
    animation: dice-tumble 4.2s cubic-bezier(.3, .7, .4, 1) infinite;
}

.roll-dice span:nth-child(2) { animation-delay: .08s; }
.roll-dice span:nth-child(3) { animation-delay: .16s; }
.roll-dice span:nth-child(4) { animation-delay: .24s; }
.roll-dice span:nth-child(5) { animation-delay: .32s; }
.roll-dice span:nth-child(6) { animation-delay: .4s; }

.roll-dice span:nth-child(odd) {
    box-shadow: 0 6px 0 #c9bfa8, 0 0 0 3px var(--saffron), 0 14px 26px rgba(255, 209, 102, .45);
}

.mat {
    position: relative;
    padding: 26px 22px 22px;
    border: 4px solid var(--gold);
    border-radius: 34px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
        linear-gradient(160deg, var(--felt), var(--felt-deep));
    box-shadow: 0 30px 60px rgba(5, 3, 22, .6), inset 0 0 0 10px rgba(93, 13, 26, .5);
    transform: rotate(2deg);
}

.mat::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(255, 224, 130, .55);
    border-radius: 26px;
    pointer-events: none;
}

.mat-title {
    margin-bottom: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.mat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mat-tile {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 8px 8px;
    border: 2px solid rgba(255, 224, 130, .5);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.mat-tile img {
    width: 72%;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
}

.mat-tile b {
    font-size: 14px;
    color: var(--cream);
}

.tile-jhandi {
    border-color: var(--saffron);
    background: rgba(255, 224, 130, .2);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, .35), 0 0 30px rgba(255, 213, 79, .55);
    animation: winner-glow 4.2s ease-in-out infinite;
}

.chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px dashed #fff;
    background: var(--chip);
    color: #fff;
    font-style: normal;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 8px 14px rgba(0, 0, 0, .3);
}

.chip-white { --chip: #f4f1e8; color: #3a2a12; border-color: var(--chip-red); }
.chip-red { --chip: var(--chip-red); }
.chip-blue { --chip: var(--chip-blue); transform: translateY(-8px); box-shadow: 0 0 0 3px #ffc94a, 0 12px 22px rgba(255, 201, 74, .5); }
.chip-green { --chip: var(--chip-green); }
.chip-black { --chip: #212121; }

.bubble {
    position: absolute;
    z-index: 4;
    padding: 10px 16px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
    animation: bob 3.2s ease-in-out infinite;
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: inherit;
    transform: rotate(45deg);
    border-radius: 3px;
}

.bubble-one { top: 110px; left: -36px; background: var(--saffron); }
.bubble-one::after { left: 24px; }
.bubble-two { bottom: 10px; right: -20px; background: var(--mint); animation-delay: -1.6s; }
.bubble-two::after { right: 28px; }

.win-burst {
    position: absolute;
    z-index: 4;
    top: 46%;
    left: 50%;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--chip-green);
    border: 3px solid var(--lime);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    transform: translate(-50%, 0);
    animation: win-pop 4.2s ease-out infinite;
}

/* Sections */

.section {
    position: relative;
    padding: 96px 0;
}

.section-title {
    margin-bottom: 44px;
    text-align: center;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.03em;
}

/* Steps */

.steps {
    background: var(--night);
}

.step-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 34px 28px 30px;
    border-radius: var(--radius);
    color: var(--ink);
    counter-increment: step;
    transition: transform .25s ease;
}

.step::before {
    content: counter(step);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    opacity: .2;
}

.step:hover {
    transform: rotate(0) translateY(-6px);
}

.step-pick { background: linear-gradient(160deg, #ffe08a, var(--saffron)); transform: rotate(-2deg); box-shadow: 0 10px 0 #c9922b; }
.step-roll { background: linear-gradient(160deg, #ff9ccc, var(--pink)); transform: rotate(1.5deg); box-shadow: 0 10px 0 #b8407c; }
.step-cheer { background: linear-gradient(160deg, #a6ffec, var(--mint)); transform: rotate(-1deg); box-shadow: 0 10px 0 #2fae93; }

.step-emoji {
    display: block;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.step p {
    font-size: 19px;
    font-weight: 700;
    opacity: .85;
}

/* Symbols */

.symbols {
    background:
        radial-gradient(circle at 50% 0, rgba(255, 111, 181, .16), transparent 55%),
        var(--plum);
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.symbol {
    display: grid;
    justify-items: center;
    padding: 18px 12px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--felt), var(--felt-deep));
    border: 3px solid var(--edge, var(--gold));
    box-shadow: 0 8px 0 rgba(0, 0, 0, .3);
    transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.symbol:hover {
    transform: translateY(-8px) rotate(-4deg);
}

.symbol:nth-child(even):hover {
    transform: translateY(-8px) rotate(4deg);
}

.symbol img {
    width: 100%;
    max-width: 120px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.symbol b {
    font-size: 22px;
    font-weight: 900;
    color: var(--cream);
}

.symbol small {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-soft);
    opacity: .8;
}

.symbol-paan { --edge: var(--pink); }
.symbol-burja { --edge: var(--saffron); }
.symbol-surat { --edge: var(--mint); }
.symbol-itta { --edge: var(--orange); }
.symbol-jhandi { --edge: var(--lime); }
.symbol-chidi { --edge: #8ab4ff; }

/* Rules */

.rules {
    background: linear-gradient(180deg, var(--plum), var(--wine));
}

.rules-card {
    display: grid;
    justify-items: center;
    text-align: center;
}

.rules-card .section-title {
    margin-bottom: 36px;
}

.equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 34px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .06);
    border: 2px solid rgba(255, 224, 130, .3);
}

.equation i {
    font-style: normal;
    font-size: 48px;
    font-weight: 900;
    color: var(--muted);
}

.eq-chip {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 7px dashed #fff;
    background: var(--chip-blue);
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 6px 0 rgba(0, 0, 0, .3);
}

.eq-dice {
    display: flex;
    gap: 8px;
}

.eq-dice img {
    width: 70px;
    height: 70px;
    padding: 4px;
    border-radius: 16px;
    background: var(--ivory);
    box-shadow: 0 0 0 3px var(--saffron), 0 6px 0 #c9bfa8;
}

.eq-dice img:nth-child(2) { transform: rotate(-8deg); }
.eq-dice img:nth-child(3) { transform: rotate(6deg); }

.eq-total {
    font-size: clamp(56px, 8vw, 84px);
    font-weight: 900;
    line-height: 1;
    color: var(--lime);
    text-shadow: 0 0 30px rgba(178, 255, 89, .45);
}

.rule-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.rule-pills li {
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 17px;
}

.rule-pills b {
    margin-right: 6px;
    font-weight: 900;
}

.rule-win {
    background: rgba(46, 125, 50, .35);
    border: 2px solid var(--lime);
}

.rule-lose {
    background: rgba(198, 40, 40, .25);
    border: 2px solid #ff7a8a;
}

.points-badge {
    margin-top: 28px;
    padding: 12px 20px;
    border-radius: 16px;
    border: 2px dashed var(--saffron);
    color: var(--cream);
    font-weight: 800;
    font-size: 16px;
}

.points-badge span {
    color: var(--saffron);
}

/* Party: features and the shout marquee */

.party {
    padding-bottom: 72px;
    background: var(--wine);
    overflow: hidden;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto 56px;
    padding: 0;
    list-style: none;
}

.feature-pills li {
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .14);
    font-weight: 800;
    font-size: 17px;
    transition: background .2s ease, transform .2s ease;
}

.feature-pills li:hover {
    background: rgba(255, 209, 102, .18);
    transform: translateY(-3px);
}

.marquee {
    padding: 18px 0;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--saffron));
    transform: rotate(-2deg);
    margin-inline: -20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee 32s linear infinite;
}

.marquee-track li {
    flex: none;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    white-space: nowrap;
}

/* Download */

.download {
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 209, 102, .2), transparent 55%),
        linear-gradient(180deg, var(--wine), var(--night));
}

.download-card {
    position: relative;
    display: grid;
    justify-items: center;
    max-width: 860px;
    padding: 84px 32px 56px;
    border: 4px solid var(--gold);
    border-radius: 40px;
    text-align: center;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
        linear-gradient(160deg, var(--felt), var(--felt-deep));
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.download-dice {
    position: absolute;
    top: -46px;
    display: flex;
    gap: 14px;
}

.download-dice img {
    width: 84px;
    height: 84px;
    padding: 6px;
    border-radius: 18px;
    background: var(--ivory);
    box-shadow: 0 8px 0 #c9bfa8, 0 18px 28px rgba(0, 0, 0, .45);
    animation: bob 3s ease-in-out infinite;
}

.download-dice img:nth-child(1) { transform: rotate(-10deg); }
.download-dice img:nth-child(2) { animation-delay: -1s; }
.download-dice img:nth-child(3) { transform: rotate(9deg); animation-delay: -2s; }

.download h2 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
}

.download p {
    margin: 16px 0 30px;
    font-size: 20px;
    font-weight: 700;
    color: var(--cream);
}

.download .store-buttons {
    justify-content: center;
}

/* FAQ */

.faq {
    background: var(--night);
}

.faq-shell {
    max-width: 820px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq details {
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    border: 2px solid rgba(255, 255, 255, .1);
    transition: border-color .2s ease;
}

.faq details[open] {
    border-color: var(--saffron);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary span {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--saffron);
    color: var(--ink);
    font-size: 22px;
    transition: transform .2s ease;
}

.faq details[open] summary span {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 24px 22px;
    color: var(--muted);
}

/* Footer */

.site-footer {
    padding: 36px 0 44px;
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    color: rgba(255, 248, 236, .6);
}

.footer-inner img {
    width: 100px;
    height: auto;
}

/* Animations */

@keyframes twinkle {
    from { opacity: .45; }
    to { opacity: 1; }
}

@keyframes kite-drift {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 40px 14px; rotate: 10deg; }
}

@keyframes firework-burst {
    0% { transform: scale(.1); opacity: 0; }
    10% { opacity: 1; }
    60% { transform: scale(1.1); opacity: .9; }
    75%, 100% { transform: scale(1.25) translateY(8px); opacity: 0; }
}

@keyframes diya-flicker {
    from { transform: scaleY(.88) rotate(-3deg); }
    to { transform: scaleY(1.06) rotate(3deg); }
}

@keyframes dice-tumble {
    0% { transform: translateY(0) rotate(0); }
    8% { transform: translateY(-46px) rotate(200deg); }
    16% { transform: translateY(0) rotate(360deg); }
    20% { transform: translateY(-10px) rotate(370deg); }
    24%, 100% { transform: translateY(0) rotate(360deg); }
}

@keyframes winner-glow {
    0%, 22% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .2), 0 0 0 rgba(255, 213, 79, 0); }
    32%, 80% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .5), 0 0 34px rgba(255, 213, 79, .7); }
    100% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .2), 0 0 0 rgba(255, 213, 79, 0); }
}

@keyframes win-pop {
    0%, 24% { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
    32% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); }
    40%, 78% { opacity: 1; transform: translate(-50%, -14px) scale(1); }
    90%, 100% { opacity: 0; transform: translate(-50%, -30px) scale(1); }
}

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes marquee {
    to { transform: translateX(calc(-50% - 8px)); }
}

/* Responsive */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lede {
        margin-inline: auto;
    }

    .hero .store-buttons {
        justify-content: center;
    }

    .hero-stage {
        max-width: 480px;
        margin-inline: auto;
        width: 100%;
    }

    .symbol-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 17px;
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding: 36px 0 120px;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .step-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 18px;
        align-items: center;
        padding: 22px 22px;
    }

    .step-emoji {
        grid-row: span 2;
        margin: 0;
        font-size: 48px;
    }

    .step h3 {
        font-size: 30px;
    }

    .step p {
        font-size: 17px;
    }

    .step::before {
        font-size: 42px;
    }

    .roll-dice {
        gap: 6px;
    }

    .roll-dice span {
        width: 44px;
        height: 44px;
        padding: 4px;
        border-radius: 10px;
    }

    .hero-grid {
        gap: 72px;
    }

    .hero-stage {
        padding-top: 60px;
    }

    .mat {
        padding: 22px 14px 44px;
    }

    .mat-grid {
        gap: 8px;
    }

    .chip {
        width: 42px;
        height: 42px;
        border-width: 4px;
        font-size: 13px;
    }

    .bubble {
        font-size: 13px;
        padding: 8px 12px;
    }

    .bubble-one {
        top: auto;
        bottom: -14px;
        left: -4px;
    }

    .bubble-two {
        right: -4px;
        bottom: -14px;
    }

    .symbol-grid {
        gap: 12px;
    }

    .symbol b {
        font-size: 18px;
    }

    .equation {
        gap: 10px;
        padding: 20px 16px;
    }

    .equation i {
        font-size: 32px;
    }

    .eq-chip {
        width: 64px;
        height: 64px;
        border-width: 5px;
        font-size: 22px;
    }

    .eq-dice img {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .download-card {
        padding: 70px 18px 40px;
    }

    .download-dice img {
        width: 64px;
        height: 64px;
    }

    .faq summary {
        padding: 18px;
        font-size: 17px;
    }

    .faq details p {
        padding: 0 18px 18px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .store-buttons img {
        width: 150px;
    }

    .roll-dice span {
        width: 38px;
        height: 38px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .win-burst {
        opacity: 1;
        transform: translate(-50%, -14px);
    }
}
