@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0e14;
  --bg-overlay: rgba(10, 14, 20, 0.88);
  --text: #e8e6e1;
  --text-muted: rgba(232, 230, 225, 0.68);
  --accent: #7ec8ff;
  --accent-warm: #f4d48e;
  --border: rgba(232, 230, 225, 0.12);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  --radius: 16px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #0a0e14 0%, #0d1219 50%, #0a0e14 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-shell { position: relative; isolation: isolate; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* NAV */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  width: min(var(--container), calc(100% - 32px));
}

.logo-mark, .logo-center, .logo-copy, .mobile-toggle { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nav-links a:hover { color: var(--text); background: rgba(232, 230, 225, 0.06); border-color: var(--border); }

.nav-links a.active { color: var(--accent); background: rgba(126, 200, 255, 0.08); border-color: rgba(126, 200, 255, 0.2); }

.nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-more-toggle:hover,
.nav-more.active > .nav-more-toggle {
  color: var(--text);
  background: rgba(232, 230, 225, 0.06);
  border-color: var(--border);
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  padding: 8px 0;
  min-width: 180px;
  border-radius: 16px;
  background: rgba(13, 18, 25, 0.96);
  border: 1px solid rgba(232, 230, 225, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.nav-more.active .nav-more-menu {
  display: block;
}

.nav-more-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text-muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-more-menu a:hover {
  color: var(--text);
  background: rgba(232, 230, 225, 0.06);
}

.mc-auth-panel { display: flex; align-items: center; gap: 12px; }

.mc-auth-panel .button { width: auto; }

.mc-login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(232, 230, 225, 0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.mc-login-trigger:hover { background: rgba(232, 230, 225, 0.08); border-color: var(--accent); }

.mc-login-head { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }

.mc-profile-section { display: none; }

.mc-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(232, 230, 225, 0.06);
  transition: 0.2s ease;
}

.mc-profile-link:hover { background: rgba(232, 230, 225, 0.12); }

.mc-profile-head { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, 0.2); }

.mc-head-img { width: 100%; height: 100%; image-rendering: pixelated; }

.mc-profile-nick { font-weight: 600; font-size: 0.9rem; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/backg.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  opacity: 0.35;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.2) 0%, rgba(10, 14, 20, 0.55) 50%, rgba(10, 14, 20, 0.85) 100%);
  z-index: 1;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-logo-block { display: grid; gap: 28px; align-items: center; justify-items: center; }

.hero-logo-large {
  width: auto;
  height: 340px;
  max-width: 92%;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(126, 200, 255, 0.22));
  animation: logoFloat 5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.035); }
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(126, 200, 255, 0.16)); }
  to { filter: drop-shadow(0 38px 80px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(126, 200, 255, 0.34)); }
}

.hero-tagline { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button-hero {
  background: linear-gradient(135deg, var(--accent-warm), #f0c872);
  color: #0a0e14;
  box-shadow: 0 12px 32px rgba(244, 212, 142, 0.25);
}

.button-hero:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(244, 212, 142, 0.35); }

.button-hero.button-secondary {
  background: rgba(126, 200, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(126, 200, 255, 0.3);
  box-shadow: none;
}

.button-hero.button-secondary:hover { background: rgba(126, 200, 255, 0.2); border-color: var(--accent); }

.hero-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: min(var(--container), calc(100% - 40px));
  margin: 24px auto 0;
  z-index: 2;
}

.hero-info-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(232, 230, 225, 0.04);
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.hero-info-card:hover { background: rgba(232, 230, 225, 0.08); border-color: var(--accent); transform: translateY(-4px); }

.hero-info-label { text-transform: uppercase; letter-spacing: .1em; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }

.hero-info-value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }

/* SECTIONS */
.section { padding: 80px 0; position: relative; }

.section h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; background: linear-gradient(135deg, #e8e6e1, #7ec8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.section p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
  padding: 28px;
  background: rgba(232, 230, 225, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: 0.3s ease;
}

.card:hover { background: rgba(232, 230, 225, 0.08); border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }

.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

.card p { color: var(--text-muted); line-height: 1.6; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.team-member {
  text-align: center;
  padding: 24px;
  background: rgba(232, 230, 225, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: 0.3s ease;
}

.team-member:hover { background: rgba(232, 230, 225, 0.06); border-color: var(--accent); transform: translateY(-4px); }

.team-member-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7cc8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
}

.team-member-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }

.team-member-role { font-size: 0.9rem; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.team-member-desc { font-size: 0.9rem; color: var(--text-muted); }

/* FOOTER */
.footer {
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.8), rgba(13, 18, 25, 0.8));
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 auto; width: min(var(--container), calc(100% - 32px)); }

.footer-brand { display: flex; gap: 14px; align-items: center; }

.footer-brand img { width: 46px; }

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.footer-links a { color: var(--text-muted); transition: 0.2s ease; }

.footer-links a:hover { color: var(--accent); transform: translateX(4px); }

.footer-social { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(232, 230, 225, 0.04);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.footer-social a:hover { background: var(--accent); color: #0a0e14; border-color: var(--accent); transform: translateY(-2px); }

.footer-note { color: var(--text-muted); font-size: 14px; margin-top: 24px; text-align: center; border-top: 1px solid var(--border); padding-top: 24px; }

/* MODAL */
.mc-login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.mc-login-modal.active { display: flex; }

.mc-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(2px); }

.mc-modal-content {
  position: relative;
  z-index: 101;
  width: min(340px, calc(100% - 24px));
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.96), rgba(13, 18, 25, 0.94));
  border: 1px solid rgba(232, 230, 225, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--border); }

.mc-modal-header h2 { margin: 0; font-size: 1.4rem; color: var(--text); font-weight: 700; }

.mc-modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; transition: 0.2s ease; }

.mc-modal-close:hover { color: var(--text); }

.mc-modal-body { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.mc-modal-head-preview { width: 80px; height: 80px; background: rgba(0, 0, 0, 0.3); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.mc-login-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

.mc-input {
  padding: 12px 14px;
  background: rgba(232, 230, 225, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.mc-input:focus { outline: none; border-color: var(--accent); background: rgba(232, 230, 225, 0.06); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s ease; width: 100%; }

.button-primary { background: linear-gradient(135deg, var(--accent), #5bb8ff); color: #0a0e14; }

.button-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(126, 200, 255, 0.2); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 60px 0 80px; min-height: auto; }
  .hero-logo-large { height: 240px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .button-hero { width: 100%; max-width: 280px; }
  .hero-info-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .nav-links a { padding: 8px 12px; font-size: 0.9rem; }
}

@media (max-width: 560px) {
  .topbar-inner { width: calc(100% - 16px); padding: 12px 8px; }
  .mc-modal-content { width: calc(100% - 16px); }
  .hero-info-row { width: calc(100% - 16px); margin-left: 8px; margin-right: 8px; }
}


/* ===== FIX 2026-04-30: missing page styles + global background ===== */
html, body { min-height: 100%; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10,14,20,.78), rgba(10,14,20,.92)),
    url("../images/backg.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.site-shell { min-height: 100vh; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blob { position: absolute; width: 360px; height: 360px; border-radius: 999px; filter: blur(70px); opacity: .18; background: var(--accent); }
.blob.one { top: 6%; left: -90px; }
.blob.two { top: 42%; right: -120px; background: var(--accent-warm); }
.blob.three { bottom: -140px; left: 38%; }

.hero::before { background-image: url("../images/backg.png"); opacity: .42; }

.page-hero {
  padding: 96px 0 40px;
  position: relative;
}
.page-header {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}
.page-header h1 {
  margin: 10px auto 12px;
  max-width: 940px;
  font-size: clamp(2.15rem, 6vw, 4.75rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c9eaff 55%, var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header h1 span { color: var(--accent); }
.page-header p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.content-section { padding: 34px 0 72px; position: relative; }
.surface-card, .notice-panel, .vote-panel, .ban-panel, .page-panel, .news-item, .rank-card, .vote-info-card, .rule-card, .cta-strip {
  background: rgba(10, 14, 20, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.surface-card, .notice-panel, .vote-panel, .ban-panel, .page-panel, .rank-card, .vote-info-card, .rule-card, .cta-strip { padding: 28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:24px; }
.section-head h2, .cta-strip h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height:1.05; margin:0; }
.section-tight { padding-top: 28px; }
.news-list { display: grid; gap: 18px; }
.news-item { padding: 24px; }
.news-tag { display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(126,200,255,.12); color:var(--accent); font-weight:700; font-size:.82rem; margin-bottom:10px; }
.news-item h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 2rem); }
.news-item p { color: var(--text-muted); line-height:1.65; margin:0 0 12px; }
.cta-strip { margin-top:48px; text-align:center; display:grid; gap:18px; }
.cta-strip p { color:var(--text-muted); max-width:720px; margin:0 auto; line-height:1.65; }

.rule-grid, .vote-summary, .profile-info-grid { display:grid; gap:18px; }
.rule-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rule-card h2, .notice-panel h2, .ban-panel h2, .vote-panel h2 { margin:0 0 12px; }
.rule-list { padding-left: 1.2rem; display:grid; gap:8px; color:var(--text-muted); line-height:1.65; }
.danger { border-color: rgba(255, 117, 117, .28); }

.button-secondary { background:rgba(232,230,225,.08); color:var(--text); border:1px solid var(--border); }
.button-secondary:hover { background:rgba(232,230,225,.14); transform:translateY(-2px); }

.nav-store-link {
  width: auto;
  background: linear-gradient(135deg, #1e9bff, #7ec8ff);
  color: #07111d;
  border: 1px solid rgba(126, 200, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.22), 0 12px 28px rgba(30, 155, 255, 0.26);
}

.nav-store-link:hover {
  background: linear-gradient(135deg, #55b6ff, #9ed7ff);
  box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.34), 0 16px 34px rgba(30, 155, 255, 0.34);
  transform: translateY(-2px);
}
.hero-actions .button, .cta-strip .button { width:auto; min-width:180px; }
.vote-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.vote-button { padding:12px 16px; border-radius:12px; border:1px solid rgba(126,200,255,.25); background:rgba(126,200,255,.1); color:var(--accent); font-weight:700; cursor:pointer; }
.vote-button:hover { background:rgba(126,200,255,.2); }
.vote-form, .ban-form { display:grid; gap:14px; }
.vote-message { margin-top: 12px; color: var(--text-muted); }
.rank-list { display:grid; gap:10px; }
.rank-card { display:flex; justify-content:space-between; align-items:center; }
.ban-info { color:var(--text-muted); line-height:1.65; }

.profile-layout { display:grid; grid-template-columns: minmax(260px, 360px) 1fr; gap:24px; align-items:start; }
.profile-card-main { text-align:center; position:sticky; top:110px; }
.profile-player-render { display:flex; align-items:center; justify-content:center; min-height:320px; }
.profile-player-render img { max-height:360px; margin:0 auto; filter:drop-shadow(0 24px 42px rgba(0,0,0,.45)); }
.profile-name-block h2 { font-size:2rem; margin:0 0 8px; }
.profile-name-block p { color:var(--text-muted); }
.profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-info-card { display:grid; gap:8px; min-height:110px; }
.profile-info-label { color:var(--text-muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.profile-info-card strong { font-size:1.05rem; overflow-wrap:anywhere; }
.profile-wide-card { grid-column: 1 / -1; }
.profile-empty-card { max-width:560px; margin:0 auto; text-align:center; display:grid; gap:16px; }
.feature-icon { width:64px; height:64px; border-radius:18px; display:grid; place-items:center; margin:0 auto; background:rgba(126,200,255,.12); color:var(--accent); font-size:2rem; font-weight:800; }

.mobile-toggle { border:1px solid var(--border); background:rgba(232,230,225,.04); border-radius:10px; width:42px; height:42px; align-items:center; justify-content:center; flex-direction:column; gap:5px; }
.mobile-toggle span { display:block; width:20px; height:2px; background:var(--text); border-radius:99px; }

.reveal { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .topbar-inner { align-items:flex-start; }
  .mobile-toggle { display:flex; }
  .nav-links { display:none; width:100%; flex-direction:column; align-items:stretch; padding-top:10px; }
  .nav-links.open, .nav-links.active { display:flex; }
  .mc-auth-panel { margin-left:auto; }
  .profile-layout { grid-template-columns:1fr; }
  .profile-card-main { position:relative; top:auto; }
  .profile-info-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .page-hero { padding-top: 64px; }
  .section-head { display:grid; }
  .surface-card, .notice-panel, .vote-panel, .ban-panel, .page-panel, .rank-card, .vote-info-card, .rule-card, .cta-strip, .news-item { padding:20px; }
  .hero-actions .button, .cta-strip .button { width:100%; }
}

/* ===== FINAL POLISH 2026-04-30: podstránky, formuláře, rozložení ===== */
body {
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 200, 255, .10), transparent 32%),
    linear-gradient(180deg, rgba(5, 8, 12, .78), rgba(5, 8, 12, .96));
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: center;
}

.mc-auth-panel {
  margin-left: auto;
}

.mobile-toggle {
  margin-right: auto;
}

.page-hero {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 32px;
}

.page-hero > .page-header,
.page-hero > .vote-panel,
.page-hero > .ban-panel,
.page-hero > .surface-card,
.page-hero > .page-panel {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-hero > .vote-panel,
.page-hero > .ban-panel {
  padding: clamp(26px, 4vw, 42px);
}

.vote-panel h1,
.ban-panel h1 {
  max-width: 980px;
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c9eaff 60%, var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vote-panel > p,
.ban-panel > p,
.notice-panel p,
.vote-info-card p,
.rule-card p,
.page-panel p,
.profile-info-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.content-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 78px;
}

.content-section > .container,
main.content-section .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.vote-summary {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: stretch;
}

.vote-summary > .rank-card,
.vote-summary > .vote-info-card {
  display: block;
  min-height: 100%;
}

.rank-list {
  margin-top: 14px;
  list-style: none;
  padding: 0;
}

.rank-list:empty::before {
  content: "Žebříček se zatím načítá…";
  display: block;
  color: var(--text-muted);
  padding: 14px 0 0;
}

.rank-list .rank-card,
.rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(232,230,225,.035);
}

.vote-form,
.ban-form,
.mc-login-form {
  margin-top: 18px;
}

label {
  color: var(--text);
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
textarea,
select,
.mc-input,
#playerNick,
#banNick {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232,230,225,.14);
  background: rgba(5, 8, 12, .72);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(232,230,225,.48);
}

input:focus,
textarea:focus,
select:focus,
.mc-input:focus {
  border-color: rgba(126,200,255,.58);
  background: rgba(8, 14, 22, .88);
  box-shadow: 0 0 0 4px rgba(126,200,255,.10);
}

input[readonly],
input:disabled,
button:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.button,
.vote-button,
.mc-login-trigger,
.mc-profile-link {
  min-height: 44px;
}

.button-primary,
.vote-button.primary {
  background: linear-gradient(135deg, var(--accent), #56b6ff);
  color: #061018;
  box-shadow: 0 12px 28px rgba(86, 182, 255, .16);
}

.vote-actions {
  margin-top: 20px;
}

.vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.rule-grid {
  margin-bottom: 22px;
}

.notice-panel.danger {
  margin-top: 22px;
}

.profile-layout {
  width: 100%;
  margin: 0 auto;
}

.profile-card-main,
.profile-info-grid .surface-card {
  background: rgba(10, 14, 20, .78);
}

.profile-player-render {
  min-height: 390px;
}

.profile-player-render img {
  max-height: 390px;
}

.footer {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .vote-summary {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .page-hero,
  .content-section {
    width: min(100% - 24px, var(--container));
  }
  .page-hero {
    padding-top: 54px;
  }
  .vote-actions {
    display: grid;
  }
  .vote-button {
    width: 100%;
  }
}

/* DYNAMIC TEAM FROM LUCKPERMS */
.team-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 26px;
  background: rgba(232, 230, 225, 0.025);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.team-toolbar h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.team-toolbar p {
  margin: 0;
  color: var(--text-muted);
  max-width: 780px;
}

.team-message {
  padding: 18px 20px;
  margin-bottom: 22px;
  background: rgba(126, 200, 255, 0.08);
  border: 1px solid rgba(126, 200, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
}

.team-member-skin {
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(126, 200, 255, 0.35), rgba(232, 230, 225, 0.04));
}

.team-member-skin img {
  width: 100%;
  height: 128%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(10px);
  image-rendering: pixelated;
}

.button-ghost {
  width: auto;
  padding-inline: 22px;
  background: rgba(126, 200, 255, 0.10);
  color: var(--accent);
  border: 1px solid rgba(126, 200, 255, 0.30);
}

.button-ghost:hover {
  background: rgba(126, 200, 255, 0.16);
}

@media (max-width: 768px) {
  .team-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}


/* ===== CACHE/AUTH POLISH 20260430-root17-fixed-2 ===== */
.mc-profile-section[style*="block"] {
  display: block !important;
}
.mc-profile-link {
  border: 1px solid rgba(232,230,225,.10);
}
.mc-profile-nick {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-message[data-type="error"] {
  background: rgba(255, 117, 117, 0.10);
  border-color: rgba(255, 117, 117, 0.28);
  color: #ffd4d4;
}
.team-message[data-type="info"] {
  background: rgba(126, 200, 255, 0.08);
  border-color: rgba(126, 200, 255, 0.25);
}
.team-member {
  min-height: 100%;
}
@media (max-width: 860px) {
  .topbar-inner {
    gap: 12px;
  }
  .mc-profile-nick {
    max-width: 95px;
  }
}

/* LibertyBans banlist */
.banlist-hero {
  min-height: 360px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px min(8vw, 140px) 72px;
  background:
    linear-gradient(rgba(8, 14, 22, .58), rgba(8, 14, 22, .78)),
    url('../images/backg.png') center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.banlist-navline {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  letter-spacing: .02em;
  font-weight: 600;
}

.banlist-title {
  margin-top: 104px;
  text-align: center;
}

.banlist-title h1 {
  margin: 6px 0 10px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff, #c9eaff 55%, var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banlist-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.banlist-section {
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.4) 0%, rgba(10, 14, 20, 0.6) 100%);
  padding: 0 0 80px;
  margin-top: 0;
}

.banlist-container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 28px;
}

.banlist-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -6px 0 24px;
}

.banlist-tab,
.banlist-icon-button,
.banlist-filters button,
.banlist-filters input,
.banlist-filters select {
  background: rgba(232, 230, 225, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  box-shadow: none;
  transition: 0.2s ease;
}

.banlist-tab {
  min-width: 112px;
  cursor: pointer;
  transition: .2s ease;
}

.banlist-tab small { color: var(--text-muted); }
.banlist-tab:hover,
.banlist-tab.active {
  background: rgba(126, 200, 255, 0.1);
  border-color: rgba(126, 200, 255, 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

.banlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.banlist-icon-button {
  width: 54px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.banlist-icon-button:hover {
  border-color: var(--accent);
  background: rgba(126, 200, 255, 0.1);
}

.banlist-filters {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.banlist-filters input {
  width: min(270px, 42vw);
  color: var(--text);
}

.banlist-filters button,
.banlist-filters select,
.banlist-filters input {
  outline: none;
}

.banlist-filters input:focus,
.banlist-filters button:hover,
.banlist-filters select:hover {
  border-color: var(--accent);
  background: rgba(232, 230, 225, 0.08);
}

.banlist-message {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: .95rem;
}

.banlist-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.banlist-table-wrap.loading { opacity: .72; }

.banlist-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 0.95rem;
}

.banlist-table thead {
  background: rgba(126, 200, 255, 0.08);
}

.banlist-table th,
.banlist-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  color: var(--text);
}

.banlist-table th {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 0.9rem;
}

.banlist-table tbody tr:nth-child(odd) { background: rgba(10, 14, 20, 0.35); }
.banlist-table tbody tr:nth-child(even) { background: rgba(10, 14, 20, 0.5); }
.banlist-table tbody tr:hover { background: rgba(126, 200, 255, 0.1); }

.ban-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ban-player img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: 2px;
}

.punish-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #16b987;
}

.status-pill.active i { background: #ff5f5f; }
.status-pill.cancelled i { background: #f4d48e; }
.status-pill.expired i { background: #16b987; }

.server-badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 3px 10px;
  background: rgba(154,84,15,.85);
  color: #ffd28a;
}

.reason-cell {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banlist-empty {
  padding: 28px;
  text-align: center;
  background: rgba(232, 230, 225, 0.02);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .banlist-hero { min-height: 300px; padding-inline: 18px; }
  .banlist-title { margin-top: 76px; }
  .banlist-toolbar,
  .banlist-filters { flex-direction: column; align-items: stretch; }
  .banlist-filters { width: 100%; }
  .banlist-filters input { width: 100%; }
  .banlist-icon-button { width: 100%; }
}


/* Výkonové optimalizace: méně repaintů a renderování mimo viewport */
main section,
.footer,
.profile-panel,
.banlist-panel {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.hero,
.hero-logo-large,
.card,
.button-hero {
  backface-visibility: hidden;
}

.hero-logo-large {
  will-change: transform;
}

.ambient {
  contain: strict;
}

@media (max-width: 900px) {
  .ambient { display: none; }
  .topbar,
  .nav-more-menu,
  .mc-modal-overlay {
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Plynulé přechody mezi HTML stránkami */
@keyframes nocturiaPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: nocturiaPageIn 180ms ease-out both;
}

body.page-is-leaving {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 170ms ease, transform 170ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.page-is-leaving {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
