/* Ministr Mystery — veřejný web. Tmavé pozadí, zlatá jako logo. */
:root {
  --bg: #0a0a12;
  --bg2: #12121e;
  --card: #161624;
  --line: rgba(245, 197, 66, .14);
  --text: #f1eee6;
  --text2: #b9b3a3;
  --muted: #847d6d;
  --gold: #f5c542;
  --gold2: #ffe28a;
  --gold3: #b8860b;
  --radius: 16px;
  /* barvy řádků podle legendy */
  --st-white: #f4f1ea;
  --st-yellow: #ffe066;
  --st-orange: #ffa94d;
  --st-red: #ff6b6b;
  --st-blue: #74c0fc;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 500px at 50% -10%, rgba(245,197,66,.12), transparent 65%), var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold2); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 32px); }
/* tabulka bodů využije širší obrazovku (víc sloupců) */
.wrap-wide { max-width: min(1800px, 100%); }
.muted { color: var(--muted); font-size: .9rem; }
.hidden { display: none !important; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10,10,18,.85); backdrop-filter: blur(10px);
       -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-avatar { display: block; width: 44px; height: 44px; border-radius: 50%; }
.brand-word { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text2); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav a.on { color: #1a1406; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
@media (max-width: 520px) { .brand-avatar { width: 36px; height: 36px; } .brand-word { height: 20px; } .nav a { padding: 7px 11px; } }

/* úvod */
.hero { text-align: center; padding: 36px 0 28px; }
.hero-avatar { display: block; margin: 0 auto 18px; width: clamp(170px, 26vw, 280px); height: auto; border-radius: 50%;
               box-shadow: -14px 0 50px rgba(245,197,66,.28), 14px 0 50px rgba(236,72,153,.28); }
.hero-logo { width: min(640px, 100%); height: auto; filter: drop-shadow(0 6px 30px rgba(245,197,66,.25)); }
.tagline { color: var(--gold2); font-size: 1.15rem; letter-spacing: .04em; margin: 8px 0 0; }
.lead { color: var(--text2); max-width: 720px; margin: 14px auto 0; font-size: 1.05rem; }
.intro .lead { margin-left: 0; }

/* sociální sítě */
.socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
          background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600;
          transition: transform .15s, border-color .15s; }
.social:hover { transform: translateY(-2px); border-color: rgba(245,197,66,.45); }
.social-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem; }
.social-kick .social-dot { background: #53fc18; color: #0b0b0b; }
.social-twitch .social-dot { background: #9146ff; }
.social-youtube .social-dot { background: #ff0033; font-size: .8rem; }
.social-facebook .social-dot { background: #1877f2; }
.social-instagram .social-dot { background: radial-gradient(circle at 30% 110%, #fdc468, #df4996 50%, #4f5bd5); }
.social-tiktok .social-dot { background: #111; box-shadow: inset 0 0 0 2px #25f4ee; }
.social-discord .social-dot { background: #5865f2; }
.social-x .social-dot { background: #111; box-shadow: inset 0 0 0 1px #555; }
.social-web .social-dot { background: var(--gold3); }
.socials-big { margin-top: 26px; }
.socials-big .social { padding: 10px 18px 10px 10px; font-size: 1.02rem; }
.socials-big .social-dot { width: 36px; height: 36px; }

/* karty */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--card); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.more { font-size: .9rem; text-decoration: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.btn { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
       color: #1a1406; background: linear-gradient(180deg, var(--gold2), var(--gold)); }

.top5 { list-style: none; margin: 0; padding: 0; }
.top5 li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.top5 li:last-child { border-bottom: 0; }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.06); color: var(--text2); }
.rank.r1 { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1406; }
.rank.r2 { background: #d9d9e3; color: #1d1d26; }
.rank.r3 { background: #d08b4f; color: #1d120a; }
.nick { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts { font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }
.pts small, .cost small { color: var(--muted); font-weight: 600; }
.mini-rewards { list-style: none; margin: 0; padding: 0; }
.mini-rewards li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mini-rewards b { color: var(--gold2); }

/* stránka MMB */
.intro { padding-top: 32px; }
.hint-link { font-weight: 600; }
.legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; color: var(--text2); font-size: .93rem; }
.legend b { color: var(--text); margin-right: 4px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.dot.st-white { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.dot.st-yellow { background: var(--st-yellow); }
.dot.st-orange { background: var(--st-orange); }
.dot.st-red { background: var(--st-red); }
.dot.st-blue { background: var(--st-blue); }
.notice { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.3);
          color: var(--gold2); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .9rem; }

.table-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 12px; }
.table-tools input { flex: 1 1 240px; background: var(--bg2); border: 1px solid rgba(255,255,255,.12); color: var(--text);
                     border-radius: 12px; padding: 11px 14px; font: inherit; }
.table-tools input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 17vw, 290px), 1fr)); gap: 6px; }
@media (max-width: 480px) { .board { grid-template-columns: 1fr; } }
.row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
       padding: clamp(6px, .5vw, 9px) 12px; border-radius: 10px; background: rgba(255,255,255,.03);
       font-variant-numeric: tabular-nums; font-size: clamp(.88rem, .3vw + .78rem, 1rem); }
.row .rk { color: var(--muted); font-size: .85em; }
.row .nk { font-weight: 600; color: #d6d1c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .pt { font-weight: 700; color: #e9e3d3; grid-column: 4; }
.row .tag { grid-column: 3; }
/* stav jen jemným podbarvením a barevným pořadím, bez bílého pruhu */
.row.st-yellow { background: rgba(255,224,102,.09); }
.row.st-orange { background: rgba(255,169,77,.11); }
.row.st-red { background: rgba(255,107,107,.13); }
.row.st-blue { background: rgba(116,192,252,.08); }
.row.st-yellow .rk { color: var(--st-yellow); }
.row.st-orange .rk { color: var(--st-orange); }
.row.st-red .rk { color: var(--st-red); }
.row.st-blue .rk, .row.st-blue .pt { color: var(--st-blue); }
.tag { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--gold2); border: 1px solid rgba(245,197,66,.4); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.none { text-align: center; padding: 20px 0; }

.section-title { margin: 12px 0 16px; font-size: 1.4rem; }
.rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 30px; }
.reward { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center;
          display: flex; flex-direction: column; align-items: center; }
.reward-img { height: 140px; display: grid; place-items: center; margin-bottom: 10px; }
.reward-img img { max-height: 140px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.reward-q { font-size: 4rem; font-weight: 800; color: var(--gold); }
.reward h3 { margin: 0 0 6px; font-size: 1.1rem; }
.reward p { margin: 0 0 12px; color: var(--text2); font-size: .93rem; }
.cost { margin-top: auto; font-size: 1.5rem; font-weight: 800; color: var(--gold2); }

/* patička */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 30px; text-align: center; }
.socials-foot { margin-bottom: 18px; }
.socials-foot .social-name { display: none; }
.socials-foot .social { padding: 6px; }
.warn { color: var(--text2); font-size: .88rem; margin: 0 auto; max-width: 640px; }
.age { display: inline-block; font-weight: 800; color: #fff; background: #c92a2a; border-radius: 6px; padding: 1px 7px; margin-right: 8px; font-size: .8rem; }
.copy { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }

/* úvod: tlačítka v kartách zarovnaná dole na stejnou výšku */
.grid2 > .card { display: flex; flex-direction: column; }
.grid2 > .card > .btn { margin-top: auto; align-self: flex-start; }
.grid2 > .card > ol, .grid2 > .card > ul { margin-bottom: 16px; }
