/* prekvap.me — base.css: the "Hra" design system (block 1R-b). Fonts, tokens, colour surfaces,
   reset, type and the shared components. Every customer page loads this file plus at most one
   file of its own (project / marketing / create / account / pages); platform.css holds the
   advent (F2) and film (F3, "Kino") components. Docs and a live sample on this very file:
   data/redesign/03-system.md, data/redesign/system.html.
   Rules that keep it fast and safe on old phones: one colour mode (no automatic dark), animate
   only transform and opacity, no backdrop-filter, no shadows (surfaces are told apart by colour),
   :has() only next to a class rule, no color-mix() without a fallback. */

/* ========== FONTS ==========
   Funnel Display + Funnel Sans (OFL, assets/fonts/OFL.txt): variable wght, Latin-1 + Latin
   Extended-A (+ Ș Ț), 34 KB together. The version is in the file name: fonts are cached for a year.
   Digits are tabular by default. The fallback faces set the same text width as Funnel (size-adjust,
   measured against Arial and Roboto), so a line breaks in the same place before and after the swap;
   every type style has an explicit line-height, so Safari (no ascent-override) keeps the box height. */
@font-face{font-family:'Funnel Display';src:url(../fonts/funnel-display-v1.woff2) format('woff2');font-weight:500 800;font-style:normal;font-display:swap}
@font-face{font-family:'Funnel Sans';src:url(../fonts/funnel-sans-v1.woff2) format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'Funnel Sans Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans'),local('LiberationSans');font-weight:400 549;size-adjust:100.2%;ascent-override:99.8%;descent-override:25%;line-gap-override:0%}
@font-face{font-family:'Funnel Sans Fallback';src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold'),local('LiberationSans-Bold');font-weight:550 800;size-adjust:95.2%;ascent-override:105%;descent-override:26.3%;line-gap-override:0%}
@font-face{font-family:'Funnel Display Fallback';src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold'),local('LiberationSans-Bold');font-weight:500 649;size-adjust:99.9%;ascent-override:100.1%;descent-override:25%;line-gap-override:0%}
@font-face{font-family:'Funnel Display Fallback';src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold'),local('LiberationSans-Bold');font-weight:650 800;size-adjust:101.8%;ascent-override:98.2%;descent-override:24.5%;line-gap-override:0%}
/* Android has no Arial: the same against Roboto (when the faces above find nothing, these apply). */
@font-face{font-family:'Funnel Sans Fallback R';src:local('Roboto'),local('Roboto-Regular');font-weight:400 549;size-adjust:101.3%;ascent-override:98.7%;descent-override:24.7%;line-gap-override:0%}
@font-face{font-family:'Funnel Sans Fallback R';src:local('Roboto Bold'),local('Roboto-Bold');font-weight:550 800;size-adjust:100.9%;ascent-override:99.1%;descent-override:24.8%;line-gap-override:0%}
@font-face{font-family:'Funnel Display Fallback R';src:local('Roboto Bold'),local('Roboto-Bold');font-weight:500 649;size-adjust:106%;ascent-override:94.4%;descent-override:23.6%;line-gap-override:0%}
@font-face{font-family:'Funnel Display Fallback R';src:local('Roboto Bold'),local('Roboto-Bold');font-weight:650 800;size-adjust:108%;ascent-override:92.6%;descent-override:23.2%;line-gap-override:0%}

/* ========== TOKENS ========== */
:root{
  /* brand: cobalt, ink, white; yellow only on coins */
  --kobalt:#2440F0; --kobalt-tmavy:#1A2DB5;
  /* cobalt as an object (a chosen card, a play button): the sheen of .surface--cobalt in one value */
  --kobalt-plne:radial-gradient(90% 120% at 100% 0,rgba(120,150,255,.4),rgba(120,150,255,0) 62%),linear-gradient(200deg,rgba(6,29,124,0) 30%,rgba(6,29,124,.36)) var(--kobalt);
  --kobalt-zadni:#1B47D3; --kobalt-hluboky:#1034B1; --kobalt-zeme:#061D7C; /* the hero's game scene in cobalt */
  --inkoust:#111111; --inkoust-2:#45454F; --inkoust-3:#6B6B76;
  --bila:#FFFFFF; --mlha:#F2F3F7; --linka:#DADCE5;
  --mince:#FFD23F; --mince-hrana:#D9A200; /* the edge only shows while a coin turns */
  /* a coin is round metal: a highlight at the top left and a warmer rim, over --mince */
  --mince-lesk:radial-gradient(circle at 34% 28%,#FFEB9C,rgba(255,235,156,0) 46%),radial-gradient(circle,rgba(240,170,0,0) 58%,rgba(240,170,0,.5));
  --chyba:#C4122F; --uspech:#0B7A4E;
  /* states */
  --inkoust-hover:#2B2B30; --mlha-hover:#E6E8EF;
  /* the surprise's theme: the page sets the project's colours inline on <html> (themes.php);
     these are rose, the fallback theme of projectTheme() */
  --tema:#C61E58; --tema-rgb:198,30,88; --tema2:#E25277; --tema2-rgb:226,82,119;
  --tema-zadni:#B2054B; --tema-hluboky:#9F003E; --tema-zeme:#7D002C;
  /* "Kino": the film of a couple (F3) is Hra with the lights off — warm neutral ink, no blue tint */
  --kino-0:#111111; --kino-1:#1A1918; --kino-2:#252321; --kino-linka:#34312E;
  --kino-text:#FFFFFF; --kino-text-2:#C9C6C1; --kino-text-3:#A39F99;
  /* the accent on dark is var(--kino-akcent,var(--tema2)) where it is used: a var() chain declared here would
     freeze the fallback theme for every page (platform.css sets white for violet and petrol) */
  /* type */
  --pismo-nadpis:'Funnel Display','Funnel Display Fallback','Funnel Display Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --pismo-text:'Funnel Sans','Funnel Sans Fallback','Funnel Sans Fallback R',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  /* spacing 4–48, screen edge 20 (375 px: 18, wider screens more) */
  --m1:4px; --m2:8px; --m3:12px; --m4:16px; --m5:20px; --m6:24px; --m8:32px; --m12:48px;
  --okraj:20px; --sirka:1440px; /* wider since 7. 11. (Štěpán: „celé prekvap.me do šířky“), was 1136 px */
  /* the side padding that lines a header up with a .container of --sirka (the one width of every page, review 13. 10.) */
  --cara:max(var(--okraj),calc((100% - var(--sirka)) / 2));
  /* radii */
  --r-velky:28px; --r-kupon:24px; --r-pole:16px; --r-karta:14px; --r-pill:999px;
  /* no shadows: surfaces are told apart by colour; rings are the only box-shadows */
  --fokus:0 0 0 3px var(--bila),0 0 0 6px var(--inkoust);
  --fokus-tmavy:0 0 0 3px var(--kino-0),0 0 0 6px var(--bila);
  /* motion: spring for buttons, chips and coins (overshoot ≤ 1.04), smooth for screens and dialogs */
  --pruzina:cubic-bezier(.34,1.3,.64,1); --plynule:cubic-bezier(.2,0,0,1);
  --t-stisk:120ms; --t-kratky:200ms; --t-stredni:300ms; --t-dlouhy:450ms;
  /* z-index */
  --z-obsah:1; --z-hlavicka:10; --z-lista:20; --z-dialog:100; --z-toast:200;
}
@media (max-width:375px){:root{--okraj:18px}}
@media (min-width:768px){:root{--okraj:40px}}
@media (min-width:1200px){:root{--okraj:56px}}

/* ========== SURFACES ==========
   One full colour per screen. A surface sets its background and the colours its components use,
   so the same markup works on white, mist, cobalt, the theme and the dark "Kino" layer.
   White is the default (:root), and a dialog card and a coupon are always white objects.
   A panel takes a surface class too: mist on white, white on colour. */
:root,.surface--white,.surface--mist,.modalCard,.couponBody{
  --bg:var(--bila); --fg:var(--inkoust); --fg-2:var(--inkoust-2); --fg-3:var(--inkoust-3);
  --odkaz:var(--kobalt); --delic:var(--mlha);
  --btn-bg:var(--inkoust); --btn-fg:var(--bila); --btn-hover:var(--inkoust-hover);
  --btn2-bg:var(--mlha); --btn2-fg:var(--inkoust); --btn2-ring:transparent; --btn2-hover:var(--mlha-hover);
  --obrys:var(--inkoust); --zavoj:rgba(17,17,17,.06);
  --pole-bg:var(--mlha); --pole-fg:var(--inkoust); --pole-ring:transparent; --pole-ring-hover:var(--linka); --pole-tip:var(--inkoust-3);
  --vyber-bg:var(--kobalt); --vyber-fg:var(--bila);
  --chyba-fg:var(--chyba); --chyba-ring:var(--chyba);
  --stopa:var(--mlha); --stopa-plna:var(--inkoust);
  --fokus-ring:var(--fokus); --mince-ring:var(--inkoust);
  --znak:var(--inkoust); --znak-mince-ring:var(--inkoust);
  --lesk:none; --btn-lesk:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 60%);
  --zatrzeno:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23fff' d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17z'/%3E%3C/svg%3E");
}
.surface--mist{
  --bg:var(--mlha); --delic:var(--bila);
  --btn2-bg:var(--bila); --btn2-hover:var(--mlha-hover);
  --pole-bg:var(--bila); --stopa:var(--bila);
}
.surface--cobalt,.surface--theme{
  --fg:var(--bila); --fg-2:var(--bila); --fg-3:var(--bila);
  --odkaz:var(--bila); --delic:rgba(255,255,255,.24);
  --btn-bg:var(--bila); --btn-fg:var(--inkoust); --btn-hover:var(--mlha);
  --btn-lesk:linear-gradient(180deg,rgba(255,255,255,0) 40%,rgba(17,17,17,.07));
  /* hover on colour darkens: a white veil would take white text on mint under 4.5 : 1 */
  --btn2-bg:transparent; --btn2-fg:var(--bila); --btn2-ring:rgba(255,255,255,.85); --btn2-hover:rgba(17,17,17,.12);
  --obrys:rgba(255,255,255,.85); --zavoj:rgba(17,17,17,.12);
  --pole-bg:var(--bila); --pole-fg:var(--inkoust); --pole-ring:transparent; --pole-ring-hover:transparent;
  --vyber-bg:var(--bila); --vyber-fg:var(--inkoust);
  --chyba-fg:var(--bila); --chyba-ring:var(--inkoust);
  --stopa:rgba(255,255,255,.38); --stopa-plna:var(--bila);
  --mince-ring:transparent; --znak:var(--bila); --znak-mince-ring:var(--mince);
  --zatrzeno:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23111' d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17z'/%3E%3C/svg%3E");
}
.surface--cobalt{--bg:var(--kobalt); --fg-2:rgba(255,255,255,.92)}
.surface--theme{--bg:var(--tema)}
/* The sheen of a colour surface: a translucent layer over the full colour (--bg stays the colour, hover
   and rings keep working). Light from the top right, where the pictures sit, and a deeper tone to the
   bottom left under the text, so white text keeps its contrast. Declared on
   the surface itself: a theme set on an element (samples) computes its own sheen.
   The top of a page (header, tabs, hero) is one sheen over three boxes: the light is sized in pixels and
   each box moves it up by the height above it (--lesk-y), so no seam shows under the header. */
/* the light's strength keeps white text ≥ 4.5 : 1 at its brightest point: cobalt 4.83, the themes ≥ 4.5 (sky and mint
   have the least room, 4.89 and 4.77 without light), so on a theme the depth comes mostly from the shade */
.surface--cobalt{--lesk-svetlo:rgba(120,150,255,.4); --lesk-stin:rgba(6,29,124,.36)}
.surface--theme{--lesk-svetlo:rgba(var(--tema2-rgb),.12); --lesk-stin:rgba(17,0,20,.3)}
.surface--cobalt,.surface--theme{
  --lesk:radial-gradient(90% 120% at 100% 0,var(--lesk-svetlo),transparent 62%),linear-gradient(200deg,transparent 30%,var(--lesk-stin))}
.siteHeader.surface--cobalt,.siteHeader.surface--theme{
  --lesk:radial-gradient(1000px 640px at 100% var(--lesk-y,0px),var(--lesk-svetlo),transparent 65%)}
/* Kino: titles stay on the theme surface; ink only under photos and videos */
.surface--cinema,.surface--cinema1{
  --bg:var(--kino-0); --fg:var(--kino-text); --fg-2:var(--kino-text-2); --fg-3:var(--kino-text-3);
  --delic:var(--kino-linka); --odkaz:var(--bila);
  --btn-bg:var(--bila); --btn-fg:var(--inkoust); --btn-hover:var(--mlha);
  --btn2-bg:transparent; --btn2-fg:var(--bila); --btn2-ring:var(--bila); --btn2-hover:rgba(255,255,255,.1);
  --obrys:var(--bila); --zavoj:rgba(255,255,255,.1);
  --pole-bg:var(--kino-2); --pole-fg:var(--kino-text); --pole-ring:var(--kino-linka); --pole-ring-hover:var(--kino-text-3); --pole-tip:var(--kino-text-3);
  --vyber-bg:var(--bila); --vyber-fg:var(--inkoust);
  --chyba-fg:var(--bila); --chyba-ring:var(--bila);
  --stopa:var(--kino-linka); --stopa-plna:var(--kino-akcent,var(--tema2));
  --fokus-ring:var(--fokus-tmavy); --mince-ring:transparent; --znak:var(--bila); --znak-mince-ring:var(--mince);
  --lesk:none; --btn-lesk:linear-gradient(180deg,rgba(255,255,255,0) 40%,rgba(17,17,17,.07));
}
.surface--cinema1{--bg:var(--kino-1)}
.surface--white,.surface--mist,.surface--cobalt,.surface--theme,.surface--cinema,.surface--cinema1{background:var(--lesk) var(--bg);color:var(--fg)}

/* ========== RESET + PAGE ========== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--fg);font:450 17px/1.47 var(--pismo-text);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-kerning:normal;touch-action:manipulation}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
h1,h2,h3,h4{font-family:var(--pismo-nadpis);font-weight:800;line-height:1.1;letter-spacing:-.015em;text-wrap:balance}
/* a text never ends on one short word (Chrome, Safari 26; elsewhere the lines break as before) */
p,li,dd,blockquote,figcaption{text-wrap:pretty}
img,svg,video,canvas{display:block;max-width:100%}
img,video{height:auto}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.18em}
[hidden]{display:none!important}
:focus:not(:focus-visible){outline:none} /* without :focus-visible (Safari < 15.4) the rule drops and the default outline stays */
:focus-visible{outline:2px solid transparent;box-shadow:var(--fokus-ring)} /* transparent outline = visible in forced colours */
::selection{background:var(--kobalt);color:var(--bila)}

/* ========== TYPE ==========
   Display for titles (600–800, quiet 520–560), Sans for text (400–700). Explicit line-heights. */
.t-hero{font:800 46px/1 var(--pismo-nadpis);letter-spacing:-.028em;text-wrap:balance}
:lang(en) .t-hero{font-size:40px} /* the English claim is ~30 % longer: one step down, not overflow */
.t-title{font:800 40px/1 var(--pismo-nadpis);letter-spacing:-.026em;text-wrap:balance}
.t-quiet{font:560 46px/1.08 var(--pismo-nadpis);letter-spacing:-.02em;text-wrap:balance}
.t-h2{font:800 36px/1.04 var(--pismo-nadpis);letter-spacing:-.026em;text-wrap:balance}
.t-h3{font:800 20px/1.15 var(--pismo-nadpis);letter-spacing:-.012em}
.t-time{font:800 132px/.92 var(--pismo-nadpis);letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap}
.t-score{font:800 150px/.9 var(--pismo-nadpis);letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.t-count{font:800 30px/1.06 var(--pismo-nadpis);letter-spacing:-.02em}
.t-message{font:520 30px/1.2 var(--pismo-nadpis);letter-spacing:-.012em;text-wrap:pretty}
.t-day{font:700 26px/1.1 var(--pismo-nadpis);letter-spacing:-.01em}
.t-lead{font:450 17px/1.47 var(--pismo-text);color:var(--fg-2)}
.t-text{font:450 17px/1.47 var(--pismo-text)}
.t-caption{font:450 15px/1.4 var(--pismo-text)}
.t-small{font:500 13px/1.4 var(--pismo-text)}
.t-label{font:700 12px/1.2 var(--pismo-text);letter-spacing:.14em;text-transform:uppercase} /* štítek: the coupon only */
.overline{font:600 15px/1.35 var(--pismo-text)} /* nadtitulek: sentence case, never spaced capitals */
.muted{color:var(--fg-2)}
.faint{color:var(--fg-3)}
.link{color:var(--odkaz);text-decoration:underline;font-weight:600}
.tnum{font-variant-numeric:tabular-nums}
.nowrap{white-space:nowrap}
@media (max-width:375px){
  .t-quiet{font-size:34px;line-height:1.1}
  .t-time{font-size:112px}
  .t-title{font-size:34px}
}
@media (min-width:900px){
  .t-hero,:lang(en) .t-hero{font-size:72px}
  .t-title{font-size:56px}
  .t-h2{font-size:48px}
}

/* ========== ICONS, COIN, WORDMARK ==========
   Icons: <svg class="icon" aria-hidden="true"><use href="/assets/icons/sprite-v1.svg#i-play"></use></svg>
   (icon() in helpers.php); the button around it carries the label. Phosphor Bold, MIT. */
.icon{width:22px;height:22px;flex:none;fill:currentColor}
.icon--s{width:18px;height:18px}
.icon--l{width:28px;height:28px}
.icon--coin{color:var(--mince);--coin-ring:var(--mince-ring)}
/* The coin is the only yellow thing and the only motif: a token that unlocks, never decoration. */
.coin{display:inline-block;flex:none;width:var(--coin,26px);height:var(--coin,26px);border-radius:50%;background:var(--mince-lesk) var(--mince);
  box-shadow:inset 0 0 0 calc(var(--coin,26px) * .06) var(--mince-ring)}
.coin--seal{--coin:76px}
.coin--big{--coin:72px}
/* Wordmark: inline SVG (wordmark() in helpers.php), ink on white with an inked coin, white on colour. */
.wordmark{display:block;height:var(--wm,24px);width:calc(var(--wm,24px) * 6.438);color:var(--znak)}
.wordmarkCoin{fill:var(--mince);stroke:var(--znak-mince-ring);stroke-width:26px}

/* ========== BUTTONS ==========
   Pill, 56 px (small 44 px), press = scale(.97). Primary: ink on white, white on colour. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 26px;border:0;border-radius:var(--r-pill);
  background:var(--btn-lesk) var(--btn-bg);color:var(--btn-fg);font:700 17px/1.15 var(--pismo-text);letter-spacing:-.005em;text-align:center;text-decoration:none;
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--t-stredni) var(--pruzina),background-color var(--t-kratky) linear;
  --najeti:var(--btn-hover)}
.btn:active{transform:scale(.97);transition-duration:var(--t-stisk)}
.btn .icon{width:20px;height:20px}
.btn--secondary{background:var(--btn2-bg);color:var(--btn2-fg);box-shadow:inset 0 0 0 2px var(--btn2-ring);--najeti:var(--btn2-hover)}
.btn--outline{background:transparent;color:var(--fg);box-shadow:inset 0 0 0 2px var(--obrys);--najeti:var(--zavoj)}
.btn--text{min-height:44px;padding:0 6px;background:none;color:var(--fg);font-weight:650;--najeti:var(--zavoj)}
.btn--small{min-height:44px;padding:0 18px;gap:8px;font-size:15px}
.btn--small .icon{width:18px;height:18px}
.btn--block{display:flex;width:100%}
.btn:focus-visible,.btn.is-focus{box-shadow:var(--fokus-ring)}
.btn--secondary:focus-visible,.btn--secondary.is-focus{box-shadow:var(--fokus-ring),inset 0 0 0 2px var(--btn2-ring)}
.btn--outline:focus-visible,.btn--outline.is-focus{box-shadow:var(--fokus-ring),inset 0 0 0 2px var(--obrys)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.4;cursor:not-allowed;transform:none}
.btn[aria-busy="true"]{cursor:progress}
.btn[aria-busy="true"]::after{content:"";width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 2px currentColor;
  -webkit-mask:linear-gradient(90deg,#000 50%,transparent 0);mask:linear-gradient(90deg,#000 50%,transparent 0);animation:spin .8s linear infinite}
/* icon button: 44 px circle, HUD and player controls */
.iconBtn{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;
  background:var(--btn2-bg);color:var(--btn2-fg);box-shadow:inset 0 0 0 2px var(--btn2-ring);cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:transform var(--t-stredni) var(--pruzina),background-color var(--t-kratky) linear;
  --najeti:var(--btn2-hover)}
.iconBtn .icon{width:20px;height:20px}
.iconBtn:active{transform:scale(.94);transition-duration:var(--t-stisk)}
.iconBtn[aria-pressed="true"]{background:var(--btn-bg);color:var(--btn-fg);box-shadow:none;--najeti:var(--btn-hover)}
.iconBtn:focus-visible,.iconBtn.is-focus{box-shadow:var(--fokus-ring),inset 0 0 0 2px var(--btn2-ring)}
.iconBtn:disabled{opacity:.4;cursor:not-allowed}
@media (hover:hover){
  .btn:not(:disabled):not([aria-disabled="true"]):hover,.iconBtn:not(:disabled):hover,.chip:hover{background-color:var(--najeti)}
  .link:hover{text-decoration-thickness:.14em}
  /* a text button (the second way: „Víc o …“, „Vyzkoušet ukázku“) is underlined on hover, never filled: a fill hugged its words (6 px padding) */
  .btn.btn--text:not(:disabled):not([aria-disabled="true"]):hover{background-color:transparent;text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.22em}
}

/* ========== FIELDS ==========
   56 px, 17 px text (iOS doesn't zoom at ≥ 16 px), mist on white, white on colour, no frame. */
.field{display:block}
.fieldLabel{display:block;margin-bottom:8px;font:600 15px/1.3 var(--pismo-text);color:var(--fg)}
.fieldHint{margin-top:8px;font:450 15px/1.4 var(--pismo-text);color:var(--fg-2)}
.fieldError{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font:600 15px/1.4 var(--pismo-text);color:var(--chyba-fg)}
.fieldError .icon{width:18px;height:18px;margin-top:1px}
.input{display:block;width:100%;height:56px;padding:0 18px;border:0;border-radius:var(--r-pole);background:var(--pole-bg);color:var(--pole-fg);
  font:500 17px/1.25 var(--pismo-text);box-shadow:inset 0 0 0 2px var(--pole-ring);-webkit-appearance:none;appearance:none;
  transition:box-shadow var(--t-kratky) linear}
textarea.input{height:auto;min-height:128px;padding:16px 18px;line-height:1.45;resize:vertical}
select.input{padding-right:48px;cursor:pointer;background:var(--pole-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23111' d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17z'/%3E%3C/svg%3E") right 18px center/18px no-repeat}
.input::placeholder{color:var(--pole-tip);opacity:1}
.input:hover{box-shadow:inset 0 0 0 2px var(--pole-ring-hover)}
.input:focus,.input.is-focus{box-shadow:var(--fokus-ring)}
.input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--chyba-ring)}
.input[aria-invalid="true"]:focus{box-shadow:var(--fokus-ring),inset 0 0 0 2px var(--chyba-ring)}
.input:disabled{opacity:.5;cursor:not-allowed}
.input--small{height:44px;font-size:15px;border-radius:12px;padding:0 14px}

/* ========== CHOICE: checkbox, chip, segmented choice ==========
   An empty checkbox and radio keep a visible edge (3 : 1): no frames elsewhere, but a box must be seen. */
.checkRow{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start;min-height:44px;padding:8px 0;font:450 15px/1.45 var(--pismo-text);cursor:pointer}
.checkbox{width:28px;height:28px;margin:0;border-radius:9px;background:var(--pole-bg) center/18px no-repeat;box-shadow:inset 0 0 0 2px var(--fg-3);
  -webkit-appearance:none;appearance:none;cursor:pointer;transition:transform var(--t-stredni) var(--pruzina)}
.checkbox:checked{background-color:var(--fg);background-image:var(--zatrzeno);box-shadow:none}
.checkbox:active{transform:scale(.92)}
.checkbox:focus-visible,.checkbox.is-focus{box-shadow:var(--fokus-ring)}
.checkbox[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--chyba-ring)}
/* chip: a choice among many (templates, rewards). Selected = cobalt on white, white on colour. */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:var(--r-pill);
  background:var(--btn2-bg);color:var(--btn2-fg);box-shadow:inset 0 0 0 2px var(--btn2-ring);font:600 15px/1.2 var(--pismo-text);
  cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform var(--t-stredni) var(--pruzina),background-color var(--t-kratky) linear;
  --najeti:var(--btn2-hover)}
.chip:active{transform:scale(.97);transition-duration:var(--t-stisk)}
.chip.is-on,.chip[aria-pressed="true"],input:checked+.chip{background:var(--vyber-bg);color:var(--vyber-fg);box-shadow:none;--najeti:var(--vyber-bg)}
.chip.is-focus{box-shadow:var(--fokus-ring)} /* apart: a list with :focus-visible drops whole in Safari < 15.4 */
.chip:focus-visible,input:focus-visible+.chip{box-shadow:var(--fokus-ring)}
/* segmented choice (radios): the selected option is white with an ink ring and a filled dot —
   it never looks like a button */
.choice{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border:0;margin:0;border-radius:var(--r-pill);background:var(--btn2-bg)}
.choiceOption{position:relative;display:block;min-width:0}
.choiceOption input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.choiceOption span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;border-radius:var(--r-pill);
  font:600 15px/1.2 var(--pismo-text);color:var(--fg);pointer-events:none}
.choiceOption span::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--fg-3)}
.choiceOption input:checked+span{background:var(--bila);color:var(--inkoust);box-shadow:inset 0 0 0 2px var(--inkoust);font-weight:700}
.choiceOption input:checked+span::before{background:var(--inkoust);box-shadow:inset 0 0 0 5px var(--bila),inset 0 0 0 7px var(--inkoust)}
.choiceOption input:focus-visible+span{box-shadow:var(--fokus-ring)}
/* Safari 14.1–15.3 (no :focus-visible): the radio itself is invisible, its label shows the keyboard's focus */
@supports not selector(:focus-visible){input:focus+.chip,.choiceOption input:focus+span,.tier:focus-within{box-shadow:var(--fokus-ring)}}

/* ========== PANEL, ROWS, TIER, STEPS, SEGMENTS ========== */
/* panel: a plane of the next colour (with a surface class), no frame, no shadow, never a card in a card */
.panel{border-radius:var(--r-velky);padding:20px}
.panel--m{border-radius:var(--r-kupon);padding:16px 18px}
/* rows (Moje dárky, Připravujeme): type, state in words with a date, one action */
.rows{margin:0;padding:0;list-style:none}
.rows>li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 0;border-top:2px solid var(--delic)}
.rows>li:last-child{border-bottom:2px solid var(--delic)}
.rowIcon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--vyber-bg);color:var(--vyber-fg)}
.rowIcon--soon{background:var(--btn2-bg);color:var(--btn2-fg)}
.rowTitle{font:800 19px/1.15 var(--pismo-nadpis);letter-spacing:-.01em}
.rowMeta{margin-top:4px;font:450 14px/1.35 var(--pismo-text);color:var(--fg-2)}
/* tier (balíček): the number of rewards in big type, the price at the right edge, one sentence;
   selected = cobalt plane, no tick. .is-on for browsers without :has(). */
.tier{position:relative;display:grid;gap:4px;padding:16px 18px;border-radius:var(--r-kupon);background:var(--btn2-bg);color:var(--fg);cursor:pointer;
  transition:transform var(--t-stredni) var(--pruzina)}
.tier input{position:absolute;opacity:0;width:1px;height:1px}
.tierHead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.tierName{font:700 17px/1.2 var(--pismo-text)}
.tierPrice{font:800 20px/1.1 var(--pismo-nadpis);white-space:nowrap}
.tierCount{margin-top:6px;font:800 30px/1.06 var(--pismo-nadpis);letter-spacing:-.02em}
.tierText{font:450 15px/1.4 var(--pismo-text)}
.tier:active{transform:scale(.985)}
.tier.is-on{background:var(--kobalt-plne);color:var(--bila)}
.tier:has(input:checked){background:var(--kobalt-plne);color:var(--bila)}
.tier.is-focus{box-shadow:var(--fokus-ring)}
.tier:has(input:focus-visible){box-shadow:var(--fokus-ring)}
/* steps of the wizard: done cobalt, current ink, ahead mist */
.steps{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.steps>i{height:6px;border-radius:3px;background:var(--mlha)}
.steps>.is-done{background:var(--kobalt)}
.steps>.is-now{background:var(--inkoust)}
/* segments of stories: the running one fills by transform:scaleX (--p 0…1 or an animation) */
.segments{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.segment{position:relative;height:3px;border-radius:2px;background:var(--stopa);overflow:hidden}
.segment>i{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--stopa-plna);transform:scaleX(var(--p,0));transform-origin:0 50%}
.segment.is-done>i{transform:none}

/* ========== DIALOG ==========
   <dialog class="modal"> with showModal() (P.modal in core.js): it covers the viewport and dims the
   page itself, so a tap beside the card closes it. No blur. */
dialog.modal{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:20px;border:0;
  background:rgba(17,17,17,.6);color:var(--inkoust);overflow-y:auto;overscroll-behavior:contain}
dialog.modal.is-stacked{background:rgba(17,17,17,.8)}
dialog.modal:not([open]){display:none} /* browsers without <dialog> (iOS 15.3 and older) */
dialog.modal{z-index:var(--z-dialog)} /* there (no top layer) above the HUD, the game's card and the preview bar */
dialog.modal[open]{display:grid;place-items:center;animation:fadeIn var(--t-kratky) var(--plynule)}
dialog.modal::backdrop{background:transparent}
html:has(dialog.modal[open]){overflow:hidden}
.modalCard{position:relative;width:min(440px,100%);padding:28px 24px 24px;border-radius:var(--r-velky);background:var(--bg);color:var(--fg)}
dialog.modal[open] .modalCard{animation:riseIn var(--t-stredni) var(--plynule)}
.modalTitle{margin:0 0 10px;padding-right:44px;font:800 26px/1.12 var(--pismo-nadpis);letter-spacing:-.018em}
.modalClose{position:absolute;top:14px;right:14px}
.modalActions{display:grid;gap:10px;margin-top:20px}

/* ========== TOAST ========== */
/* centred by auto margins, not left:50% — that would give the text only half the width to wrap in */
.toast{position:fixed;left:20px;right:20px;bottom:24px;z-index:var(--z-toast);width:max-content;max-width:calc(100% - 40px);margin:0 auto;padding:14px 20px;
  border-radius:var(--r-pill);background:var(--inkoust);color:var(--bila);font:600 15px/1.35 var(--pismo-text);text-align:center;animation:riseIn var(--t-stredni) var(--plynule)}

/* ========== SCREEN, LOCK, COUNTDOWN ==========
   A screen of the recipient (and an error page): one full surface, the head on top, the content at
   the thumb — 24 px from the bottom, nothing in the middle. */
.screen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.screenHead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px;padding:0 var(--cara)}
.screenBody{flex:1;display:flex;flex-direction:column;justify-content:flex-end;width:100%;max-width:calc(var(--sirka) + 2 * var(--okraj));margin:0 auto;padding:0 var(--okraj) 24px}
.screenBody>*{max-width:560px} /* the column of a screen: its width, on the left edge of the page like the logo above it (review 13. 10.) */
@media (min-width:900px) and (min-height:640px){.screenBody{justify-content:center;padding-bottom:48px}} /* a computer: the column in the middle */
/* The Lock (Zámek): one component for a surprise, an advent window and a film premiere.
   States: --locked (before the time: date in words, big time, "za …", coin, calendar and reminder,
   no e-mail), --today (the time came: the e-mail is the key), --open (shows the content, not a tick). */
.lock{display:flex;flex-direction:column;align-items:flex-start}
.lock .overline{margin-bottom:10px}
.lockTitle{font:560 46px/1.08 var(--pismo-nadpis);letter-spacing:-.02em;text-wrap:balance;margin-bottom:14px}
.lockText{font:450 18px/1.45 var(--pismo-text);margin-bottom:14px}
.lockWhen{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;align-self:stretch;margin:14px 0 26px}
.lockWhen .coin{margin-bottom:24px}
/* with the coin as a seal next to it, the time gives way on a narrow phone: "20:00" (2.4 em) + coin 76 + gap */
.lockWhen--seal .countdownTime{font-size:min(132px,calc((100vw - 2 * var(--okraj) - 88px) / 2.4))}
.lockWhen:has(.coin) .countdownTime{font-size:min(132px,calc((100vw - 2 * var(--okraj) - 88px) / 2.4))}
.lockActions{display:grid;gap:10px;align-self:stretch;margin-bottom:16px}
.lockNote{display:flex;gap:10px;align-items:flex-start;max-width:40ch;font:500 15px/1.45 var(--pismo-text);color:var(--fg-2)}
.lockNote .icon{width:18px;height:18px;margin-top:2px}
.lock .field{align-self:stretch;margin:16px 0 12px}
.lock--today .lockNote{margin-bottom:2px}
.lock--open .lockContent{align-self:stretch}
@media (max-width:375px){.lockTitle{font-size:34px;line-height:1.1}}
/* countdown: the big number is the opening time, the time left is small, seconds never */
.countdown{display:flex;flex-direction:column}
.countdownDay{font:700 26px/1.1 var(--pismo-nadpis);letter-spacing:-.01em}
.countdownTime{margin:4px 0 10px -.03em;font:800 132px/.92 var(--pismo-nadpis);letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap}
.countdownLeft{font:500 17px/1.3 var(--pismo-text)}
@media (max-width:375px){.countdownTime{font-size:112px}}

/* error page (404, 500, 503): the big code, a title, one sentence, the way on; cobalt, nothing in the middle */
.errorCode{margin:0 0 6px -.04em;font:800 112px/.9 var(--pismo-nadpis);letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.errorTitle{margin-bottom:12px}
.errorText{max-width:36ch;margin-bottom:28px;font:450 18px/1.45 var(--pismo-text);color:var(--fg-2)}
.errorActions{display:grid;gap:10px}
@media (min-width:600px){.errorActions{grid-auto-flow:column;justify-content:start}}

/* ========== COUPON ==========
   One object everywhere (screen, PNG 1080×1350, e-mail): a 5:7 game card with a round cut on top,
   a full coin in the cut (no number), the reward in big type without emoji, names in the 1st case. */
.coupon{display:flex;flex-direction:column;align-items:center}
.couponCard{position:relative;width:300px;max-width:100%;padding-top:36px}
.couponCoin{position:absolute;z-index:1;top:0;left:50%;width:72px;height:72px;margin-left:-36px;border-radius:50%;background:var(--mince-lesk) var(--mince)}
.couponBody{display:flex;flex-direction:column;align-items:center;aspect-ratio:5/7;padding:58px 26px 22px;border-radius:var(--r-kupon);
  background:var(--bila);color:var(--inkoust);text-align:center;
  -webkit-mask:radial-gradient(circle 46px at 50% 0,transparent 45px,#000 46px);mask:radial-gradient(circle 46px at 50% 0,transparent 45px,#000 46px)}
@supports not (aspect-ratio:1){.couponBody{min-height:420px}}
.couponLabel{margin-bottom:16px;font:700 12px/1.2 var(--pismo-text);letter-spacing:.16em;text-transform:uppercase;color:var(--tema)}
.couponTitle{margin-bottom:16px;font:800 40px/1.03 var(--pismo-nadpis);letter-spacing:-.026em;text-wrap:balance;overflow-wrap:break-word;overflow-wrap:anywhere}
.couponTitle--long{font-size:26px;line-height:1.1}
.couponText{margin-bottom:20px;font:450 17px/1.45 var(--pismo-text);color:var(--inkoust-2);text-wrap:pretty}
.couponFor{margin-top:auto;font:650 15px/1.35 var(--pismo-text)}
.couponDate{margin-top:4px;font:500 13px/1.3 var(--pismo-text);color:var(--inkoust-3)}
.couponBody .wordmark{--wm:14px;margin-top:18px}
.couponNote{max-width:30ch;margin-top:18px;font:600 15px/1.4 var(--pismo-text);text-align:center}
@media (max-width:375px){.couponTitle{font-size:34px}.couponTitle--long{font-size:25px}}

/* ========== HEADER, FOOTER ========== */
.siteHeader{position:relative;z-index:var(--z-hlavicka);display:flex;align-items:center;justify-content:space-between;gap:16px;
  height:64px;padding:0 var(--okraj)}
.siteHeader .wordmark{--wm:24px}
/* the wordmark as the link home: 44 px tall touch target */
.siteHome{display:flex;align-items:center;min-height:44px;margin-left:-2px;padding:0 2px;border-radius:8px;color:inherit}
.siteNav{display:flex;align-items:center;gap:8px 24px}
.siteNav a{display:inline-flex;align-items:center;min-height:44px;color:var(--fg);font:600 16px/1 var(--pismo-text);text-decoration:none;white-space:nowrap}
/* the same pills as the product header (marketing.css, variant A, 8. 11. 2026) */
.siteNav{gap:8px 12px}
.siteNav a{padding:0 16px;border-radius:var(--r-pill);transition:background-color var(--t-kratky) linear}
.siteNav a[aria-current="page"]{background:color-mix(in srgb,currentColor 20%,transparent)}
@media (forced-colors:active){.siteNav a[aria-current="page"]{outline:2px solid CanvasText;outline-offset:-2px}}
@media (hover:hover){.siteNav a:hover:not([aria-current]){background:color-mix(in srgb,currentColor 12%,transparent)}}
@media (min-width:900px){.siteHeader{height:80px}.siteHeader .wordmark{--wm:28px}}
/* the language menu on the right of the header (langSwitchHeader()): an outlined pill with the code, a caret next to it,
   the languages in a white card under it */
.langMenu{position:relative;flex:none}
.langMenuBtn{display:flex;align-items:center;gap:10px;min-height:44px;list-style:none;cursor:pointer;color:var(--fg);border-radius:var(--r-pill);
  -webkit-tap-highlight-color:transparent}
.langMenuBtn::-webkit-details-marker{display:none}
.langMenuCode{display:inline-grid;place-items:center;min-width:58px;height:34px;padding:0 14px;border-radius:var(--r-pill);
  box-shadow:inset 0 0 0 1.5px var(--obrys);font:700 14px/1 var(--pismo-text);letter-spacing:.06em;transition:background-color var(--t-kratky) linear}
.langMenuCaret{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;opacity:.7;
  transition:transform var(--t-kratky) linear}
.langMenu[open] .langMenuCaret{transform:rotate(180deg)}
@media (hover:hover){.langMenuBtn:hover .langMenuCode{background:var(--zavoj)}}
.langMenuBtn:focus-visible{outline:none}
.langMenuBtn:focus-visible .langMenuCode{box-shadow:inset 0 0 0 1.5px var(--obrys),var(--fokus-ring)}
.langMenuList{position:absolute;right:0;top:calc(100% + 6px);z-index:2;min-width:180px;margin:0;padding:6px;list-style:none;border-radius:var(--r-karta);
  background:var(--bila);color:var(--inkoust);box-shadow:0 18px 40px -12px rgba(17,17,17,.35),0 0 0 1px rgba(17,17,17,.06)}
.langMenuItem{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;
  color:inherit;font:600 15px/1.2 var(--pismo-text);text-decoration:none}
.langMenuItem .icon{width:18px;height:18px;color:var(--kobalt)}
a.langMenuItem:focus-visible{outline:none;box-shadow:var(--fokus)}
@media (hover:hover){a.langMenuItem:hover{background:var(--mlha)}}
/* footer (app/views/page_footer.php, R7): the wordmark, the platform's three products (the two to come
   lead to "Připravujeme"), help and rules, the seller; left-aligned columns, links 44 px tall */
.pageFooter{margin-top:48px;padding:32px var(--okraj) 24px;border-top:2px solid var(--delic);color:var(--fg-2);font:450 15px/1.5 var(--pismo-text)}
.pageFooterGrid{display:grid;gap:28px;max-width:var(--sirka);margin:0 auto}
.pageFooterBrand .wordmark{--wm:22px}
.pageFooterTagline{max-width:22em;margin-top:6px}
.pageFooterProducts{margin-top:28px} /* under the brand (8. 11. 2026) */
.pageFooterLegal a{color:inherit}
.supportOperator{margin-top:28px;scroll-margin-top:96px} /* Podpora #provozovatel under the contact (8. 11. 2026) */
.pageFooterTitle{margin-bottom:4px;font:700 14px/1.3 var(--pismo-text);letter-spacing:0;color:var(--fg-3)}
.pageFooterNav ul{margin:0;padding:0;list-style:none}
.pageFooterNav li{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
.pageFooterNav a{display:inline-flex;align-items:center;min-height:44px;color:var(--fg);font-weight:600;text-decoration:none;border-radius:6px}
.pageFooterSoon{font:500 13px/1.3 var(--pismo-text);color:var(--fg-3)}
.pageFooterLegal{max-width:var(--sirka);margin:24px auto 0;padding-top:16px;border-top:2px solid var(--delic);font:500 13px/1.6 var(--pismo-text);color:var(--fg-3)}
.flagCz{display:inline-block;vertical-align:-.12em;border-radius:2px}
@media (min-width:720px){.pageFooterGrid{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:32px}}
@media (hover:hover){.pageFooterNav a:hover{text-decoration:underline}}
/* the languages (1W-b, app/inc/lang_switch.php): names as text, the page's own plain, the other a link */
.pageFooterLang{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;max-width:var(--sirka);margin:0 auto;font:500 13px/1.6 var(--pismo-text);color:var(--fg-3)}
.pageFooterLang a,.pageFooterLang [aria-current]{display:inline-flex;align-items:center;min-height:44px;border-radius:6px}
.pageFooterLang a{color:var(--fg);font-weight:600}
/* the offer of the other language on top (html.langOfferOn from the script in <head>): ink, never moves the page */
.langOffer{display:none}
.langOfferOn .langOffer{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;padding:0 max(8px,calc(var(--cara) - 12px)) 0 var(--cara);background:var(--inkoust);color:var(--bila);
  font:500 15px/1.35 var(--pismo-text);--fokus-ring:var(--fokus-tmavy)}
.langOfferText{flex:1 1 12em;padding:10px 0}
.langOfferLink{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--bila);font-weight:700;border-radius:6px}
.langOfferClose{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bila)}

/* a note: what happened (ok) or what went wrong (err) — words and an icon, never colour alone
   (Moje dárky, sign-in, /nahlasit/) */
.note{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px;padding:14px 16px;border-radius:var(--r-pole);background:var(--mlha);font:500 15px/1.45 var(--pismo-text)}
.note .icon{flex:none;width:20px;height:20px;margin-top:1px}
.note--ok .icon{color:var(--uspech)}
.note--err{color:var(--chyba);font-weight:600}
.note a{color:inherit;font-weight:700}

/* ========== UTILITIES ========== */
.container{width:100%;max-width:calc(var(--sirka) + 2 * var(--okraj));margin:0 auto;padding:0 var(--okraj)}
.srOnly{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden} /* honeypot field of a form, out of sight */
.skipLink{position:absolute;z-index:var(--z-toast);top:8px;left:8px;transform:translateY(-200%)}
.skipLink:focus{transform:none}

/* ========== MOTION ==========
   Only transform and opacity. Reduced motion = the end state without the way there. */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes riseIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
/* the coin grows (0.35 → 1.04 → 1) and turns (scaleX); the unlock moment, the premiere seal, today's window */
@keyframes coinPop{0%{opacity:0;transform:scale(.35)}65%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:none}}
@keyframes coinTurn{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.02)}}
.coin.is-pop{animation:coinPop var(--t-dlouhy) var(--pruzina) both}
.coin.is-turn{animation:coinTurn 400ms var(--plynule)}
summary .icon{display:inline-block;vertical-align:middle} /* older WebKit lays <summary> out inline, not as flex */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
    transition-duration:1ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}

/* ========== TOUCH ==========
   Fields at least 16 px on touch screens (iOS zooms into smaller ones; zoom stays allowed). */
@media (pointer:coarse){.input--small{font-size:16px}}

/* ========== LETTER: the wish of the Paper workshop (7. 11. 2026; app/views/letter.php) ==========
   One light paper with a folded corner — the corner is cut out by clip-path (so the page shows through on any surface) and
   the flap drawn as a triangle in the fold's tone. Ink text, no shadow, no texture. Also drawn by create.js in the wizard's
   phone and around the recipient's message (project.css). */
:root{--prani-papir:#EAF3F7;--prani-zahyb:#C8D9DF;--prani-inkoust:#172B45;--prani-roh:26px}
.letter{position:relative;padding:24px 26px;border-radius:4px 4px 20px 4px;background:var(--prani-papir);color:var(--prani-inkoust);
  clip-path:polygon(0 0,calc(100% - var(--prani-roh)) 0,100% var(--prani-roh),100% 100%,0 100%);overflow-wrap:break-word;overflow-wrap:anywhere}
.letter::after{content:"";position:absolute;top:0;right:0;width:0;height:0;border-left:var(--prani-roh) solid var(--prani-zahyb);border-top:var(--prani-roh) solid transparent}
.letter>:first-child{margin-top:0}
.letter>:last-child{margin-bottom:0}
.letterKicker,.letterSign{margin:0 0 10px;font:600 14px/1.4 var(--pismo-text);color:#45454F}
.letterSign{margin:14px 0 0}
.letterTitle{margin:0 0 10px;padding-right:var(--prani-roh);font:800 26px/1.08 var(--pismo-nadpis);letter-spacing:-.02em;text-wrap:balance}
.letterText{margin:0 0 12px;font:500 17px/1.5 var(--pismo-text);white-space:pre-line}
.letterReward{margin:0;font:500 16px/1.45 var(--pismo-text)}
.letterReward b{font-weight:700}
/* Mikuláš: a small cut-out moon in the corner's shade, only on the wish (the art direction) */
.letter--moon::before{content:"";position:absolute;top:22px;right:46px;width:20px;height:20px;border-radius:50%;box-shadow:7px -5px 0 0 var(--prani-zahyb)}
@media (min-width:900px){.letter{padding:28px 30px}.letterTitle{font-size:29px}}
