/* ============================================================
   Diamond Planet — styles.css (jediný CSS soubor projektu)
   Rebranding = uprav pouze blok :root níže.
   Mobilní pravidla drž NA KONCI souboru.
   ============================================================ */

:root {
  --bg: #120b1e;            /* pozadí stránky — tmavý kosmos */
  --bg-pattern: #1c1230;    /* prvky pozadového patternu */
  --surface: #160e26;       /* hlavička a patička */
  --placeholder: #241736;   /* panely, karty */
  --placeholder-light: #33214e;
  --cell: #1a102c;          /* buňky válců */
  --text: #f5f2fb;
  --text-dim: #b1a6c7;
  --accent: #b3f225;        /* akcent: tlačítka, výhra — limetka */
  --accent-hover: #c9ff4a;
  --accent-text: #1a1028;
  --accent-2: #c95cf8;      /* sekundární akcent — fialová */
  --accent-2-hover: #d67ffa;
  --brand-brown: #33205a;   /* firemní odstíny (názvy proměnných zůstávají) */
  --brand-brown-2: #7a3ede;
  --sand: #cbb7ee;
  --danger: #ff5c7a;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 56px;
  --font: "Baloo 2", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Bangers", "Baloo 2", "Segoe UI", system-ui, sans-serif;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='170'%20height='170'%3E%3Cg%20fill='%231c1230'%3E%3Cpath%20d='M42%2010l14%2022-14%2022-14-22z'/%3E%3Cpath%20d='M128%2060l10%2016-10%2016-10-16z'%20opacity='.7'/%3E%3Cpath%20d='M85%20128l12%2019-12%2019-12-19z'%20opacity='.85'/%3E%3Cpath%20d='M150%20140l7%2011-7%2011-7-11z'%20opacity='.6'/%3E%3Cpath%20d='M20%2096l8%2013-8%2013-8-13z'%20opacity='.65'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(122,52,222,.35) 0%, rgba(18,11,30,0) 55%),
    linear-gradient(180deg, rgba(201,92,248,.10) 0%, rgba(18,11,30,0) 35%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: .045em; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

.glow { color: var(--accent); text-shadow: 0 0 24px rgba(179,242,37,.5); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 20px;
  font-weight: 800; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent {
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 4px 18px rgba(244,180,26,.35);
}
.btn-accent:hover {
  background: var(--accent-hover);
  filter: brightness(1.05) drop-shadow(0 4px 16px rgba(179,242,37,.5));
}
.btn-ghost {
  background: rgba(255,255,255,.07); color: var(--text);
  box-shadow: inset 0 0 0 2px var(--placeholder-light);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn-big { padding: 14px 28px; font-size: 18px; }
.btn-full { width: 100%; }
.btn-google { background: #fff; color: #1a1a1a; margin-top: 12px; }
.btn-google:hover { background: #f1f1f1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--placeholder);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo img { height: 34px; width: auto; }
.main-nav {
  display: flex; gap: 20px; margin-left: 8px;
  font-weight: 700; font-size: 13px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.main-nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-login {
  font-weight: 700; font-size: 13px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.link-login:hover { color: var(--text); }
.btn-gold {
  position: relative; display: inline-grid; place-items: center;
  min-width: 172px; min-height: 46px; padding: 12px 38px;
  background: url("../assets/img/ui/panel.webp") center / 100% 100% no-repeat;
  color: #2f1403; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
  transition: filter .15s ease, transform .12s ease;
}
.btn-gold:hover { filter: brightness(1.1); }
.btn-gold:active { transform: scale(.97); }
.nav-burger { display: none; font-size: 22px; padding: 4px 8px; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--placeholder); border-radius: 999px;
  padding: 6px 10px; font-weight: 800;
}
.user-chip img { border-radius: 50%; }
.chip-cur { color: var(--accent); font-size: 13px; }
.chip-daily, .chip-logout { font-size: 15px; opacity: .8; }
.chip-daily:hover, .chip-logout:hover { opacity: 1; }
.chip-daily.has-reward { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

body.dp-logged #btn-login, body.dp-logged #btn-signup { display: none; }

/* ============================================================
   Nadpisy sekcí — velká písmena, na střed (jako referenční web)
   ============================================================ */
.sec-title {
  text-align: center; text-transform: uppercase;
  letter-spacing: .05em; font-size: 27px; margin-bottom: 24px;
}

/* ============================================================
   HERO — box-slider: art hry + textové slidy (trust / demo)
   ============================================================ */
.hero-wrap { padding: 20px 0 0; }
.hero-box {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9; max-height: 640px; width: 100%;
  background: var(--cell);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hero-bg, .slide-bg { position: absolute; inset: 0; display: block; z-index: 0; }
.hero-bg img, .slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,8,24,.55) 0%, rgba(14,8,24,.28) 30%, rgba(14,8,24,0) 52%);
}
.slide-textright .slide-bg::after {
  background: linear-gradient(270deg, rgba(14,8,24,.55) 0%, rgba(14,8,24,.28) 30%, rgba(14,8,24,0) 52%);
}
.hero-box .slide-text { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 40ch; pointer-events: none; }
.hero-box .slides { position: absolute; inset: 0; z-index: 1; }
.hero-box .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  display: grid; align-content: center; justify-content: start;
  padding: 0 10% 0 72px;
}
.hero-box .slide.slide-textright { justify-content: end; padding: 0 72px 0 10%; }
.hero-box .slide.is-active { opacity: 1; visibility: visible; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08;
  color: var(--accent);
  text-shadow: 0 3px 0 rgba(20,8,36,.85), 0 6px 22px rgba(0,0,0,.7);
}
.hero-lines {
  list-style: none; display: grid; gap: 10px;
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.65;
  text-shadow: 0 2px 0 rgba(20,8,36,.8), 0 4px 14px rgba(0,0,0,.75);
}
.hero-demo-link { font-weight: 700; }
.hero-demo-link:hover { color: var(--accent); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(16,10,4,.55); color: var(--text);
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(16,10,4,.8); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots {
  position: absolute; right: 0; left: 0; bottom: 16px; z-index: 4;
  display: flex; gap: 8px; justify-content: center;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.slider-dots button.is-active { background: var(--accent); }

/* ============================================================
   KRYSTALOVÝ BANNER — value prop na plaketě
   ============================================================ */
.gold-sec { padding: 34px 0 10px; }
.gold-banner {
  position: relative; display: grid; place-items: center; margin: 0 auto;
  width: min(980px, 100%); min-height: 172px;
  padding: 34px clamp(70px, 14%, 150px);
  background: url("../assets/img/ui/gold-bar.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}
.gold-banner span {
  display: block;
  text-transform: uppercase; letter-spacing: .04em;
  font-weight: 800; font-size: clamp(12px, 1.6vw, 19px); line-height: 1.45;
  color: #2f1403; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.3);
}
.gold-banner:hover { filter: brightness(1.07); }

/* ============================================================
   PROVIDERS MARQUEE — nekonečná stríčka čipů přes celou šířku
   ============================================================ */
.marquee-sec { overflow: hidden; padding: 26px 0; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee-group { display: flex; gap: 22px; padding-right: 22px; flex: none; }
.marquee-sec:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  flex: none; display: grid; place-items: center;
  background: var(--placeholder); border-radius: 999px;
  padding: 16px 34px;
}
.chip img { height: 26px; width: auto; opacity: .8; filter: grayscale(1) brightness(2.2); }

/* ============================================================
   LOBBY / KARTY
   ============================================================ */
.catalog { padding: 44px 0 10px; }
.lobby-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.filter {
  background: var(--placeholder); border-radius: 999px; padding: 8px 16px;
  font-weight: 700; color: var(--text-dim);
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--accent); color: var(--accent-text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }

.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--placeholder);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.card-media { position: relative; display: block; aspect-ratio: 440 / 546; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-info {
  display: grid; gap: 2px; padding: 10px 12px 12px; justify-items: start;
}
.card-name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.card-provider { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.card-play {
  margin-top: 8px; padding: 6px 18px; font-size: 14px; pointer-events: none;
}
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800;
}
.card-badge-demo { background: var(--accent); color: var(--accent-text); }
/* zamčená hra: anonym vidí jen zámek, badge "Hraj" až po přihlášení */
.card[data-locked] .card-badge { display: none; }
body.dp-logged .card[data-locked]:not([data-soon]) .card-badge { display: inline-block; }

/* zamčené karty — anonym vidí u všech stejný stav "po registraci" */
.card[data-locked] .card-media::after {
  content: "Dostupné po registraci";
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 26px 12px 10px; text-align: center;
  font-weight: 800; font-size: 13.5px; color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(16,10,4,.95));
}
.card[data-locked] .card-media::before {
  content: "🔒"; position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(16,10,4,.7); border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px;
}
/* přihlášený: naše hry se odemknou, cizí dlaždice ukážou "JIŽ BRZY" */
body.dp-logged .card[data-locked]:not([data-soon]) .card-media::after,
body.dp-logged .card[data-locked]:not([data-soon]) .card-media::before { content: none; display: none; }
body.dp-logged .card[data-soon] .card-media::after {
  content: "JIŽ BRZY";
  inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  padding: 9px 18px; border-radius: 999px;
  background: rgba(16,10,4,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  font-size: 12px; letter-spacing: .1em; white-space: nowrap;
}
body.dp-logged .card[data-soon] .card-media::before { content: none; display: none; }
body.dp-logged .card[data-soon] .card-media img { filter: brightness(.72) saturate(.9); }

/* ============================================================
   TOP RATED
   ============================================================ */
.toprated-sec { padding: 44px 0 10px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.tile {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--placeholder);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.tile-media { position: relative; display: block; aspect-ratio: 440 / 546; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile { background: none; box-shadow: none; }
.tile-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.toprated-cta { display: grid; place-items: center; margin: 28px 0 6px; }
.btn-plate {
  display: grid; place-items: center;
  min-width: 250px; min-height: 58px; padding: 16px 56px;
  background: url("../assets/img/ui/panel.webp") center / 100% 100% no-repeat;
  color: #2f1403; font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
  transition: transform .12s ease, filter .15s ease;
}
.btn-plate:hover { filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)) brightness(1.07); }
.btn-plate:active { transform: scale(.97); }
.btn-plate:disabled { filter: grayscale(.35) brightness(.85); cursor: default; }
.btn-plate:disabled::after { display: none; }

/* ============================================================
   DEMO CTA
   ============================================================ */
.demo-sec { padding: 50px 0 20px; text-align: center; }
.demo-sub { color: var(--text-dim); margin: 8px 0 24px; font-size: 17px; }
.gcard-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
.gcard {
  display: flex; flex-direction: column;
  background: var(--placeholder); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.55); }
.gcard-media { position: relative; display: block; aspect-ratio: 16 / 10; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  border-radius: 999px; padding: 6px 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(16,10,4,.82); color: var(--text);
}
.gcard-badge-free { background: var(--accent); color: var(--accent-text); }
.gcard-lock {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; text-align: center;
  background: rgba(16,10,4,.5); backdrop-filter: blur(1.5px);
}
.gcard-lock span {
  display: inline-block; border-radius: 999px; padding: 10px 18px;
  background: rgba(16,10,4,.88); box-shadow: 0 0 0 1px rgba(244,180,26,.35);
  font-weight: 800; font-size: 13px; color: var(--text); white-space: nowrap;
}
.gcard-info { display: grid; gap: 3px; padding: 14px 16px 18px; }
.gcard-name { font-family: var(--font-display); font-size: 17px; }
.gcard-provider { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
body.dp-logged .gcard-lock { display: none; }
body.dp-logged .gcard[data-locked] .gcard-badge { background: var(--accent-2); }

.demo-grid {
  display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; text-align: left;
}
.demo-featured {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block;
}
.demo-featured img { width: 100%; height: 100%; object-fit: cover; }
.demo-play {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
}
.demo-side { display: grid; gap: 16px; }
.demo-mini {
  position: relative; border-radius: var(--radius); overflow: hidden; display: block;
}
.demo-mini img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 440 / 170; object-position: center 30%; }
.demo-mini span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(16,10,4,.6); backdrop-filter: blur(2px);
  font-weight: 800; font-size: 15px;
}
body.dp-logged .demo-mini span { background: rgba(16,10,4,.25); font-size: 0; }

/* ============================================================
   DISCLAIMER + FOOTER
   ============================================================ */
.disclaimer-sec { padding: 44px 0 30px; }
.disclaimer-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--placeholder); border-radius: var(--radius-lg);
  padding: 24px; color: var(--text-dim); font-size: 14px;
}
.disclaimer-box p + p { margin-top: 10px; }
.disclaimer-box b { color: var(--text); }
.disclaimer-box a { color: var(--accent-2); }

.age-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--danger); color: #fff; font-weight: 800; font-size: 16px;
}

.site-footer {
  background: var(--surface); border-top: 1px solid var(--placeholder);
  padding: 30px 0 24px;
}
.footer-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-nav { display: flex; gap: 14px 22px; flex-wrap: wrap; color: var(--text-dim); font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.footer-top .age-badge { margin-left: auto; }
.copyright { font-size: 13px; color: var(--text-dim); opacity: .75; }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,4,16,.75); backdrop-filter: blur(4px);
}
.modal {
  position: fixed; z-index: 95; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow: auto;
  background: var(--placeholder); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-banner { border-radius: var(--radius); margin-bottom: 16px; }
.modal h3 { margin-bottom: 6px; }
.modal-sub { color: var(--text-dim); margin-bottom: 16px; }
.reward-line {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 30px; color: var(--accent);
  margin-bottom: 6px;
}
.tier-badge {
  display: inline-block; margin-bottom: 8px;
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; padding: 4px 14px;
  font-weight: 800; font-size: 13px; letter-spacing: .08em;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(16,10,4,.6); font-size: 15px;
}
.modal form { display: grid; gap: 12px; }
.modal label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.modal input[type="email"], .modal input[type="password"] {
  background: var(--cell); border: 2px solid var(--placeholder-light);
  border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none;
}
.modal input:focus { border-color: var(--accent-2); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--text-dim); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { color: var(--accent-2); text-decoration: underline; }
.form-error { color: var(--danger); font-weight: 700; font-size: 14px; }
.oauth-divider {
  display: flex; align-items: center; gap: 12px; color: var(--text-dim);
  margin-top: 14px; font-size: 13px;
}
.oauth-divider::before, .oauth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--placeholder-light);
}
.modal-note { margin-top: 12px; text-align: center; color: var(--text-dim); font-size: 13px; }
.modal-switch { margin-top: 8px; text-align: center; color: var(--text-dim); font-size: 14px; }
.modal-switch a { color: var(--accent-2); font-weight: 700; }
.modal-daily .btn-ghost { margin-top: 10px; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 720px;
  background: var(--placeholder); border: 1px solid var(--placeholder-light);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.cookie-banner p { color: var(--text-dim); font-size: 14px; }
.cookie-banner a { color: var(--accent-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 99; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text);
  font-weight: 800; border-radius: 999px; padding: 12px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ============================================================
   SLOT — stránka hry
   ============================================================ */
.game-main { padding: 24px 0 40px; }
.game-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.game-title-row .game-logo { height: 84px; width: auto; }
.game-title-row .back { color: var(--text-dim); font-weight: 700; font-size: 22px; }
.game-title-row .back:hover { color: var(--text); }
.game-title-text h1 { font-size: 26px; color: var(--accent); letter-spacing: .06em; }
.game-title-text p {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  color: var(--text); font-size: 13.5px; line-height: 1.7; max-width: 52ch; margin-top: 4px;
}

.slot-shell {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cell);
}
.slot-bgvid, .slot-bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85;
}
.slot-frame {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: 100%;
  gap: 20px; padding: 24px; min-height: 540px;
}
.slot-stage { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; }
.slot-head { height: 130px; margin-bottom: -26px; z-index: 3; pointer-events: none; }
.slot-head img {
  height: 100%; width: auto; transform-origin: 50% 88%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.5));
  animation: head-breathe 3.4s ease-in-out infinite, head-peek 9s ease-in-out infinite;
}
@keyframes head-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.025); }
}
/* občasné mrknutí/naklonění hlavy — ať maskot nestojí jako socha */
@keyframes head-peek {
  0%, 62%, 100% { rotate: 0deg; }
  66%  { rotate: -5deg; }
  71%  { rotate: 4deg; }
  76%  { rotate: -2.5deg; }
  81%  { rotate: 0deg; }
}
/* stavy ze slot enginu */
.slot-head.is-spin img { animation: head-shiver .28s linear infinite; }
@keyframes head-shiver {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-2px, 1px) rotate(-2deg); }
  50%  { transform: translate(2px, -1px) rotate(2deg); }
  75%  { transform: translate(-1px, 2px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.slot-head.is-win img { animation: head-hop .5s ease-out 2; }
@keyframes head-hop {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-16px) scale(1.08, .94); }
  70%  { transform: translateY(0) scale(.94, 1.06); }
  100% { transform: translateY(0) scale(1); }
}
.slot-head.is-bigwin img { animation: head-party .42s ease-in-out 6; }
@keyframes head-party {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  25%  { transform: translateY(-22px) rotate(-9deg) scale(1.12); }
  50%  { transform: translateY(-6px) rotate(0deg) scale(1.04); }
  75%  { transform: translateY(-18px) rotate(9deg) scale(1.1); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
.slot-head.is-lose img { animation: head-slump .9s ease-out 1; }
@keyframes head-slump {
  0%   { transform: translateY(0) rotate(0deg); }
  40%  { transform: translateY(9px) rotate(-6deg); }
  100% { transform: translateY(4px) rotate(-3deg); }
}
.slot-head.is-angry img { animation: head-rage .18s linear 8; }
@keyframes head-rage {
  0%   { transform: translate(0,0) rotate(0deg) scale(1.04); }
  25%  { transform: translate(-4px,0) rotate(-4deg) scale(1.06); }
  50%  { transform: translate(4px,-2px) rotate(4deg) scale(1.06); }
  75%  { transform: translate(-3px,1px) rotate(-3deg) scale(1.05); }
  100% { transform: translate(0,0) rotate(0deg) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .slot-head img, .slot-head.is-spin img, .slot-head.is-win img,
  .slot-head.is-bigwin img, .slot-head.is-lose img, .slot-head.is-angry img { animation: none; }
}

.reels {
  display: grid; grid-template-columns: repeat(3, var(--cell-size, 130px));
  gap: 12px;
  background: rgba(20,10,34,.38); border-radius: 26px;
  padding: 18px; backdrop-filter: blur(2px);
  border: 5px solid #8a3cf0;
  box-shadow: 0 0 0 2px rgba(20,8,36,.6), 0 0 26px rgba(138,60,240,.55), inset 0 0 18px rgba(20,8,36,.5);
}
.reel { display: grid; gap: 10px; }
.reel-cell {
  width: var(--cell-size, 130px); height: var(--cell-size, 130px);
  background: url("../assets/img/ui/cell-frame.webp") center / 100% 100% no-repeat;
  border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.reel-cell img { width: 62%; height: 62%; object-fit: contain; transition: transform .1s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.reel.is-spinning .reel-cell img { animation: reel-blur .12s linear infinite; }
@keyframes reel-blur {
  0% { transform: translateY(-14%); filter: blur(2px); }
  100% { transform: translateY(14%); filter: blur(2px); }
}
.reel-cell.win { border-radius: 22px; outline: 3px solid var(--accent); box-shadow: 0 0 18px rgba(179,242,37,.5), inset 0 0 14px rgba(179,242,37,.25); }
.reel-cell.win img { animation: sym-pop .5s ease; }
@keyframes sym-pop { 30% { transform: scale(1.18); } }

.win-line {
  min-height: 30px; margin-top: 12px; font-family: var(--font-display);
  font-size: 24px; letter-spacing: .04em; color: var(--accent);
  text-shadow: 0 2px 0 rgba(0,0,0,.5); text-align: center;
}


/* pravý sloupec hry: SPIN + AUTOSPIN */
.slot-side {
  display: grid; align-content: start; justify-items: center; gap: 14px;
  padding-top: 8px;
}
.slot-side .spin-btn { width: 220px; }
.side-toggle {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; padding: 9px 30px; font-size: 17px;
  box-shadow: 0 4px 14px rgba(179,242,37,.35);
  transition: transform .12s ease, filter .15s ease;
}
.side-toggle:hover { filter: brightness(1.08); }
.side-toggle:active { transform: scale(.96); }
.side-toggle.is-on { background: var(--danger); color: #fff; }
.side-sound { padding: 9px 16px; background: rgba(20,10,34,.6); color: var(--text); box-shadow: none; }
.side-sound.is-on { background: rgba(20,10,34,.6); color: var(--text); }
.slot-side .demo-note { text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); font-size: 13px; max-width: 24ch; }
.slot-side .demo-note b { color: var(--accent); }

/* spodní lišta: Zůstatek | Poslední výhra | Sázka */
.slot-bar {
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  background: var(--placeholder); border-radius: var(--radius-lg);
  padding: 16px 26px;
  border: 1px solid var(--placeholder-light);
}
.bar-block { display: grid; gap: 2px; justify-items: start; }
.bar-center { justify-items: center; text-align: center; }
.bar-bet { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bar-inner { display: grid; gap: 2px; justify-items: center; }
.bar-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); font-size: 14px;
}
.bar-value {
  font-family: var(--font-display); letter-spacing: .05em;
  color: var(--accent); font-size: 24px; line-height: 1.1;
}
.bar-value b { font-weight: 400; }
.slot-bar .bet-btn { width: 52px; height: 52px; flex: none; }

/* control panel */
.slot-panel {
  display: grid; align-content: center; gap: 14px;
  background: rgba(16,10,4,.55); border-radius: var(--radius-lg);
  border: 2px solid rgba(138,60,240,.45);
  padding: 20px; backdrop-filter: blur(3px);
}
.panel-block { text-align: center; display: grid; gap: 4px; }
.panel-label { color: var(--text-dim); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.panel-value { font-family: var(--font-display); font-size: 26px; }
.panel-value.coin::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 6px; vertical-align: -2px; background: url("../assets/img/coin.webp") center/contain no-repeat; }
.bet-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bet-btn { width: 46px; height: 46px; }
.bet-btn img { width: 100%; height: 100%; object-fit: contain; }
.bet-btn:disabled { opacity: .4; cursor: default; }
.spin-btn { width: 200px; margin: 0 auto; transition: transform .1s; }
.spin-btn img { width: 100%; }
.spin-btn:not(:disabled):hover { transform: scale(1.04); }
.spin-btn:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.panel-small-row { display: flex; justify-content: center; gap: 10px; }
.panel-toggle {
  background: var(--placeholder); border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: 14px; color: var(--text-dim);
}
.panel-toggle.is-on { background: var(--accent-2); color: #fff; }
.demo-note { text-align: center; color: var(--text-dim); font-size: 13px; }

/* výplatní tabulka pod hrou (jako v referenci) */
.paytable {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 14px auto 0; max-width: 720px;
}
.pt-item {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--placeholder); border: 1px solid var(--placeholder-light);
  border-radius: 999px; padding: 6px 14px 6px 8px;
}
.pt-item img { width: 26px; height: 26px; object-fit: contain; }
.pt-item b { font-family: var(--font-display); font-size: 15px; color: var(--accent); margin-left: 4px; }
.pt-item i { font-style: normal; font-size: 11px; color: var(--text-dim); margin-left: 2px; }
.demo-note b { color: var(--accent); }

/* lock overlay on locked game pages */
.game-lock {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; gap: 14px; text-align: center;
  background: rgba(16,10,4,.82); backdrop-filter: blur(6px);
  padding: 24px;
}
.game-lock h2 { font-size: 28px; }
.game-lock p { color: var(--text-dim); max-width: 40ch; }
.game-lock .btn { justify-self: center; }

/* big win overlay */
.bigwin-overlay {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-content: center; text-align: center; gap: 6px;
  background: rgba(16,10,4,.6);
  animation: toast-in .3s ease;
}
.bigwin-overlay .bw-title { font-family: var(--font-display); font-size: 64px; color: var(--accent); text-shadow: 0 4px 0 rgba(0,0,0,.55); }
.bigwin-overlay .bw-amount { font-family: var(--font-display); font-size: 34px; color: #fff; }

/* game description below slot */
.game-desc { margin-top: 26px; color: var(--text-dim); max-width: 70ch; display: grid; gap: 10px; }
.game-desc h2 { color: var(--text); font-size: 22px; }

/* ============================================================
   Podstránky (texty)
   ============================================================ */
.page-main { padding: 40px 0 60px; }
.page-main .wrap { max-width: 860px; }
.page-main h1 { font-size: 36px; margin-bottom: 18px; }
.page-main h2 { font-size: 24px; margin: 26px 0 10px; }
.page-main p, .page-main li { color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.page-main ul, .page-main ol { padding-left: 22px; display: grid; gap: 6px; margin: 8px 0; }
.page-main a { color: var(--accent-2); text-decoration: underline; }
.page-main .note {
  background: var(--placeholder); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 16px; margin: 16px 0;
}
.policy-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.content-card {
  background: var(--placeholder); border: 1px solid var(--placeholder-light);
  border-radius: var(--radius-lg); padding: 22px 24px; margin: 18px 0;
}
.content-card h2 { font-size: 21px; margin: 0 0 10px; }
.content-card h3 { font-size: 17px; margin: 18px 0 8px; }
.content-card p:last-child, .content-card ul:last-child { margin-bottom: 0; }
.tier-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.tier-table th, .tier-table td { border: 1px solid var(--placeholder-light); padding: 10px 12px; text-align: left; color: var(--text-dim); }
.tier-table th { color: var(--text); background: var(--placeholder); }


/* ============================================================
   ANIMACE TLAČÍTEK — pozornost, tep, lesk
   ============================================================ */
@keyframes shake-attn {
  0%, 84%, 100% { transform: translateX(0) rotate(0); }
  86%  { transform: translateX(-2px) rotate(-1.6deg); }
  88%  { transform: translateX(2px) rotate(1.6deg); }
  90%  { transform: translateX(-2px) rotate(-1.2deg); }
  92%  { transform: translateX(2px) rotate(1.2deg); }
  94%  { transform: translateX(-1px) rotate(-.6deg); }
  96%  { transform: translateX(1px) rotate(.6deg); }
}
@keyframes heartbeat {
  0%, 28%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.035); }
  18% { transform: scale(1.012); }
  40% { transform: scale(1.05); }
}
@keyframes ctaBarGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(179,242,37,.25)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255,200,100,.65)); }
}
@keyframes plate-shine {
  0%   { background-position: 180% 0; }
  55%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}
/* lesk přejíždějící po zlatých plaketách.
   Vrstva je maskovaná OBRÁZKEM plakety, takže lesk končí přesně na jejím okraji
   a nikde nevzniká ostrá hrana ořezu. */
.btn-gold, .btn-plate, .gold-banner { position: relative; isolation: isolate; }
.btn-gold::after, .btn-plate::after, .gold-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-repeat: no-repeat;
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 58%);
  background-size: 280% 100%;
  animation: plate-shine 4.2s ease-in-out infinite;
  -webkit-mask-image: var(--plate); mask-image: var(--plate);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: screen; opacity: .85;
}
.btn-gold, .btn-plate { --plate: url("../assets/img/ui/panel.webp"); }
.gold-banner { --plate: url("../assets/img/ui/gold-bar.webp"); }
.btn-plate::after { animation-duration: 5s; }
.gold-banner::after { animation-duration: 6s; }
/* upoutání pozornosti na hlavní CTA */
#btn-signup { animation: shake-attn 3.4s infinite; }
.toprated-cta .btn-plate { animation: shake-attn 3.4s infinite; }
.gold-banner { animation: heartbeat 1.9s ease-in-out infinite, ctaBarGlow 1.9s ease-in-out infinite; }
.gold-banner:hover { animation-play-state: paused, paused; }

/* ============================================================
   ÚČET PO PŘIHLÁŠENÍ — chip zůstatku, denní odměna, menu
   ============================================================ */
.user-area { display: none; align-items: center; gap: 10px; position: relative; }
body.dp-logged .user-area { display: flex; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(244,180,26,.1); border: 1px solid rgba(244,180,26,.55);
  border-radius: 999px; padding: 6px 14px;
  font-weight: 800; color: #ffd76a; font-size: 13px; white-space: nowrap;
}
.balance-chip img { border-radius: 50%; }
.daily-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--placeholder); display: grid; place-items: center; font-size: 16px;
  border: 1px solid rgba(255,255,255,.12);
}
.daily-btn:hover { background: var(--placeholder-light); }
.daily-btn.has-reward { animation: heartbeat 1.4s infinite; box-shadow: 0 0 0 2px rgba(179,242,37,.5); }

.account { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--placeholder); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 4px 12px 4px 4px;
}
.avatar-btn:hover { background: var(--placeholder-light); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #f4b41a, #b3730d); color: #2f1403;
  font-weight: 800; font-size: 13px; text-transform: uppercase;
}
.avatar-lg { width: 44px; height: 44px; font-size: 18px; }
.acc-name { font-weight: 700; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--text-dim); font-size: 11px; }

@keyframes menuUp { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 320px; padding: 16px;
  background: var(--surface); border: 1px solid var(--placeholder-light);
  border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(0,0,0,.6);
  display: grid; gap: 14px; animation: menuUp .2s ease;
}
.am-head { display: flex; align-items: center; gap: 12px; }
.am-id { display: grid; gap: 2px; min-width: 0; }
.am-id b { font-size: 15px; }
.am-id span { color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.am-balance {
  display: flex; align-items: center; gap: 12px;
  background: var(--placeholder); border: 1px solid rgba(244,180,26,.3);
  border-radius: var(--radius); padding: 12px 14px;
}
.am-balance-txt { display: grid; gap: 2px; }
.am-balance-txt b { font-size: 19px; color: #ffd76a; }
.am-balance-txt span { color: var(--text-dim); font-size: 12px; }
.am-tier { display: grid; gap: 7px; }
.am-tier-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.am-tier-row b { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.am-tier-row span { color: var(--text-dim); font-size: 12px; }
.xp-bar { height: 6px; border-radius: 3px; background: var(--placeholder); overflow: hidden; }
.xp-fill { display: block; height: 100%; background: linear-gradient(90deg, #ffd76a, var(--accent)); border-radius: 3px; transition: width .4s ease; }
.am-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px; border-radius: var(--radius); transition: background .15s ease;
}
.am-row:hover { background: var(--placeholder); }
.am-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--placeholder); display: grid; place-items: center; font-size: 16px; }
.am-row:hover .am-ico { background: var(--placeholder-light); }
.am-row-txt { display: grid; gap: 1px; }
.am-row-txt b { font-size: 14px; }
.am-row-txt span { color: var(--text-dim); font-size: 12px; }
.am-logout {
  text-align: left; padding: 6px 10px; color: var(--danger); font-weight: 800; font-size: 14px;
  border-top: 1px solid var(--placeholder); padding-top: 14px;
}
.am-logout:hover { color: #ff8570; }

/* ============================================================
   LOBBY — jen pro přihlášené; marketing sekce se skryjí
   ============================================================ */
.lobby-sec { display: none; padding: 34px 0 10px; }
body.dp-logged .lobby-sec { display: block; }
body.dp-logged .hero-wrap,
body.dp-logged .gold-sec,
body.dp-logged .toprated-sec,
body.dp-logged .demo-sec { display: none; }

/* denní odměna — modál ve stylu reference */
.daily-coin { width: 108px; height: auto; margin: 4px auto 10px; animation: heartbeat 2.4s ease-in-out infinite; }
.daily-amount {
  margin: 6px 0 14px; padding: 16px;
  background: var(--placeholder); border: 1px solid rgba(244,180,26,.35);
  border-radius: var(--radius);
  font-family: var(--font-display); font-size: 26px; color: #ffd76a; text-align: center;
}
.btn-plate-full { width: auto; min-width: 300px; margin: 0 auto; display: grid; }

/* ============================================================
   MOBILE — DRŽET NA KONCI SOUBORU
   ============================================================ */

/* ============================================================
   ANIMOVANÍ PARŤÁCI VE HRÁCH — jen web, na mobilu skryto
   ============================================================ */
.slot-buddy {
  position: absolute; z-index: 1; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.slot-buddy .buddy-img { width: 100%; height: auto; }
.buddy-magic { position: absolute; inset: 0; opacity: 0; }

/* Star Trouble: slizové monstrum se klepe jako želé a reaguje na výsledky */
.buddy-st { right: 2.5%; bottom: 3%; width: min(34%, 430px); flex-direction: column; align-items: center; }
.buddy-st .buddy-img {
  transform-origin: 50% 100%;
  animation: b-jelly 2.6s ease-in-out infinite;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
}
.buddy-st.b-spin .buddy-img { animation: b-jelly .7s ease-in-out infinite; }

/* Alien Bloom: květina roste s každou výhrou */
.buddy-ab { right: 17%; bottom: 5%; width: min(19%, 230px); }
.buddy-ab .buddy-img {
  transform-origin: 50% 100%;
  animation: b-sway 4.6s ease-in-out infinite;
  transition: opacity .3s;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.4));
}

/* Puff Pals: levitující mazlíček, hlava se hýbe zvlášť, ale drží na těle */
.buddy-pp { right: 21%; top: 26%; width: min(15%, 185px); align-items: center; }
.buddy-pet {
  position: relative; display: block; width: 100%;
  animation: b-float 3.8s ease-in-out infinite;
}
.buddy-pet .buddy-body { width: 100%; filter: drop-shadow(0 16px 24px rgba(0,0,0,.45)); }
.buddy-pet .buddy-head {
  position: absolute; width: 58%; left: 24%; top: -40%;
  transform-origin: 50% 96%;
  animation: b-headbob 2.1s ease-in-out infinite;
}

/* Crystal Joy: krystal roste a pulzuje světlem */
.buddy-cj { right: 23%; bottom: 5%; width: min(19%, 240px); }
.buddy-cj .buddy-img {
  transform-origin: 50% 100%;
  animation: b-glow 3.4s ease-in-out infinite;
}

/* reakce na výsledek */
.slot-buddy.b-win .buddy-img, .slot-buddy.b-win .buddy-pet { animation: b-bounce .55s ease 2; }
.slot-buddy.b-bigwin .buddy-img, .slot-buddy.b-bigwin .buddy-pet {
  animation: b-bounce .5s ease 4; filter: brightness(1.18) drop-shadow(0 0 26px rgba(179,242,37,.6));
}
.slot-buddy.b-lose .buddy-img, .slot-buddy.b-lose .buddy-pet { animation: b-droop 1.3s ease 1; }
.slot-buddy.b-angry .buddy-img, .slot-buddy.b-angry .buddy-pet { animation: b-shake .16s linear 8; }
.buddy-pp.b-spin .buddy-head { animation: b-headbob .8s ease-in-out infinite; }

/* kouzelné jiskry při růstu */
.slot-buddy.b-magic .buddy-magic {
  opacity: 1;
  background:
    radial-gradient(circle 6px at 30% 60%, rgba(179,242,37,.95) 0 45%, transparent 55%),
    radial-gradient(circle 5px at 70% 40%, rgba(214,127,250,.95) 0 45%, transparent 55%),
    radial-gradient(circle 4px at 50% 20%, rgba(255,255,255,.95) 0 45%, transparent 55%),
    radial-gradient(circle 5px at 22% 30%, rgba(179,242,37,.9) 0 45%, transparent 55%),
    radial-gradient(circle 4px at 80% 70%, rgba(179,242,37,.9) 0 45%, transparent 55%),
    radial-gradient(circle 3px at 60% 80%, rgba(214,127,250,.9) 0 45%, transparent 55%);
  animation: b-sparkle 1s ease-out 1 forwards;
}
.slot-buddy.b-magic .buddy-img { animation: b-grow-pop .8s cubic-bezier(.34,1.56,.64,1) 1; transform-origin: 50% 100%; }


/* boss: škála zdraví nad monstrem */
.buddy-hp {
  display: block; width: 64%; height: 13px; margin-bottom: 10px;
  background: rgba(12,6,22,.8); border-radius: 999px;
  border: 2px solid rgba(232,180,255,.5);
  overflow: hidden;
}
.buddy-hp i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #ff5c7a, #ff9a5c);
  border-radius: 999px;
  transition: width .5s ease;
}
.buddy-st.b-die .buddy-img {
  animation: b-evaporate .95s ease-in forwards;
}
.buddy-st.b-die .buddy-hp { opacity: 0; transition: opacity .4s; }
.buddy-st.b-spawn .buddy-img {
  animation: b-materialize .9s ease-out;
}
@keyframes b-evaporate {
  0%   { transform: scale(1); opacity: 1; filter: blur(0); }
  60%  { transform: scale(1.12) translateY(-22px); opacity: .55; filter: blur(4px) brightness(1.4); }
  100% { transform: scale(1.22) translateY(-52px); opacity: 0; filter: blur(10px) brightness(1.8); }
}
@keyframes b-materialize {
  0%   { transform: scale(.6) translateY(26px); opacity: 0; filter: blur(8px); }
  60%  { transform: scale(1.06); opacity: 1; filter: blur(1px); }
  100% { transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes b-jelly {
  0%, 100% { transform: scale(1, 1); }
  30%      { transform: scale(1.035, .955); }
  55%      { transform: scale(.965, 1.045); }
  75%      { transform: scale(1.02, .98); }
}
@keyframes b-sway {
  0%, 100% { transform: rotate(-2.2deg); }
  50%      { transform: rotate(2.2deg); }
}
@keyframes b-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes b-headbob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(4deg); }
}
@keyframes b-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(179,242,37,.25)); }
  50%      { filter: drop-shadow(0 0 26px rgba(179,242,37,.6)); }
}
@keyframes b-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40%      { transform: translateY(-16px) scale(1.06, .97); }
  70%      { transform: translateY(0) scale(.97, 1.05); }
}
@keyframes b-droop {
  0%   { transform: rotate(0) scale(1); }
  40%  { transform: rotate(4deg) scale(.97, .94); filter: brightness(.82); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes b-shake {
  0%   { transform: translateX(-5px) rotate(-2deg); }
  50%  { transform: translateX(5px) rotate(2deg); }
  100% { transform: translateX(-5px) rotate(-2deg); }
}
@keyframes b-sparkle {
  0%   { transform: scale(.5); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes b-grow-pop {
  0%   { transform: scale(.92); }
  55%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .slot-buddy, .slot-buddy .buddy-img, .slot-buddy .buddy-pet,
  .slot-buddy .buddy-head, .buddy-magic { animation: none !important; }
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gcard-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { grid-template-columns: repeat(3, 1fr); }
  .hero-box { aspect-ratio: 4 / 3; }
  .hero-box .slide { padding: 0 10% 0 46px; }
}

@media (max-width: 700px) {
  .slot-buddy { display: none; }
  /* oferní banner: původní poměr plakety, text jen v zeleném krystalu */
  .gold-banner {
    background-image: url("../assets/img/ui/plate-orig.webp");
    --plate: url("../assets/img/ui/plate-orig.webp");
    aspect-ratio: 1584 / 672; min-height: 0;
    padding: 9% 17%;
  }
  .gold-banner span { font-size: 11.5px; line-height: 1.5; letter-spacing: .03em; }

  /* hero: text uprostřed, obrázek ztmavený */
  .hero-box .slide,
  .hero-box .slide.slide-textright {
    align-content: center; justify-content: center;
    padding: 0 22px; text-align: center;
  }
  .hero-box .slide .slide-text { justify-items: center; max-width: 36ch; }
  .slide-bg::after,
  .slide-textright .slide-bg::after {
    background: linear-gradient(180deg, rgba(12,7,20,.5) 0%, rgba(12,7,20,.55) 60%, rgba(12,7,20,.68) 100%);
  }

  h1 { font-size: 30px; }
  h2 { font-size: 25px; }

  .main-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--placeholder);
    flex-direction: column; padding: 14px 20px; gap: 14px;
  }
  .main-nav.is-open { display: flex; }
  .nav-burger { display: block; }
  #btn-login { display: none; }
  body.dp-logged .chip-logout { display: none; }

  .sec-title { font-size: 21px; }

  .hero-wrap { padding-top: 12px; }
  .hero-wrap .wrap { padding: 0 10px; }
  .hero-box { aspect-ratio: 4 / 5; max-height: 62vh; }
    .slide-bg img { object-position: 68% 16%; }
  .hero-title { font-size: clamp(21px, 6.2vw, 30px); }
  .hero-lines { font-size: 14px; gap: 6px; }
  .hero-box .slide-text { justify-items: center; }
  .hero-title { max-width: none; }
  .hero-game-logo { left: 50%; transform: translateX(-50%); top: 5%; width: min(190px, 52vw); }
  .slider-arrow { display: none; }

  /* nabídková plaketa: menší poměr stran, ať se text vejde a nic nevyleze */
  .gold-sec .wrap { padding: 0 12px; }
  .gold-banner {
    --plate: url("../assets/img/ui/panel.webp");
    background-image: url("../assets/img/ui/panel.webp");
    min-height: 0; padding: 26px clamp(30px, 9vw, 52px);
  }
  .gold-banner span { font-size: 13px; line-height: 1.4; letter-spacing: .02em; }
  .chip { padding: 10px 20px; }
  .chip img { height: 18px; }
  .marquee-group { gap: 14px; padding-right: 14px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .account-menu { width: min(320px, calc(100vw - 24px)); right: -6px; }
  .acc-name, .caret { display: none; }
  .avatar-btn { padding: 4px; }
  .balance-chip { padding: 5px 10px; font-size: 12px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gcard-row { grid-template-columns: 1fr; gap: 12px; }
  .gcard-name { font-size: 16px; }
  .btn-plate { min-width: 200px; min-height: 52px; padding: 14px 30px; font-size: 12.5px; }
  .btn-gold { min-width: 128px; min-height: 40px; padding: 10px 16px; font-size: 12px; }
  .card-name { font-size: 13px; }
  .card-play { padding: 5px 14px; font-size: 13px; }

  .demo-side { grid-template-columns: 1fr; }
  .demo-play { position: static; transform: none; display: flex; margin: 10px auto 14px; width: fit-content; }
  .demo-featured { background: var(--placeholder); }

  .disclaimer-box { flex-direction: column; }

  .providers-row { gap: 18px 26px; }
  .providers-row img { height: 18px; }

  /* ============================================================
     SLOT na mobilu — celá hra se musí vejít na jednu obrazovku:
     válce → SPIN → přepínače → dlaždice zůstatku a sázky.
     .slot-panel se rozpustí (display: contents), aby se jeho části
     daly poskládat přímo do mřížky rámu.
     ============================================================ */
  .game-main { padding: 10px 0 24px; }
  .game-title-row { margin-bottom: 10px; }
  .game-title-row img { height: 40px; }

  .slot-shell { border-radius: var(--radius); }
  .slot-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 8px; padding: 10px; min-height: 0;
  }
  .slot-side { padding-top: 0; gap: 8px; grid-template-columns: auto auto; align-items: center; }
  .slot-side .spin-btn { width: 128px; grid-column: 1 / -1; }
  .side-toggle { font-size: 13px; padding: 7px 18px; }
  .slot-side .demo-note { grid-column: 1 / -1; font-size: 11.5px; max-width: none; }

  .slot-bar {
    grid-template-columns: 1fr 1fr; gap: 8px 10px;
    padding: 10px 14px; margin-top: 10px;
  }
  .bar-center { justify-items: start; text-align: left; }
  .bar-bet { grid-column: 1 / -1; justify-content: center; }
  .bar-label { font-size: 11px; }
  .bar-value { font-size: 17px; }
  .slot-bar .bet-btn { width: 40px; height: 40px; }
  .paytable {
    gap: 6px; margin-top: 10px;
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .paytable::-webkit-scrollbar { display: none; }
  .pt-item { flex: none; }
  .pt-item { padding: 4px 10px 4px 6px; gap: 2px; }
  .pt-item img { width: 20px; height: 20px; }
  .pt-item b { font-size: 13px; }
  .pt-item i { display: none; }

  /* velikost buňky řídí CSS (přebíjí inline styl z JS), aby se hra vešla
     na výšku obrazovky: menší z "podle šířky" a "podle zbylé výšky" */
  .reels {
    --cell-size: clamp(48px, min((100vw - 76px) / 3, (100dvh - 610px) / 3), 120px) !important;
    grid-template-columns: repeat(3, var(--cell-size)) !important;
    padding: 8px; gap: 6px;
  }
  .reel { gap: 6px; }
  .reel-cell { width: var(--cell-size) !important; height: var(--cell-size) !important; }
  .slot-head { height: 62px; margin-bottom: -12px; }
  .win-line { font-size: 15px; min-height: 20px; margin-top: 4px; }
  .panel-value { font-size: 18px; }
  .panel-label { font-size: 10px; letter-spacing: .08em; }
  .bet-row { gap: 8px; }
  .bet-btn { width: 34px; height: 34px; }
  .panel-toggle { padding: 5px 12px; font-size: 12px; }
  .bigwin-overlay .bw-title { font-size: 42px; }

  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-top .age-badge { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #btn-signup, .toprated-cta .btn-plate, .gold-banner, .daily-coin, .daily-btn.has-reward { animation: none; }
  .btn-gold::after, .btn-plate::after, .gold-banner::after { display: none; }
}
