/* HAP! product page. System fonts only, so nothing loads from outside. */
:root {
  --ink: #15202B;
  --ink-soft: #46535F;
  --paper: #FBF7EC;
  --line: #E4DCC8;
  --sun: #FFD34D;
  --green: #4CC172;
  --green-dk: #1F9A4E;
  --green-txt: #116B35;
  --mouth: #C2304A;
  --mouth-dk: #8A1C31;
  --tongue: #E8566B;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "DM Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --page: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
#content:focus { outline: none; }

/* Language: without JS both versions are shown one after the other. */
html[data-lang="en"] .l-sk, html[data-lang="sk"] .l-en { display: none; }
html[data-lang="en"] .t-sk, html[data-lang="sk"] .t-en { display: none; }
html:not([data-lang]) .t-sk::before { content: " / "; }

.defs { position: absolute; }
.c-green { fill: var(--green); }
.c-green-dk { fill: var(--green-dk); }
.c-mouth { fill: var(--mouth); }
.c-throat { fill: var(--mouth-dk); }
.c-tongue { fill: var(--tongue); }
.c-tooth { fill: #fff; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.c-eye { fill: #fff; }
.c-ink { fill: var(--ink); }
.c-tongue-ln { fill: none; stroke: #D44562; stroke-width: 8; stroke-linecap: round; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 5; }
.skip:focus { top: 12px; }

.top { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; align-items: center; max-width: var(--page); margin: 0 auto; padding: 20px var(--gutter); }
.brand { font: 800 1.375rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.lang { display: flex; gap: 4px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; font-size: .9375rem; text-decoration: none; border-radius: 8px; }
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* Hero */
.hero { position: relative; background: var(--sun); padding: 104px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: end; overflow: hidden; }
.hero-text { padding-bottom: 72px; }
.kicker { font-weight: 700; font-size: .9375rem; margin-bottom: 16px; }
h1 { font-size: clamp(5.5rem, 15vw, 11rem); font-weight: 900; letter-spacing: -.035em; line-height: .9; }
h1 .sub { display: block; font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -.01em; line-height: 1.15; font-weight: 800; margin-top: 18px; }
.lede { font-size: 1.1875rem; max-width: 30em; margin-top: 18px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 12px; font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn:hover { background: #2B3947; color: #fff; }
.hero-croc { display: block; width: 100%; height: auto; max-height: 560px; margin-bottom: -14px; }

/* Status */
.status { max-width: var(--page); margin: 0 auto; padding: 64px var(--gutter) 56px; }
.status h2, .demo h2, .rules > h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.status dl { margin-top: 28px; border-top: 2px solid var(--ink); }
.status dl > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.status dt { font-weight: 700; }
.status dd { max-width: 44em; }
.note { color: var(--ink-soft); margin-top: 20px; max-width: 46em; }

/* Demo: only exists when JS runs */
.demo { background: var(--ink); color: #fff; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 64px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); align-items: center; }
.demo p { margin-top: 16px; max-width: 32em; }
.demo .note { color: #B9C4CE; }
.demo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 28px; }
.demo-stats dt { font-size: .875rem; color: #B9C4CE; }
.demo-stats dd { font: 800 1.625rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.demo-stage { position: relative; background: var(--sun); color: var(--ink); border-radius: 20px; padding: 16px 24px 24px; }
.demo-stage svg { display: block; width: 100%; max-height: 340px; }
.jaw { transform: translateY(var(--open, 0px)); transition: transform 90ms linear; }
.bitten .jaw { transition: transform 150ms cubic-bezier(.5, 0, 1, .6); }
.bitten .demo-stage { animation: bite-flash 420ms ease-out; }
@keyframes bite-flash { 0% { background: var(--mouth); } 100% { background: var(--sun); } }
.demo-bite { position: absolute; top: 12px; left: 24px; margin: 0; color: var(--mouth-dk); font: 900 clamp(3rem, 7vw, 4.5rem)/1 var(--display); }
.demo-bite[hidden], .demo-msg:empty { display: none; }
.demo-label { display: block; font-weight: 700; margin-top: 8px; }
.demo input[type="range"] { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--green-txt); }
.demo input[type="range"]:disabled { opacity: .5; }
.hold { height: 8px; background: rgba(21, 32, 43, .18); border-radius: 4px; overflow: hidden; }
.hold-fill { width: 0; height: 100%; background: var(--green-txt); }
.demo-stage .demo-msg { font-weight: 700; margin-top: 12px; min-height: 1.65em; max-width: none; }
.demo-stage .btn { margin-top: 12px; }
.demo-stage .btn[hidden] { display: none; }

/* Guide */
.guide { max-width: var(--page); margin: 0 auto; padding: 72px var(--gutter) 88px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; font-size: .9375rem; }
.toc-title { font: 800 1.125rem/1.2 var(--display); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.rules { max-width: 42em; }
.rules section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.rules > h2 + section { border-top: 2px solid var(--ink); margin-top: 24px; }
.rules h3 { font-size: 1.625rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.rules p + p, .rules ul + p, .rules ol + p, .rules p + ul, .rules p + .table-wrap { margin-top: 14px; }
.rules ul, .rules ol { padding-left: 1.4em; }
.rules li { margin-top: 8px; padding-left: .2em; }
.rules ol > li::marker { font-weight: 800; font-family: var(--display); color: var(--green-txt); }
.rules ul > li::marker { color: var(--green-dk); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-size: .9375rem; }

.foot { background: var(--ink); color: #D9E0E6; padding: 32px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); font-size: .9375rem; }
.foot p + p { margin-top: 10px; }

@media (max-width: 960px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
  .demo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 88px; gap: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-croc { max-width: 460px; margin-inline: auto; }
  .status dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 480px) {
  .toc ol { columns: 1; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .jaw, .bitten .jaw { transition: none; }
  .bitten .demo-stage { animation: none; }
}

@media print {
  .top, .demo-slot, .toc, .hero-links { display: none; }
  .guide { display: block; }
}
html:not([data-lang]) .btn-quiet { display: none; }

.brand img { display: block; height: 34px; width: auto; }

/* Zvieratká a HAP! Party */
.animals { max-width: var(--page); margin: 0 auto; padding: 8px var(--gutter) 64px; }
.animals h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.animal-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.animal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 20px; text-align: center; }
.animal img { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; margin: 0 auto 10px; }
.animal h3 { font-size: 1.25rem; font-weight: 800; }
.animal p { font-size: .9375rem; margin-top: 8px; color: var(--ink-soft); }
.animal .tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .8125rem; }
.tag-free { background: #DDF5E5; color: var(--green-txt) !important; }
.tag-party { background: var(--ink); color: #fff !important; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin-top: 4px; }
@media (max-width: 960px) { .animal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== v4: lesklý herný štýl (Pavol 2. 11. 2026) ===== */
:root { --sky: #3BA9F0; --sky-lt: #A8E2FF; --navy: #12357A; --wood: #8B4A1E; --gold: #FFC83D; }
.top .lang a { color: var(--navy); }
.top .lang a[aria-current] { background: var(--navy); color: #fff; }
.hero { background: linear-gradient(180deg, var(--sky) 0%, #6CC6F7 55%, var(--sky-lt) 100%); color: var(--navy); align-items: center; padding-bottom: 48px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: radial-gradient(60% 100% at 50% 100%, rgba(255,255,255,.55), transparent 70%); pointer-events: none; }
.hero-text { padding-bottom: 0; position: relative; z-index: 1; }
.kicker { display: inline-block; background: rgba(255,255,255,.75); padding: 4px 12px; border-radius: 999px; font-size: .875rem; }
.logo { margin: 6px 0 0; line-height: .9; }
.logo-hap { display: block; font-size: clamp(5rem, 13vw, 9rem); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(180deg, #FFF06A 0%, #FFD23F 45%, #FF9F1C 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 6px var(--navy); paint-order: stroke fill; filter: drop-shadow(0 6px 0 var(--navy)); transform: rotate(-3deg); transform-origin: left bottom; }
.logo-party { display: inline-block; margin-top: 10px; padding: 6px 18px 8px; background: linear-gradient(180deg, #B5652B, var(--wood)); color: #FFF4DE; border: 3px solid #5A2C0E;
  border-radius: 14px; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: .01em; box-shadow: 0 4px 0 #5A2C0E; transform: rotate(-2deg); }
.claim { font: 900 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--display); margin-top: 22px; }
.hero .lede { color: var(--navy); }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 20px; background: #000; color: #fff; border-radius: 12px; font-weight: 700; }
.soon svg { width: 22px; height: 22px; fill: #fff; }
.hero .btn-quiet { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.6); }
.hero .btn-quiet:hover { background: #fff; color: var(--navy); }
.meta { margin-top: 14px; font-size: .9375rem; font-weight: 600; opacity: .85; }
.hero-art { position: relative; z-index: 1; justify-self: center; }
.hero-art img { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 32px; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(18,53,122,.35); transform: rotate(2deg); }
.features { list-style: none; margin: -28px auto 0; padding: 18px var(--gutter); max-width: calc(var(--page) - 2 * var(--gutter)); position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(18,53,122,.15); }
.features li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 6px 4px; color: var(--navy); }
.features svg { width: 34px; height: 34px; fill: none; stroke: #2F6FE0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.features strong { font-size: 1rem; } .features span { font-size: .875rem; color: var(--ink-soft); }
.animal { border: 0; box-shadow: 0 8px 24px rgba(18,53,122,.12); padding: 0 0 18px; overflow: hidden; }
.animal img { max-width: none; width: 100%; border-radius: 0; margin: 0 0 12px; }
.animal h3, .animal p { padding: 0 12px; }
.tag-party { background: var(--navy); }
.parents { max-width: var(--page); margin: 0 auto; padding: 8px var(--gutter) 64px; }
.parents h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.parent-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.parent-grid li { background: #EEF7FF; border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; }
.parent-grid strong { color: var(--navy); } .parent-grid span { color: var(--ink-soft); font-size: .9375rem; }
.demo-stage { background: linear-gradient(180deg, var(--sky), var(--sky-lt)); }
.demo-art { position: relative; aspect-ratio: 1; max-width: 340px; margin: 0 auto 8px; border-radius: 24px; overflow: hidden; border: 5px solid #fff; }
.demo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-art .jaw { opacity: 0; transition: opacity 90ms linear; transform: none; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hero-art img { max-width: 340px; } .logo-hap { -webkit-text-stroke-width: 4px; } }
@media (prefers-reduced-motion: reduce) { .demo-art .jaw { transition: none; } }
.logo { font-size: 1rem; letter-spacing: 0; }
body { background: #F2F9FF; }
.status h2, .animals h2, .parents h2, .rules > h2, .guide h2 { color: var(--navy); }
.status dl { border-top-color: var(--navy); }
.parent-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.animal { background: #fff; }
.demo { background: linear-gradient(160deg, #12357A, #1E5BB8); }
