/* ==========================================================================
   Magic Beggar – styl
   Filozofie: obrázek je stránka. Minimum prvků, maximum atmosféry.
   Paleta vychází z hero ilustrace: inkoustová noc + jantar lucerny.
   ========================================================================== */

:root {
    --ink:     #0A0E1F;
    --ink-2:   #121831;
    --ink-3:   #1A2140;
    --lamp:    #E8A33D;
    --lamp-hi: #FFD98A;
    --cream:   #F3ECDA;
    --mist:    #949DBE;
    --line:    rgba(243, 236, 218, 0.10);

    --font-display: "Fraunces", Georgia, serif;
    --font-body:    "Inter", system-ui, -apple-system, sans-serif;
    --font-mono:    "Space Mono", ui-monospace, monospace;

    --wrap: 1040px;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--cream);
    background: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Viditelné jen pro čtečky a vyhledávače. */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.01em; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--lamp);
    margin: 0 0 1.1rem;
}
.mist { color: var(--mist); }

/* --- Navigace: průhledná, plave nad hero --------------------------------- */
.nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    background: transparent;
}
/* Na homepage menu ustupuje zážitku: 70% průhlednost, najetím ožije. */
.page-home .nav { opacity: .3; transition: opacity .3s ease; }
.page-home .nav:hover, .page-home .nav:focus-within { opacity: 1; }
.page-inner .nav { position: sticky; background: rgba(10,14,31,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Navigace jede přes celou šířku obrazovky a tiskne se k pravému okraji.
   !important poráží .nav .wrap { space-between }, které jediné dítě
   lepí doleva. */
.nav .wrap-nav-right {
    justify-content: flex-end !important;
    max-width: none;
    padding-right: 28px;
}
.nav-links .brand { font-size: 1.45rem; margin-left: .6rem; }
.brand {
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 500; font-style: italic;
    letter-spacing: -0.025em; text-transform: lowercase;
    text-decoration: none;
    background: linear-gradient(115deg, var(--cream) 55%, var(--lamp-hi));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 14px rgba(0,0,0,.65));
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: .88rem; color: var(--cream); opacity: .85; transition: opacity .2s; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.nav-links a:hover { opacity: 1; }
.lang-switch { font-family: var(--font-mono); font-size: .78rem; display: inline-flex; gap: .35rem; align-items: center; }
.lang-switch i { color: var(--mist); font-style: normal; opacity: .5; }
.lang-switch a { text-decoration: none; color: var(--mist); }
.lang-switch a.on { color: var(--lamp); }

/* --- Tlačítka -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: .9rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
    text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.btn-lamp {
    background: linear-gradient(135deg, var(--lamp-hi), var(--lamp));
    color: #2a1c05;
    box-shadow: 0 8px 30px rgba(232,163,61,.35);
}
.btn-lamp:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 40px rgba(232,163,61,.5); }
.btn-ghost {
    background: rgba(10,14,31,.35);
    color: var(--cream);
    box-shadow: 0 0 0 1px rgba(243,236,218,.35) inset;
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--cream) inset; }
.btn:focus-visible { outline: 3px solid var(--lamp-hi); outline-offset: 3px; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   SCÉNA – jen žebrák. Fotka žije, žebrák promlouvá.
   ========================================================================== */
.scene {
    position: relative;
    /* Výška nikdy nepřekročí to, co 16:9 obrázek pojme -> miska se neřeže. */
    min-height: min(100svh, 56.25vw);
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.scene-bg, .scene-bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
/* Fotka "dýchá" – neznatelný pomalý zoom. */
.scene-bg img {
    animation: breathe 46s ease-in-out infinite alternate;
    transform-origin: 61% 30%;
    will-change: transform;
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.045); } }

/* ---- Počasí -----------------------------------------------------------
   Částice generuje JS (počty dle šířky displeje); tady jen vzhled a
   animace. Vše transform-only (GPU), pointer-events none, pod řečí. */
.weather-layer {
    position: absolute; inset: -12% -6%;
    overflow: hidden;
    pointer-events: none;
    z-index: 4; /* nad scénou, pod řečí (.speech má vyšší) */
}
/* Déšť: vrstva je mírně nakloněná, kapky uvnitř jen padají. */
.weather-layer.rain { transform: rotate(7deg); }
.rain-drop {
    position: absolute; top: -12%;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, rgba(185, 205, 235, .55));
    animation: rainfall linear infinite;
    will-change: transform;
}
@keyframes rainfall { to { transform: translateY(130vh); } }

/* Sníh: obal padá, vnitřek se houpe do stran. */
.snow-flake {
    position: absolute; top: -6%;
    animation: snowfall linear infinite;
    will-change: transform;
}
.snow-flake > span {
    display: block;
    border-radius: 50%;
    background: rgba(240, 245, 255, .85);
    filter: blur(.4px);
    animation: snowsway ease-in-out infinite alternate;
}
@keyframes snowfall { to { transform: translateY(120vh); } }
@keyframes snowsway {
    from { transform: translateX(-9px); }
    to   { transform: translateX(9px); }
}

/* ---- Efekty scény (zapínatelné panelem) ------------------------------- */
.fx { position: absolute; pointer-events: none; }

/* Měsíc: kreslený kotouč se skutečnou fází (stín posouvá JS). */
.fx-moon-el {
    left: 26%; top: 8%;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 38%, #f4efdd, #cfc9b4 70%, #a8a493);
    box-shadow: 0 0 26px rgba(240, 235, 215, .35), 0 0 70px rgba(240, 235, 215, .15);
    overflow: hidden;
    z-index: 2;
}
.fx-moon-el::after { /* fázový stín – posun přes CSS proměnnou z JS */
    content: "";
    position: absolute; inset: -8%;
    border-radius: 50%;
    background: #0b1020;
    opacity: .93;
    transform: translateX(var(--phase-x, 0%));
}

/* Padající hvězda: šmouha, kterou JS vystřelí a uklidí. */
.fx-star-el {
    width: 130px; height: 1.6px;
    background: linear-gradient(90deg, transparent, rgba(245, 242, 225, .9));
    border-radius: 2px;
    filter: drop-shadow(0 0 5px rgba(245, 242, 225, .8));
    transform: rotate(24deg);
    opacity: 0;
    z-index: 4;
}
.fx-star-el.go { animation: starfall 1.25s ease-out forwards; }
@keyframes starfall {
    0%   { opacity: 0; transform: rotate(24deg) translateX(0); }
    12%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(24deg) translateX(340px); }
}

/* Světlušky v údolí: žhnoucí tečky, které POLETUJÍ – obal kývá
   vodorovně, vnitřek svisle a přitom dýchá jasem. */
/* Pohyb (Brownův) řídí JS krátkými náhodnými přesuny; CSS jen vzhled. */
.fx-fly-el { z-index: 2; will-change: transform; }
.fx-fly-el > span {
    display: block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #d8ffa0; /* zelenožlutá bioluminiscence */
    box-shadow: 0 0 7px 2px rgba(190, 255, 130, .6);
    opacity: .05;                 /* potmě téměř neviditelná */
    transition: opacity .18s ease; /* náběh/dohasnutí záblesku */
}

/* Dým z komína: rozmazané chuchvalce stoupají a rozplývají se. */
.fx-smoke-el {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 220, 232, .32), transparent 70%);
    filter: blur(5px);
    mix-blend-mode: screen; /* čitelný i na tmavém dřevě */
    animation: smokerise linear forwards;
    z-index: 2;
}
@keyframes smokerise { /* víc do strany než vzhůru – u střechy není nebe */
    to { transform: translate(120px, -70px) scale(2.5); opacity: 0; }
}

/* Můra u lucerny: eliptický kroužek (obal x, vnitřek y). */
.fx-moth-el { z-index: 3; animation: mothx ease-in-out infinite alternate; }
.fx-moth-el > span {
    display: block;
    width: 3.5px; height: 3.5px;
    border-radius: 50%;
    background: rgba(255, 235, 200, .9);
    filter: blur(.6px) drop-shadow(0 0 4px rgba(255, 220, 160, .8));
    animation: mothy ease-in-out infinite alternate;
}
@keyframes mothx { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
@keyframes mothy { from { transform: translateY(-14px); } to { transform: translateY(14px); } }

/* Mlha z údolí: široké rozmazané pásy plují vlevo dole. */
.fx-mist-el {
    height: 14%;
    background: linear-gradient(90deg, transparent, rgba(190, 200, 220, .13), transparent);
    filter: blur(14px);
    animation: mistdrift linear infinite alternate;
    z-index: 2;
}
@keyframes mistdrift { from { transform: translateX(-6%); } to { transform: translateX(9%); } }

/* Bouřka: OSTRÝ klikatý blesk (SVG generuje JS) + slabý podsvit nebe. */
.fx-flash-el {
    inset: 0;
    background: radial-gradient(70% 55% at var(--flash-x, 25%) 22%, rgba(205, 222, 255, .28), transparent 65%);
    opacity: 0;
    z-index: 4;
}
.fx-flash-el.go { animation: skyflash .4s ease-out; }
@keyframes skyflash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

.fx-bolt-el {
    position: absolute;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(230, 240, 255, .95))
            drop-shadow(0 0 16px rgba(175, 205, 255, .6));
}
.fx-bolt-el.go { animation: boltflicker .55s linear; }
@keyframes boltflicker { /* blesk mihotá – dva návraty jasu jako v realitě */
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    22%  { opacity: .15; }
    32%  { opacity: 1; }
    48%  { opacity: .4; }
    62%  { opacity: .9; }
    100% { opacity: 0; }
}

/* Ovladače scény vlevo nahoře (náhled): absence + počasí. */
.scene-controls {
    position: fixed;
    left: 18px; top: 16px;
    z-index: 60;
    display: flex; gap: 8px;
}
.scene-controls a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(243, 236, 218, .28);
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    color: var(--cream);
    opacity: .45;
    transition: opacity .25s, border-color .25s;
}
.scene-controls a:hover { opacity: 1; border-color: var(--lamp); }
.scene-controls a.on { opacity: .95; border-color: var(--lamp); box-shadow: 0 0 12px rgba(232,163,61,.25); }
.scene-controls { max-width: 260px; flex-wrap: wrap; }
.scene-controls a.fx-btn { width: 32px; height: 32px; font-size: .8rem; }

/* Cedulka na dveřích, když je muž v lese: kus papíru přišpendlený
   na dřevě, ručně psaný sklon, inkoust na pergamenu. */
.away-note {
    position: absolute;
    left: 58.5%; top: 44%;
    width: 12.5%;
    min-width: 150px;
    transform: translate(-50%, -50%) rotate(-2.5deg);
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ddcfa8 0%, #cbb98d 100%);
    color: #3a2e1a;
    font-style: italic;
    font-size: clamp(.8rem, 1.15vw, 1.05rem);
    line-height: 1.5;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.65), inset 0 0 12px rgba(120,95,55,.35);
    z-index: 5;
}
.away-note::before { /* špendlík */
    content: "";
    position: absolute; top: 7px; left: 50%;
    width: 8px; height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #8a8f98, #3c4048 70%);
    box-shadow: 0 1px 3px rgba(0,0,0,.7);
}
/* Bez muže: šepot u misky se objeví sám (JS), řeč mlčí. */
body.away .speech { display: none; }

/* Světlo pod miskou: elipsa teplé záře u jejího dna. Normálně zhasnuté;
   .spill (JS, v rytmu kolébání) ho nechá krátce uniknout štěrbinou,
   body.bowl-pull ho vylije naplno – miska se zvedla ze stolu. */
.bowl-underglow {
    position: absolute;
    left: 57%; top: 92.5%;
    width: 19%; height: 7%;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%,
        rgba(255, 216, 130, .85) 0%,
        rgba(255, 178, 80, .35) 45%,
        transparent 75%);
    mix-blend-mode: screen;
    filter: blur(9px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s ease;
}
.bowl-underglow.spill { animation: glowspill 1.4s ease-in-out; }
@keyframes glowspill {
    0%, 100% { opacity: 0; }
    30%      { opacity: .85; }
    60%      { opacity: .5; }
}
body.bowl-pull .bowl-underglow { opacity: .95; }

/* Samostatná miska s průhledností, položená přesně přes misku ve fotce
   (změřený střed 58.9 % / 82.4 %). Filtr ji tónuje do nočního světla scény.
   Kolébá se volně – žádné výřezy, žádné riziko přeseknutých prstů. */
.bowl3d {
    position: absolute;
    left: 57%; top: 86%;
    width: 15%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 90%;
    /* Tónování do nočního světla scény (obraz sám je nedotčený). */
    filter: brightness(.6) contrast(1.05) saturate(.8) sepia(.14)
            drop-shadow(0 6px 10px rgba(0,0,0,.6));
    pointer-events: none;
    will-change: transform;
    transition: transform .75s cubic-bezier(.22, .85, .28, 1);
}
/* Přitažení misky: klik ji zvolna posune k divákovi (dopředu/dolů) –
   BEZE zvětšení, aby velikost nenaznačovala větší očekávaný dar.
   Hlubší stín naznačí nadzvednutí. Zavřením karty se vrátí na stůl. */
body.bowl-pull .bowl3d {
    transform: translate(-50%, -28%);
    filter: brightness(.68) contrast(1.05) saturate(.82) sepia(.12)
            drop-shadow(0 12px 20px rgba(0,0,0,.7));
}
body.bowl-pull .bowl-label { opacity: 0; }
.bowl3d.rock { animation: bowlrock 1.1s ease-in-out; }
@keyframes bowlrock {
    0%, 100% { transform: translate(-50%, -50%) rotate(0); }
    18%      { transform: translate(-50%, -51%) rotate(-1.8deg); }
    38%      { transform: translate(-50%, -50.2%) rotate(1.4deg); }
    58%      { transform: translate(-50%, -50%) rotate(-.8deg); }
    78%      { transform: translate(-50%, -50%) rotate(.4deg); }
}

/* Mihotání lucerny – teplá záře na jejím místě (vpravo dole). */
.lantern-glow {
    position: absolute;
    /* Střed = PLAMEN uvnitř skla lucerny (ne komín nahoře). */
    left: 76.5%; top: 72%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 32vw, 600px); aspect-ratio: 1;
    /* Žhavé jádro přímo v plameni + teplá aura kolem skla. */
    background:
        radial-gradient(circle at 50% 50%, rgba(255,236,180,.65) 0%, rgba(255,200,105,.38) 12%, transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(255,180,80,.25) 0%, rgba(255,160,60,.10) 46%, transparent 70%);
    mix-blend-mode: screen;
    filter: blur(8px);
    pointer-events: none;
    /* Mihotání řídí JS náhodným generátorem (skutečný plamen nemá vzorec);
       transition vyhlazuje skoky mezi náhodnými cíli. */
    transition: opacity .13s ease;
}

/* Závoj mlhy líně plující zleva. */
.mist {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 34% at 18% 84%, rgba(160,180,220,.10), transparent 70%),
        radial-gradient(48% 26% at 70% 92%, rgba(160,180,220,.06), transparent 70%);
    animation: mistdrift 38s ease-in-out infinite alternate;
}
@keyframes mistdrift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }

/* Závoj jen pod textem řeči – miska zůstává na světle. */
.scene-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,14,31,.35) 0%, transparent 18%),
        radial-gradient(56% 46% at 22% 84%, rgba(10,14,31,.62), transparent 72%);
    pointer-events: none;
}

/* Stage je jen neviditelný obal (sr-only H1); řeč se kotví k celé scéně. */
.scene-stage { position: static; }

/* Řeč žebráka – šepot z šera na úrovni jeho hlavy, vedle něj (vlevo od tváře).
   Kotvená zprava (right), takže roste doleva a nikdy nesahá na obličej. */
.speech {
    position: absolute;
    top: 23%;
    /* Pravé účaří v levé třetině pláště – slova vycházejí z muže,
       nevisí vedle něj jako billboard. */
    right: 42%;
    width: min(34vw, 26ch);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: .01em;
    color: rgba(243, 236, 218, .74);
    text-align: right;
    text-shadow: 0 0 22px rgba(10,14,31,.9), 0 2px 8px rgba(10,14,31,.8);
}
.speech { transition: opacity 1.2s ease; }
.speech.fading { opacity: 0; }
/* Režim darování: karta zabírá levou polovinu, řeč se přesune
   NAPRAVO od hlavy – levé účaří u muže, slova plynou doprava. */
body.give-open .speech {
    right: auto;
    left: 72%; /* levé účaří až ZA obrysem hlavy/kápě */
    top: 21%;
    text-align: left;
    width: min(24vw, 22ch);
}

.speech .line { display: block; }
.speech .caret {
    display: inline-block; width: 1px; height: .95em;
    background: rgba(232,163,61,.55); margin-left: 2px; vertical-align: -0.1em;
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Miska = tlačítko. Neviditelný hotspot přes misku v obraze;
   po dokončení řeči (.invite) se rozzáří a zve k vhození. */
.bowl-hotspot {
    position: absolute;
    left: 49%; bottom: 3%;
    width: 16%; height: 22%;
    display: block;
    cursor: pointer;
    text-decoration: none;
    outline-offset: 4px;
}
.bowl-hotspot:focus-visible { outline: 2px solid var(--lamp-hi); border-radius: 12px; }

/* Zvaní obstarává samotné kolébání misky – žádná umělá záře. */

.bowl-label {
    position: absolute; left: 50%; bottom: -5%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: .6rem; letter-spacing: .26em; text-transform: uppercase;
    color: rgba(255, 217, 138, .6);
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0,0,0,.9);
    opacity: 0;
    transition: opacity 2.4s ease;
    pointer-events: none;
}
.bowl-hotspot.invite .bowl-label { opacity: 1; }

/* Přepínač hlasu – v horním mini-menu (jen na homepage). */
.voice-toggle {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(243,236,218,.28);
    border-radius: 50%;
    color: var(--cream);
    cursor: pointer;
    transition: border-color .25s ease, color .25s ease;
}
.voice-toggle:hover, .voice-toggle:focus-visible { border-color: var(--cream); }
.voice-toggle .vt-waves { opacity: 0; transition: opacity .3s; }
.voice-toggle[aria-pressed="true"] { color: var(--lamp-hi); border-color: rgba(232,163,61,.5); opacity: .8; }
.voice-toggle[aria-pressed="true"] .vt-waves { opacity: 1; }

/* ==========================================================================
   DAR + STOPA CESTY
   ========================================================================== */
.give-section {
    position: relative;
    padding: 5.5rem 0 4rem;
    /* Pokračování noci: hvězdný prach + dozvuk lucerny od misky nahoře. */
    background:
        radial-gradient(1px 1px at 18% 22%, rgba(243,236,218,.28), transparent),
        radial-gradient(1px 1px at 64% 58%, rgba(243,236,218,.18), transparent),
        radial-gradient(1px 1px at 84% 30%, rgba(243,236,218,.22), transparent),
        radial-gradient(1px 1px at 38% 78%, rgba(169,150,214,.16), transparent),
        radial-gradient(46% 30% at 58% 0%, rgba(232,163,61,.07), transparent 70%);
}
.give-grid {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: 4rem;
    align-items: start;
}

.give-card {
    background: rgba(18, 24, 49, .32);
    border: 1px solid rgba(232, 163, 61, .14);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    box-shadow: 0 0 90px rgba(232,163,61,.05);
    backdrop-filter: blur(2px);
}
/* Nadpis ve stejném hlase jako řeč žebráka – kurzívní šepot, ne formulář. */
.give-title {
    font-style: italic;
    font-weight: 400;
    font-size: 1.6rem;
    color: rgba(243,236,218,.92);
    margin-bottom: .35rem;
}
.give-card .hint { color: var(--mist); font-size: .88rem; margin: 0 0 1.6rem; }

.amount-grid { display: grid; gap: .7rem; justify-items: center; margin-bottom: 1rem; }
/* Kotvy jako MINCE: kulaté, matně kovové; vybraná mince se rozzáří zlatem. */
.amount-btn {
    width: 74px; height: 74px;
    border-radius: 50%;
    font-family: var(--font-mono); font-size: .98rem; font-weight: 700;
    cursor: pointer;
    color: var(--lamp-hi);
    background: radial-gradient(circle at 34% 28%, #3b2f19 0%, #241d10 68%, #191408 100%);
    border: 1px solid rgba(232,163,61,.35);
    box-shadow: inset 0 3px 8px rgba(0,0,0,.65), inset 0 -2px 5px rgba(255,205,110,.08);
    transition: transform .15s ease, border-color .15s, box-shadow .2s;
}
.amount-btn:hover { transform: translateY(-3px); border-color: var(--lamp); }
.amount-btn.active {
    color: #2a1c05;
    background: radial-gradient(circle at 34% 28%, var(--lamp-hi) 0%, var(--lamp) 78%);
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(232,163,61,.45), inset 0 1px 3px rgba(255,255,255,.55);
}
.amount-btn:focus-visible { outline: 3px solid var(--lamp-hi); outline-offset: 3px; }

.custom-amount {
    display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem;
    background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px;
    padding: .1rem .9rem; transition: border-color .15s;
}
.custom-amount:focus-within { border-color: var(--lamp); }
.custom-amount .cur { font-family: var(--font-mono); color: var(--mist); }
.custom-amount input {
    flex: 1; background: transparent; border: 0; color: var(--cream);
    font-family: var(--font-mono); font-size: 1.05rem; padding: .8rem 0; outline: none;
    -moz-appearance: textfield;
}
.custom-amount input::-webkit-outer-spin-button,
.custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.msg-input {
    width: 100%; background: var(--ink-3); border: 1px solid var(--line);
    border-radius: 12px; color: var(--cream); font-family: var(--font-body);
    font-size: .95rem; padding: .8rem .9rem; margin-bottom: .6rem; resize: none; outline: none;
    transition: border-color .15s;
}
.msg-input:focus { border-color: var(--lamp); }
.msg-input::placeholder { color: var(--mist); opacity: .8; }

.give-error.ok { color: #9fd8a0; }
.give-error { color: #ff9c8a; font-size: .88rem; min-height: 1.3em; margin-bottom: .6rem; }

.give-trust {
    display: flex; gap: .6rem; justify-content: center; margin-top: 1.1rem;
    font-size: .8rem; color: var(--mist); flex-wrap: wrap;
}
.give-trust a { color: var(--mist); }
.give-trust a:hover { color: var(--lamp); }

/* --- Tichý překryv darování ------------------------------------------------
   S JS (body.js) se .give-wrap chová jako celoplošný překryv nad scénou:
   klik na misku ho rozevře NA MÍSTĚ – žádný odskok stránky. Bez JS se
   nic z toho neaplikuje a karta zůstává obyčejně v sekci. */
body.js .give-wrap {
    /* Jen LEVÁ polovina: scéna vpravo zůstává živá a žebrák dál mluví
       (v režimu darování). Rozmazání měkce vyhasíná do scény maskou. */
    position: fixed; top: 0; bottom: 0; left: 0; width: 52%;
    z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: linear-gradient(90deg, rgba(6,9,20,.72) 0%, rgba(6,9,20,.6) 70%, rgba(6,9,20,.35) 100%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}
body.js.give-open .give-wrap { opacity: 1; pointer-events: auto; }
body.js .give-card {
    width: 100%; max-width: 440px;
    max-height: 92svh; overflow-y: auto;
    position: relative;
    background: rgba(14, 19, 40, .92);
    transform: translateY(10px) scale(.985);
    transition: transform .45s ease;
}
body.js.give-open .give-card { transform: none; }
body.give-open { overflow: hidden; }

.give-close {
    display: none;
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(243,236,218,.25);
    border-radius: 50%;
    color: var(--mist);
    font-size: .85rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.give-close:hover { color: var(--cream); border-color: var(--cream); }
body.js .give-close { display: flex; }

/* Stopa cesty (feed) */
.road-stats { margin-bottom: 1.4rem; }
.road-total {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--lamp);
    line-height: 1.1;
}
.road-label { font-size: .9rem; color: var(--mist); }
.road-label b { color: var(--cream); }

.feed { display: flex; flex-direction: column; gap: .6rem; }
.feed-item {
    display: flex; align-items: center; gap: .8rem;
    background: var(--ink-2); border: 1px solid var(--line);
    border-radius: 12px; padding: .8rem 1rem;
    animation: slideIn .5s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); flex-shrink: 0; }
.feed-amount { font-family: var(--font-mono); font-weight: 700; color: var(--lamp); }
.feed-text { flex: 1; font-size: .9rem; }
.feed-text .who { color: var(--mist); }
.feed-text .msg { display: block; color: var(--mist); font-style: italic; font-size: .84rem; margin-top: .1rem; }
.feed-time { font-family: var(--font-mono); font-size: .72rem; color: var(--mist); white-space: nowrap; }
.feed-empty { color: var(--mist); padding: 1.6rem 0; font-style: italic; }
.road-more { margin-top: 1rem; font-size: .88rem; }
.road-more a { color: var(--lamp); text-decoration: none; }

/* ==========================================================================
   VNITŘNÍ STRÁNKY (ledger, about, thanks)
   ========================================================================== */
.page-inner main, .section { padding: 4.5rem 0; }
.section-narrow { max-width: 700px; }
.inner-head { padding-top: 7rem; }

.transparency-note {
    background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--lamp);
    border-radius: 12px; padding: 1.3rem 1.5rem; margin-bottom: 2rem;
}
.transparency-note p { margin: 0; font-size: .95rem; }

.ledger-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ledger-table thead th {
    text-align: left; font-family: var(--font-mono); font-size: .7rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
    padding: .7rem .9rem; border-bottom: 1px solid var(--line);
}
.ledger-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger-table td.amt { font-family: var(--font-mono); font-weight: 700; color: var(--lamp); white-space: nowrap; }
.ledger-table td.time { font-family: var(--font-mono); color: var(--mist); white-space: nowrap; font-size: .82rem; }
.ledger-msg { color: var(--mist); font-style: italic; }

.verify-card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; margin-bottom: .9rem;
}
.verify-check {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(232,163,61,.13); color: var(--lamp);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.verify-card h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.verify-card p { margin: 0; color: var(--mist); font-size: .93rem; }
.verify-card a { color: var(--lamp); }

/* Právní stránky – klidná typografie, žádný křik. */
.legal h3 { margin-top: 2.2rem; font-size: 1.12rem; color: var(--cream); }
.legal p { color: rgba(197, 203, 224, .92); font-size: .95rem; }
.legal a { color: var(--lamp); }
.legal code { font-family: var(--font-mono); font-size: .85em; color: var(--lamp-hi); }

/* Díkovná stránka */
.thanks { min-height: 92svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 0 3rem; }
.thanks-inner { max-width: 560px; }
.thanks-spark { font-size: 3rem; color: var(--lamp); margin-bottom: .8rem; filter: drop-shadow(0 0 18px rgba(232,163,61,.7)); animation: rise 1s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.85); } to { opacity: 1; transform: none; } }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: .5rem; }
.thanks-amount { color: var(--lamp); }

.wish-card {
    position: relative;
    margin: 2.4rem auto 1.4rem;
    max-width: 480px;
    background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
    border: 1px solid rgba(232,163,61,.28);
    border-radius: var(--radius);
    padding: 2.2rem 2rem;
    box-shadow: 0 0 60px rgba(232,163,61,.12), 0 20px 50px rgba(0,0,0,.4);
}
.wish-card::before { content: "✦"; position: absolute; top: 14px; right: 18px; color: var(--lamp); opacity: .45; }
.wish-label {
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .26em;
    text-transform: uppercase; color: var(--lamp); margin-bottom: 1rem;
}
.wish-text { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; margin: 0 0 1rem; text-wrap: balance; }
.wish-source { font-family: var(--font-mono); font-size: .76rem; color: var(--mist); }
.thanks-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Patička --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2.2rem; }
.footer-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem; align-items: start; margin-bottom: 1.8rem;
}
.footer .brand { font-size: 1.25rem; }
.footer-brandcol .footer-fine { margin-top: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; text-align: right; }
.footer-links a { color: var(--mist); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--lamp-hi); }
.footer-fine { font-size: .8rem; color: var(--mist); line-height: 1.7; margin: 0; max-width: 72ch; }
.footer-meta { font-size: .74rem; color: rgba(148,157,190,.65); margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.footer-meta a { color: inherit; }
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-links { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 1.1rem; }
}

/* --- Responzivita ----------------------------------------------------------- */
@media (max-width: 860px) {
    body.js .give-wrap { width: 100%; mask-image: none; -webkit-mask-image: none; }
    .give-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links a:not(.btn):not(.lang-switch a) { display: none; }
    .lang-switch { display: inline-flex; }
}
@media (max-width: 720px) {
    /* Mobil používá portrétní ořez (obsahuje misku) – může jet fullscreen. */
    .scene { min-height: 100svh; }
    .scene-bg img { object-position: center bottom; }
    /* Plamen v mobilním ořezu: x ≈ 87 %, y ≈ 75 % */
    .lantern-glow { left: 87%; top: 72%; width: 92vw; }
    /* Hlava je v ořezu nahoře uprostřed – řeč vlevo od ní. */
    .speech { top: 18%; right: 46%; width: 46vw; font-size: 1.1rem; }
    .bowl3d { left: 43.4%; width: 33.4%; }
    .bowl-underglow { left: 43.4%; width: 42%; }
    .away-note { left: 47%; top: 42%; width: 32%; }
    .amount-btn { width: 64px; height: 64px; font-size: .9rem; }
    .bowl-hotspot { left: 25.6%; width: 35.6%; }
    .brand { font-size: 1.45rem; }
}
@media (max-width: 480px) {
    .ledger-table td.time { display: none; }
    .ledger-table thead th:last-child { display: none; }
    .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
