/* Local-only styles. System fonts. No external resources. */
:root {
  --black: #090808;
  --white: #fff;
  --blue: #279eff;
  --red: #ea2020;
  --red-dark: #841212;
  --green: #20ea2d;
  --green-dark: #12841a;
  --max-w: 1240px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--black); color: var(--white); line-height: 1.5; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Header – blue bar, white text, uppercase nav */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--blue); border-bottom: none; }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo-link { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-link:hover { color: var(--white); text-decoration: none; opacity: 0.9; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 1px solid rgba(255,255,255,0.5); border-radius: 6px; color: var(--white); }
.burger span { display: block; height: 2px; background: currentColor; }
.nav-desktop { display: flex; align-items: center; gap: 24px; list-style: none; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.nav-desktop a { color: var(--white); }
.nav-desktop a:hover { color: var(--white); text-decoration: none; opacity: 0.9; }
.header-actions { display: flex; gap: 12px; }
.header-actions a { padding: 8px 20px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.header-actions .btn-login,
.header-actions a:first-child { color: var(--white); border: 2px solid var(--red); background: transparent; }
.header-actions .btn-login:hover,
.header-actions a:first-child:hover { background: rgba(234,32,32,0.2); text-decoration: none; }
.header-actions .btn-register,
.header-actions a:last-child { color: var(--white); border: none; background: linear-gradient(180deg, var(--red), var(--red-dark)); }
.header-actions .btn-register:hover,
.header-actions a:last-child:hover { opacity: 0.95; text-decoration: none; }
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; position: fixed; top: 60px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 16px; gap: 8px; z-index: 999; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-mobile a { padding: 12px; }
}
.nav-mobile { display: none; }
.nav-mobile.is-open { display: flex; }

/* Age popup */
.age-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.age-popup { max-width: 540px; padding: 40px 24px; background: var(--black); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; text-align: center; }
.age-popup h2 { font-size: 1.5rem; margin-bottom: 16px; text-transform: uppercase; }
.age-popup p { font-size: 0.9rem; margin-bottom: 24px; opacity: 0.9; }
.age-popup button { width: 100%; padding: 12px 24px; border-radius: 30px; background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white); font-weight: 700; font-size: 1rem; border: none; }
.age-popup button:hover { opacity: 0.95; transform: scale(1.02); }
.age-overlay.is-hidden { display: none; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2100; padding: 16px; display: flex; justify-content: center; }
.cookie-inner { max-width: 540px; padding: 24px; background: var(--black); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-inner span { font-weight: 700; font-size: 1.1rem; }
.cookie-inner p { font-size: 0.85rem; margin: 8px 0; flex: 1 1 100%; }
.cookie-inner button, .cookie-inner a { padding: 10px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; border: none; }
.cookie-inner button { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white); }
.cookie-inner a { background: var(--white); color: var(--black); }
.cookie-banner.is-hidden { display: none; }

/* Main */
main { padding: 0 16px 80px; max-width: var(--max-w); margin: 0 auto; }

/* Hero – full-width bg image, overlay, uppercase title, green + red buttons */
.hero { padding: 80px 20px; text-align: center; position: relative; }
.hero-with-bg { background-image: url("../img/herousom.webp"); background-size: cover; background-position: center; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
.hero p { font-size: 1.05rem; max-width: 600px; margin: 0 auto 28px; opacity: 0.95; line-height: 1.6; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-btns a { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.hero-btn-view { background: linear-gradient(180deg, var(--green), var(--green-dark)); color: var(--white); border: none; }
.hero-btn-view:hover { opacity: 0.95; text-decoration: none; transform: scale(1.02); }
.hero-btn-buy { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white); border: none; }
.hero-btn-buy:hover { opacity: 0.95; text-decoration: none; transform: scale(1.02); }

/* Sections */
.section { margin: 56px 0; padding-top: 24px; }
.section h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 28px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.section ul { list-style: none; }
.section li { margin-bottom: 20px; padding-left: 0; }
.section h3 { font-size: 1.1rem; margin-bottom: 8px; }
.section p { font-size: 0.95rem; opacity: 0.9; }

/* How-to – two columns: image left, steps right (panels with blue header) */
.howto-section { margin: 48px 0; }
.howto-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 768px) { .howto-wrap { grid-template-columns: 1fr 1.2fr; } }
.howto-image { border-radius: 12px; overflow: hidden; }
.howto-image img { width: 100%; height: auto; display: block; }
.howto-text .section li { background: rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.howto-text .section h3 { background: var(--blue); color: var(--white); margin: 0; padding: 12px 16px; font-size: 1rem; }
.howto-text .section p { margin: 0; padding: 14px 16px; }

/* Why us – 4 cards in a row, diamond icon, white border */
.why-section { margin: 56px 0; }
.why-list { display: grid; gap: 20px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 24px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; }
.why-item i { width: 48px; height: 48px; flex-shrink: 0; background: var(--blue); mask: url("../img/diamond.svg") center/contain no-repeat; -webkit-mask: url("../img/diamond.svg") center/contain no-repeat; mask-size: 32px; -webkit-mask-size: 32px; }
.why-item h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.why-item p { font-size: 0.9rem; opacity: 0.9; }

/* Responsibility – red box with white border */
.responsibility-box { margin: 48px 0; padding: 32px 24px; background: var(--red); border: 2px solid var(--white); border-radius: 12px; text-align: center; }
.responsibility-box h2 { font-size: 1.25rem; margin-bottom: 16px; color: var(--white); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; }
.responsibility-box p { font-size: 0.95rem; color: var(--white); opacity: 0.95; margin: 0; }
.responsibility-box a { color: var(--white); text-decoration: underline; }
.responsibility-box a:hover { opacity: 0.9; }

/* Footer – top blue bar, then dark content */
.site-footer { margin-top: 60px; }
.footer-top { background: var(--blue); padding: 16px 20px; text-align: center; }
.footer-top p { margin: 0; font-size: 1rem; font-weight: 600; color: var(--white); }
.footer-inner { background: var(--black); padding: 40px 16px 24px; max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-inner p { font-size: 0.85rem; margin-bottom: 16px; opacity: 0.9; }
.footer-nav { margin: 24px 0; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-nav a { color: var(--white); }
.footer-nav a:hover { color: var(--blue); text-decoration: none; }
.footer-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin: 24px 0; }
.footer-logos a, .footer-logos span { display: inline-block; }
.footer-logos img { height: 50px; width: auto; }
.footer-copy { font-size: 0.8rem; opacity: 0.7; margin-top: 24px; }

/* Page: About */
.about-block { margin-bottom: 32px; }
.about-block h1 { font-size: 1.75rem; margin-bottom: 16px; }
.about-block span { font-weight: 700; display: block; margin-bottom: 8px; }
.about-block p { margin-bottom: 12px; }

/* Page: Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h1 { margin-bottom: 20px; }
.contact-info > div { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--white); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { padding: 12px 32px; border-radius: 30px; background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white); font-weight: 700; border: none; }
.contact-form .success-msg { margin-top: 16px; padding: 12px; background: rgba(32,234,45,0.2); border-radius: 8px; color: var(--green); display: none; }
.contact-form .success-msg.show { display: block; }

/* Page: Login / Register */
.auth-page { max-width: 400px; margin: 0 auto; padding: 40px 0; }
.auth-page h1 { margin-bottom: 8px; }
.auth-page > p { margin-bottom: 24px; opacity: 0.9; }
.auth-page label { display: block; margin-bottom: 6px; }
.auth-page input { width: 100%; padding: 10px 12px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--white); }
.auth-page button[type=submit] { width: 100%; padding: 12px; border-radius: 30px; background: linear-gradient(180deg, var(--red), var(--red-dark)); color: var(--white); font-weight: 700; border: none; }
.auth-page .form-footer { margin-top: 16px; text-align: center; font-size: 0.9rem; }
.auth-page .success-msg { margin-top: 16px; padding: 12px; background: rgba(32,234,45,0.2); border-radius: 8px; color: var(--green); display: none; }
.auth-page .success-msg.show { display: block; }

/* Page: Cookies, Privacy, Responsible */
.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { font-size: 0.9rem; opacity: 0.8; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.2rem; margin: 24px 0 12px; }
.legal-page p, .legal-page ul { margin-bottom: 12px; font-size: 0.95rem; }
.legal-page ul { padding-left: 20px; }

/* Buy tickets page */
.choose-page { padding: 40px 0; }
.choose-page h1 { text-align: center; margin-bottom: 8px; }
.choose-page > p { text-align: center; margin-bottom: 32px; opacity: 0.9; }
.game-grid { display: grid; gap: 24px; }
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card { background: rgba(39,158,255,0.15); border: 1px solid var(--blue); border-radius: 16px; padding: 24px; text-align: center; }
.game-card img { width: 100%; max-height: 120px; object-fit: contain; margin: 0 auto 12px; }
.game-card h3 { margin-bottom: 8px; }
.game-card p { font-size: 0.9rem; margin-bottom: 16px; opacity: 0.9; }
.game-card a { display: inline-block; padding: 10px 24px; border-radius: 30px; background: linear-gradient(180deg, var(--blue), #1a7bc9); color: var(--white); font-weight: 600; }
.game-card a:hover { opacity: 0.95; text-decoration: none; }
