/* Početna kao prava stranica (odluka vlasnika 20.11.2026): puna širina, sekcije, "Play now" je jedna od opcija.
   Traka na vrhu (.site-head) koriste i nivoi i igra na računaru. */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .wrap { padding-left: 40px; padding-right: 40px; } }
.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gt-green { color: #1F3D10; -webkit-text-stroke-color: #1F3D10; }
.gt-green::after { background: linear-gradient(180deg, #F2FFC8 20%, #A6DE5A 58%, #5BAE2E 92%); -webkit-background-clip: text; background-clip: text; }

/* traka na vrhu */
.site-head { position: sticky; top: 0; z-index: 25; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.head-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.nav-logo img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 800; font-size: 17px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-app { background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; padding: 9px 18px; border-radius: 999px; box-shadow: var(--card-shadow); white-space: nowrap; }
.nav-app:hover { filter: brightness(1.08); }
@media (max-width: 759px) {
  .head-in { height: 58px; gap: 12px; }
  .nav-logo img { height: 40px; }
  .nav-links { gap: 14px; font-size: 15px; }
  .hide-sm { display: none; }
  .nav-app { padding: 7px 12px; font-size: 14px; }
  .site-head.desk-only { display: none; }
}

/* hero preko cijele širine */
.hero { position: relative; overflow: hidden; background: url("/assets/img/hero_bg.webp") center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246, 241, 231, .96) 0%, rgba(246, 241, 231, .88) 38%, rgba(246, 241, 231, .25) 62%, rgba(246, 241, 231, 0) 80%),
              linear-gradient(180deg, rgba(246, 241, 231, 0) 70%, var(--bg) 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center;
  min-height: min(760px, calc(100vh - 70px)); padding-top: 40px; padding-bottom: 60px; }
.pill { display: inline-block; background: var(--surface); box-shadow: var(--card-shadow); border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: 15px; color: var(--primary); }
.hero h1 { margin: 18px 0 10px; line-height: 1.02; }
.hero h1 .gt { font-size: clamp(40px, 5.4vw, 80px) !important; }
.lead { font-size: clamp(17px, 1.45vw, 21px); max-width: 600px; margin: 0 0 22px; color: var(--ink); font-weight: 500; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.cta-play { width: 330px !important; max-width: 100%; }
.cta-levels { width: 300px; max-width: 100%; }
.cta-row .play-badge { padding: 12px 22px 12px 18px; font-size: 20px; border-radius: 14px; }
.fine { color: var(--ink-soft); font-size: 15px; margin-top: 14px; font-weight: 600; }
.hero-phones { position: relative; height: min(640px, 70vh); }
.phone { position: absolute; width: 36%; aspect-ratio: 600 / 1250; border-radius: 30px; overflow: hidden; background: #1d1a17; border: 7px solid #1d1a17;
  box-shadow: 0 24px 50px rgba(60, 35, 10, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero-phones .p-mid { left: 32%; top: 0; width: 38%; z-index: 2; animation: float 6s ease-in-out infinite; }
.hero-phones .p-left { left: 2%; top: 12%; transform: rotate(-8deg); animation: float-l 7s ease-in-out infinite; }
.hero-phones .p-right { left: 64%; top: 12%; transform: rotate(8deg); animation: float-r 7.5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes float-l { 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes float-r { 50% { transform: rotate(6deg) translateY(-8px); } }

/* brojke */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -30px; position: relative; z-index: 3; }
.stat-card { background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); padding: 22px 16px; text-align: center; }
.stat-card b { display: block; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; color: var(--accent); font-weight: 800; }
.stat-card span { color: var(--ink-soft); font-weight: 700; }

/* probaj odmah */
.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 30px; }
.try h2, .features h2, .animals h2, .final h2, .daily-band h2 { margin: 4px 0 14px; }
.try h2 .gt, .sec-head h2 .gt, .final h2 .gt, .daily-band h2 .gt { font-size: clamp(30px, 3.4vw, 50px) !important; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 18px; background: var(--surface); border-radius: 16px; padding: 10px 14px; box-shadow: var(--card-shadow); }
.steps img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.steps img.dark { filter: brightness(.3); }
.try-next p { font-size: 18px; }
.try-next .fbtn { max-width: 320px; }
.try-board { width: 100%; }
.try-board .board-wrap { max-width: 560px; }

/* mogućnosti */
.features { padding-top: 70px; }
.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head p { font-size: 18px; margin: 0; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; padding: 30px 0; }
.feat.flip .feat-media { order: 2; }
.feat-media { position: relative; height: 560px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); border-radius: 40px; }
.feat-media .phone { left: 50%; top: 50%; transform: translate(-50%, -50%); height: 100%; width: auto; }
.feat-text h3 { margin: 6px 0 12px; }
.feat-text h3 .gt { font-size: clamp(28px, 3vw, 46px) !important; }
.feat-text p { font-size: clamp(17px, 1.4vw, 21px); max-width: 560px; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 40px; }
.mini-card { overflow: hidden; }
.mini-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.mini-card div { padding: 16px 20px 20px; }
.mini-card h3 { margin: 0 0 6px; font-size: 24px; }
.mini-card p { margin: 0; color: var(--ink-soft); }

/* životinje */
.animals { padding-top: 90px; }
.animal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.animal-card { background: var(--surface); border-radius: 20px; box-shadow: var(--card-shadow); padding: 14px 10px; text-align: center; display: grid; justify-items: center; gap: 2px; transition: transform .2s; }
.animal-card:hover { transform: translateY(-4px) rotate(-1deg); }
.animal-card img { width: 72px; height: 72px; object-fit: contain; }
.animal-card b { font-size: 19px; }
.animal-card span { font-size: 14px; color: var(--ink-soft); line-height: 1.25; }

/* tabla dana: traka preko cijele širine */
.daily-band { margin-top: 90px; background: linear-gradient(120deg, #FFE3A6, #F7C26A 55%, #EFA24E); }
.daily-in { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding-top: 34px; padding-bottom: 34px; color: #4A2E14; }
.daily-in .flame { width: 110px; animation: float 3s ease-in-out infinite; }
.daily-copy p { font-size: 19px; margin: 0; font-weight: 600; }
.daily-btn { width: 340px; }

/* kraj */
.final { text-align: center; padding-top: 80px; padding-bottom: 30px; }
.final-logo { width: min(80%, 420px); }
.final p { font-size: 19px; max-width: 720px; margin: 0 auto 22px; }

/* telefon i uži ekrani */
@media (max-width: 979px) {
  .hero::before { background: linear-gradient(180deg, rgba(246, 241, 231, .9) 0%, rgba(246, 241, 231, .82) 55%, var(--bg) 100%); }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 26px; padding-bottom: 50px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .try { grid-template-columns: 1fr; gap: 24px; padding-top: 60px; }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 18px; text-align: center; padding: 24px 0; }
  .feat.flip .feat-media { order: 0; }
  .feat-media { height: 440px; }
  .feat-text p { margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .animal-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .daily-in { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; }
  .daily-btn { width: min(100%, 340px); }
}
@media (max-width: 480px) {
  .hero-phones { height: 330px; }
  .stat-card { padding: 16px 10px; }
  .animal-card img { width: 56px; height: 56px; }
  .feat-media { height: 400px; }
}
/* raspored iz prve verzije početne više se ne koristi */
.topnav, .home-layout { display: none !important; }

/* ---------- SEO pregled 20.11.2026: H1, uvodi, „Coming soon“, stranica How to play ---------- */
.hero h1 .h1-sub { display: inline-block; margin-top: 6px; }
.hero h1 .h1-sub .gt { font-size: clamp(26px, 3.2vw, 46px) !important; }
.page-intro { color: var(--ink-soft); font-size: 16px; margin: 0 0 6px; text-align: center; }
.daily-h1 { margin: 2px 0 0; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink-soft); letter-spacing: .01em; }
.daily-about { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.daily-about p { margin: 0; }
.daily-h1 { padding: 10px 16px 0; }
.daily-about.screen { padding-top: 0; }
@media (min-width: 980px) { .daily-h1 { font-size: 18px; padding-top: 16px; margin-bottom: -10px; } .daily-about.screen { max-width: 1400px; padding: 0 40px 30px; } }
.play-badge.soon { background: #4a4440; cursor: default; }
.static-page main { max-width: 900px; margin: 0 auto; padding: 18px 16px 30px; }
.static-page h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 10px 0 6px; line-height: 1.1; }
.static-page h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 34px 0 8px; }
.static-page h3 { font-size: 21px; margin: 22px 0 6px; }
.static-page p, .static-page li { font-size: 18px; }
.static-page .lead-in { color: var(--ink-soft); font-size: 19px; }
.trick { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; background: var(--surface); border-radius: 22px; box-shadow: var(--card-shadow); padding: 16px; margin: 14px 0; }
.trick img { width: 100%; border-radius: 14px; display: block; }
.trick h3 { margin-top: 0; }
.rule-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 18px; box-shadow: var(--card-shadow); padding: 14px; scroll-margin-top: 90px; }
.rule-item img { width: 64px; height: 64px; flex: 0 0 64px; }
.rule-item h3 { margin: 0 0 4px; font-size: 20px; }
.rule-item p { margin: 0; font-size: 16px; }
.static-cta { text-align: center; margin: 34px 0 10px; }
.static-cta .fbtn { max-width: 340px; margin: 0 auto; }
@media (max-width: 700px) { .trick { grid-template-columns: 1fr; } .rule-list { grid-template-columns: 1fr; } }

/* ---------- tamna tema sajta (theme.js postavlja data-theme na <html>; boje su iste kao tamna tema u igri) ---------- */
.theme-btn { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--card-shadow); color: var(--ink); padding: 0; }
.theme-btn svg { width: 22px; height: 22px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.doc-top { position: relative; }
.doc-top .theme-btn { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top)); }

:root[data-theme="dark"] .hero::before {
  background: linear-gradient(90deg, rgba(27, 25, 22, .95) 0%, rgba(27, 25, 22, .86) 38%, rgba(27, 25, 22, .4) 62%, rgba(27, 25, 22, .15) 80%),
              linear-gradient(180deg, rgba(27, 25, 22, 0) 70%, var(--bg) 100%);
}
@media (max-width: 979px) {
  :root[data-theme="dark"] .hero::before { background: linear-gradient(180deg, rgba(27, 25, 22, .9) 0%, rgba(27, 25, 22, .82) 55%, var(--bg) 100%); }
}
:root[data-theme="dark"] .nav-app { color: #1F2A1A; }
:root[data-theme="dark"] .daily-band { background: linear-gradient(120deg, #4A3418, #6B4A1E 55%, #7E5222); }
:root[data-theme="dark"] .daily-in { color: #FFE9B8; }
:root[data-theme="dark"] .guided { background: #4A3A1E; color: #FFE9B8; }
:root[data-theme="dark"] .lv.app { background: linear-gradient(160deg, #5A4120, #7A5522); }
:root[data-theme="dark"] .lv.app .stars { color: #FFE0A0 !important; }
:root[data-theme="dark"] .play-badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), var(--card-shadow); }
:root[data-theme="dark"] .badge { outline-color: rgba(241, 232, 218, .3); }
:root[data-theme="dark"] .phone { border-color: #0f0d0b; background: #0f0d0b; }
:root[data-theme="dark"] .steps img.dark { filter: none; }

/* ---------- prelaz između teme: krug iz dugmeta (View Transitions) ili meko pretapanje ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, opacity .5s ease !important;
}
.theme-btn svg { transition: transform .3s ease; }
.theme-btn.spin svg { animation: theme-spin .65s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes theme-spin { from { transform: rotate(-200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-btn:active { transform: scale(.9); }
