/* Úvodní stránka v10 (2026-10-24): bílý nadpis hero (žlutá zůstává jen tlačítku) a nové řady podle hry –
   mazlíčci, teleport (Alt), Candy Hunt a karta hráče. Ilustrace volně, bez obdélníků za nimi (pravidla v home-v9.css). */

/* ---------- hero: oba řádky bílé, druhý s fialovou září ---------- */
.h9-hero h1 .h9-l2 { display: inline-block; color: #fff; text-shadow: 0 0 34px rgba(158, 108, 240, .75), 0 0 2px rgba(255, 255, 255, .4); }
.h9-hero h1 { letter-spacing: .01em; }

/* ---------- mazlíčci: tři modely ze hry, pod každým srdíčka spokojenosti, dole Deposit ---------- */
.h9-pets { width: 100%; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 8px; }
.h9-pets .pet { position: relative; display: flex; flex-direction: column; align-items: center; }
.h9-pets .pet::before { content: ''; position: absolute; left: 50%; bottom: 30px; width: 80%; height: 34px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 178, 210, .28), transparent 72%); pointer-events: none; }
.h9-pets canvas { position: relative; display: block; width: 100%; height: 230px; }
.h9-pets .pet.big canvas { height: 290px; }
.h9-pets .hearts { display: flex; gap: 4px; margin-top: 4px; }
.h9-pets .hearts i { width: 18px; height: 18px; background: url('/img/game/heart.png') center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.h9-pets .hearts i.half { -webkit-mask: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .25) 50%); mask: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .25) 50%); }
.h9-pets .hearts i.off { opacity: .25; filter: grayscale(1); }
.h9-pets .deposit { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 22px 12px 14px;
  background: linear-gradient(180deg, #f6cf62, #e0a83a); border-bottom: 3px solid #8a5a1a; border-radius: 3px; color: #3a2400; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.h9-pets .deposit img { width: 36px; height: 36px; image-rendering: pixelated; }
.h9-pets .deposit b { display: block; font-family: var(--title); font-size: 18px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.h9-pets .deposit small { display: block; font-size: 12.5px; font-weight: 600; opacity: .75; }

/* ---------- teleport: tři karty jako v kolečku na Alt, prostřední vybraná ---------- */
.h9-tp { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; gap: 18px; padding-bottom: 54px; }
.h9-tp .tpc { position: relative; width: 150px; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 26%, #16131c), #121016 62%); border: 1px solid #07070a; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 34px rgba(0, 0, 0, .5); opacity: .72; }
.h9-tp .tpc img { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.h9-tp .tpc b { font-family: var(--title); font-size: 20px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.h9-tp .tpc small { font-size: 12.5px; color: var(--muted); }
.h9-tp .back { --c: #9e6cf0; }
.h9-tp .home { --c: #f2c14e; }
.h9-tp .spawn { --c: #7bd684; }
.h9-tp .tpc.sel { opacity: 1; transform: translateY(-14px) scale(1.06); border-color: color-mix(in srgb, var(--c) 80%, #000);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 40px color-mix(in srgb, var(--c) 35%, transparent), 0 24px 40px rgba(0, 0, 0, .55); }
.h9-tp .key { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 6px 16px 8px; font-size: 14px; font-weight: 700; color: #fff;
  background: #1c1922; border: 1px solid #07070a; border-bottom-width: 3px; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.h9-row.in .h9-tp .tpc.sel { animation: h10lift 3.2s ease-in-out infinite; }
@keyframes h10lift { 0%, 100% { transform: translateY(-14px) scale(1.06); } 50% { transform: translateY(-20px) scale(1.06); } }

/* ---------- Candy Hunt: rekvizity eventu volně, pod nimi kurz bonbonu ---------- */
.h9-event { position: relative; width: 100%; height: 400px; }
.h9-event::before { content: ''; position: absolute; left: 50%; top: 46%; width: 76%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 122, 30, .28), rgba(120, 60, 160, .12) 55%, transparent 72%); pointer-events: none; }
.h9-event img { position: absolute; image-rendering: auto; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)); }
.h9-event .pumpkin { left: 50%; top: 40px; width: 230px; transform: translateX(-30%); animation: h9bob 6s ease-in-out infinite; }
.h9-event .cauldron { left: 8%; top: 120px; width: 170px; animation: h9bob 7s ease-in-out -2s infinite; }
.h9-event .candles { right: 6%; top: 190px; width: 110px; }
.h9-event .bat { width: 64px; animation: h10bat 5s ease-in-out infinite; }
.h9-event .b1 { left: 22%; top: 20px; }
.h9-event .b2 { right: 12%; top: 60px; width: 48px; animation-delay: -2.4s; }
@keyframes h10bat { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(14px, -12px) rotate(6deg); } }
.h9-event .loot { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 700; color: #fff; }
.h9-event .loot img { position: static; width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.h9-event .loot i { color: var(--muted); font-style: normal; }
.h9-event .loot b { font-family: var(--title); font-weight: 400; font-size: 24px; color: var(--gold-2); }
.h9-event .loot em { font-style: normal; color: #c79bff; }

/* ---------- karta hráče: obraz banneru, level, jméno, profese ---------- */
.h9-card { position: relative; display: block; width: 300px; color: inherit; text-decoration: none; border: 3px solid #f2c14e; border-radius: 6px; overflow: hidden;
  background: #17121c; box-shadow: 0 0 0 2px #0a0a0d, 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(242, 193, 78, .14); transform: rotate(-3deg); transition: transform .4s ease; }
.h9-card:hover { transform: rotate(-1deg) translateY(-6px); }
.h9-card .art { display: block; height: 200px; background-size: cover; background-position: center; }
.h9-card .art::after { content: ''; position: absolute; left: 0; right: 0; top: 120px; height: 84px; background: linear-gradient(180deg, transparent, #17121c); }
.h9-card .lv { position: absolute; left: 14px; top: 14px; width: 54px; height: 61px; }
.h9-card .lv b { font-family: var(--title); font-size: 24px; font-weight: 400; color: #fff; transform: translateY(-3px); }
.h9-card .body { position: relative; display: block; padding: 4px 18px 20px; text-align: center; }
.h9-card .name { display: block; font-family: var(--title); font-size: 30px; font-weight: 400; color: #fff; }
.h9-card small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f2c14e; }
.h9-card .profs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 16px; }
.h9-card .profs img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.h9-card::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .14) 50%, transparent 58%);
  transform: translateX(-60%); animation: h10holo 6s ease-in-out infinite; pointer-events: none; }
@keyframes h10holo { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

@media (max-width: 760px) {
  .h9-pets canvas { height: 160px; }
  .h9-pets .pet.big canvas { height: 200px; }
  .h9-pets .hearts i { width: 13px; height: 13px; }
  .h9-tp { gap: 10px; }
  .h9-tp .tpc { width: 96px; height: 132px; }
  .h9-tp .tpc img { width: 44px; height: 44px; margin-bottom: 4px; }
  .h9-tp .tpc b { font-size: 15px; }
  .h9-event { height: 300px; }
  .h9-event .pumpkin { width: 170px; }
  .h9-event .cauldron { width: 120px; top: 110px; }
  .h9-event .candles { width: 80px; top: 150px; }
  .h9-card { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .h9-card::after, .h9-event img, .h9-row.in .h9-tp .tpc.sel { animation: none !important; }
}
