:root {
  --navy: #0e1830;
  --navy-deep: #0a1226;
  --red: #d4232f;
  --red-light: #ff5b64;
  --paper: #f5f3ee;
  --muted: #9aa6c2;
  --slate: #56607a;
  --narrow: 'Archivo Narrow', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--navy); }
input, textarea, select, button { font: inherit; }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--paper); border-bottom: 4px solid var(--red); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; color: inherit; }
.brand:hover { color: inherit; }
.brand img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-sub { font-family: var(--narrow); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-btn { background: transparent; color: var(--paper); border: none; padding: 10px 16px; font-family: var(--narrow); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 2px; display: inline-block; }
.nav-btn:hover { color: var(--paper); }
.nav-btn.active { background: var(--red); }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; font-family: var(--narrow); font-weight: 700; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; padding: 8px 0; }
.ticker-track { display: flex; width: max-content; animation: pgMarquee 50s linear infinite; }
.ticker-track span { padding-right: 48px; }
@keyframes pgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Shared type ---------- */
.eyebrow { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; font-size: 14px; color: var(--red-light); }
.label { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; color: var(--red); }
.h2 { margin: 0; font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; text-transform: uppercase; }
.rule-title { display: flex; align-items: center; gap: 16px; }
.rule-title .rule { flex: 1; height: 3px; background: var(--red); min-width: 40px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,0.025) 60px 120px); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 5.6vw, 80px); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.hero h1 .accent { color: var(--red); }
.hero p { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.5; color: #c9d0e0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--paper); border: 2px solid var(--paper); padding: 14px 26px; font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.btn-outline:hover { background: var(--paper); color: var(--navy); }
.hero-logo { display: flex; justify-content: center; }
.hero-logo-frame { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.hero-logo-frame::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: var(--red); }
.hero-logo-frame img { position: absolute; inset: 6%; width: 88%; height: 88%; border-radius: 50%; border: 6px solid var(--paper); object-fit: cover; }

/* ---------- Turnier ---------- */
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.tournament { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 2px solid var(--navy); background: #fff; }
.tournament-date { background: var(--navy); color: var(--paper); padding: 36px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tournament-date .days { font-family: var(--narrow); font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-light); }
.tournament-date .day { font-weight: 900; font-size: 120px; line-height: 0.85; }
.tournament-date .month { font-weight: 800; font-size: 28px; text-transform: uppercase; }
.tournament-date .left { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; color: var(--muted); }
.tournament-info { padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.tournament-info h3 { margin: 0; font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact .value { font-size: 18px; font-weight: 600; }

/* ---------- Team ---------- */
.team-teaser { background: #fff; border-top: 2px solid var(--navy); }
.team-teaser .section { gap: 36px; }
.teaser-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-btn { background: none; border: none; border-bottom: 3px solid var(--red); padding: 4px 0; font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.grid-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.card-dark { display: flex; flex-direction: column; background: var(--navy); color: var(--paper); }
.photo { display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; }
.photo .ph { font-family: ui-monospace, monospace; font-size: 11px; }
.photo .num { font-weight: 900; line-height: 0.8; color: var(--red); }
.card-dark .photo { aspect-ratio: 4/5; background: repeating-linear-gradient(135deg, #1a2644 0 10px, #15203b 10px 20px); }
.card-dark .photo .ph { color: #7f8bab; }
.card-dark .photo .num { font-size: 64px; }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-dark .name { font-weight: 800; font-size: 18px; text-transform: uppercase; }
.card-dark .pos { font-family: var(--narrow); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.page-head { background: var(--navy); color: var(--paper); }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { margin: 0; font-weight: 900; font-size: clamp(52px, 8vw, 104px); line-height: 0.9; text-transform: uppercase; }
.roster { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 56px; }
.roster-group { display: flex; flex-direction: column; gap: 20px; }
.roster-group h2 { margin: 0; font-weight: 900; font-size: 28px; text-transform: uppercase; }
.grid-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.card-light { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--navy); }
.card-light .photo { aspect-ratio: 1; padding: 12px; background: repeating-linear-gradient(135deg, #e9e5dc 0 10px, #e1ddd3 10px 20px); }
.card-light .photo .ph { color: #7a7568; }
.card-light .photo .num { font-size: 52px; }
.card-light .card-body { padding: 12px 14px; border-top: 2px solid var(--navy); }
.card-light .name { font-weight: 800; font-size: 17px; text-transform: uppercase; }
.card-light .note { font-size: 14px; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--muted); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer img { width: 44px; height: 44px; border-radius: 50%; }
.site-footer .club { font-weight: 800; color: var(--paper); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer .insta { margin-left: auto; color: var(--paper); font-weight: 600; font-size: 15px; }
.site-footer .insta:hover { color: var(--red-light); }
.site-footer .copy { font-size: 14px; }

/* ---------- Minecraft ---------- */
.narrow { max-width: 880px; margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-direction: column; gap: 20px; }
.panel { background: #fff; border: 2px solid var(--navy); display: flex; flex-direction: column; }
.panel-row { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.panel-row.status { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--navy); }
.panel-label { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--slate); }
.status-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; }
.status-label { font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; }
.btn-mc { color: #fff; border: none; padding: 18px 36px; font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; min-width: 200px; }
.address { display: flex; flex-wrap: wrap; border: 2px solid var(--navy); }
.address code { flex: 1; min-width: 220px; padding: 16px 18px; font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 600; background: var(--paper); overflow-wrap: anywhere; }
.btn-copy { background: var(--navy); color: #fff; border: none; padding: 16px 24px; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.btn-copy:hover { background: var(--red); }
.hint { font-size: 15px; line-height: 1.5; color: var(--slate); }
.mc-error { color: var(--red); font-weight: 600; margin: 0; }

/* ---------- Videos ---------- */
.video-grid { padding-top: 48px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--navy); cursor: pointer; text-align: left; padding: 0; color: inherit; }
.video-card:hover { border-color: var(--red); }
.thumb { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, #1a2644 0 10px, #15203b 10px 20px) center/cover; position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.thumb .ph { position: absolute; left: 12px; top: 10px; font-family: ui-monospace, monospace; font-size: 11px; color: #7f8bab; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; padding-left: 4px; }
.dur { position: absolute; right: 10px; bottom: 10px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 8px; }
.video-meta { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.video-meta .title { font-weight: 800; font-size: 18px; text-transform: uppercase; }
.video-meta .date { font-size: 14px; color: var(--slate); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8,12,26,0.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-inner { width: min(100%, 1040px); display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 16px; }
.modal-head .title { font-weight: 900; font-size: 24px; text-transform: uppercase; }
.modal-close { background: var(--red); color: #fff; border: none; width: 44px; height: 44px; font-size: 22px; font-weight: 800; cursor: pointer; border-radius: 2px; flex-shrink: 0; }
.player { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, #1a2644 0 10px, #15203b 10px 20px); display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player .ph { font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted); }

/* ---------- Login ---------- */
.login { max-width: 520px; margin: 0 auto; padding: 56px 24px 88px; }
.login form { background: #fff; border: 2px solid var(--navy); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login input { border: 2px solid var(--navy); padding: 14px 16px; font-size: 18px; background: var(--paper); border-radius: 0; }
.login input:focus { outline: 3px solid var(--red); outline-offset: 0; }
.btn-primary { background: var(--red); color: #fff; border: none; padding: 16px 26px; font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.btn-primary:hover { background: var(--navy); }
.login-error { margin: 0; color: var(--red); font-weight: 700; }
.logout { font-family: var(--narrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; color: var(--slate); align-self: flex-start; }
