/* =========================================================
   Club d'informatique BMP — new site
   ========================================================= */

:root {
  --night: #0b1220;
  --night-2: #111a2b;
  --night-line: rgba(255, 255, 255, .12);
  --night-text: #e8edf6;
  --night-muted: #a7b1c4;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --tint: #eef3fa;
  --ink: #0b1220;
  --muted: #566074;
  --line: #e1e6ee;
  --icon-bg: #e6f2fd;

  --blue: #1aa3ff;
  --blue-ink: #0a68b8;
  --yellow: #ffd60a;
  --red: #ce1126;
  --green: #1eb53a;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 2px 6px rgba(11, 18, 32, .08), 0 22px 48px rgba(11, 18, 32, .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1b;
    --surface: #111a2b;
    --tint: #0d1525;
    --ink: #e8edf6;
    --muted: #9ba6bb;
    --line: #22304a;
    --icon-bg: #13263f;
    --blue-ink: #5cc0ff;
    --night: #070c17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 22px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------- language switching ---------- */
html[data-lang="fr"] [lang="en"]:not(html),
html[data-lang="en"] [lang="fr"]:not(html) { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.small { font-size: .85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: #0b1220; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ico {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .975rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--yellow); color: #0b1220; }
.btn-primary:hover { background: #ffe04d; }
.btn-ghost, .btn-ghost-dark { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover, .btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-small { padding: 8px 15px; font-size: .9rem; }
.btn-small .ico { width: 17px; height: 17px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11, 18, 32, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em; }
.brand-text small { font-size: .74rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: 999px; transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--tint); }
.nav a.active { color: var(--blue-ink); }
.nav .nav-cta { background: var(--ink); color: var(--surface); margin-left: 6px; }
.nav .nav-cta.active { color: var(--surface); }
.nav .nav-cta:hover { background: var(--blue-ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  padding: 5px 9px; border-radius: 999px; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #fff;
  min-height: min(calc(100svh - var(--header-h)), 780px);
  display: flex; align-items: center;
  padding-block: 72px 56px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, .97) 0%, rgba(11, 18, 32, .9) 34%, rgba(11, 18, 32, .35) 70%, rgba(11, 18, 32, .15) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, .95) 0%, rgba(11, 18, 32, 0) 45%);
}
.hero-inner { position: relative; }
.eyebrow { color: var(--blue); font-size: .92rem; margin-bottom: 18px; }
.eyebrow .prompt { color: var(--yellow); margin-right: 6px; }
.cursor {
  display: inline-block; width: .6em; height: 1.05em; margin-left: 4px; vertical-align: -.15em;
  background: var(--blue); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.03em; max-width: 11ch; }
.hero .hl { color: var(--yellow); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d3dbe9; max-width: 560px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 56px 0 0; padding-top: 26px; border-top: 1px solid var(--night-line); max-width: 760px;
}
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats dt { font-size: .82rem; color: var(--night-muted); line-height: 1.35; }
.stats dd { order: -1; margin: 0;font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: #fff; }

/* ---------- sections ---------- */
.section { padding-block: clamp(68px, 9vw, 116px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--night); color: var(--night-text); }
.section-dark p { color: var(--night-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #8fd2ff; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-ink); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .kicker { color: var(--yellow); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); max-width: 22ch; margin-bottom: 18px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { font-size: 1.075rem; color: var(--muted); }
.section-dark .section-head p { color: var(--night-muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-text > p { color: var(--muted); font-size: 1.05rem; }
.about-text strong { color: var(--ink); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.values li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600;
}
.values .ico { color: var(--blue-ink); }
.presidents p { color: var(--muted); margin-bottom: 8px; }
.presidents ol { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.presidents li { font-weight: 600; font-size: .95rem; }
.presidents li:not(:last-child)::after { content: "→"; color: var(--blue-ink); margin-left: 8px; font-weight: 400; }
.about-figure { margin: 0; }
.about-figure img { border-radius: 22px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.about-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- then & now ---------- */
.thennow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.thennow {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--night-line); border-radius: 22px; padding: 26px;
}
.thennow-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 22px; }
.thennow figure { margin: 0; }
.thennow img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
  border-radius: 14px; background: #1b2538;
}
.thennow figure:first-child img { filter: grayscale(.25) sepia(.12); }
.thennow figcaption {
  display: inline-block; margin-top: 10px;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--yellow); background: rgba(255, 214, 10, .12); border: 1px solid rgba(255, 214, 10, .3);
  padding: 3px 10px; border-radius: 999px;
}
.thennow-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--blue); }
.thennow-arrow span { font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.thennow-arrow svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thennow h3 { font-size: 1.35rem; }
.thennow .role { margin: 4px 0 0; font-size: .95rem; }

/* ---------- activity cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.ico-lg { width: 48px; height: 48px; padding: 11px; border-radius: 13px; background: var(--icon-bg); color: var(--blue-ink); stroke-width: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li {
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--muted); border: 1px solid var(--line);
}
.cards-cta { margin: 32px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.cards-cta a { font-weight: 600; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.member {
  display: flex; flex-direction: column; align-items: stretch; width: 100%; height: 100%;
  text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 18px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.member:focus-visible { border-radius: var(--radius); }
.member-photo {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 12px; background: var(--tint);
}
.member-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: opacity .45s ease, transform .5s ease;
}
.member:hover .member-photo img { transform: scale(1.035); }
.member-photo .later { opacity: 0; }
.member:hover .later, .member:focus-visible .later { opacity: 1; }
.age-chip {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  color: var(--yellow); background: rgba(11, 18, 32, .78);
  padding: 3px 9px; border-radius: 999px;
}
.member-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.06rem; margin: 14px 6px 0; line-height: 1.25; }
.member-nick { display: block; font-size: .86rem; color: var(--muted); margin: 2px 6px 0; min-height: 1.3em; }
html[data-lang="fr"] :is(.member-nick, .md-nick):not(:empty)::before { content: "«\00a0"; }
html[data-lang="fr"] :is(.member-nick, .md-nick):not(:empty)::after { content: "\00a0»"; }
html[data-lang="en"] :is(.member-nick, .md-nick):not(:empty)::before { content: "“"; }
html[data-lang="en"] :is(.member-nick, .md-nick):not(:empty)::after { content: "”"; }
.member-role { display: block; font-size: .84rem; color: var(--blue-ink); font-weight: 500; margin: 8px 6px 0; line-height: 1.35; }
.team-more { margin: 32px 0 0; color: var(--muted); }

/* member dialog */
.member-dialog {
  width: min(780px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: auto;
}
.member-dialog[open] { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); animation: pop .22s ease-out; }
.member-dialog > form { display: contents; }
.member-dialog::backdrop { background: rgba(5, 8, 15, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.md-photos { background: var(--tint); display: grid; gap: 10px; padding: 14px; align-content: start; }
.md-photos.pair { grid-template-columns: 1fr 1fr; }
.md-photos figure { margin: 0; }
.md-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 12px; }
.md-photos figcaption { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--blue-ink); margin-top: 6px; text-align: center; }
.md-body { padding: 30px 30px 32px; }
.md-role { font-size: .85rem; font-weight: 600; color: var(--blue-ink); margin: 0 48px 6px 0; }
.md-body h3 { font-size: 1.7rem; }
.md-nick { color: var(--muted); margin: 4px 0 16px; }
.md-bio p { color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- history ---------- */
.history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.history .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--blue);
}
.timeline li:first-child::before, .timeline li:last-child::before { background: var(--yellow); border-color: var(--yellow); }
.tl-date { font-size: .82rem; font-weight: 600; color: var(--blue-ink); margin-bottom: 4px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }
.tl-photo { width: 120px; border-radius: 12px; margin-top: 14px; box-shadow: var(--shadow); }

/* ---------- game ---------- */
.game-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.game {
  background: #0b1220; color: #d7e6ff; border-radius: 20px; overflow: hidden;
  border: 1px solid #22304a; box-shadow: var(--shadow-lg);
}
.game-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #111a2b; border-bottom: 1px solid #22304a; }
.game-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.game-bar i:nth-child(2) { background: var(--yellow); }
.game-bar i:nth-child(3) { background: var(--green); }
.game-bar span { margin-left: 10px; font-size: .8rem; color: #8492ab; }
.game-log { height: 320px; overflow-y: auto; padding: 18px 20px; font-size: .92rem; line-height: 1.65; }
.game-log p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.game-log .sys { color: #8fb4e6; }
.game-log .you { color: #fff; }
.game-log .you::before { content: "> "; color: var(--yellow); }
.game-log .plus { color: #6ee7a1; }
.game-log .moins { color: #ff9a8a; }
.game-log .win { color: var(--yellow); font-weight: 700; }
.game-log .err { color: #ffb3b3; }
.game-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid #22304a; background: #0d1526; }
.game-modes { display: flex; gap: 8px; }
.game-modes .btn { background: #1a2740; color: #fff; border-color: #2a3a57; }
.game-modes .btn:hover { border-color: var(--blue); }
.game-form { display: flex; gap: 8px; }
.game-form[hidden], #game-restart[hidden], .game-modes[hidden] { display: none; }
.game-form input {
  width: 130px; padding: 8px 12px; border-radius: 10px;
  background: #111a2b; border: 1px solid #2a3a57; color: #fff; font-size: 1rem;
}
.game-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.game-side { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.game-side h3 { font-size: 1.15rem; margin-bottom: 8px; }
.game-side h3.mt { margin-top: 30px; }
.game-side p { color: var(--muted); }
.projects li { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.projects li:last-child { border-bottom: 0; }
.status {
  flex-shrink: 0; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); border: 1px solid var(--line);
}
.status.done { background: rgba(30, 181, 58, .12); color: #16833a; border-color: rgba(30, 181, 58, .35); }
@media (prefers-color-scheme: dark) { .status.done { color: #6ee7a1; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--blue-ink); line-height: 1; margin-bottom: 16px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.step-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-list { display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.contact-list a:hover { background: rgba(255, 255, 255, .09); border-color: var(--blue); transform: translateX(3px); }
.contact-list .ico { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(26, 163, 255, .15); color: var(--blue); }
.contact-list span { display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.contact-list small { font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--night-muted); }

/* ---------- footer ---------- */
.site-footer { background: #070b15; color: #a7b1c4; }
.flag-stripe { display: flex; height: 4px; }
.flag-stripe i { flex: 1; background: var(--red); }
.flag-stripe i:nth-child(2) { background: #fff; }
.flag-stripe i:nth-child(3) { background: var(--green); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 30px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #8492ab; }
.site-footer p { margin: 0; font-size: .9rem; }
.old-site { color: var(--yellow); font-weight: 600; text-decoration: none; }
.old-site:hover { text-decoration: underline; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 18, 32, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; border-radius: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .about, .contact, .history, .game-wrap { grid-template-columns: minmax(0, 1fr); }
  .history .section-head { position: static; }
}

@media (max-width: 820px) {
  .thennow-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-dialog[open] { grid-template-columns: minmax(0, 1fr); }
  .md-photos { padding: 14px 14px 0; background: transparent; }
  .md-photos:not(.pair) { grid-template-columns: minmax(0, 200px); justify-content: center; }
  .md-body { padding: 18px 22px 26px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .brand-text small { display: none; }
  .hero { padding-block: 56px 40px; }
  .hero-media img { object-position: 64% 40%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(11, 18, 32, .97) 10%, rgba(11, 18, 32, .78) 60%, rgba(11, 18, 32, .55) 100%); }
  .values { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .thennow { padding: 18px; }
  .thennow-pair { gap: 8px; }
  .thennow-arrow svg { width: 24px; height: 24px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member { padding: 8px 8px 14px; }
  .member-name { font-size: .98rem; margin: 10px 4px 0; }
  .member-nick, .member-role { margin-inline: 4px; font-size: .8rem; }
  .game-log { height: 280px; padding: 14px 16px; font-size: .86rem; }
  .game-form input { width: 110px; }
  .card, .steps li, .game-side { padding: 22px; }
}
