/* ==========================================================================
   Matka 3D — intro animation (pot opens, tokens fly out) + 3D result cards.
   All motion is switched off under prefers-reduced-motion at the bottom.
   ========================================================================== */

:root {
    --bg: #120b1f;
    --bg2: #1b1030;
    --panel: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .12);
    --text: #f4eefe;
    --dim: #b3a6cd;
    --gold: #f5b301;
    --gold-2: #ffd76a;
    --clay: #b4542a;
    --clay-2: #8a3b1b;
    --clay-3: #d97742;
    --teal: #2dd4bf;
    --rose: #fb7185;
    --wa: #25d366;
}

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

body {
    background: radial-gradient(120% 80% at 50% 0%, var(--bg2), var(--bg) 70%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ==========================================================================
   Intro: the matka
   ========================================================================== */

.intro {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(70% 60% at 50% 45%, #2a1746, #0d0717 75%);
    perspective: 1000px;
    cursor: pointer;
}

.intro.done { animation: introOut .7s ease forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.intro-hint { position: absolute; bottom: 34px; color: var(--dim); font-size: 13px; letter-spacing: .5px; }

/* Stage holds the pot so the tokens can fly relative to its mouth. */
.pot-stage { position: relative; width: 260px; height: 300px; transform-style: preserve-3d; }

.pot {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 200px;
    height: 190px;
    margin-left: -100px;
    transform-style: preserve-3d;
    animation: potShake 1s ease-in-out .15s 1;
}

@keyframes potShake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-4deg); }
    30% { transform: rotate(4deg); }
    45% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    80% { transform: rotate(-1.5deg); }
}

/* Clay body: rounded pot silhouette with a lit left edge. */
.pot-body {
    position: absolute;
    inset: 34px 0 0;
    background:
        radial-gradient(60% 45% at 32% 26%, rgba(255, 255, 255, .30), transparent 60%),
        linear-gradient(100deg, var(--clay-3) 0%, var(--clay) 42%, var(--clay-2) 100%);
    border-radius: 46% 46% 44% 44% / 34% 34% 58% 58%;
    box-shadow: inset -16px -12px 34px rgba(0, 0, 0, .45), 0 26px 44px rgba(0, 0, 0, .55);
}

/* Neck + rim */
.pot-neck {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 116px;
    height: 42px;
    margin-left: -58px;
    background: linear-gradient(100deg, var(--clay-3), var(--clay) 55%, var(--clay-2));
    border-radius: 50% 50% 30% 30% / 40% 40% 24% 24%;
    box-shadow: inset -8px -4px 16px rgba(0, 0, 0, .4);
}

/* Dark opening the tokens appear from. */
.pot-mouth {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 104px;
    height: 30px;
    margin-left: -52px;
    background: radial-gradient(60% 80% at 50% 40%, #1a0d06, #2c1509);
    border-radius: 50%;
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, .8);
}

/* Warm glow rising out of the mouth once the lid is off. */
.pot-glow {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 150px;
    height: 90px;
    margin-left: -75px;
    background: radial-gradient(50% 60% at 50% 80%, rgba(245, 179, 1, .75), transparent 70%);
    opacity: 0;
    filter: blur(6px);
    animation: glowUp .5s ease .95s forwards;
}

@keyframes glowUp { to { opacity: 1; } }

/* Decorative bands on the belly. */
.pot-band {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 9px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 106, .85), transparent);
    opacity: .85;
}

.pot-band.b1 { top: 92px; }
.pot-band.b2 { top: 116px; height: 5px; opacity: .55; }

/* Lid lifts, tilts and flies off. */
.pot-lid {
    position: absolute;
    top: 0;
    left: 50%;
    width: 132px;
    height: 34px;
    margin-left: -66px;
    background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #b57f00);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
    transform-origin: 50% 100%;
    animation: lidOff 1.1s cubic-bezier(.3, -0.4, .5, 1) .75s forwards;
}

.pot-lid::after {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    background: linear-gradient(140deg, var(--gold-2), #b57f00);
    border-radius: 50%;
}

@keyframes lidOff {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
    35%  { transform: translate3d(10px, -70px, 90px) rotate(18deg); }
    100% { transform: translate3d(120px, -240px, 220px) rotate(120deg); opacity: 0; }
}

/* ---------------------------------------------------------- flying tokens */

.token-layer { position: absolute; top: 26px; left: 50%; width: 0; height: 0; transform-style: preserve-3d; }

.token {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    background: radial-gradient(60% 60% at 34% 28%, #ffffff, var(--gold-2) 45%, var(--gold) 100%);
    border: 3px solid #fff3cf;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .5), inset 0 -6px 12px rgba(0, 0, 0, .22);
    color: #4a2c00;
    opacity: 0;
    animation: tokenFly 1.9s cubic-bezier(.2, .7, .3, 1) forwards;
}

.token b { font-size: 18px; font-weight: 800; line-height: 1; }
.token span { max-width: 60px; overflow: hidden; font-size: 8px; font-weight: 700; letter-spacing: .3px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

/* Each token gets its own --tx/--ty/--rot from the markup, so one keyframe
   set produces a different arc per game. */
@keyframes tokenFly {
    0%   { transform: translate3d(0, 20px, -60px) scale(.15) rotate(0deg); opacity: 0; }
    12%  { opacity: 1; }
    /* Peak of the arc — up, out and towards the viewer. */
    48%  { transform: translate3d(calc(var(--tx) * .6), calc(var(--ty) * 1.15), 90px) scale(1.14) rotate(calc(var(--rot) * .5)); opacity: 1; }
    78%  { transform: translate3d(var(--tx), var(--ty), 20px) scale(1) rotate(var(--rot)); opacity: 1; }
    /* Falls back down past the pot as it fades. */
    100% { transform: translate3d(var(--tx), calc(var(--ty) + 120px), -30px) scale(.8) rotate(calc(var(--rot) * 1.3)); opacity: 0; }
}

/* ==========================================================================
   Page
   ========================================================================== */

.page { opacity: 0; }
.page.show { animation: pageIn .8s ease forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(18, 11, 31, .78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }

/* Small pot icon that keeps spinning in the header. */
.brand-pot {
    width: 26px;
    height: 26px;
    background: linear-gradient(100deg, var(--clay-3), var(--clay-2));
    border-radius: 42% 42% 50% 50% / 32% 32% 60% 60%;
    box-shadow: inset -4px -3px 8px rgba(0, 0, 0, .45);
    animation: potSpin 6s linear infinite;
}

@keyframes potSpin { to { transform: rotateY(360deg); } }

.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { padding: 7px 13px; border-radius: 9px; color: var(--dim); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, .09); color: #fff; transform: translateY(-2px); }

/* hero */
.hero { position: relative; padding: 46px 16px 34px; text-align: center; perspective: 900px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }

.hero-date { margin-top: 12px; color: var(--dim); font-size: 14px; }
.hero-hindi { margin: 4px 0 14px; font-size: 15px; font-weight: 600; }
.hero-game { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: var(--gold-2); text-transform: uppercase; }

/* Result shown on a slowly rotating 3D coin. */
.coin { width: 168px; height: 168px; margin: 14px auto 0; perspective: 700px; }

.coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: coinSpin 7s linear infinite;
}

@keyframes coinSpin { to { transform: rotateY(360deg); } }

.coin-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(60% 60% at 34% 28%, #fff, var(--gold-2) 45%, var(--gold) 100%);
    border: 6px solid #fff3cf;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    color: #4a2c00;
    font-size: 62px;
    font-weight: 800;
    backface-visibility: hidden;
}

.coin-face.back { transform: rotateY(180deg); }

/* Waiting coin: no spin at all — a breathing halo carries the motion instead. */
.coin.is-waiting { position: relative; }

.coin.is-waiting::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 2px solid rgba(255, 215, 106, .55);
    border-radius: 50%;
    animation: haloOut 2.4s ease-out infinite;
}

@keyframes haloOut {
    0%   { transform: scale(.86); opacity: .9; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* Keeps the inherited `position: absolute; inset: 0` so the face stays a
   full circle — overriding it made the coin collapse to an ellipse. */
.coin-face.waiting {
    flex-direction: column;
    gap: 4px;
    background: radial-gradient(60% 60% at 34% 28%, #fff8e0, var(--gold-2) 48%, var(--gold) 100%);
    animation: coinBreathe 2.4s ease-in-out infinite;
}

@keyframes coinBreathe {
    50% { box-shadow: 0 18px 44px rgba(245, 179, 1, .5); }
}

.coin-face.waiting b { font-size: 24px; font-weight: 800; letter-spacing: 3px; }
.coin-face.waiting .hg { color: #6b4a00; }

/* ------------------------------------------------------- next result line */

.next-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.next-line .k { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.next-line .v { font-size: 14px; font-weight: 700; }
.next-line .cd { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 17px; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }




/* section heads */
.sec { margin-bottom: 44px; }
.sec-head { margin-bottom: 18px; text-align: center; }
.sec-head h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 800;
}

.sec-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58px;
    height: 3px;
    margin-left: -29px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border-radius: 3px;
}
.sec-head p { color: var(--dim); font-size: 14px; }

/* ------------------------------------------------------------ flip cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; perspective: 1400px; }

.flip {
    height: 190px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: calc(var(--i, 0) * 80ms);
}

.flip.in { opacity: 1; transform: none; }

.flip-in {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

/* Hover on desktop, tap on touch (JS toggles .flipped). */
.flip:hover .flip-in, .flip.flipped .flip-in { transform: rotateY(180deg); }

.face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: center;
    backface-visibility: hidden;
}

.face.front { background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); backdrop-filter: blur(8px); }
.face.back { background: linear-gradient(160deg, #3a1c5e, #241040); transform: rotateY(180deg); }

.f-name { font-size: 19px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.f-time { margin-top: 3px; color: var(--dim); font-size: 12px; font-weight: 600; }

.f-num { margin-top: 10px; font-size: 42px; font-weight: 800; line-height: 1; color: var(--gold-2); }
.f-hint { position: absolute; bottom: 12px; color: var(--dim); font-size: 11px; }
.f-label { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.f-prev { font-size: 32px; font-weight: 800; color: var(--teal); }
.f-link { margin-top: 12px; color: var(--gold-2); font-size: 12px; font-weight: 700; }

/* ==========================================================================
   Hourglass waiting mark — the sand moves, the glass never rotates, so the
   shape stays upright and legible.
   ========================================================================== */

.hg { display: inline-flex; color: var(--gold-2); }
.wait-ico { margin-top: 10px; }

.hg-glass { opacity: .85; }

/* Top chamber empties... */
.hg-top {
    transform-origin: 12px 5.2px;
    animation: sandTop 3.2s ease-in-out infinite;
}

/* ...and the bottom fills at the same pace. */
.hg-bot {
    transform-origin: 12px 18.8px;
    animation: sandBot 3.2s ease-in-out infinite;
}

@keyframes sandTop {
    0%        { transform: scaleY(1); }
    82%, 100% { transform: scaleY(.06); }
}

@keyframes sandBot {
    0%        { transform: scaleY(.06); }
    82%, 100% { transform: scaleY(1); }
}

/* A grain falling between the chambers. */
.hg-drop { animation: sandDrop .85s linear infinite; }

@keyframes sandDrop {
    0%   { opacity: 0; transform: translateY(-2px); }
    35%  { opacity: .95; }
    100% { opacity: 0; transform: translateY(2px); }
}

/* ---------------------------------------------------------------- panel */

.panel { padding: 26px 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: 20px; text-align: center; backdrop-filter: blur(8px); }
.panel h3 { margin-bottom: 4px; font-size: 19px; font-weight: 800; color: var(--gold-2); }
.panel .rate { margin-bottom: 14px; color: var(--teal); font-size: 13px; font-weight: 700; }
.panel-list { list-style: none; max-width: 360px; margin: 0 auto; }
.panel-list li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 14px; font-weight: 600; }
.panel-list li i { flex: 1; border-bottom: 1px dashed rgba(255, 255, 255, .2); }
.panel-list li span:last-child { color: var(--gold-2); }
.panel .note { margin-top: 14px; color: var(--dim); font-size: 12px; }

.cta { display: inline-block; margin-top: 16px; padding: 12px 28px; background: linear-gradient(135deg, var(--gold), #d98c00); border-radius: 999px; color: #3d2400; font-size: 15px; font-weight: 800; transition: transform .25s ease, box-shadow .25s ease; }
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(245, 179, 1, .35); }
.cta.wa { background: linear-gradient(135deg, #25d366, #13a34a); color: #fff; }
.cta.tg { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; margin-left: 8px; }

/* ------------------------------------------------------------------ faq */

.faq-item { margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 18px; background: none; border: 0; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-q:hover { background: rgba(255, 255, 255, .05); }
.faq-ico { color: var(--gold-2); font-size: 20px; font-style: normal; transition: transform .3s ease; }
.faq-item.open .faq-ico { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 18px 15px; color: var(--dim); font-size: 14px; }

/* --------------------------------------------------- Hindi info sections */

.info-wrap { max-width: 1000px; margin: 0 auto 46px; padding: 0 16px; }
.info-h { margin-bottom: 16px; font-size: 24px; font-weight: 800; text-align: center; }

.recent-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.recent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recent-table th, .recent-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.recent-table thead th { background: rgba(0, 0, 0, .35); color: var(--gold-2); font-size: 11px; letter-spacing: 1px; }
.recent-table tbody tr { transition: background .2s; }
.recent-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.rt-date { color: var(--teal); font-weight: 800; }
.rt-dash { color: #6b5f85; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 20px 0; perspective: 900px; }
.step { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-align: center; backdrop-filter: blur(8px); transition: transform .3s ease; }
.step:hover { transform: rotateX(8deg) translateZ(12px); }
.step-ico { display: block; font-size: 26px; }
.step b { display: block; margin: 6px 0 3px; font-size: 15px; color: var(--gold-2); }
.step span { color: var(--dim); font-size: 13px; }

.info-block { margin-bottom: 14px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px); }
.info-block h3 { margin-bottom: 10px; font-size: 18px; font-weight: 800; color: var(--gold-2); }
.info-block p { margin-bottom: 10px; color: var(--dim); font-size: 14px; }
.info-block p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- footer */

.footer { padding: 34px 16px; border-top: 1px solid var(--line); text-align: center; }
.footer-name { margin-bottom: 8px; font-size: 20px; font-weight: 800; color: var(--gold-2); }
.footer p { max-width: 760px; margin: 0 auto 8px; color: var(--dim); font-size: 13px; word-break: break-word; }
.footer .legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }

/* floating whatsapp */
.fab { position: fixed; right: 18px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--wa); border-radius: 50%; box-shadow: 0 8px 26px rgba(37, 211, 102, .45); color: #fff; animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* replay intro */
.replay { display: inline-block; margin-top: 14px; padding: 8px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.replay:hover { color: #fff; }

/* ------------------------------------------------------------ chart page */

.chart-wrap { max-width: 1100px; margin: 26px auto; padding: 0 16px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.filters select, .filters input { padding: 10px 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; }
.btn { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, var(--gold), #d98c00); border: 0; border-radius: 10px; color: #3d2400; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.btn.ghost { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--text); }

.table-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.chart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chart-table th, .chart-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.chart-table thead th { background: rgba(0, 0, 0, .35); color: var(--gold-2); font-size: 11px; letter-spacing: 1px; }
.chart-table .date-col { color: var(--teal); font-weight: 800; }
.chart-table tbody tr:hover { background: rgba(255, 255, 255, .05); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 640px) {
    .pot-stage { transform: scale(.55); }
    .hero { padding: 30px 16px 24px; }
    .hero-game { font-size: 20px; letter-spacing: 2px; }
    .coin { width: 130px; height: 130px; }
    .coin-face { font-size: 46px; border-width: 5px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .flip { height: 168px; }
    .f-name { font-size: 16px; }
    .f-num { font-size: 32px; }
    .nav { flex-wrap: wrap; }
    .nav-links { width: 100%; margin-left: 0; justify-content: center; }
}

/* The whole idea here is motion, so reduced-motion gets a static page and no
   intro at all (JS also skips straight to the content). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .intro { display: none; }
    .page { opacity: 1; }
    .flip { opacity: 1; transform: none; }
    .flip-in { transform: none !important; }
    .face.back { display: none; }
}
