/* Úvodní stránka v9 (2026-10-20) – jeden styl místo šesti vrstev.
   Systém: obsah v .wrap (1180 px). Sekce mají shodné odsazení (140 px, telefon 88 px), nadpis sekce vždy stejný blok
   (kicker → nadpis → text). Řady ilustrace/text: mřížka 7/5 sloupců; ilustrace volně (BEZ obdélníků v pozadí), každá vyplní
   šířku svého sloupce, takže hrany všech řad sedí na stejných liniích. Hero = nadpis + jedno tlačítko. Žádná kurzíva. */

.home em, .home i { font-style: normal; }
.h9-gold { color: var(--gold-2); }

@keyframes h9bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes h9coin { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-5deg); } }
@keyframes h9rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ================= HERO ================= */
.h9-hero { position: relative; min-height: min(100vh, 960px); margin-top: -88px; padding: 170px 0 120px; display: flex; align-items: center; overflow: hidden; text-align: center; }
.h9-hero #heroItems { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.h9-hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 46% at 50% 50%, rgba(142, 107, 255, .28), transparent 70%), radial-gradient(28% 28% at 50% 42%, rgba(255, 216, 106, .12), transparent 70%); }
.h9-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.h9-hero-in > * { opacity: 0; animation: h9rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.h9-hero-in > :nth-child(2) { animation-delay: .1s; } .h9-hero-in > :nth-child(3) { animation-delay: .2s; }
.h9-hero-in > :nth-child(4) { animation-delay: .3s; } .h9-hero-in > :nth-child(5) { animation-delay: .4s; }
.h9-hero-logo { width: 96px; height: 96px; image-rendering: pixelated; margin-bottom: 32px; filter: drop-shadow(0 18px 40px rgba(142, 107, 255, .5)); }
.h9-hero h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: 1.02; margin: 0; color: #fff; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6)); }
.h9-cta { display: flex; justify-content: center; margin-top: 52px; }
.h9-cta .btn { min-width: 300px; }

/* ================= SEKCE a NADPISY ================= */
.h9-sec { padding: 140px 0 0; }
.h9-last { padding-bottom: 140px; }
.h9-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.h9-head .kicker { margin-bottom: 14px; }
.h9-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 0; color: #fff; }
.h9-head p { margin: 18px auto 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ================= PROFESE (souhvězdí) ================= */
.constellation { position: relative; width: 560px; height: 620px; margin: -10px auto 0; }
.constellation::before { content: ''; position: absolute; left: 50%; top: 280px; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(142, 107, 255, .26), rgba(142, 107, 255, .07) 45%, transparent 70%); filter: blur(6px); }
.constellation .links { position: absolute; inset: 0; width: 560px; height: 620px; pointer-events: none; }
.constellation .links line { stroke: rgba(255, 216, 106, .3); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: 0; transition: opacity .6s ease; transition-delay: calc(.6s + var(--i) * 70ms); }
.constellation .links circle { fill: rgba(255, 216, 106, .9); opacity: 0; transition: opacity .4s ease 1.2s; }
.constellation.in .links line, .constellation.in .links circle { opacity: 1; }
.constellation .core { position: absolute; left: 50%; top: 280px; transform: translate(-50%, -50%); opacity: 0; scale: .7; transition: opacity .6s ease, scale .8s cubic-bezier(.3, 1.5, .5, 1); }
.constellation.in .core { opacity: 1; scale: 1; }
.hexlv { background: url('/img/game/ui_hex_lv_x4.png') center / 100% 100% no-repeat; display: grid; place-items: center; }
.core-hex { width: 128px; height: 144px; filter: drop-shadow(0 16px 40px rgba(142, 107, 255, .5)); animation: h9bob 6s ease-in-out infinite; }
.core-hex b { display: block; font-family: var(--title); font-size: 50px; line-height: 1; padding: 0; transform: translateY(var(--hex-dy, -6px)); color: #fff; text-shadow: 0 0 24px rgba(183, 155, 255, .8); }
.constellation .orbit { position: absolute; inset: 0; }
.hexskill { position: absolute; left: 50%; top: 280px; width: 120px; margin: -46px 0 0 -60px; transform: translate(var(--x), var(--y)); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  opacity: 0; scale: .6; transition: opacity .5s ease, scale .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.25s + var(--i) * 70ms); }
.constellation.in .hexskill { opacity: 1; scale: 1; }
.hexskill .hex { position: relative; width: 80px; height: 92px; margin-bottom: 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.hexskill .hex .track, .hexskill .hex .ring { position: absolute; inset: 0; -webkit-mask: url('/img/game/ui_hexring_x4.png') no-repeat; mask: url('/img/game/ui_hexring_x4.png') no-repeat; -webkit-mask-size: 2640px 92px; mask-size: 2640px 92px; }
.hexskill .hex .track { background: rgba(122, 90, 30, .85); -webkit-mask-position: -2560px 0; mask-position: -2560px 0; }
.hexskill .hex .ring { background: #ffd86a; -webkit-mask-position: calc(var(--f, 0) * -80px) 0; mask-position: calc(var(--f, 0) * -80px) 0; }
.hexskill .hex::before { content: ''; position: absolute; inset: 7px 6px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(14, 12, 18, .85); }
.hexskill .hex img { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); image-rendering: pixelated; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.hexskill b { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--text); }
.hexskill span { font-family: var(--title); font-size: 11px; line-height: 1.2; color: var(--gold-2); letter-spacing: .04em; }

/* ================= DOVEDNOSTI: čtyři zářící uzly jako ve hře, spojené cestou ================= */
.h9-perks { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.h9-perks::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 66px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 216, 106, .45) 0 6px, transparent 6px 14px); }
.pnode { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pn-hex { position: relative; width: 116px; height: 132px; display: grid; place-items: center; animation: h9bob 5s ease-in-out infinite; animation-delay: calc(var(--k) * -1.2s); }
.pn-hex i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pn-aura { inset: -26px !important; clip-path: none !important; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); filter: blur(10px); animation: h9pulse 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * -.8s); }
.pn-ring { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 100%, #fff 25%), color-mix(in srgb, var(--c) 55%, #000)); }
.pn-core { inset: 6px 5px !important; background: radial-gradient(70% 70% at 50% 35%, color-mix(in srgb, var(--c) 30%, #1a1622), #0f0d14); }
.pn-hex img { position: relative; width: 60px; height: 60px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
@keyframes h9pulse { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.pbr { margin-top: 26px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.pnode b { margin-top: 8px; font-family: var(--title); font-weight: 400; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.pd { margin-top: 10px; max-width: 230px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ================= SPOLEČNÍCI: 3D pódium ================= */
.h9-companions .h9-head { margin-bottom: 0; }
.h9-stage { position: relative; }
.h9-stage canvas { position: relative; z-index: 1; display: block; width: 100%; height: 440px; }
.h9-stage-light { position: absolute; left: 50%; bottom: 0; width: min(1100px, 100%); height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 46% 26% at 50% 80%, rgba(255, 200, 130, .16), rgba(150, 100, 210, .07) 55%, transparent 75%); }

/* ================= ŘADY ================= */
.h9-rows { display: flex; flex-direction: column; gap: 120px; }
.h9-row { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.h9-row.flip { grid-template-columns: 5fr 7fr; }
.h9-row.flip .h9-art { order: 2; }
.h9-art { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.h9-art::before { content: ''; position: absolute; left: 50%; top: 50%; width: 90%; height: 90%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(142, 107, 255, .16), transparent); filter: blur(20px); }
.h9-art > * { position: relative; }
.h9-art-map { aspect-ratio: 16 / 10; min-height: 0; }
.h9-art-map::before { display: none; }
.h9-art-map .mapstill { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--r); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); }
.h9-art-map .mapstill img { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; animation: h9drift 38s ease-in-out infinite alternate; }
@keyframes h9drift { from { transform: translate(-2%, 1%) scale(1); } to { transform: translate(2%, -1%) scale(1.04); } }
.h9-text { max-width: 440px; }
.h9-text .kicker { margin-bottom: 14px; }
.h9-text h3 { font-size: 30px; line-height: 1.12; margin: 0; color: #fff; white-space: nowrap; }
.h9-text p { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.h9-text .btn { margin-top: 32px; }

/* obsah rámů */
.h9-pack { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.h9-pack .pack { width: 150px; height: 150px; image-rendering: pixelated; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .65)); animation: h9bob 4s ease-in-out infinite; }
.h9-pack .trinkets { display: grid; grid-template-columns: repeat(2, 48px); gap: 14px; }
.h9-pack .trinkets img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); animation: h9coin 3.4s ease-in-out infinite; }
.h9-pack .trinkets img:nth-child(2) { animation-delay: -.8s; } .h9-pack .trinkets img:nth-child(3) { animation-delay: -1.6s; } .h9-pack .trinkets img:nth-child(4) { animation-delay: -2.4s; }
.h9-pack .slots { display: grid; grid-template-columns: repeat(6, 44px); gap: 4px; padding: 8px; background: rgba(0, 0, 0, .4); border: 1px solid #000; border-radius: 3px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.h9-pack .slots i { position: relative; display: block; width: 44px; height: 44px; background: rgba(0, 0, 0, .4); border: 1px solid #07070a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); border-radius: 2px; }
.h9-pack .slots img { position: absolute; inset: 9px; width: 24px; height: 24px; image-rendering: pixelated; }

.h9-earn { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.earn-quests { width: 400px; display: flex; flex-direction: column; gap: 10px; }
.eq { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; text-align: left; background: rgba(12, 10, 16, .9); border: 1px solid rgba(0, 0, 0, .85); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.eq > img { width: 32px; height: 32px; image-rendering: pixelated; }
.eq b { display: block; margin-bottom: 8px; font-size: 15px; color: #fff; }
.eq i { display: block; height: 6px; background: rgba(255, 255, 255, .08); }
.eq s { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a5cf0, #b98bff); }
.eq.done { border-color: rgba(120, 220, 120, .35); }
.eq.done s { background: linear-gradient(90deg, #4fbf5c, #8ee08a); }
.h9-row.in .eq s { width: var(--w); transition: width 1.1s cubic-bezier(.3, .8, .3, 1) .4s; }
.pay { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 700; color: #ffd86a; }
.pay img { width: 18px; height: 18px; image-rendering: pixelated; }
.wallet { width: 190px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wallet .coin { width: 128px; height: 128px; image-rendering: pixelated; filter: drop-shadow(0 0 26px rgba(255, 200, 80, .4)) drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); animation: h9coin 3.6s ease-in-out infinite; }
.wallet b { font-family: var(--title); font-size: 38px; line-height: 1; color: #ffd86a; }
.wallet span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.h9-spleef { position: relative; width: 100%; }
.h9-spleef canvas { display: block; width: 100%; height: 400px; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.h9-chip { position: absolute; left: 0; top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(14, 12, 20, .8); border: 1px solid rgba(255, 255, 255, .12); border-radius: 3px; }
.h9-chip i { width: 8px; height: 8px; border-radius: 50%; background: #7bd684; box-shadow: 0 0 10px #7bd684; animation: h9pulse 1.6s ease-in-out infinite; }
.h9-games { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mtile { position: relative; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden;
  background: #141319; border: 1px solid rgba(0, 0, 0, .8); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 20px rgba(0, 0, 0, .35); }
.mtile::before { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, var(--tc, rgba(90, 138, 214, .35)), transparent); }
.mtile > * { position: relative; }
.mtile img { width: 44px; height: 44px; }
.mtile img.px { image-rendering: pixelated; }
.mtile b { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.mtag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mtile.event { --tc: rgba(240, 122, 30, .45); border-color: rgba(240, 122, 30, .7); box-shadow: 0 0 24px rgba(240, 122, 30, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.mtile.event .mtag { color: #ffd08a; }
.mtile.open .mtag { color: #9fe0f0; }
.mtile.locked { --tc: rgba(255, 255, 255, .06); }
.mtile.locked img, .mtile.locked b { opacity: .5; }
.mtile.locked .mtag { color: var(--gold); opacity: .8; }

/* ================= JAK ZAČÍT ================= */
.h9-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h9-steps li { display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: #141218; border: 1px solid rgba(0, 0, 0, .85); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); font-size: 16px; font-weight: 600; color: #fff; }
.h9-steps li > b { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--title); font-size: 22px; font-weight: 400; color: var(--gold-2);
  background: rgba(255, 216, 106, .08); border: 1px solid rgba(255, 216, 106, .35); border-radius: 3px; }
.h9-steps a { color: var(--gold-2); margin-left: 4px; }
.h9-dl { display: flex; flex-direction: column; align-items: center; margin-top: 56px; text-align: center; }
.h9-dl .btn { min-width: 300px; }
.h9-dl .ver { margin-top: 18px; font-family: var(--title); font-size: 20px; color: #fff; letter-spacing: .04em; }
.h9-dl .ver small { display: block; margin-top: 6px; font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.h9-dl p { margin: 12px 0 0; font-size: 13px; color: var(--faint, #77778a); }

/* ================= TABLET ================= */
@media (max-width: 1000px) {
  .h9-row, .h9-row.flip { gap: 48px; }
  .h9-text h3 { white-space: normal; font-size: 26px; }
  .h9-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .h9-perks::before { display: none; }
  .h9-art { min-height: 320px; }
  .h9-pack .pack { width: 104px; height: 104px; }
  .h9-pack .trinkets { grid-template-columns: repeat(2, 36px); gap: 10px; }
  .h9-pack .trinkets img { width: 36px; height: 36px; }
  .h9-pack .slots { grid-template-columns: repeat(6, 30px); gap: 3px; padding: 6px; }
  .h9-pack .slots i { width: 30px; height: 30px; }
  .h9-pack .slots img { inset: 5px; width: 18px; height: 18px; }
  .earn-quests { width: 300px; }
  .eq { padding: 10px 12px; }
  .wallet { width: 130px; }
  .wallet .coin { width: 88px; height: 88px; }
  .mtile { height: 120px; }
  .h9-spleef canvas { height: 320px; }
}

/* ================= TELEFON ================= */
@media (max-width: 760px) {
  .h9-hero { min-height: 0; padding: 140px 0 80px; }
  .h9-hero-logo { display: none; }          /* logo už je v hlavičce */
  .h9-hero h1 { font-size: 46px; }
  .h9-cta { width: 100%; max-width: 340px; margin-top: 36px; }
  .h9-cta .btn { min-width: 0; width: 100%; }

  .h9-sec { padding-top: 88px; }
  .h9-last { padding-bottom: 88px; }
  .h9-head { margin-bottom: 36px; }
  .h9-head h2 { font-size: 28px; }
  .h9-head p { font-size: 15.5px; margin-top: 14px; }

  .constellation { width: 100%; height: auto; margin-top: 0; }
  .constellation::before, .constellation .links { display: none; }
  .constellation .core { position: static; transform: none; display: flex; justify-content: center; margin-bottom: 18px; }
  .core-hex { width: 104px; height: 117px; }
  .core-hex b { font-size: 40px; }
  .constellation .orbit { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; }
  .hexskill { position: static; margin: 0; width: auto; transform: none; }
  .hexskill .hex { zoom: .8; }
  .hexskill b { font-size: 12px; }
  .hexskill span { font-size: 10px; }

  .h9-perks { gap: 40px 12px; }
  .pn-hex { width: 92px; height: 105px; }
  .pn-hex img { width: 46px; height: 46px; }
  .pbr { margin-top: 20px; font-size: 10px; }
  .pnode b { font-size: 18px; }
  .pd { font-size: 13.5px; }

  .h9-stage canvas { height: 340px; }

  .h9-rows { gap: 72px; }
  .h9-row, .h9-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .h9-row.flip .h9-art { order: 0; }
  .h9-art { min-height: 0; }
  .h9-art-map { aspect-ratio: 16 / 10; }
  .h9-text { max-width: none; text-align: center; }
  .h9-text .kicker { justify-content: center; }
  .h9-text .kicker::after { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
  .h9-text h3 { font-size: 24px; white-space: normal; }
  .h9-text p { font-size: 15.5px; margin-top: 14px; }
  .h9-text .btn { margin-top: 24px; }
  .h9-pack { flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
  .h9-pack .pack { width: 88px; height: 88px; }
  .h9-pack .slots { display: none; }          /* na telefonu jen batoh a doplňky, bez mřížky */
  .h9-pack .slots i { width: auto; height: auto; aspect-ratio: 1; }
  .h9-pack .slots img { inset: 18%; width: 64%; height: 64%; }
  .h9-earn { flex-direction: column; gap: 20px; }
  .earn-quests { width: 100%; max-width: 340px; }
  .eq { padding: 10px 12px; }
  .eq b { font-size: 13.5px; }
  .wallet { width: auto; flex-direction: row; gap: 12px; }
  .wallet .coin { width: 52px; height: 52px; }
  .wallet b { font-size: 24px; }
  .h9-spleef canvas { height: 280px; }
  .h9-games { max-width: 340px; gap: 10px; }
  .mtile { height: 104px; }
  .mtile img { width: 34px; height: 34px; }
  .mtile b { font-size: 12px; }

  .h9-steps { grid-template-columns: 1fr; gap: 10px; }
  .h9-steps li { padding: 18px 18px; font-size: 15px; }
  .h9-dl { margin-top: 36px; }
  .h9-dl .btn { min-width: 0; width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .h9-hero-in > *, .hexskill, .constellation .core, .constellation .links line { opacity: 1 !important; animation: none !important; transition: none !important; scale: 1 !important; }
}
