/* The Fifth Player – fifthplayer.com */
:root {
  --navy: #00152F; --navy-2: #04203F; --navy-3: #000B1A; --line: #16355E; --line-2: #1C4270;
  --cyan: #00FDFF; --blue: #0044FF; --white: #FFFFFF; --text-2: #C4D3E6; --text-3: #A9BCD6;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", Inter, system-ui, Arial, sans-serif;
  --board: "Arial Black", "Noto Sans", "Arial Bold", Arial, Helvetica, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--white); font-family: var(--font); line-height: 1.5; }
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--cyan); margin: 0; }
.muted { color: var(--text-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 12px;
  font-weight: 700; font-size: 17px; border: 2px solid transparent; cursor: pointer; font-family: var(--font); line-height: 1.1; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--white); color: var(--navy); }
.btn-line { border-color: var(--white); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #062A4F; color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--navy); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand svg { width: 42px; height: 42px; }
.brand b { font-family: var(--display); font-size: 17px; letter-spacing: .06em; line-height: 1.05; }
.brand b span { color: var(--cyan); }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #D6E2F2; padding: 8px 0; }
.main-nav a.hot { color: var(--cyan); font-weight: 700; }
.head-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; color: var(--text-3); border: 0; min-height: 44px; min-width: 44px; padding: 0 12px; font: 600 13px var(--font); cursor: pointer; }
.lang button[aria-pressed="true"] { background: #0A2447; color: var(--white); }
.head-right .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero-band { position: relative; background: #000; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-band .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 28%, rgba(0,10,26,.72) 55%, rgba(0,10,26,.9) 100%); }
.hero-band .wrap { position: relative; min-height: 640px; display: flex; justify-content: flex-end; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-copy { flex: 0 1 560px; display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { font-size: clamp(42px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.02em; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { border: 1px solid var(--cyan); color: var(--cyan); font-size: 14px; font-weight: 700; letter-spacing: .08em; padding: 8px 14px; border-radius: 999px; }
.free-card { display: flex; flex-direction: column; gap: 12px; background: rgba(4,32,63,.92); border: 2px solid var(--cyan); border-radius: 18px; padding: 22px 24px; max-width: 540px; }
.free-card .tag { align-self: flex-start; background: var(--cyan); color: var(--navy); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
.free-card h2 { font-size: 28px; }
.free-card .btn { align-self: flex-start; }

.intro { background: var(--navy-3); border-bottom: 1px solid var(--line); }
.intro .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.intro-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 26px; }
.intro-copy p { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 540px; }
.intro-copy .row { display: flex; flex-wrap: wrap; gap: 14px; }
.intro-media { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.intro-media .cap { font-size: 14px; color: var(--text-3); text-align: center; }
.intro-media video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--navy); }
.tv.framed { border-radius: var(--radius); border: 1px solid var(--line-2); }

/* ---------- photo strip ---------- */
.strip { padding: 40px 0 56px; }
.strip-row { display: flex; gap: 16px; overflow-x: auto; padding: 0 32px 8px; scroll-snap-type: x mandatory; }
.strip-row img { flex: 0 0 260px; width: 260px; height: 320px; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec-alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 44px); }
.sec-head p { font-size: 18px; color: var(--text-2); }
.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.card { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line-2); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; background: var(--navy); }
.card h3 { font-size: 26px; }
.card p { font-size: 15px; color: var(--text-2); }
.card.door { flex-basis: 420px; padding: 40px; gap: 18px; }
.card.door h3 { font-size: 30px; }
.card.door p { font-size: 17px; }
.card.door .btn { align-self: flex-start; margin-top: auto; }
.card.hot { border: 2px solid var(--cyan); background: var(--navy-2); }
.card .badge { align-self: flex-start; background: var(--cyan); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 6px 10px; border-radius: 6px; }
.step img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.step .num { font-family: var(--board); font-size: 22px; color: var(--cyan); }
.note { margin-top: 22px; font-size: 14px; color: var(--text-3); }

.screen-box { border: 1px solid var(--line-2); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.screen-box + .screen-box { margin-top: 28px; }
.screen-box.alt { background: var(--navy-2); }
.screen-box .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.screen-box .top p { max-width: 480px; color: var(--text-2); font-size: 15px; }
.screen-box h3 { font-size: 30px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 20px; }
.thumbs figure { margin: 0; flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.thumbs figcaption { font-size: 14px; color: var(--text-2); }
.p2-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.p2-row > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.p2-row > img { flex: 2 1 520px; min-width: 0; border-radius: 12px; }

.cta-band { background: var(--cyan); color: var(--navy); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta-band h2 { font-size: clamp(32px, 4vw, 44px); }
.cta-band p { font-size: 18px; color: #062A4F; margin-top: 10px; max-width: 560px; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-line { border-color: var(--navy); color: var(--navy); }

.site-foot .wrap { padding-top: 56px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-top p { color: var(--text-3); font-size: 15px; margin-top: 10px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols a { color: var(--text-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; color: var(--text-3); }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .main-nav { order: 3; width: 100%; gap: 4px 18px; font-size: 14px; }
  .hero-band .wrap { min-height: 0; padding-top: 220px; padding-bottom: 40px; }
  .hero-band .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,10,26,.85) 45%, rgba(0,10,26,.95) 100%); }
  .hero-band > img { height: 70%; object-position: 20% top; }
  .sec { padding: 64px 0; }
  .card.door { padding: 28px; }
  .screen-box { padding: 20px; }
  .strip-row { padding: 0 20px 8px; }
}

/* ---------- 5th TV board ---------- */
.tv { position: relative; overflow: hidden; background: #000; width: 100%; }
.tv-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: #000; color: #fff;
  font-family: var(--board); font-weight: 900; display: flex; flex-direction: column; overflow: hidden; }
.tv-top { height: 128px; flex: none; background: var(--navy); border-bottom: 6px solid var(--cyan); display: flex; align-items: center; justify-content: space-between; padding: 0 56px; box-sizing: content-box; }
.tv-brand { display: flex; align-items: center; gap: 24px; font-size: 52px; letter-spacing: 4px; }
.tv-brand svg { width: 84px; height: 84px; }
.tv-mid { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 3px; color: #B8C7D9; }
.tv-clock { font-size: 64px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.tv-body { flex: 1; display: flex; flex-direction: column; padding: 0 56px; min-height: 0; }
.tv-head { display: grid; column-gap: 24px; padding: 28px 0 8px 56px; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 4px; color: #9AA9BA; text-align: center; }
.tv-head .tv-l { text-align: left; margin-left: -56px; }
.tv-rows { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 8px 0 28px; }
.tv-row { flex: 1; display: grid; column-gap: 24px; align-items: center; background: #050B14; border-left: 20px solid var(--cyan); padding-left: 36px; cursor: pointer; }
.tv-names { display: flex; align-items: center; gap: 28px; min-width: 0; }
.tv-nm { display: flex; flex-direction: column; gap: 10px; font-size: 64px; line-height: 1; min-width: 0; }
.tv-nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-nm.one { font-size: 78px; }
.tv-ball { width: 52px; height: 52px; flex: none; }
.tv-set { text-align: center; font-size: 110px; color: #9AA9BA; font-variant-numeric: tabular-nums; }
.tv-games { position: relative; height: 170px; overflow: hidden; border: 6px solid; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 130px; }
.tv-games span { position: absolute; left: 0; right: 0; text-align: center; line-height: 1; top: 50%; transform: translateY(-50%); }
.tv-pts { height: 260px; border: 8px solid; border-radius: 22px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 210px; line-height: 1; overflow: hidden; perspective: 900px; }
.tv-pts span.long { font-size: 150px; }
.tv-pts { position: relative; }
.tv-bw { position: absolute; inset: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 14px; }
.tv-bw span { line-height: 1.02; letter-spacing: 2px; animation: tvpop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.tv-pts span.flip { display: inline-block; animation: tvflip .42s cubic-bezier(.2,.9,.3,1.2) both; transform-origin: 50% 50%; }
.roll-out { animation: tvrollout .45s ease-in both; }
.roll-in { animation: tvrollin .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes tvflip { from { transform: rotateX(-90deg); opacity: .2; } to { transform: rotateX(0); opacity: 1; } }
@keyframes tvrollout { from { transform: translateY(-50%); } to { transform: translateY(-170%); } }
@keyframes tvrollin { from { transform: translateY(70%); } to { transform: translateY(-50%); } }
.tv-bottom { height: 92px; flex: none; background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 56px; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 3px; }
.tv-b2 { color: #B8C7D9; }
.tv-b3 { color: var(--cyan); }
.tv-band { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; pointer-events: none; z-index: 5; }
.tv-band-in { position: absolute; inset: 0; background: var(--navy); border: 14px solid var(--cyan); display: flex; align-items: center; justify-content: center; gap: 64px; overflow: hidden; }
.tv-band svg { width: 120px; height: 120px; flex: none; }
.tv-word { font-size: 340px; letter-spacing: 14px; line-height: 1.02; white-space: nowrap; text-align: center; }
.tv-band.show { animation: tvband 1.8s ease both; }
.tv-band.show.hold, .tv-band.static { opacity: 1; animation: none; }
.tv-band.show .tv-word { animation: tvpop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.tv-tw { position: absolute; border-radius: 50%; animation: tvtw .8s ease-in-out infinite; }
@keyframes tvband { 0% { opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tvpop { 0% { transform: scale(.55); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes tvtw { 0%, 100% { opacity: 0; transform: scale(.2); } 50% { opacity: 1; transform: scale(1); } }
.tv-win { align-items: center; justify-content: center; gap: 40px; }
.tv-win-t { font-size: 170px; letter-spacing: 20px; line-height: 1; }
.tv-win-n { font-size: 90px; line-height: 1; text-align: center; }
.tv-win-s { display: flex; gap: 32px; margin-top: 20px; }
.tv-win-s div { min-width: 230px; height: 170px; padding: 0 20px; display: flex; align-items: center; justify-content: center; background: var(--navy); border: 6px solid; border-radius: 18px; font-size: 100px; }
.tv-win-v { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 40px; letter-spacing: 3px; color: #B8C7D9; text-align: center; }
.tv-stage.is-standby { background: var(--navy); }
.tv-stage.is-standby .tv-top { background: transparent; border-bottom: 0; }
.tv-stage.is-standby .tv-brand { visibility: hidden; }
.tv-stage.is-standby .tv-bottom { border-top: 6px solid var(--cyan); background: transparent; }
.tv-standby { flex-direction: row; align-items: center; justify-content: center; gap: 96px; }
.tv-sb-logo svg { width: 360px; height: 360px; }
.tv-sb-txt { display: flex; flex-direction: column; gap: 8px; font-size: 120px; line-height: 1; letter-spacing: 6px; }
.tv-sb-txt .c { color: var(--cyan); }
.tv-sb-txt p { font-family: Arial, Helvetica, sans-serif; font-size: 40px; letter-spacing: 2px; margin-top: 20px; }
.tv-sb-time { font-size: 150px; margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  .tv-pts span.flip, .roll-in, .roll-out, .tv-band.show .tv-word, .tv-tw { animation: none !important; }
  .roll-out { display: none; }
  .roll-in { transform: translateY(-50%); }
  html { scroll-behavior: auto; }
}

/* ---------- free scoreboard page ---------- */
.score-page .site-head { position: static; }
.setup { max-width: 560px; margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-direction: column; gap: 24px; }
.setup h1 { font-size: 32px; }
.setup fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.setup legend, .setup .lbl { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 10px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1 1 0; min-width: 96px; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2);
  color: var(--text-2); font-weight: 600; font-size: 15px; text-align: center; }
.seg input:checked + span { border: 2px solid var(--cyan); color: var(--white); background: var(--navy-2); }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.team-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-head .dot { width: 14px; height: 14px; border-radius: 50%; }
.team-head .sw { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.team-head .sw small { color: var(--text-3); font-size: 13px; margin-right: 4px; }
.sw label { position: relative; width: 36px; height: 36px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw span { display: block; width: 36px; height: 36px; border-radius: 8px; border: 2px solid transparent; }
.sw input:checked + span { border-color: var(--white); box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--white); }
.sw input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.names { display: flex; gap: 10px; }
.names input { flex: 1 1 0; min-width: 0; background: var(--navy-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 12px; color: var(--white); font: 16px var(--font); }
.names input::placeholder { color: #7F95B3; }
.names input:focus { border-color: var(--cyan); outline: none; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; font-size: 15px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line-2); position: relative; cursor: pointer; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-3); transition: transform .15s; }
.toggle input:checked { background: var(--cyan); }
.toggle input:checked::after { transform: translateX(20px); background: var(--navy); }
.toggles { border-top: 1px solid var(--line); padding-top: 8px; }
.setup .btn { width: 100%; font-size: 18px; min-height: 56px; }
.setup .foot { text-align: center; font-size: 14px; color: var(--text-3); }
.play { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 50; }
.play[hidden] { display: none; }
.play .tv { flex: 1 1 auto; height: auto; min-height: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
.play-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); border-top: 1px solid var(--line); }
.play-bar .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.play-bar .hint { color: var(--text-3); font-size: 13px; margin-right: auto; }
@media (max-width: 600px) { .play-bar .hint { display: none; } .play-bar .btn { flex: 1 1 auto; } }

/* ---------- 5th TV, club layout (original Pi screen, 5th colours) ---------- */
.tv2 .t2-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: #00152F; color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif; padding: 52px 40px 40px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.t2-head { display: flex; justify-content: space-between; align-items: center; }
.t2-title { display: flex; align-items: center; gap: 30px; font-size: 112px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.t2-title i { width: 14px; height: 92px; border-radius: 3px; }
.t2-brand { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 700; letter-spacing: 3px; color: #fff; }
.t2-brand svg { width: 70px; height: 70px; }
.t2-brand b { color: #00FDFF; font-weight: 800; }
.t2-sub { margin: 18px 0 0 54px; font-size: 44px; font-weight: 700; letter-spacing: 10px; color: #C9D6E6; }
.t2-table { margin-top: 34px; border: 2px solid #1C4270; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.t2-row { display: grid; }
.t2-row > div { border-left: 2px solid #1C4270; display: flex; align-items: center; justify-content: center; }
.t2-row > div:first-child { border-left: 0; justify-content: flex-start; }
.t2-th { height: 108px; flex: none; background: #062A52; font-size: 36px; font-weight: 700; letter-spacing: 3px; }
.t2-th .l { padding-left: 46px; }
.t2-team { flex: 1; border-top: 2px solid #1C4270; min-height: 0; }
.t2-who { gap: 16px; padding-left: 16px; min-width: 0; }
.t2-dot { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.t2-ini { width: 96px; height: 96px; border-radius: 50%; flex: none; color: #00152F; font-weight: 800; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.t2-names { font-size: 72px; font-weight: 800; line-height: 1.05; margin-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.t2-c { font-size: 140px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t2-dash { color: #FFFFFF; }
.t2-c.t2-dash { font-size: 110px; }
.t2-g { overflow: hidden; }
.t2-p { border-left: 0 !important; margin: 0; font-size: 150px; font-weight: 800; overflow: hidden; perspective: 900px; }
.t2-p.on { border-radius: 12px; }
.t2-p span.w { font-size: 110px; }
.t2-flip { display: inline-block; animation: tvflip .42s cubic-bezier(.2,.9,.3,1.2) both; }
.t2-roll { display: inline-block; animation: t2roll .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes t2roll { from { transform: translateY(80%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.t2-setsrow { display: flex; align-items: center; gap: 18px; border-top: 2px solid #1C4270; padding: 14px 30px; height: 130px; flex: none; }
.t2-setsrow .lbl { font-size: 28px; font-weight: 700; letter-spacing: 3px; line-height: 1.15; margin-right: 18px; }
.t2-setsrow .sw { width: 190px; height: 100px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 76px; font-weight: 800; }
.t2-foot { display: flex; align-items: center; gap: 24px; margin-top: 30px; height: 124px; flex: none; }
.t2-info { flex: 1 1 0; min-width: 0; display: flex; align-items: center; border-top: 2px solid #1C4270; padding-top: 20px; height: 100%; }
.t2-info > div { display: flex; align-items: center; gap: 14px; padding: 0 22px; flex: none; border-left: 2px solid #1C4270; }
.t2-info > div:first-child { padding-left: 4px; border-left: 0; }
.t2-info .ic { width: 64px; height: 64px; color: #00FDFF; flex: none; }
.t2-info .ic svg { width: 64px; height: 64px; }
.t2-info small { display: block; font-size: 20px; font-weight: 600; letter-spacing: 2px; color: #C9D6E6; }
.t2-info b { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t2-info .pl { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.t2-pill { flex: 0 1 auto; min-width: 520px; max-width: 860px; overflow: hidden; height: 124px; padding: 0 36px; border-radius: 16px; background: #00FDFF; color: #00152F;
  display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.t2-pill.pop { animation: tvpop .5s cubic-bezier(.2,.9,.3,1.2) both; }

.t2-sb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 0 0, rgba(0,253,255,.18) 0 260px, transparent 262px), radial-gradient(circle at 100% 100%, rgba(0,68,255,.35) 0 360px, transparent 362px), #00152F; }
.t2-sb-brand { position: absolute; top: 52px; right: 56px; display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 700; letter-spacing: 3px; }
.t2-sb-brand svg { width: 70px; height: 70px; } .t2-sb-brand b { color: #00FDFF; }
.t2-sb-time { font-size: 330px; font-weight: 800; line-height: 1; letter-spacing: -6px; font-variant-numeric: tabular-nums; }
.t2-sb-time span { color: #00FDFF; }
.t2-sb-date { font-size: 52px; font-weight: 700; letter-spacing: 10px; color: #E6EEF8; }
.t2-sb-w { display: flex; align-items: center; gap: 34px; margin-top: 36px; }
.t2-sb-w svg { width: 200px; height: 150px; }
.t2-sb-w b { display: block; font-size: 120px; font-weight: 800; line-height: 1; }
.t2-sb-w small { display: block; font-size: 36px; font-weight: 700; letter-spacing: 4px; margin-top: 8px; }
.t2-sb-w small.c { color: #00FDFF; }

/* ---------- free scoreboard: waiting screen + settings sheet ---------- */
.play #board { flex: 1 1 auto; min-height: 0; }
.wait { position: absolute; inset: 0; z-index: 3; background: var(--navy); overflow-y: auto; }
.wait[hidden], .sheet[hidden] { display: none; }
.wait-in { min-height: 100%; display: flex; flex-direction: column; padding: 22px clamp(18px, 4vw, 48px) 18px; gap: 18px; }
.wait-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wait-link { color: var(--cyan); font-weight: 700; font-size: 15px; padding: 10px 6px; }
.wait-main { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 72px); }
.wait-copy { flex: 1 1 380px; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.wait-copy h1 { font-size: clamp(32px, 4.6vw, 64px); }
.wait-copy .muted { font-size: clamp(16px, 1.6vw, 22px); }
.wait-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.wait-free { color: var(--text-3); font-size: 15px; }
.wait-free a { font-weight: 800; }
.wait-qr { flex: 0 1 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box { width: min(340px, 70vw); aspect-ratio: 1; background: #fff; border: 8px solid var(--cyan); border-radius: 22px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.qr-box img, .qr-box canvas { width: 100% !important; height: auto !important; }
.wait.no-live .qr-box { opacity: .35; }
.room { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.room b { color: var(--cyan); font-size: 30px; letter-spacing: .1em; margin-left: 6px; }
.small { font-size: 13px; }
.wait-qr .small { text-align: center; max-width: 340px; }
.wait-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 14px; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.sheet { position: absolute; inset: 0; z-index: 4; background: rgba(0,10,26,.94); overflow-y: auto; }
.sheet-in { max-width: 600px; margin: 0 auto; background: var(--navy); min-height: 100%; }
.setup .js-cancel { margin-top: -10px; }

/* ---------- phone remote ---------- */
.remote-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.r-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.brand.small svg { width: 32px; height: 32px; } .brand.small b { font-size: 13px; }
.r-status { margin-left: auto; font-size: 13px; color: var(--text-3); font-weight: 600; }
.r-status.on { color: var(--cyan); }
.r-main { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.r-msg { text-align: center; color: var(--text-2); padding: 30px 10px; font-size: 17px; }
.r-msg:empty { display: none; }
.r-pad { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.r-pad[hidden] { display: none; }
.r-sub { text-align: center; color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.r-team { flex: 1; min-height: 150px; border: 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; }
.r-team:active { transform: scale(.98); filter: brightness(1.1); }
.r-team .n { font-size: 20px; font-weight: 800; }
.r-team .p { font-size: 88px; font-weight: 800; line-height: 1; }
.r-team .h { font-size: 13px; font-weight: 700; letter-spacing: .2em; opacity: .75; }
.r-team.serving::after { content: ""; position: absolute; top: 16px; left: 16px; width: 18px; height: 18px; border-radius: 50%; background: currentColor; opacity: .85; }
.r-team:disabled { opacity: .55; }
.r-stat { text-align: center; font-weight: 800; color: var(--cyan); min-height: 1.4em; letter-spacing: .05em; }
.r-btns { display: flex; gap: 10px; } .r-btns .btn { flex: 1; }
.r-foot { text-align: center; font-size: 13px; color: var(--text-3); }
.r-foot a { font-weight: 700; }
#setupBox .setup { padding-top: 6px; }

/* ---------- competition pages ---------- */
.comp { padding-top: 28px; padding-bottom: 56px; }
.comp h1 { font-size: clamp(30px, 4vw, 44px); }
.cform { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.cform fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cform legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.fld { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 15px; flex: 1 1 160px; }
.fld input, .fld textarea, .fld select { background: var(--navy-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 12px; color: var(--white); font: 16px var(--font); }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--cyan); outline: none; }
.fld small { font-weight: 500; }
.fld-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fld-row[hidden] { display: none; }
.ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.ev-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ev-col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ev-col h2, .grp h2, .bcol h2 { font-size: 22px; }
.m-card { border: 1px solid var(--line-2); background: var(--navy-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.m-court { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--text-3); }
.m-row, .mline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-row span, .mline span { font-weight: 700; min-width: 0; }
.mline i { color: var(--cyan); font-style: normal; margin: 0 4px; }
.m-row input { width: 76px; text-align: center; font: 800 22px var(--font); background: var(--navy); color: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
input.sc { width: 130px; text-align: center; font: 700 16px var(--font); background: var(--navy); color: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; flex: none; }
input.sc.bad { border-color: #FF3B5C; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--text-3); text-decoration: underline; font: 14px var(--font); cursor: pointer; padding: 8px 0; }
.ev-small { margin-top: 18px; color: var(--text-3); font-size: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .1em; color: var(--text-3); padding: 8px 8px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td.b { font-weight: 800; }
.tbl tr.top td:first-child, .tbl tr.top td:nth-child(2) { color: var(--cyan); font-weight: 700; }
.done-note { color: var(--cyan); font-weight: 700; }
.grp { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.mlist { display: flex; flex-direction: column; gap: 8px; }
.bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.bcol { flex: 0 0 250px; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bcol h2 { margin-bottom: 4px; }
.bm { border: 1px solid var(--line-2); background: var(--navy-2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.bm > div { padding: 9px 12px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.bm > div.w { color: var(--cyan); font-weight: 800; }
.bm.bye { opacity: .55; }
.bm input.sc { width: auto; margin: 8px; }
.champ { border: 2px solid var(--cyan); border-radius: 16px; padding: 18px 22px; margin-bottom: 22px; display: flex; flex-direction: column; }
.champ small { color: var(--cyan); font-weight: 700; letter-spacing: .14em; }
.champ b { font-size: 28px; font-family: var(--display); }
details.wk { border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 14px; margin-bottom: 10px; }
details.wk summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
details.wk .mline { padding: 6px 0 10px; }
.play-cards .play-card { color: var(--white); transition: border-color .15s, transform .15s; }
.play-cards .play-card:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--white); }
.pc-ic { font-family: var(--board); color: var(--cyan); font-size: 20px; }
.pc-go { margin-top: auto; color: var(--cyan); font-weight: 700; }
.badge.sm { font-size: 11px; padding: 3px 7px; vertical-align: middle; background: var(--cyan); color: var(--navy); border-radius: 6px; font-family: var(--font); letter-spacing: .06em; }
.ad-band { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.ad-band b { font-size: 18px; }
.site-foot .foot-bottom a { color: var(--text-3); }

/* ---------- competition TV view ---------- */
.tvwrap { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.tvwrap[hidden] { display: none; }
.tvhost { flex: 1; position: relative; overflow: hidden; }
.tvbar { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 12px; background: var(--navy); border-top: 1px solid var(--line); }
.ct-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: #00152F; color: #fff; font-family: Inter, Arial, sans-serif;
  padding: 52px 48px 36px; box-sizing: border-box; display: flex; flex-direction: column; }
.ct-head { display: flex; justify-content: space-between; align-items: center; }
.ct-title { display: flex; align-items: center; gap: 28px; font-size: 96px; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; }
.ct-title i { width: 14px; height: 80px; background: #00FDFF; border-radius: 3px; flex: none; }
.ct-brand { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 700; letter-spacing: 3px; flex: none; }
.ct-brand svg { width: 70px; height: 70px; } .ct-brand b { color: #00FDFF; }
.ct-sub { text-transform: uppercase; margin: 16px 0 0 42px; font-size: 38px; font-weight: 700; letter-spacing: 8px; color: #C9D6E6; }
.ct-body { flex: 1; min-height: 0; margin-top: 30px; }
.ct-foot { display: flex; justify-content: space-between; border-top: 2px solid #1C4270; padding-top: 20px; margin-top: 22px; font-size: 30px; font-weight: 700; letter-spacing: 2px; }
.ct-foot .c, .ct-stage .c { color: #00FDFF; }
.ct-two { display: flex; gap: 36px; height: 100%; }
.ct-panel { flex: 1.4; border: 2px solid #1C4270; border-radius: 14px; overflow: hidden; }
.ct-tbl { width: 100%; border-collapse: collapse; }
.ct-tbl th { background: #062A52; text-align: left; font-size: 26px; letter-spacing: 3px; padding: 16px 22px; }
.ct-tbl td { border-top: 2px solid #1C4270; padding: 0 22px; height: var(--rh, 64px); font-size: var(--fs, 40px); font-weight: 800; }
.ct-tbl .r { text-align: right; } .ct-tbl td.m { color: #A9BCD6; font-size: calc(var(--fs, 40px) * .8); } .ct-tbl tr.top td:first-child, .ct-tbl tr.top td:nth-child(2) { color: #00FDFF; }
.ct-tbl.sm td { font-size: 34px; padding: 10px 18px; }
.ct-side { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ct-h, .ct-gh { font-size: 28px; font-weight: 800; letter-spacing: 3px; color: #C9D6E6; }
.ct-gh { padding: 14px 18px; background: #062A52; }
.ct-court { border: 2px solid #1C4270; border-radius: 14px; padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.ct-court small { font-size: 20px; font-weight: 700; letter-spacing: 3px; color: #A9BCD6; }
.ct-court b { font-size: 34px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-court i { color: #00FDFF; font-style: normal; font-weight: 700; font-size: 24px; }
.ct-court em { font-style: normal; font-size: 34px; font-weight: 800; color: #00FDFF; }
.ct-win { border: 4px solid #00FDFF; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.ct-win small { font-size: 26px; letter-spacing: 3px; color: #00FDFF; font-weight: 700; }
.ct-win b { font-size: 64px; font-weight: 800; line-height: 1.05; }
.ct-win span { font-size: 30px; font-weight: 700; color: #C9D6E6; }
.ct-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 26px; align-content: start; height: 100%; overflow: hidden; }
.ct-groups .ct-panel { flex: none; }
.ct-bracket { display: flex; gap: 34px; height: 100%; }
.ct-bcol { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct-bcol .ct-gh { border-radius: 10px; }
.ct-bms { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.ct-bm { border: 2px solid #1C4270; border-radius: 12px; background: #04203F; overflow: hidden; }
.ct-bm > div { padding: 8px 16px; font-size: 26px; font-weight: 600; border-bottom: 2px solid #1C4270; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-bm > div.w { color: #00FDFF; font-weight: 800; }
.ct-bm em { display: block; font-style: normal; font-size: 22px; color: #A9BCD6; padding: 6px 16px; font-weight: 700; }
.champ-col .ct-win b { font-size: 46px; }

/* ---------- accounts, legal, ladder extras ---------- */
.acct { color: #D6E2F2; font-weight: 600; font-size: 15px; padding: 10px 6px; }
.acct:hover { color: var(--cyan); }
.narrow { max-width: 760px; }
.auth-box { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.auth-box h2 { font-size: 22px; margin-top: 18px; }
.notice { border: 1px solid var(--line-2); background: var(--navy-2); border-radius: 12px; padding: 14px 16px; color: var(--text-2); }
.notice.ok { border-color: var(--cyan); color: var(--white); }
.notice[hidden] { display: none; }
.btn-google { background: #fff; color: #1F1F1F; gap: 12px; }
.btn-google:hover { background: #E8EEF6; color: #1F1F1F; }
.btn-google svg { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--cyan); flex: none; margin-top: 1px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-danger { background: #FF3B5C; color: #fff; }
.btn-danger:hover { background: #ff5b77; color: #fff; }
details.danger summary { color: #FF8A9D; }
details.danger[open] { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.ev-row small { display: block; font-weight: 500; }
.legal { max-width: 760px; }
.legal h1 { margin: 6px 0 4px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal b { color: var(--white); }
mark.todo { background: #FFD400; color: #00152F; padding: 0 4px; border-radius: 4px; font-weight: 700; }
html[lang="el"] .lang-en, html:not([lang="el"]) .lang-el { display: none; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 640px; margin: 0 auto; background: var(--navy-2); border: 1px solid var(--cyan);
  border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cookie p { flex: 1 1 280px; font-size: 14px; color: var(--text-2); }
.cookie .btn { min-height: 44px; padding: 8px 18px; }
.tag-c { color: var(--cyan); font-weight: 700; font-size: 13px; }
.mline.res { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mline.res .c { color: var(--cyan); font-weight: 800; }
.comp select { background: var(--navy); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; color: #fff; font: 16px var(--font); }
.cform > .fld, .m-card > .fld, .auth-box .fld, details > .fld { flex: none; }
