/* karta.novysvet.net — vzhled podle Elišky (poukaz_wallet_design, navrhy.html blok 06):
   B · Visačka (výchozí, značka) a C · Rozsvícené okno (vánoční skin). Varianta = html[data-skin].
   Barvy z originálních souborů loga 2024 (specifikace §0). Písma DM Sans + DM Mono (OFL). Tusker na webu ne. */
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Variable-latinext.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular-latinext.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --coral: #CD7569; --cream: #EAE8D1; --sun: #FCC016; --espresso: #1A1410;
  --night: #0A0E1B; --night-house: #23324D;
  --bg: var(--cream); --fg: var(--espresso); --muted: rgba(26, 20, 16, .72); --line: rgba(26, 20, 16, .2);
  --hero-bg: var(--coral); --link: #8A3A2E;
  color-scheme: light;
}
html[data-skin="c"] {
  --bg: var(--night); --fg: var(--cream); --muted: rgba(234, 232, 209, .82); --line: rgba(234, 232, 209, .25);
  --hero-bg: var(--night); --link: var(--sun);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.mono { font-family: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace; }
a { color: var(--link); text-underline-offset: 3px; }
main { max-width: 30rem; margin: 0 auto; padding: 0 1.375rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }

/* horní scéna */
.stage { background: var(--hero-bg); padding-top: env(safe-area-inset-top, 0px); }
.brand { max-width: 30rem; margin: 0 auto; display: flex; align-items: center; gap: .625rem; padding: .5rem 1.375rem 0; font-weight: 600; font-size: .95rem; }
.brand .mark { height: 30px; width: auto; }
.hero { max-width: 30rem; margin: 0 auto; position: relative; height: 26.5rem; overflow: hidden; }

/* B · visačka: pětiúhelník se štítem 45°, otvor se sluncem */
.object {
  position: absolute; left: 50%; top: 4.1rem; width: 12.875rem; height: 25.75rem; margin-left: -6.4375rem;
  transform: rotate(-4deg); filter: drop-shadow(0 12px 18px rgba(80, 20, 10, .35));
  background: var(--cream); color: var(--espresso);
  clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
  -webkit-mask: radial-gradient(circle at 50% 62px, transparent 8.5px, #000 9px);
          mask: radial-gradient(circle at 50% 62px, transparent 8.5px, #000 9px);
}
.object .sun { position: absolute; left: 50%; top: 62px; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--sun); }
.object .bar-v, .object .bar-h { display: none; }
.object-text { position: absolute; left: 0; right: 0; top: 124px; text-align: center; padding: 0 .5rem; }
.label { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.balance { margin: .35rem 0 0; font-size: 2.875rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta { margin: .75rem 0 0; font-size: .72rem; line-height: 1.6; }
.object.muted .balance { opacity: .45; }
.object.loading .balance { opacity: .3; }

/* C · rozsvícené okno */
html[data-skin="c"] .hero { height: 24rem; }
html[data-skin="c"] .object {
  top: 2.1rem; width: 14.75rem; height: 18.75rem; margin-left: -7.375rem; transform: none; filter: none;
  clip-path: none; -webkit-mask: none; mask: none; border-radius: 6px;
  background: linear-gradient(180deg, #FFD868, var(--sun) 70%, #F4B30C);
  box-shadow: 0 0 80px 14px rgba(252, 192, 22, .28), 0 0 0 10px var(--night-house);
}
html[data-skin="c"] .object.muted { background: linear-gradient(180deg, #3A4766, #2A3552); color: var(--cream); box-shadow: 0 0 0 10px var(--night-house); }
html[data-skin="c"] .object .sun { display: none; }
html[data-skin="c"] .object .bar-v { display: block; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: rgba(120, 70, 0, .22); }
html[data-skin="c"] .object .bar-h { display: block; position: absolute; left: 0; right: 0; top: 118px; height: 3px; background: rgba(120, 70, 0, .22); }
html[data-skin="c"] .object-text { top: 146px; }

.status { margin: 1.25rem 0 0; font-size: 1rem; }
.status strong { font-weight: 600; }

/* tlačítka Wallet: oficiální odznaky Apple/Google (obrázek uvnitř tlačítka, beze změn),
   dokud nejsou soubory, textová záloha. Google: min. výška 48 dp, okolí 8 dp; Apple: okolí 0,1 × výška. */
.actions { display: grid; gap: .75rem; margin: 1.25rem 0 0; justify-items: start; }
.actions form { margin: 0; }
.wbtn { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; display: block; line-height: 0; }
.wbtn img { display: block; height: 48px; width: auto; }
.wbtn-text { display: inline-block; line-height: 1.2; font: 600 1rem/1.2 "DM Sans", system-ui, sans-serif; padding: .85rem 1.25rem; border-radius: 12px; background: #000; color: #fff; min-height: 48px; }
html[data-skin="c"] .wbtn-text { box-shadow: inset 0 0 0 1px rgba(234, 232, 209, .4); }
.wbtn:focus-visible, .go:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.manual { margin: 1.5rem 0 0; }
.intro { margin: 0 0 1rem; }
.manual label { display: block; font-weight: 600; margin-bottom: .4rem; }
.manual .row { display: flex; gap: .5rem; }
.manual input {
  flex: 1; min-width: 0; min-height: 3rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--espresso);
  padding: .7rem .8rem; font: 400 1rem/1 "DM Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase;
}
.go { min-height: 3rem; border: 0; border-radius: 10px; padding: 0 1.1rem; font: 600 1rem "DM Sans", system-ui, sans-serif; background: var(--fg); color: var(--bg); cursor: pointer; }
.hint { color: var(--muted); font-size: .875rem; margin: .45rem 0 0; }

.howto { margin: 1.5rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.howto b { color: var(--fg); font-weight: 600; }
details { margin: 1.25rem 0 0; }
summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
details p { color: var(--muted); font-size: .85rem; }
.foot { margin: 1.75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .66rem; line-height: 1.7; opacity: .8; display: flex; justify-content: space-between; gap: 1rem; }
.foot .right { text-align: right; }
.foot a { color: inherit; }

/* rozcestník a soukromí (bez scény) */
.prose { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
.prose .brand { padding: .5rem 0 1rem; }
.prose h1 { font-size: 1.6rem; line-height: 1.2; margin: .5rem 0 1rem; }
.prose h2 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.prose footer { margin-top: 2rem; font-size: .85rem; color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
