/* ==========================================================
   igricezadecu.rs — app.css
   Stil: "nalepnice na igralištu" — debela kontura, tvrda senka,
   dugmad koja se utisnu kad ih dete pritisne.
   ========================================================== */

:root {
  --sky: #DFF2FF;
  --sky-2: #C9E9FF;
  --ink: #1D2B53;
  --ink-2: #44506F;
  --sun: #FFC933;
  --sun-2: #FFE08A;
  --tomato: #FF5A47;
  --grass: #22A565;
  --white: #FFFFFF;

  --font: "Baloo 2", "Nunito", "Trebuchet MS", system-ui, sans-serif;

  --line: 3px;
  --shadow: 0 5px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
  --r-panel: 28px;
  --r-card: 20px;
  --r-img: 14px;

  --wrap: 1240px;
  --gap: clamp(12px, 2vw, 20px);
  --tabbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--sky);
  background-image:
    radial-gradient(circle at 12px 12px, rgba(29, 43, 83, .07) 2px, transparent 2.5px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sun); border: var(--line) solid var(--ink); border-radius: 12px;
  padding: 8px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 4px solid var(--tomato); outline-offset: 3px; border-radius: 10px; }

.ico { width: 24px; height: 24px; flex: none; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  font-family: var(--font); font-size: 19px; font-weight: 800; line-height: 1;
  text-decoration: none; color: var(--ink);
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background-color: #F4FAFF; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: #FFD24F; }
.btn-tomato { background: var(--tomato); color: var(--white); }
.btn-tomato:hover { background: #FF6B59; }
.btn-ghost { background: transparent; box-shadow: none; border-width: 2px; min-height: 42px; padding: 6px 16px; font-size: 16px; }
.btn-ghost:hover { background: var(--white); }
.btn-ghost:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { min-height: 42px; font-size: 16px; padding: 6px 16px; }
.btn .ico { width: 26px; height: 26px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Gornja traka ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--sun);
  border-bottom: var(--line) solid var(--ink);
}
.topbar-in {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: none;
}
.brand .logo-mark { transition: transform .2s ease; }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.search { position: relative; flex: 1 1 360px; max-width: 520px; display: flex; }
.search-input {
  width: 100%; min-height: 50px;
  padding: 8px 60px 8px 20px;
  font: 600 18px var(--font); color: var(--ink);
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: inset 0 3px 0 rgba(29, 43, 83, .08);
  -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: #7A84A0; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--tomato); color: var(--white);
  border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
}

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow: auto;
}
.suggest a {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 17px;
}
.suggest a:hover, .suggest a.is-active { background: var(--sky); }
.suggest img { width: 52px; height: 42px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.suggest .suggest-all { justify-content: center; color: var(--ink-2); font-size: 16px; }

.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent;
}
.mainnav a:hover { background: rgba(255, 255, 255, .55); }
.mainnav a[aria-current="page"] { background: var(--white); border-color: var(--ink); }
.mainnav .ico { width: 22px; height: 22px; }

.search-toggle { display: none; margin-left: auto; }

.userbar {
  display: flex; gap: 16px; justify-content: flex-end; align-items: center;
  font-size: 15px; padding-bottom: 6px;
}
.userbar a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.userbar .ico { width: 18px; height: 18px; }

/* ---------- Glavni sadržaj ---------- */
main { display: block; padding-bottom: 40px; }
main:focus { outline: none; }
.section { margin-top: clamp(28px, 5vw, 48px); }

.sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.sec-title { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 3vw, 32px); }
.sec-ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 14px;
  transform: rotate(-6deg);
}
.sec-ico .ico { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: var(--r-panel);
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}
.hero::before { /* sunce u uglu */
  content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -90px;
  background: repeating-conic-gradient(var(--sun-2) 0 12deg, transparent 12deg 24deg);
  border-radius: 50%; opacity: .7; pointer-events: none;
}
.hero-text { position: relative; }
.hero h1 { margin-bottom: 12px; }
.hero-lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 30ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { min-height: 60px; font-size: 21px; padding: 12px 26px; }
.dice-btn .ico { width: 30px; height: 30px; transition: transform .4s ease; }
.dice-btn:hover .ico { transform: rotate(180deg); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 16px; font-weight: 700; color: var(--ink-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grass); border: 2px solid var(--ink);
}

/* Kolaž nalepnica u heroju */
.stickers { position: relative; height: 330px; }
.sticker {
  position: absolute; width: 58%;
  background: var(--white); padding: 8px 8px 10px;
  border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease;
}
.sticker img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--sky-2); }
.sticker span { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; padding: 6px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker::before { /* traka */
  content: ""; position: absolute; top: -12px; left: 50%; width: 74px; height: 22px; margin-left: -37px;
  background: rgba(255, 201, 51, .85); border: 2px solid rgba(29, 43, 83, .25); transform: rotate(-4deg);
}
.sticker-1 { left: 0; top: 18px; transform: rotate(-7deg); z-index: 2; }
.sticker-2 { right: 0; top: 0; transform: rotate(6deg); z-index: 1; }
.sticker-3 { left: 24%; bottom: -4px; transform: rotate(-2deg); z-index: 3; width: 52%; }
.sticker:hover { transform: rotate(0) scale(1.04); z-index: 5; }

/* ---------- Kartice igrica ---------- */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  padding: 7px 7px 0;
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-img { position: relative; display: block; border-radius: var(--r-img); overflow: hidden; background: var(--sky-2); border: 2px solid var(--ink); }
.card-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .25s ease; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.15em + 16px);
  padding: 8px 4px; font-size: 17px; font-weight: 700; line-height: 1.15;
}
.card-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--tomato); color: var(--white);
  border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: 0 2px 0 var(--ink);
  transform: scale(.85); opacity: .92; transition: transform .15s ease;
}
.card-play .ico { width: 22px; height: 22px; margin-left: 2px; }
.badge {
  position: absolute; left: 8px; top: 8px;
  padding: 2px 10px; font-size: 14px; font-weight: 800;
  border: 2px solid var(--ink); border-radius: 999px;
}
.badge-new { background: var(--grass); color: var(--white); }
.badge-top { background: var(--sun); }

.card:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); }
.card:hover .card-img img { transform: scale(1.06); }
.card:hover .card-play { transform: scale(1.05); }
.card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* Horizontalni red (mobilni skrol) */
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px);
  gap: var(--gap); overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.row-scroll > * { scroll-snap-align: start; }

/* ---------- Kategorije (čipovi) ---------- */
.chips {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.chip {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 6px 6px;
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1.1;
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s;
}
.chip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; background: var(--sky-2); }
.chip-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip-count { font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--sky); border-radius: 999px; padding: 0 8px; }
.chip:hover { background: var(--sun-2); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.chips-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-inline .chip { font-size: 16px; }
.chips-inline .chip img { width: 38px; height: 38px; }

/* Velike pločice kategorija (strana Kategorije) */
.tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile {
  position: relative; display: block; padding: 8px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-card);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-img); border: 2px solid var(--ink); background: var(--sky-2); }
.tile-name { display: block; padding: 10px 4px 2px; font-size: 20px; font-weight: 800; line-height: 1.15; }
.tile-count { display: block; padding: 0 4px 4px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.tile:nth-child(3n+1) { transform: rotate(-.8deg); }
.tile:nth-child(3n+2) { transform: rotate(.6deg); }
.tile:hover { transform: translateY(-3px) rotate(0); box-shadow: 0 8px 0 var(--ink); }
.tile:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Zaglavlje strane (kategorija, liste) ---------- */
.page-head {
  margin-top: 20px; padding: clamp(20px, 3vw, 32px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-panel);
  box-shadow: 0 6px 0 var(--ink);
  display: flex; gap: 22px; align-items: center;
}
.page-head-img {
  width: 110px; height: 110px; flex: none; border-radius: 24px; object-fit: cover;
  border: var(--line) solid var(--ink); transform: rotate(-5deg); box-shadow: var(--shadow-sm);
  background: var(--sky-2);
}
.page-head-body { min-width: 0; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 6px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.page-meta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: var(--sky); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: 15px; margin-bottom: 8px; }

/* Mrvice */
.crumbs { margin-top: 18px; font-size: 16px; font-weight: 600; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; font-weight: 800; color: var(--ink); opacity: .5; margin-right: 2px; }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 2px solid rgba(29, 43, 83, .25); }
.crumbs a:hover { border-color: var(--tomato); }

/* ---------- Paginacija ---------- */
.more-wrap { display: flex; justify-content: center; margin: 30px 0 8px; }
.btn-more { min-height: 62px; min-width: min(360px, 100%); font-size: 21px; }
.btn-more:disabled { opacity: .75; cursor: progress; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 32px 0 8px; }
.pager-nums { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager-btn {
  min-width: 50px; min-height: 50px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-weight: 800; font-size: 18px; text-decoration: none;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.pager-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pager-btn.is-current { background: var(--sun); }
.pager-step { padding: 0 18px; }
.pager-gap { font-weight: 800; padding: 0 2px; }

/* ---------- Tekstualni blokovi (SEO / info) ---------- */
.prose {
  margin-top: 40px; padding: clamp(22px, 4vw, 40px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-panel);
  box-shadow: 0 6px 0 var(--ink);
}
.prose-in { max-width: 72ch; }
.prose, .footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.2em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.1em 0 .4em; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: #2A375D; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--ink); font-weight: 700; text-decoration-color: var(--tomato); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0; }
.age-card { background: var(--sky); border: 2px solid var(--ink); border-radius: 20px; padding: 16px 18px; }
.age-card h3 { margin: 0 0 6px; }
.age-card p { font-size: 17px; margin: 0; }

/* ---------- Strana igrice ---------- */
.game-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 14px 0 16px; }
.game-top h1 { font-size: clamp(30px, 4.6vw, 48px); }
.h1-sub { display: block; font-size: .42em; font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; }

.stage {
  position: relative;
  width: 100%; aspect-ratio: 16 / 10; max-height: 78vh; min-height: 320px;
  background: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--r-panel);
  box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}
.stage iframe, .stage .stage-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage-poster {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 20px; text-align: center; color: var(--white);
  background: var(--ink);
  cursor: pointer;
}
.stage-poster::before { /* zamućena pozadina od sličice */
  content: ""; position: absolute; inset: -30px;
  background-image: var(--poster); background-size: cover; background-position: center;
  filter: blur(22px) saturate(1.3) brightness(.65);
}
.stage-poster > * { position: relative; }
.stage-thumb {
  width: min(300px, 55vw); aspect-ratio: 5 / 4; object-fit: cover;
  border: 4px solid var(--white); border-radius: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  transform: rotate(-3deg);
}
.play-big {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 72px; padding: 12px 38px 12px 24px;
  font: 800 30px var(--font); color: var(--white);
  background: var(--tomato);
  border: 4px solid var(--white); border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  animation: bob 1.8s ease-in-out infinite;
}
.play-big .ico { width: 40px; height: 40px; }
.play-big:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.stage-hint { font-size: 16px; opacity: .9; margin: 0; }
.stage.is-playing .stage-poster { display: none; }
.stage-loading {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); color: var(--white); font-size: 22px; font-weight: 800;
}
.stage-loading[hidden] { display: none; }
.spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, .2); border-top-color: var(--sun); border-right-color: var(--tomato);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stage-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 52px; height: 52px; display: none; place-items: center;
  background: var(--tomato); color: var(--white);
  border: 3px solid var(--white); border-radius: 50%; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4);
}
.stage-close .ico { width: 28px; height: 28px; }
.stage:fullscreen { border-radius: 0; border: 0; max-height: none; aspect-ratio: auto; }
.stage:fullscreen .stage-close { display: grid; }
.stage.is-pseudo-fs {
  position: fixed; inset: 0; z-index: 1000;
  width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0; aspect-ratio: auto;
  border: 0; border-radius: 0;
}
.stage.is-pseudo-fs .stage-close { display: grid; }
body.no-scroll { overflow: hidden; }

.game-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.fav-btn[aria-pressed="true"] { background: var(--tomato); color: var(--white); }
.fav-btn[aria-pressed="true"] .ico { fill: currentColor; }

.game-cats { margin-top: 14px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 28px; align-items: start; }
.panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-panel);
  box-shadow: 0 6px 0 var(--ink);
}
.panel + .panel { margin-top: 24px; }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin-bottom: 10px; }
.panel h2 .ico { width: 30px; height: 30px; padding: 3px; background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; }
.panel .txt { font-size: 18px; line-height: 1.65; color: #2A375D; overflow-wrap: anywhere; }
.panel .txt p:last-child { margin-bottom: 0; }

.side-list { display: grid; gap: 12px; }
.side-item {
  display: flex; align-items: center; gap: 12px; padding: 6px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm);
  text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2;
}
.side-item img { width: 96px; height: 76px; flex: none; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--sky-2); }
.side-item:hover { background: var(--sun-2); }
.side-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* Česta pitanja */
.faq details { border: 2px solid var(--ink); border-radius: 16px; background: var(--sky); margin-top: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 800; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; font-size: 17px; line-height: 1.6; color: #2A375D; }
.faq a, .panel .txt a { color: var(--ink); font-weight: 700; text-decoration-color: var(--tomato); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* Komentari */
.comments { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.comment { display: flex; gap: 12px; }
.avatar {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun-2);
}
.comment-body { background: var(--sky); border: 2px solid var(--ink); border-radius: 4px 18px 18px 18px; padding: 8px 14px; flex: 1; min-width: 0; }
.comment-name { font-weight: 800; }
.comment-date { font-size: 14px; color: var(--ink-2); margin-left: 6px; }
.comment-text { margin: 2px 0 0; overflow-wrap: anywhere; }
.empty-note { color: var(--ink-2); }

.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 4px; }
.field small { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.input, textarea.input {
  width: 100%; min-height: 50px; padding: 10px 16px;
  font: 600 18px var(--font); color: var(--ink);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 16px;
}
textarea.input { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border: 2px solid var(--ink); border-radius: 16px; font-weight: 700; margin-bottom: 14px; }
.notice-ok { background: #D6F5E3; }
.notice-err { background: #FFE1DC; }

/* Auth kartica */
.auth { max-width: 480px; margin: 32px auto 0; }

/* ---------- Reklama ---------- */
.ad { margin: 28px 0; text-align: center; min-height: 120px; }
.ad-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; letter-spacing: .02em; }

/* ---------- Prazna stanja ---------- */
.empty {
  text-align: center; padding: 36px 20px;
  background: var(--white); border: var(--line) dashed var(--ink); border-radius: var(--r-panel);
}
.empty-art { font-size: 64px; line-height: 1; margin-bottom: 10px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 18px; }

/* 404 */
.lost { text-align: center; padding: clamp(30px, 6vw, 60px) 20px; }
.lost-num { font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: .9; color: var(--tomato); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.lost h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0; }
.lost p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 22px; }
.lost .hero-actions { justify-content: center; }

/* ---------- Futer ---------- */
.footer {
  margin-top: 40px; padding: 40px 0 24px;
  background: var(--ink); color: #E8EEFF;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; }
.brand-foot { color: var(--white); margin-bottom: 12px; }
.footer-about p { font-size: 16px; color: #C4CDE8; max-width: 36ch; }
.footer-h { font-size: 18px; margin-bottom: 10px; color: var(--sun); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-cats ul { columns: 3 140px; column-gap: 20px; }
.footer li { margin-bottom: 6px; font-size: 16px; }
.footer a { color: #E8EEFF; text-decoration: none; }
.footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-copy { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; color: #A9B3D1; }

/* ---------- Donja traka (mobilni) ---------- */
.tabbar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .mainnav span { display: none; }
  .mainnav a { padding: 10px; }
  .game-layout { grid-template-columns: 1fr; }
  .side-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 820px) {
  body { font-size: 17px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .topbar-in { min-height: 64px; gap: 10px; }
  .brand-text { font-size: 22px; }
  .brand .logo-mark { width: 38px; height: 38px; }
  .mainnav { display: none; }
  .search-toggle { display: inline-grid; }
  .search {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-width: none; padding: 10px 14px 12px; background: var(--sun); border-bottom: var(--line) solid var(--ink);
  }
  .search.is-open { display: flex; }
  .search-btn { right: 19px; }
  .suggest { left: 14px; right: 14px; }

  .hero { grid-template-columns: 1fr; text-align: left; gap: 14px; padding: 18px 18px 22px; margin-top: 14px; }
  .hero h1 { font-size: 34px; margin-bottom: 6px; }
  .hero-lead { font-size: 18px; margin-bottom: 16px; }
  .stickers { height: 178px; order: -1; margin: 6px 4px 0; }
  .sticker { width: 46%; padding: 6px 6px 8px; }
  .sticker span { font-size: 14px; }
  .sticker-3 { left: 27%; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; min-height: 56px; font-size: 18px; padding: 10px 14px; }
  .hero-facts { display: none; }
  .sec-title { font-size: 23px; }
  .sec-ico { width: 38px; height: 38px; border-radius: 12px; }
  .sec-head .btn-ghost { font-size: 15px; min-height: 38px; padding: 4px 12px; white-space: nowrap; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; }
  .card-title { font-size: 16px; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .chip { font-size: 16px; }
  .chip img { width: 44px; height: 44px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tile-name { font-size: 18px; }

  .page-head { flex-direction: row; align-items: flex-start; gap: 14px; }
  .page-head-img { width: 72px; height: 72px; border-radius: 18px; }

  .stage { aspect-ratio: 4 / 3; min-height: 260px; border-radius: 22px; }
  .stage-poster { gap: 14px; }
  .stage-thumb { width: min(190px, 48vw); border-width: 3px; border-radius: 16px; }
  .stage-hint { display: none; }
  .game-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-tools .btn { font-size: 17px; padding: 8px 10px; gap: 8px; white-space: nowrap; min-height: 50px; }
  .game-tools .btn .ico { width: 22px; height: 22px; }
  .game-top h1 { font-size: 30px; }
  .crumbs { font-size: 15px; margin-top: 12px; }
  .page-head p { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    background: var(--white); border-top: var(--line) solid var(--ink);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: var(--tabbar-h); padding: 0; background: none; border: 0; cursor: pointer;
    font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-2); white-space: nowrap;
  }
  .tabbar .ico { width: 28px; height: 28px; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"] .ico { color: var(--tomato); }
  .tab-dice-in {
    display: grid; place-items: center; width: 60px; height: 60px; margin-top: -26px;
    background: var(--sun); border: var(--line) solid var(--ink); border-radius: 20px;
    box-shadow: var(--shadow-sm); transform: rotate(-8deg); color: var(--ink);
  }
  .tab-dice-in .ico { width: 34px; height: 34px; }
  .tab-dice:active .tab-dice-in { transform: rotate(-8deg) translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  .tab-dice { color: var(--ink) !important; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { min-height: 56px; font-size: 19px; }
  .play-big { font-size: 26px; min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
