/* ============================================================================
   LION OF MIGHT — vzhled „Aréna“
   ----------------------------------------------------------------------------
   Tmavý web jako profi klub: velké úzké písmo (Archivo), oranžový akcent,
   motion grafika. Barvy a písmo jsou nahoře v :root — změna tam se
   promítne všude.
   ========================================================================== */

:root {
  --ink: #0a0a0b; --ink-2: #131315; --ink-3: #1c1c1f; --line: #26262a;
  --paper: #f2efe9; --mute: #8d8a85; --soft: #bdb9b2; --accent: #e8741c; --accent-2: #ff9a3d;
  --f: "Archivo", system-ui, sans-serif; --ease: cubic-bezier(.2,.8,.2,1);
  --top-h: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
/* nakloněný pás a parallax nesmí roztáhnout stránku do strany */
main, footer { overflow-x: clip; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; position: relative; }
.display { font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .86; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.acc { color: var(--accent); }
.mark { display: inline-block; background: currentColor; -webkit-mask: url(../assets/lion-mark.png) center / contain no-repeat; mask: url(../assets/lion-mark.png) center / contain no-repeat; }
.flag { display: inline-block; width: 24px; height: 17px; object-fit: cover; flex: none; }

/* zrnitost přes celou stránku — film, ne plast */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) } }

/* --- úvodní nahrávání (jednou za návštěvu) --- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); clip-path: inset(0 0 0 0); }
.intro .intro-logo { width: 140px; height: auto; transform: scale(.6); opacity: 0; animation: introMark .9s var(--ease) .1s forwards; }
.intro .num { position: absolute; left: 28px; bottom: 24px; font-stretch: 62%; font-weight: 800; font-size: 96px; line-height: .8; font-variant-numeric: tabular-nums; }
.intro .who { position: absolute; right: 28px; bottom: 30px; }
.intro .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0; }
.intro.out { animation: introOut .8s var(--ease) forwards; }
@keyframes introMark { to { transform: none; opacity: 1; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }

/* --- vlastní kurzor (jen myš) --- */
.cur, .cur-ring { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; border-radius: 50%; }
.cur { width: 6px; height: 6px; background: var(--accent); }
.cur-ring { width: 38px; height: 38px; transform: translate(-50%, -50%); border: 1px solid rgba(242,239,233,.45); display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cur-ring span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cur-ring.big { width: 86px; height: 86px; background: var(--accent); border-color: var(--accent); }
.cur-ring.big span { opacity: 1; }
.cur-ring.link { width: 56px; height: 56px; border-color: var(--accent); }
.cur, .cur-ring { display: none; }
.has-cursor .cur, .has-cursor .cur-ring { display: grid; }
.has-cursor .cur { display: block; }

/* --- hlavička --- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .4s var(--ease), background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid, .top.open { background: rgba(10,10,11,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.top.hide { transform: translateY(-100%); }
.top > .wrap { display: flex; align-items: center; gap: 32px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 12px; font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.brand .brand-logo { width: auto; height: 46px; transition: transform .5s var(--ease); flex: none; filter: drop-shadow(0 0 10px rgba(232,116,28,.35)); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.1); }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav a { position: relative; color: #cfccc6; padding: 6px 0; overflow: hidden; display: inline-block; white-space: nowrap; }
.nav a span { display: inline-block; transition: transform .35s var(--ease); }
.nav a span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--accent); }
.nav a:hover span { transform: translateY(-100%); }
.nav a.on { color: var(--paper); }
.nav a.on::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.top-end { display: flex; align-items: center; gap: 14px; }

/* přepínač jazyka */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: #cfccc6; font: 700 12px/1 var(--f); letter-spacing: .12em; cursor: pointer; transition: border-color .3s, color .3s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--paper); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; margin: 0; padding: 6px 0; list-style: none; background: var(--ink-2); border: 1px solid var(--line); z-index: 60; }
.lang-menu button { display: block; width: 100%; padding: 10px 16px; background: none; border: 0; color: #cfccc6; text-align: left; font: 600 14px/1.2 var(--f); cursor: pointer; }
.lang-menu button:hover { color: var(--paper); background: var(--ink-3); }
.lang-menu button[aria-selected="true"] { color: var(--accent); }

/* menu na mobilu */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.top.open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.top.open .burger span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 12px 16px 28px; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-stretch: 62%; font-weight: 800; font-size: 34px; text-transform: uppercase; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 22px; font-size: 13px; font-stretch: 100%; border-bottom: 1px solid var(--paper); padding: 0 22px; }

/* tlačítka */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; font: 700 13px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--paper); color: var(--paper); background: transparent; cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn.fill { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.magnet { transition: transform .4s var(--ease); }

/* --- úvod --- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; padding: 0; }
.hero-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 60%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(232,116,28,.32) 0%, rgba(232,116,28,.08) 40%, transparent 68%); pointer-events: none; }
/* celý název organizace uprostřed za hráči (zmenší se, když se nevejde) */
.hero-word { position: absolute; left: 50%; top: 12vh; transform: translateX(-50%); width: max-content; white-space: nowrap; font-size: clamp(90px, 15vw, 300px); color: transparent; -webkit-text-stroke: 1.5px rgba(242,239,233,.3); pointer-events: none; }
.lineup { position: absolute; z-index: 1; isolation: isolate; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; height: min(70vh, 700px); }
.lineup img { position: relative; height: 100%; width: auto; min-width: 0; margin: 0 -2.2%; object-fit: contain; opacity: 0; transform: translateY(60px); will-change: transform; }
.ready .lineup img { animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(var(--py, 0px)) translateX(var(--px, 0px)); } }
.lineup .lion { width: auto; height: 80%; margin: 0 0 12%; opacity: .35 !important; transform: none !important; animation: none !important; }
.hero-fade { position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(to top, var(--ink) 15%, transparent); z-index: 5; }
/* stín jen za textem, ať jsou vidět i hráči vlevo (nejlepší top rank) */
.hero-side { position: absolute; inset: 0 auto 0 0; width: 50%; background: linear-gradient(90deg, rgba(10,10,11,.7) 0%, rgba(10,10,11,.35) 55%, transparent 100%); z-index: 4; }
.hero-copy { position: absolute; inset: auto 0 56px; z-index: 6; }
.hero-copy .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(60px, 9.4vw, 140px); margin: 12px 0 0; text-shadow: 0 4px 40px rgba(0,0,0,.55); }
.hero-copy p, .hero-copy .label, .meta { text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.hero h1 .ln { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); }
.ready .hero h1 .ln > span { animation: lineUp 1s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s !important; color: var(--accent); }
@keyframes lineUp { to { transform: none; } }
.hero p { max-width: 450px; margin: 20px 0 0; color: #c9c5be; font-size: 17px; line-height: 1.5; }
.fadein { opacity: 0; transform: translateY(14px); }
.ready .fadein { animation: fin .9s var(--ease) forwards; animation-delay: var(--d, .4s); }
@keyframes fin { to { opacity: 1; transform: none; } }
.meta { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 28px; }
.meta b { display: block; font-stretch: 62%; font-size: 32px; font-weight: 800; color: var(--paper); letter-spacing: 0; }
.ctas { display: flex; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 6; width: 1px; height: 38px; background: rgba(242,239,233,.2); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* --- běžící pás --- */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; transform: rotate(-1.2deg) scale(1.02); margin: -14px 0 0; position: relative; z-index: 7; }
.ticker-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 28px 16px 0; font-stretch: 62%; font-weight: 800; font-size: 30px; text-transform: uppercase; white-space: nowrap; }
.ticker .mark { width: 28px; height: 36px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- čísla --- */
.stats { border-bottom: 1px solid var(--line); margin-top: 60px; }
.stats .wrap { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-stretch: 62%; font-weight: 800; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .4em; font-weight: 700; margin-left: .25em; }

section { padding: 130px 0; position: relative; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 52px; }
.head h2 { font-size: clamp(54px, 8vw, 124px); margin: 12px 0 0; }
.head .lead { max-width: 420px; margin: 0; color: var(--soft); font-size: 16px; line-height: 1.6; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .04em; margin-top: -.16em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split.in .w > span { transform: none; }

/* --- výběr hráče (jako ve hře) --- */
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tab { height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: #cfccc6; font: 700 12px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.tab:hover { border-color: var(--paper); color: var(--paper); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.staff { color: var(--mute); font-size: 14px; line-height: 1.6; }
.staff b { color: var(--paper); }
.select { position: relative; display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 32px; align-items: center; min-height: min(640px, 72vh); }
.sel-bg { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: clamp(120px, 20vw, 330px); color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.1); white-space: nowrap; pointer-events: none; z-index: 0; }
.sel-ring { position: absolute; left: 50%; top: 50%; width: min(560px, 80vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(232,116,28,.35); z-index: 0; }
.sel-ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(232,116,28,.28), transparent 65%); }
.sel-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sel-left, .sel-right { position: relative; z-index: 2; min-width: 0; }
.sel-num { font-stretch: 62%; font-weight: 800; font-size: 22px; color: var(--accent); text-transform: uppercase; }
.sel-name { font-size: clamp(56px, 6.6vw, 104px); margin: 10px 0 14px; overflow-wrap: anywhere; }
.sel-from { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #cfccc6; min-height: 17px; }
.sel-bio { color: var(--soft); line-height: 1.65; font-size: 15.5px; margin: 22px 0 28px; max-width: 420px; }
.sel-stage { position: relative; z-index: 1; height: min(640px, 72vh); display: flex; justify-content: center; align-items: flex-end; cursor: pointer; }
.sel-stage > * { position: absolute; bottom: 0; transition: transform .7s var(--ease), opacity .5s; }
.sel-stage img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.sel-stage .emoji { bottom: 50%; transform: translateY(50%); font-size: min(220px, 40vw); line-height: 1; }
.sel-stage .leave { opacity: 0; transform: translateX(-60px) scale(.96); }
.sel-stage .enter { opacity: 0; transform: translateX(60px) scale(.96); }
.gauge { margin-bottom: 26px; }
.gauge .top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gauge b { font-stretch: 62%; font-weight: 800; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge .track { height: 4px; background: var(--line); margin-top: 10px; position: relative; overflow: hidden; }
.gauge .fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.chips span, .chips li { border: 1px solid var(--line); padding: 7px 11px; font-size: 13px; color: #d9d5ce; }
.thumbs { display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); gap: 6px; margin-top: 34px; }
.thumb { position: relative; aspect-ratio: 1; background: var(--ink-3); overflow: hidden; border: 0; padding: 0; cursor: pointer; color: var(--paper); }
.thumb img { width: 100%; height: 280%; object-fit: cover; object-position: 50% 0; transform: translateY(4%); filter: grayscale(1) brightness(.6); transition: filter .3s, transform .4s var(--ease); }
.thumb .emoji { display: grid; place-items: center; height: 100%; font-size: 30px; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.thumb:hover img { filter: grayscale(.3) brightness(.9); transform: translateY(2%) scale(1.05); }
.thumb.on img { filter: none; }
.thumb.on .emoji, .thumb:hover .emoji { filter: none; opacity: 1; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease); }
.thumb.on::after { transform: scaleX(1); }
.thumb .t { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(242,239,233,.5); transform-origin: left; transform: scaleX(0); z-index: 2; }
.thumb.on .t { animation: prog var(--dur, 7s) linear forwards; }
.select.paused ~ .thumbs .thumb.on .t, #team.paused .thumb.on .t { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.sel-keys { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; }
.empty { color: var(--mute); font-size: 16px; padding: 40px 0; border-top: 1px solid var(--line); }
.recruit { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding: 30px 34px; border: 1px dashed #3a3a3f; }
.recruit .emoji { font-size: 40px; margin-right: 6px; }
.recruit h3 { font-stretch: 70%; font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 6px 0; }
.recruit p { margin: 0; color: var(--soft); line-height: 1.55; max-width: 640px; }

/* --- pás bannerů s náklonem podle rychlosti scrollu --- */
.strip { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.strip img { height: 160px; width: auto; aspect-ratio: 3 / 1; object-fit: cover; transition: transform .4s var(--ease); }
.strip img:hover { transform: scale(1.04); }

/* --- příběh: časová osa, čára se kreslí scrollem --- */
.tl { position: relative; padding-left: 140px; }
.tl-line { position: absolute; left: 56px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.chap { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 0 0 90px; }
.chap:last-child { padding-bottom: 0; }
.chap .dot { position: absolute; left: -96px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; }
.chap.lit .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 8px rgba(232,116,28,.15); }
.chap .n { font-stretch: 62%; font-weight: 800; font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px #3a3a3f; transition: -webkit-text-stroke-color .5s; }
.chap.lit .n { -webkit-text-stroke-color: var(--accent); }
.chap h3 { font-stretch: 70%; font-weight: 800; font-size: 44px; text-transform: uppercase; line-height: .95; margin: 16px 0 0; }
.chap.hl h3 { color: var(--accent); }
.chap .k { margin-top: 18px; }
.chap p { color: var(--soft); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.chap blockquote { margin: 26px 0 0; font-stretch: 70%; font-weight: 800; font-size: 34px; text-transform: uppercase; color: var(--accent); line-height: 1; }

/* --- klany --- */
#clans { padding-top: 40px; }
.clan { position: relative; display: grid; grid-template-columns: 70px 1.3fr 2fr 170px auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); isolation: isolate; }
.clan:last-child { border-bottom: 1px solid var(--line); }
.clan::before { content: ""; position: absolute; inset: 0 -28px; background: var(--ink-2); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.clan:hover::before { transform: none; }
.clan .badge { width: 58px; height: 58px; display: grid; place-items: center; background: var(--ink-3); font-stretch: 62%; font-weight: 800; font-size: 20px; text-transform: uppercase; overflow: hidden; transition: background .3s, color .3s; }
.clan .badge img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.clan:hover .badge { background: var(--accent); color: var(--ink); }
.clan h3 { font-stretch: 70%; font-weight: 800; font-size: 34px; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.clan .tag { font-size: 12px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.clan .tag .feat { color: var(--accent); }
.clan p { color: var(--soft); margin: 0; font-size: 14.5px; line-height: 1.5; }
.clan .live { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.clan .live b { color: var(--paper); }
.clan .live a { color: var(--accent); }
.clan .req b { display: block; font-stretch: 62%; font-weight: 800; font-size: 32px; }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding: 30px 34px; border: 1px dashed #3a3a3f; }
.promo h3 { font-stretch: 70%; font-weight: 800; font-size: 30px; text-transform: uppercase; margin: 0 0 6px; }
.promo p { margin: 0; color: var(--soft); }

/* --- partneři --- */
.partner { background: var(--accent); color: var(--ink); padding: 0 0 110px; overflow: hidden; }
.partner ::selection { background: var(--ink); color: var(--accent); }
/* velký nadpis partnerů: celý, uprostřed (zmenší se, když se nevejde) */
.big-run { display: flex; gap: .25em; width: max-content; margin: 0 auto; padding: 64px 0 70px; font-size: clamp(64px, 11vw, 200px); }
.big-run span { font-stretch: 62%; font-weight: 800; line-height: .85; text-transform: uppercase; white-space: nowrap; padding-top: .12em; }
.big-run span:nth-child(even) { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.partner .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.partner .label { color: rgba(10,10,11,.7); }
.partner-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.partner h3 { font-stretch: 70%; font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: .95; text-transform: uppercase; margin: 14px 0 18px; }
.partner p { font-size: 21px; line-height: 1.45; margin: 0; max-width: 520px; font-weight: 500; }
.partner ul { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid rgba(0,0,0,.3); }
.partner li > * { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(0,0,0,.3); background: none; color: inherit; font: 700 14px/1.2 var(--f); text-transform: uppercase; letter-spacing: .06em; text-align: left; cursor: pointer; transition: padding .3s var(--ease); }
.partner li > div { cursor: default; }
.partner li > a:hover, .partner li > button:hover { padding-left: 10px; }
.partner li img { max-height: 34px; width: auto; max-width: 60%; object-fit: contain; }
.partner .btn { border-color: var(--ink); color: var(--ink); }
.partner .btn::before { background: var(--ink); }
.partner .btn:hover { color: var(--accent); }

footer { padding: 90px 0 36px; color: var(--mute); font-size: 13px; overflow: hidden; }
.foot-mark { display: flex; align-items: center; gap: 3cqi; margin-bottom: 60px; }
footer .wrap { container-type: inline-size; }
.foot-mark .foot-logo { width: 13cqi; height: auto; flex: none; }
.foot-mark .display { font-size: 12.5cqi; color: var(--paper); line-height: .9; padding-top: .08em; white-space: nowrap; }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
footer a:hover { color: var(--paper); }
#legal a { text-decoration: underline; text-underline-offset: 3px; }
.supercell { margin: 18px 0 0; max-width: 760px; font-size: 12px; line-height: 1.5; }
.supercell a { text-decoration: underline; text-underline-offset: 3px; }
.form-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--mute); }
.form-legal a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* --- okna: profil hráče a formulář --- */
dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); background: var(--ink-2); color: var(--paper); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
dialog[open] { animation: dlg .5s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(24px); } }
.dlg-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; clip-path: inset(0 100% 0 0); animation: wipe .9s var(--ease) .1s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.dlg-photo { height: 260px; display: grid; place-items: end center; background: radial-gradient(circle at 50% 100%, rgba(232,116,28,.3), transparent 65%); overflow: hidden; }
.dlg-photo img { height: 100%; width: auto; object-fit: contain; }
.dlg-photo .emoji { font-size: 120px; align-self: center; }
.dlg-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 34px; }
.dlg-body h3 { font-size: clamp(48px, 7vw, 72px); margin: 6px 0 8px; display: flex; align-items: center; gap: 16px; overflow-wrap: anywhere; }
.dlg-body h3 .flag { width: 36px; height: 26px; }
.dlg-body p { color: #c9c5be; line-height: 1.65; }
.dlg-body .sub { margin-top: 22px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts span { color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; }
.dlg-link { margin-top: 22px; width: 100%; }
.x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 22px; cursor: pointer; z-index: 2; }
.x:hover { background: var(--accent); color: var(--ink); }

.form-dlg { width: min(560px, calc(100vw - 32px)); }
.form-body { padding: 40px 34px 34px; }
.form-body h3 { font-size: 52px; margin: 0 48px 10px 0; }
.form-body > p { color: var(--soft); margin: 0 0 24px; line-height: 1.55; }
.form-body label { display: block; margin: 16px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field { width: 100%; padding: 13px 14px; background: var(--ink); border: 1px solid var(--line); color: var(--paper); font: 400 16px/1.4 var(--f); border-radius: 0; transition: border-color .3s; }
.field:focus { outline: none; border-color: var(--accent); }
textarea.field { resize: vertical; min-height: 96px; }
.form-body .btn { margin-top: 26px; }
.form-note { margin: 16px 0 0; color: var(--accent-2); text-align: center; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* --- živá data z Clash Royale --- */
.is-live::after { content: ""; display: inline-block; vertical-align: super; width: .18em; height: .18em; min-width: 6px; min-height: 6px; margin-left: .2em; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.8); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --- úpravy přímo na webu (js/inline-edit.js) --- */
#lom-editbar { position: fixed; z-index: 96; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; max-width: calc(100vw - 2rem); padding: .55rem .7rem; background: rgba(10,10,11,.94); backdrop-filter: blur(14px); border: 1px solid rgba(232,116,28,.4); box-shadow: 0 18px 50px rgba(0,0,0,.6); font-size: .85rem; }
.lom-eb-who { color: var(--mute); padding-inline: .35rem; font-size: .78rem; }
.lom-eb-btn { font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; padding: .4rem .8rem; white-space: nowrap; background: transparent; color: var(--paper); border: 1px solid rgba(232,116,28,.35); }
.lom-eb-btn:hover { border-color: var(--accent); }
.lom-eb-btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.lom-eb-msg { color: var(--accent-2); font-size: .78rem; padding-inline: .35rem; }
.lom-eb-msg.ok { color: #34d399; }
.lom-eb-msg.error { color: #fca5a5; }
body.lom-editing [contenteditable] { outline: 1px dashed rgba(232,116,28,.5); outline-offset: 3px; cursor: text; }
body.lom-editing [contenteditable]:hover { outline-color: var(--accent); background: rgba(232,116,28,.08); }
body.lom-editing [contenteditable]:focus { outline: 2px solid var(--accent); background: rgba(232,116,28,.12); }
body.lom-editing .lom-changed { outline-color: #34d399; }
/* v režimu úprav ať je všechno vidět a nic neujíždí */
body.lom-editing .rv, body.lom-editing .split .w > span, body.lom-editing .fadein { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .ticker-track, .sel-ring::after, .scroll-cue::after, .is-live::after { animation: none !important; }
  .rv, .fadein, .lineup img, .hero h1 .ln > span, .split .w > span, .dlg-banner { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; clip-path: none !important; }
  .intro { display: none; }
}

@media (max-width: 1060px) {
  .nav, .nav-discord { display: none; }
  .top-end { margin-left: auto; }
  .burger { display: block; }
  .head { flex-wrap: wrap; }
  .head-side { align-items: flex-start; text-align: left; }
  .tabs { justify-content: flex-start; }
  .select { grid-template-columns: 1fr 1fr; min-height: 0; }
  .sel-stage { grid-column: 2; grid-row: 1 / span 2; height: 560px; }
  .sel-left { grid-column: 1; } .sel-right { grid-column: 1; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .chap { grid-template-columns: 1fr; gap: 10px; }
  .clan { grid-template-columns: 58px 1fr; }
  .clan p, .clan .req, .clan .btn { grid-column: 2; }
  .clan .btn { justify-self: start; }
  .partner .wrap, .dlg-body { grid-template-columns: 1fr; }
  .hero-copy .wrap { grid-template-columns: 1fr; }
  .lineup img:nth-child(n+8) { display: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 64px; }
  .wrap { padding: 0 16px; }
  .top > .wrap { gap: 12px; }
  .brand { font-size: 13px; gap: 9px; font-stretch: 100%; letter-spacing: .02em; }
  .lang-btn svg { display: none; }
  .brand .brand-logo { height: 38px; }
  .lang-btn, .burger { height: 42px; }
  .burger { width: 42px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
  .top.open .burger span:first-child, .top.open .burger span:last-child { top: 20px; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero-word { top: 92px; }
  .lineup { position: relative; height: 46vh; margin-top: 110px; }
  .lineup img { margin: 0 -6%; }
  .lineup img:nth-child(n+5) { display: none; }
  .hero-side { display: none; } .hero-fade { height: 26%; }
  .hero-copy { position: relative; inset: auto; padding: 18px 0 52px; }
  .ctas { flex-direction: column; }
  .scroll-cue { display: none; }
  .ticker span { font-size: 22px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 14px; } .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat b { font-size: 40px; white-space: normal; }
  section { padding: 90px 0; }
  .select { grid-template-columns: 1fr; }
  .sel-stage { grid-column: 1; grid-row: auto; height: 440px; order: -1; }
  .sel-ring, .sel-bg { display: none; }
  .sel-stage::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(232,116,28,.3), transparent 65%); }
  .sel-left, .sel-right { grid-column: 1; }
  .thumbs { grid-template-columns: repeat(var(--n, 11), 64px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .thumb { scroll-snap-align: start; }
  .sel-keys span:first-child { display: none; }
  .tl { padding-left: 44px; } .tl-line { left: 8px; } .chap .dot { left: -45px; }
  .chap .n { font-size: 80px; }
  .chap h3 { font-size: 36px; }
  .promo, .recruit { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .promo .btn, .recruit .btn { white-space: normal; height: auto; min-height: 46px; padding: 12px 18px; text-align: center; }
  .strip img { height: 110px; }
  .dlg-body { padding: 24px 20px; gap: 24px; }
  .form-body { padding: 32px 20px 24px; }
  .form-body h3 { font-size: 40px; }
}
