/* AlexandraChess, purple edition (8 Nov 2026) */
:root {
  --bg: #12091f; --bg-2: #1b0f2e; --bg-3: #24143d; --panel: #2a1847;
  --ink: #f6f1ff; --ink-2: rgba(246,241,255,.8); --ink-3: rgba(246,241,255,.58);
  --purple: #9b5cff; --purple-2: #b98bff; --lilac: #e3d2ff; --pink: #ff7ad9;
  --line: rgba(246,241,255,.1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
h2.mt { margin-top: 56px; }
.sub { margin: 0 0 28px; color: var(--ink-2); font-size: 18px; }
.muted { color: var(--ink-3); } .small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(18,9,31,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.knight { color: var(--purple-2); }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--purple), #7a3cff); color: #fff !important; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(155,92,255,.35); transition: transform 120ms ease, box-shadow 120ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(155,92,255,.5); }
.btn.line { background: none; border: 1.5px solid var(--purple-2); box-shadow: none; color: var(--lilac) !important; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(155,92,255,.35), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 90%, rgba(255,122,217,.14), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--purple-2); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--purple-2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(185,139,255,.3); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(18,9,31,.8); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--purple); font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.numbers { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.numbers li { padding: 18px 20px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); }
.numbers b { display: block; font-size: 32px; font-weight: 800; color: var(--lilac); }
.numbers span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-photo { max-width: 420px; } .numbers { grid-template-columns: repeat(2, 1fr); } }

/* bands */
.band { padding: 80px 0; }
.band.dark { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); }
.card h3 { margin: 6px 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--ink-2); }
.piece { font-size: 36px; color: var(--purple-2); }
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 20px 18px 56px; position: relative; border-radius: 16px; background: rgba(155,92,255,.08); color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps strong { color: var(--ink); }
@media (max-width: 760px) { .cards, .steps { grid-template-columns: 1fr; } }

/* icons drawn from the brand SVGs as masks, so they take the theme colour */
.ico { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }

/* streams */
.emoji { font-size: .8em; }
.stream-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(185,139,255,.3); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.schedule { padding: 22px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); }
.schedule h3 { margin: 0 0 12px; font-size: 20px; }
.schedule ul { list-style: none; margin: 0 0 12px; padding: 0; }
.schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border-bottom: 0; }
.schedule .day { font-weight: 600; }
.schedule .what { color: var(--ink-2); text-align: right; }
.stream-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(155,92,255,.16); color: var(--lilac); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip .ico { width: 16px; height: 16px; }
@media (max-width: 860px) { .stream-grid { grid-template-columns: 1fr; } }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plat { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 120ms ease, transform 120ms ease; }
.plat:hover { border-color: var(--purple-2); transform: translateY(-2px); }
.plat .ico { width: 26px; height: 26px; color: var(--purple-2); margin-bottom: 10px; }
.plat b { font-size: 28px; font-weight: 800; }
.plat span:last-child { color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .platforms { grid-template-columns: repeat(2, 1fr); } }

/* about */
.wiki-in { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.wiki-lead { font-size: 19px; }
.wiki-body p { color: var(--ink-2); }
.wiki-body h3 { margin: 32px 0 12px; font-size: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(155,92,255,.4); }
.timeline li { position: relative; padding: 0 0 16px 20px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.timeline b { display: block; } .timeline span { color: var(--ink-3); font-size: 15px; }
.press { padding-left: 18px; color: var(--ink-2); }
.press li { margin-bottom: 8px; }
.infobox { padding: 18px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); position: sticky; top: 90px; }
.infobox img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; }
.infobox h3 { margin: 14px 0 10px; text-align: center; }
.infobox dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 10px; margin: 0; font-size: 14px; }
.infobox dt { color: var(--ink-3); } .infobox dd { margin: 0; }
@media (max-width: 860px) { .wiki-in { grid-template-columns: 1fr; } .infobox { position: static; max-width: 420px; } }

/* partners and events */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logos li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; padding: 12px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--lilac); font-weight: 700; font-size: 17px; text-align: center; }
.logos li .ico { width: 26px; height: 26px; }
.logos li small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.logos li.word { flex-direction: column; gap: 0; letter-spacing: .01em; }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ev { padding: 22px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); }
.ev h3 { margin: 0 0 10px; font-size: 18px; color: var(--purple-2); }
.ev ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.ev li { margin-bottom: 6px; }
@media (max-width: 860px) { .events { grid-template-columns: 1fr; } }

/* travel map */
.map { width: 100%; aspect-ratio: 2/1; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map .land { fill: rgba(246,241,255,.14); stroke: var(--bg-2); stroke-width: .4; }
.map .been { fill: var(--purple); }
.map .been:hover { fill: var(--pink); }
#country-count { color: var(--lilac); }
.country-list { margin: 14px 0 0; color: var(--ink-2); }
.country-list summary { cursor: pointer; color: var(--purple-2); }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(155,92,255,.25), rgba(255,122,217,.15)); border: 1px solid rgba(185,139,255,.35); }
.invite p { margin: 0; max-width: 40em; }

/* community */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.community p { color: var(--ink-2); }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; } }

/* book */
.book { padding: 80px 0; text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(155,92,255,.3), transparent 70%); }
.book .lead { margin-left: auto; margin-right: auto; }
.small-print { color: var(--ink-3); font-size: 14px; }

/* footer */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-3); color: var(--lilac); }
.foot-social a:hover { background: var(--purple); color: #fff; }
.foot-social .ico { width: 18px; height: 18px; }
.foot p { margin: 0; }

/* language switch (EN · ES · FR) */
.langs { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; padding: 3px; border-radius: 999px; background: var(--bg-3); }
.langs a { padding: 4px 10px; border-radius: 999px; color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 600; }
.langs a[aria-current="page"] { background: var(--purple); color: #fff; }
@media (max-width: 560px) {
  .top-in { padding: 10px 14px; gap: 8px; }
  .brand { font-size: 17px; white-space: nowrap; }
  .top nav .btn { display: none; }               /* the hero carries "Book a lesson" on a phone */
  .langs { margin-right: 0; }
  .langs a { padding: 4px 8px; }
}
html, body { overflow-x: hidden; }

/* 8 Nov: one contact place, the merged lists, ChessTV */
.numbers-note { margin: 10px 0 0; }
.contact-band { background: radial-gradient(ellipse 60% 80% at 10% 0%, rgba(155,92,255,.22), transparent 70%); }
.contact-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact { padding: 24px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); }
.contact label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.contact select, .contact input, .contact textarea { width: 100%; margin: 0 0 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(246,241,255,.18);
  background: var(--bg-2); color: var(--ink); font: 16px var(--sans); }
.contact select { appearance: auto; }
.contact textarea { min-height: 130px; resize: vertical; }
.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact .hint { margin: 0 0 16px; color: var(--ink-2); }
.contact .sent { margin: 14px 0 0; } .sent.ok { color: #7ee2b0; } .sent.bad { color: #ff9a8a; }
@media (max-width: 760px) { .contact-in, .contact .row2 { grid-template-columns: 1fr; } }
.places, .event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.places li, .event-list li { padding: 18px 20px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.places b, .event-list b { display: block; font-size: 17px; }
.places span, .event-list span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .places, .event-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .places, .event-list { grid-template-columns: 1fr; } }
.schedule .tv { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #81b64c; color: #102006; font-size: 12px; font-weight: 700; }

/* Photos (9 Nov): a slow moving strip, paused under the pointer, still for people who prefer less motion */
.gallery-band { padding-bottom: 72px; overflow: hidden; }
.strip { position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: drift var(--dur, 60s) linear infinite; }
.strip:hover .track, .strip:focus-within .track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.shot { position: relative; flex: none; height: clamp(240px, 38vw, 420px); padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: zoom-in;
  background: var(--bg-3); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(185,139,255,.25); transition: transform 200ms ease, box-shadow 200ms ease; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 2px var(--purple-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; text-align: left; color: #fff; font-size: 15px; font-weight: 600;
  background: linear-gradient(transparent, rgba(18,9,31,.85)); }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .strip { overflow-x: auto; } }
.lightbox { max-width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #0c0616; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(8,4,16,.88); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(96vw, 1400px); max-height: calc(94vh - 52px); width: auto; height: auto; display: block; margin: 0 auto; }
.lightbox figcaption { padding: 14px 18px; font-size: 15px; color: var(--ink-2); }
.lb-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(18,9,31,.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* 9 Nov: logo walls in each brand's own colours, every tile a link */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tiles .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 18px 14px; border-radius: 18px;
  background: var(--tbg, #fff); color: #1b1b1b; text-decoration: none; text-align: center; box-shadow: 0 10px 26px rgba(0,0,0,.28); transition: transform 160ms ease, box-shadow 160ms ease; }
.tiles .tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.4), 0 0 0 2px var(--purple-2); }
.tiles .tile img { width: auto; max-width: 100%; object-fit: contain; }
.tiles .lab { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tiles .lsub { font-size: 13px; color: #6a6378; line-height: 1.3; }
.tiles .wordlogo { font-size: 22px; font-weight: 800; letter-spacing: .01em; color: #2a1847; }
.tiles .tile[style*="#000"], .tiles .tile[style*="#0b"], .tiles .tile[style*="#111"], .tiles .tile[style*="#312e2b"] { color: #fff; }
.tiles .tile[style*="#000"] .lsub, .tiles .tile[style*="#111"] .lsub { color: #bbb; }
.tiles.events { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tiles.events .tile { min-height: 150px; }
.tiles.mini { grid-template-columns: repeat(2, minmax(0, 200px)); margin-top: 18px; }
.tiles.mini .tile { min-height: 90px; }
.poker-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.poker-photo { margin: 0; }
.poker-photo img { border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(185,139,255,.25); }
.poker-photo figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .poker-in { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } .tiles.events { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tiles.events { grid-template-columns: 1fr; } }

/* 9 Nov: most viewed videos, each a tall card with the platform and the count */
.reels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #7a3cff, #ff7ad9); color: #fff; text-decoration: none;
  box-shadow: 0 16px 36px rgba(0,0,0,.4); transition: transform 160ms ease, box-shadow 160ms ease; }
.reel:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.5), 0 0 0 2px var(--purple-2); }
.reel picture, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-art { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-art .ico { width: 64px; height: 64px; color: rgba(255,255,255,.85); }
.reel-top { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 600; }
.reel-top .ico { width: 14px; height: 14px; }
.reel-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(10,4,20,.92)); display: flex; flex-direction: column; gap: 2px; }
.reel-foot b { font-size: 28px; font-weight: 800; line-height: 1; }
.reel-foot span { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.88); }
@media (max-width: 1000px) { .reels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .reels { grid-template-columns: repeat(2, 1fr); } }

/* ───────── 9 Nov: three themed zones (Lessons, Sponsorships, Content) and an official About ───────── */
/* The strip scrolls (drag, swipe, sideways scroll) instead of a CSS animation */
.track { animation: none !important; }
.strip { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip.dragging .shot { pointer-events: none; }

/* header: three clear areas */
.top nav { gap: 26px; }
.top nav a { font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: inline; font-size: 14px; } .top nav { gap: 14px; } .brand { font-size: 0; } .brand .knight { font-size: 22px; } }

/* hero: just her name */
.hero h1 { font-size: clamp(48px, 8.5vw, 104px); line-height: .95; letter-spacing: -.02em; margin: 0 0 16px;
  background: linear-gradient(90deg, #fff 30%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .kicker { margin-bottom: 18px; }
.hero-tag { margin: 0; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink-2); }
.numbers li:nth-child(3) b, .numbers li:nth-child(4) b { color: #f2d48a; }

.zone { position: relative; }
.zone .band { background: var(--bg); }
.zone .band + .band { padding-top: 24px; }
.zone-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-2); }
.zone-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); }
.zone-cta p { margin: 0; color: var(--ink-2); }

/* LESSONS: warm and light, a classroom */
.zone-lessons { --bg: #f6f1e7; --bg-2: #efe7d8; --bg-3: #ffffff; --ink: #1f1830; --ink-2: rgba(31,24,48,.78); --ink-3: rgba(31,24,48,.58);
  --line: rgba(31,24,48,.12); --purple: #6b3fd6; --purple-2: #6b3fd6; --lilac: #4a2a9c; color: var(--ink); background: var(--bg); }
.zone-lessons h2, .zone-lessons h3 { color: var(--ink); }
.zone-lessons .card { box-shadow: 0 10px 30px rgba(31,24,48,.08); }
.zone-lessons .contact-band { background: var(--bg-2); }
.zone-lessons .contact select, .zone-lessons .contact input, .zone-lessons .contact textarea { background: #fff; color: var(--ink); border-color: rgba(31,24,48,.18); }
.lessons-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.lessons-in .cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .lessons-in { grid-template-columns: 1fr; } }

/* SPONSORSHIPS: black and gold, the business side */
.zone-sponsor { --bg: #0c0c0f; --bg-2: #141419; --bg-3: #1b1b22; --ink: #f4f1ea; --ink-2: rgba(244,241,234,.8); --ink-3: rgba(244,241,234,.55);
  --line: rgba(214,178,94,.22); --purple: #d6b25e; --purple-2: #e6c879; --lilac: #f2d48a; --pink: #f2d48a; background: var(--bg); color: var(--ink); }
.zone-sponsor .btn.gold { background: linear-gradient(135deg, #e6c879, #b9933e); color: #15110a !important; box-shadow: 0 8px 24px rgba(214,178,94,.3); }
.zone-sponsor .map .been { fill: #d6b25e; } .zone-sponsor .map .been:hover { fill: #f2d48a; }
.zone-sponsor .invite { background: linear-gradient(135deg, rgba(214,178,94,.16), rgba(214,178,94,.05)); border-color: rgba(214,178,94,.35); }
.zone-sponsor .invite .btn { background: linear-gradient(135deg, #e6c879, #b9933e); color: #15110a !important; box-shadow: none; }
.zone-sponsor a { color: #e6c879; }

/* CONTENT: purple and pink, the creator side */
.zone-content { --bg: #1b0f2e; --bg-2: #22133a; --bg-3: #2c1a4a; background: var(--bg); }
.zone-content .band.dark { background: var(--bg-2); }

/* ABOUT: neutral and official */
.zone-about { --bg: #101317; --bg-2: #161a20; --bg-3: #1c2129; --ink: #eef1f5; --ink-2: rgba(238,241,245,.8); --ink-3: rgba(238,241,245,.55);
  --line: rgba(238,241,245,.1); --purple: #8fa3c0; --purple-2: #a9bbd4; --lilac: #c9d6e8; background: var(--bg); }

/* ───────── 9 Nov: less purple. A neutral charcoal base; purple only in Content; titles in FIDE red ───────── */
:root { --bg: #0f1013; --bg-2: #15171b; --bg-3: #1c1f24; --ink: #f4f3f1; --ink-2: rgba(244,243,241,.8); --ink-3: rgba(244,243,241,.56);
  --line: rgba(244,243,241,.1); --purple: #c9a14a; --purple-2: #d9b866; --lilac: #f1e3bf; --pink: #d9b866; }
body { background: var(--bg); }
.top { background: rgba(15,16,19,.86); }
.knight { color: #d9b866; }
.hero { background: radial-gradient(ellipse 60% 55% at 80% 15%, rgba(255,255,255,.06), transparent 70%), var(--bg); }
.hero h1 { background: none; color: #fff; -webkit-background-clip: initial; background-clip: initial; }
.hero .kicker { color: #d9b866; }
.hero-photo img { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); }
.numbers li { background: var(--bg-3); }
.numbers b { color: #fff; }
.numbers li:nth-child(3) b, .numbers li:nth-child(4) b { color: #fff; }
/* the FIDE title, as chess sites show it: a red badge */
.title-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; background: #c8102e; color: #fff; font-weight: 800; letter-spacing: .04em; line-height: 1.25; }
.numbers .title-badge { font-size: 28px; }
.langs a[aria-current="page"] { background: #f4f3f1; color: #111; }
.btn { background: #f4f3f1; color: #111 !important; box-shadow: none; }
.btn:hover { box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.btn.line { border-color: rgba(244,243,241,.5); color: #f4f3f1 !important; }
.zone-lessons .btn { background: #1f1830; color: #fff !important; }
/* the Content zone keeps the creator purple, toned down */
.zone-content { --bg: #17112a; --bg-2: #1d1534; --bg-3: #261b42; --purple: #8f5cff; --purple-2: #ad86ff; --lilac: #dccbff; --pink: #ff7ad9; --line: rgba(220,203,255,.12); }
.zone-content .btn { background: linear-gradient(135deg, #8f5cff, #6c3be0); color: #fff !important; }
.foot { background: var(--bg); }
.foot-social a { background: var(--bg-3); color: #f4f3f1; }
.foot-social a:hover { background: #f4f3f1; color: #111; }
.lightbox { background: #0d0e10; }

/* 9 Nov: videos for brands, the Global Chess Festival feature, the press list */
.bvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bv { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.bv picture img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); transition: transform 160ms ease; }
.bv:hover picture img { transform: translateY(-3px); }
.bv-brand { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-2); }
.bv-title { font-weight: 600; line-height: 1.3; }
.bv-year { font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) { .bvs { grid-template-columns: repeat(2, 1fr); } }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; margin: 0 0 22px; padding: 26px; border-radius: 22px;
  background: linear-gradient(135deg, #182032, #0f1420); border: 1px solid var(--line); }
.feature-art { display: grid; place-items: center; padding: 26px; border-radius: 16px; background: #0b0f18; }
.feature-art img { max-width: 100%; height: auto; }
.feature h3 { margin: 0 0 8px; font-size: 26px; }
.feature p { color: var(--ink-2); margin: 0 0 12px; }
.feature-org { max-width: 200px; height: auto; margin-top: 6px; background: #fff; border-radius: 10px; padding: 8px 12px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.press { list-style: none; padding: 0; }
.press li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.press li a { display: block; font-weight: 600; text-decoration: none; }
.press li a:hover { text-decoration: underline; }
.press li span { font-size: 14px; color: var(--ink-3); }

/* ═════════════ SITE THEME RULES (9 Nov) ═════════════
   1. Surfaces are charcoal neutrals.  2. Purple is the brand accent everywhere: the knight, kickers, links, active
   states, map highlights, the main buttons.  3. The hero is purple.  4. Titles (WCM) are FIDE red.  5. Each area may
   bend one rule: Lessons is light; Sponsorships adds gold for its business call to action; Content is the richest
   purple; About is quiet.  */
:root { --brand: #8f5cff; --brand-2: #ad86ff; --brand-deep: #4b23a8; --purple: var(--brand); --purple-2: var(--brand-2); --lilac: #dccbff; --pink: #ff7ad9; }
.knight, .knight-mark { color: var(--brand-2); }
.top { background: rgba(23,13,44,.88); border-bottom-color: rgba(173,134,255,.18); }
.hero { background: radial-gradient(ellipse 65% 70% at 82% 10%, rgba(143,92,255,.45), transparent 65%),
  radial-gradient(ellipse 55% 60% at 5% 100%, rgba(255,122,217,.16), transparent 70%), linear-gradient(180deg, #1c1036, #120a24); }
.hero .kicker { color: var(--brand-2); }
.hero-photo img { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(173,134,255,.35); }
.numbers li { background: rgba(255,255,255,.05); border-color: rgba(173,134,255,.2); backdrop-filter: blur(6px); }
.btn { background: linear-gradient(135deg, var(--brand), #6c3be0); color: #fff !important; }
.btn:hover { box-shadow: 0 10px 26px rgba(143,92,255,.4); }
.langs a[aria-current="page"] { background: var(--brand); color: #fff; }
.zone-kicker, .bv-brand { color: var(--brand-2); }
.zone-lessons { --purple: #6b3fd6; --purple-2: #6b3fd6; }
.zone-lessons .zone-kicker { color: #6b3fd6; }
.zone-lessons .btn { background: linear-gradient(135deg, #6b3fd6, #4b23a8); }
.zone-sponsor { --purple-2: #e6c879; }
.zone-sponsor .map .been { fill: var(--brand); } .zone-sponsor .map .been:hover { fill: var(--brand-2); }
.zone-sponsor .feature-text .zone-kicker { color: #e6c879; }
.zone-about { --purple: var(--brand); --purple-2: var(--brand-2); }
.zone-about a { color: var(--brand-2); }
.foot-social a:hover { background: var(--brand); color: #fff; }

/* experience with the organisations' marks */
.xp { list-style: none; margin: 0 0 8px; padding: 0; }
.xp li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.xp b { display: block; } .xp span { color: var(--ink-3); font-size: 15px; }
.xp-mark { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); font-size: 24px; overflow: hidden; }
.pmg-mark { background: #111; } .pmg-mark img { width: 30px; height: 30px; }
.flag-bo { display: flex; flex-direction: column; padding: 0; } .flag-bo i { flex: 1; width: 100%; }
.flag-bo i:nth-child(1) { background: #d52b1e; } .flag-bo i:nth-child(2) { background: #f9e300; } .flag-bo i:nth-child(3) { background: #007934; }

/* press with thumbnails */
.press-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.press-cards li { padding: 0; border: 0; }
.press-cards a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.press-cards a:hover { border-color: var(--brand-2); text-decoration: none; }
.pthumb { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0d10; display: grid; place-items: center; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb.sq img { width: auto; height: 100%; object-fit: contain; }
.ptext b { display: block; font-size: 15px; line-height: 1.3; }
.ptext span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .press-cards { grid-template-columns: 1fr; } }

/* 9 Nov, later: two colours only. Charcoal and purple, white text; no gold, no imitation title colours.
   WCM is shown as the real thing: FIDE's own mark, linking to her official FIDE profile. */
.zone-sponsor { --line: rgba(173,134,255,.18); --purple-2: var(--brand-2); --lilac: #dccbff; --pink: var(--brand-2); }
.zone-sponsor a { color: var(--brand-2); }
.zone-sponsor .zone-kicker, .zone-sponsor .feature-text .zone-kicker { color: var(--brand-2); }
.zone-sponsor .invite { background: linear-gradient(135deg, rgba(143,92,255,.18), rgba(143,92,255,.05)); border-color: rgba(173,134,255,.3); }
.zone-sponsor .invite .btn, .zone-sponsor .btn { background: linear-gradient(135deg, var(--brand), #6c3be0); color: #fff !important; }
.fide-stat a { display: block; color: inherit; text-decoration: none; }
.fide-stat b { display: flex; align-items: center; gap: 10px; }
.fide-mark { width: 44px; height: auto; background: #fff; border-radius: 6px; padding: 3px 4px; }
.fide-stat:hover { border-color: var(--brand-2); }

/* 9 Nov: the lessons area, made inviting: Alex at the board, the offer beside her */
.lessons-hero { background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(107,63,214,.14), transparent 70%),
  repeating-conic-gradient(rgba(31,24,48,.025) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px, var(--bg) !important; padding: 96px 0; }
.lessons-hero .lessons-in { grid-template-columns: .85fr 1.15fr; gap: 56px; }
.lesson-photo { margin: 0; position: relative; }
.lesson-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 70px rgba(31,24,48,.25); }
.lesson-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(31,24,48,.18); }
.lesson-photo figcaption b { display: block; color: #4b23a8; font-size: 15px; }
.lesson-photo figcaption span { font-size: 13px; color: rgba(31,24,48,.7); }
.lesson-copy h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.lesson-copy .cards { margin: 24px 0 18px; }
.lesson-copy .card { border: 1px solid rgba(107,63,214,.15); }
.lesson-copy .piece { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(107,63,214,.1); color: #6b3fd6; font-size: 28px; }
.perks { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(107,63,214,.2); font-size: 14px; font-weight: 600; color: #3a2a6a; }
.perks li::before { content: "✓ "; color: #6b3fd6; }
@media (max-width: 860px) { .lessons-hero .lessons-in { grid-template-columns: 1fr; } .lesson-photo { max-width: 420px; } }

.lesson-photo img { aspect-ratio: 436 / 720; object-position: center top; max-height: 640px; }
.lessons-hero .lessons-in { grid-template-columns: .7fr 1.3fr; }

.poker-photo { position: relative; }
.poker-second { position: absolute; right: -18px; bottom: 40px; width: 44%; border-radius: 16px; overflow: hidden; border: 4px solid var(--bg); box-shadow: 0 18px 40px rgba(0,0,0,.5); background: var(--bg-2); }
.poker-second img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; }
.poker-second span { display: block; padding: 6px 10px; font-size: 12px; color: var(--ink-2); }
@media (max-width: 860px) { .poker-second { position: static; width: 70%; margin-top: 12px; } }

/* 9 brand videos: 3 x 3 */
.bvs { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .bvs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bvs { grid-template-columns: 1fr; } }

/* Lessons: checkered background and Get in touch, a little more purple */
.lessons-hero { background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(107,63,214,.16), transparent 70%),
  repeating-conic-gradient(rgba(107,63,214,.07) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px, #f4effb !important; }
.zone-lessons .contact-band { background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(107,63,214,.14), transparent 70%), #ece4f7; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .lessons-hero .lessons-in { grid-template-columns: 1fr; gap: 32px; }
  .lessons-hero { padding: 56px 0; }
  .lesson-photo { max-width: 360px; margin: 0 auto; }
}

/* WCM title badge, styled like chess.com titles: white on dark red */
.title-badge { display: inline-block; background: #7c2929; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  font-weight: 600; font-size: 28px; line-height: 1.15; padding: 3px 9px; border-radius: 5px; letter-spacing: 0; }
.fide-stat b { display: block; }

/* Lesson cards stack on small phones */
@media (max-width: 560px) { .lessons-in .cards, .lessons-hero .cards { grid-template-columns: 1fr; } }

/* Phones: shorter sections */
@media (max-width: 560px) {
  .tiles, .tiles.events { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles .tile { min-height: 104px; padding: 14px 10px; }
  .tiles .lab { font-size: 14px; }
  .tiles .lsub { font-size: 12px; }
  .bvs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 10px; scrollbar-width: none; }
  .bvs::-webkit-scrollbar { display: none; }
  .bv { flex: 0 0 80%; scroll-snap-align: start; }
  .press-cards a { flex-wrap: nowrap; align-items: flex-start; }
  .pthumb { width: 96px; }
  .ptext { min-width: 0; }
  .ptext b { font-size: 14px; }
}
.press.press-cards li a { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.press.press-cards .ptext { display: block; min-width: 0; }
/* Badge text pure white like chess.com (was picking up the grey caption colour) */
.numbers .title-badge, .fide-stat .title-badge { color: #fff !important; opacity: 1; }
/* French flag (vertical tricolour), same size as the Bolivian one */
.flag-fr { display: flex; flex-direction: row; padding: 0; overflow: hidden; } .flag-fr i { flex: 1; height: 100%; }
.flag-fr i:nth-child(1) { background: #002654; } .flag-fr i:nth-child(2) { background: #fff; } .flag-fr i:nth-child(3) { background: #ce1126; }
/* Board: deeper brand purple; Get in touch uses the same light square colour so there's one shade family */
.lessons-hero { background: repeating-conic-gradient(rgba(107,63,214,.22) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px, #e9e0fa !important; }
.zone-lessons .contact-band { background: #e9e0fa; }

/* Global Chess Festival: official logo with a small photo of Alexandra and Judit Polgár */
.feature-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.feature-logo { max-width: 100%; height: auto; }
.feature-photo { margin: 0; width: 100%; max-width: 360px; }
.feature-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 40%; border-radius: 12px; display: block; }
.feature-photo figcaption { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 6px; text-align: center; }
