/* =========================================================
   Warm-dark, cinematic theme (inspired by performance-sport sites)
   ========================================================= */
:root {
  --bg: #13100c;
  --bg-2: #1b1712;
  --bg-3: #241f18;
  --cream: #ede4d2;
  --cream-2: #cfc4ad;
  --muted: #9c927f;
  --line: rgba(237, 228, 210, .12);
  --line-2: rgba(237, 228, 210, .24);
  --red: #e2382c;          /* אדום הפועל — אפשר להחליף לגוון המדויק */
  --red-glow: rgba(226, 56, 44, .35);
  --amber: #f0a35e;        /* אור חם (קרני אור / שעון) */
  --ok: #5fd38f;
  --bad: #ff7a6b;
  --font-display: "Karantina", "Heebo", "Arial Narrow", Impact, sans-serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 880px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--cream); color: var(--bg); padding: 8px 14px; z-index: 999; }
.skip:focus { inset-inline-start: 8px; }

/* film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 400; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.placeholder { color: var(--muted); }
.placeholder { font-style: normal; opacity: .75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 8px 0 0;
  padding-inline: 20px 8px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font: 700 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--cream { background: var(--cream); color: var(--bg); }
.btn--cream:hover { background: #fff; }
.btn--line { background: transparent; color: var(--cream); border-color: var(--line-2); padding-inline: 20px; }
.btn--line:hover { border-color: var(--cream); }
.btn--red { background: var(--red); color: #fff; padding-inline: 24px; }
.btn--red:hover { background: #f04a3e; box-shadow: 0 0 32px var(--red-glow); }
.btn--sm { min-height: 40px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn__arrow {
  width: 30px; height: 30px; background: var(--bg); position: relative; flex-shrink: 0;
}
.btn--sm .btn__arrow { width: 26px; height: 26px; }
.btn__arrow::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-block: 5px solid transparent; border-inline-start: 7px solid var(--cream); /* points left = forward in RTL */
}

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.is-solid { background: rgba(19, 16, 12, .86); backdrop-filter: blur(12px); border-color: var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand img { height: 38px; width: auto; }
.brand__mark {
  width: 38px; height: 38px; border: 1.5px solid var(--cream); display: grid; place-items: center;
  font: 700 26px/1 var(--font-display); padding-top: 3px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__org { font: 700 24px/1 var(--font-display); letter-spacing: .01em; }
.brand__sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--cream-2);
  position: relative; transition: color .2s;
}
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--cream); }
.nav .nav__exam { display: none; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--cream); margin: 5px auto; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 96px; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: -4% 0 0; z-index: -2; background: #1a140d center 30% / cover no-repeat;
  filter: sepia(.35) saturate(.9) contrast(1.05) brightness(.62);
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(19,16,12,.55) 40%, rgba(19,16,12,.25) 70%, rgba(19,16,12,.7)),
    linear-gradient(to left, rgba(19,16,12,.85), transparent 65%);
}
.hero__beam {
  position: absolute; z-index: -1; top: -20%; inset-inline-end: 8%; width: 60vw; height: 140%;
  background: conic-gradient(from 200deg at 80% 0%, transparent 0deg, rgba(240,163,94,.22) 14deg, transparent 32deg);
  filter: blur(18px); pointer-events: none; mix-blend-mode: screen;
}
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 12px var(--font-mono); letter-spacing: .14em; color: var(--cream-2); }
.tag__dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; box-shadow: 0 0 12px var(--red); }
.hero__title {
  font-family: var(--font-display); font-weight: 700; line-height: .82; letter-spacing: -.005em;
  font-size: clamp(88px, 15vw, 230px); margin: 0 0 10px;
  background: linear-gradient(to left, var(--cream) 0%, var(--cream) 45%, rgba(237,228,210,.55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__kicker { display: flex; align-items: center; gap: 14px; font: 700 clamp(30px, 3.6vw, 50px)/1 var(--font-display); color: var(--red); margin: 0 0 28px; letter-spacing: .01em; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 32px; padding: 0; border-block: 1px solid var(--line); width: fit-content; }
.facts > div { padding: 12px 22px; display: flex; gap: 12px; align-items: baseline; }
.facts > div + div { border-inline-start: 1px solid var(--line); }
.facts > div:first-child { padding-inline-start: 0; }
.facts dt { font: 700 11px var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-end: 24px; display: flex; align-items: center; gap: 12px;
  font: 700 11px var(--font-mono); letter-spacing: .16em; color: var(--muted); text-decoration: none;
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--cream), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section--lit::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(240,163,94,.09), transparent 70%);
}
.section__head { display: grid; gap: 10px; margin-bottom: 48px; justify-items: start; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 12px var(--font-mono); letter-spacing: .16em; color: var(--muted); }
.eyebrow span { color: var(--red); }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.section__head h2 { font: 700 clamp(64px, 9vw, 128px)/.85 var(--font-display); letter-spacing: -.005em; }
.section__head h2 em { font-style: normal; color: var(--red); }
.section__sub { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Schedule ---------- */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 36px; }
.day {
  position: relative; min-height: 84px; background: none; border: 0; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; transition: color .2s, background-color .2s;
}
.day + .day { border-inline-start: 1px solid var(--line); }
.day:hover { color: var(--cream); background: var(--bg-2); }
.day__name { font: 700 28px/1 var(--font-display); }
.day__date { font: 500 11px var(--font-mono); letter-spacing: .08em; }
.day[aria-selected="true"] { color: var(--bg); background: var(--cream); }


.day-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.day-title h3 { font: 700 44px/1 var(--font-display); }
.day-title span { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.session { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.session:hover { background: linear-gradient(to left, var(--bg-2), transparent); }
.session__time { font: 700 22px var(--font-mono); direction: ltr; text-align: right; color: var(--amber); }
.session__title { font-weight: 700; font-size: 20px; margin: 0 0 4px; }
.session__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); font-size: 14.5px; }
.badge { font: 700 11px var(--font-mono); letter-spacing: .12em; padding: 6px 10px; border: 1px solid var(--red); color: var(--red); white-space: nowrap; }
.empty { border: 1px dashed var(--line-2); padding: 44px 24px; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }

/* ---------- Lecturers ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, var(--bg-3), var(--bg) 70%);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end;
}
.card__photo { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .8s var(--ease); filter: sepia(.25) brightness(.8); }
.card:hover .card__photo { transform: scale(1.04); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(237,228,210,.18); }
.card__ph svg { width: 96px; height: 96px; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,16,12,.95) 8%, transparent 60%); pointer-events: none; }
.card__corner { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; font: 700 11px var(--font-mono); letter-spacing: .14em; color: var(--cream-2); z-index: 2; }
.card__body { position: relative; z-index: 2; padding: 22px; display: grid; gap: 4px; }
.card__name { font: 700 40px/.9 var(--font-display); }
.card__role { color: var(--cream-2); font-size: 14.5px; }
.card__topic { font-size: 14.5px; color: var(--muted); }
.card__bio { font-size: 14px; color: var(--cream-2); margin: 6px 0 0; }

/* ---------- Rules ---------- */
.accordion { border-top: 1px solid var(--line-2); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 22px; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: start; padding: 26px 0; min-height: 72px; }
.acc__num { font: 700 13px var(--font-mono); color: var(--red); letter-spacing: .08em; min-width: 28px; }
.acc__title { flex: 1; font: 700 32px/1 var(--font-display); transition: color .2s; }
.acc__btn:hover .acc__title { color: #fff; }
.acc__icon { width: 34px; height: 34px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease), border-color .2s; flex-shrink: 0; }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); border-color: var(--red); color: var(--red); }
.acc__panel { padding: 0 50px 28px 0; padding-inline: 50px 0; color: var(--cream-2); white-space: pre-line; max-width: 70ch; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--bg-2); cursor: zoom-in; font: inherit; color: var(--muted); }
.gallery__item:nth-child(6n+1) { grid-column: span 7; grid-row: span 4; }
.gallery__item:nth-child(6n+2) { grid-column: span 5; grid-row: span 2; }
.gallery__item:nth-child(6n+3) { grid-column: span 5; grid-row: span 2; }
.gallery__item:nth-child(6n+4) { grid-column: span 4; grid-row: span 3; }
.gallery__item:nth-child(6n+5) { grid-column: span 4; grid-row: span 3; }
.gallery__item:nth-child(6n+6) { grid-column: span 4; grid-row: span 3; }
.gallery__img { position: absolute; inset: 0; background: center / cover no-repeat; filter: sepia(.3) saturate(.85) brightness(.85); transition: transform .9s var(--ease), filter .4s; }
.gallery__item:hover .gallery__img { transform: scale(1.05); filter: sepia(.1) saturate(1) brightness(1); }
.gallery__num { position: absolute; top: 12px; inset-inline-start: 12px; font: 700 11px var(--font-mono); letter-spacing: .14em; color: var(--cream); z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.gallery__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 32px 16px 14px; text-align: start; color: var(--cream); font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gallery__item.is-empty { cursor: default; border: 1px dashed var(--line-2); background: transparent; }
.gallery__item .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; font: 500 12px var(--font-mono); }
.gallery__item .ph svg { width: 36px; height: 36px; }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,8,6,.96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lb__img { width: min(1100px, 100%); aspect-ratio: 3 / 2; background: center / contain no-repeat; }
.lb__fig figcaption { color: var(--cream-2); font-family: var(--font-mono); font-size: 13px; }
.lb__nav, .lb__close { width: 48px; height: 48px; border: 1px solid var(--line-2); background: transparent; color: var(--cream); font-size: 26px; cursor: pointer; }
.lb__close { position: absolute; top: 18px; inset-inline-end: 18px; }
.lb__nav:hover, .lb__close:hover { border-color: var(--cream); }

/* ---------- Exam ---------- */
.exam { overflow: hidden; isolation: isolate; }
.exam__bg {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 55%; z-index: -1; opacity: .5;
  background: url("https://images.unsplash.com/photo-1758119354171-f14f082c5e02?auto=format&fit=crop&w=1600&q=70") 20% center / cover no-repeat;
  mask-image: linear-gradient(to left, transparent 0%, #000 75%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 75%);
}
.panel { background: rgba(27,23,18,.82); backdrop-filter: blur(6px); border: 1px solid var(--line); padding: 40px; }
.panel p { color: var(--cream-2); margin: 0 0 18px; }
.panel strong { color: var(--cream); }
.exam-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; font: 700 12px var(--font-mono); letter-spacing: .12em; color: var(--muted); }
.exam-bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.exam-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--red); box-shadow: 0 0 12px var(--red); transition: width .35s var(--ease); }
.question { margin: 0; padding: 0; border: 0; }
.question legend { font: 700 clamp(34px, 4vw, 48px)/1 var(--font-display); margin-bottom: 26px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 14px 18px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.option:hover { border-color: var(--cream-2); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__key { width: 34px; height: 34px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 22px/1 var(--font-display); flex-shrink: 0; padding-top: 2px; }
.option:has(input:checked) { border-color: var(--cream); background: rgba(237,228,210,.06); }
.option:has(input:checked) .option__key { background: var(--red); border-color: var(--red); color: #fff; }
.option:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.exam-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.exam-hint { color: var(--amber); font-size: 14px; margin: 14px 0 0; min-height: 1.6em; }
.score { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 14px; }
.score b { font: 700 140px/.8 var(--font-display); color: var(--cream); }
.score span { font: 500 13px var(--font-mono); color: var(--muted); letter-spacing: .06em; padding-bottom: 8px; }
.verdict { display: inline-flex; font: 700 12px var(--font-mono); letter-spacing: .14em; padding: 8px 14px; margin-bottom: 26px; }
.verdict--pass { background: var(--ok); color: var(--bg); }
.verdict--fail { background: var(--red); color: #fff; }
.review { list-style: none; margin: 8px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.review li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review .r-q { font-weight: 700; }
.review .r-ok { color: var(--ok); font-size: 14px; }
.review .r-bad { color: var(--bad); font-size: 14px; }
.review li > span:last-child:not(.r-ok):not(.r-bad) { color: var(--cream-2); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; overflow: hidden; }
.footer__in { display: grid; gap: 24px; }
.footer__big { font: 700 clamp(110px, 22vw, 340px)/.75 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; }
.footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font: 500 12px var(--font-mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- Scoreboard HUD ---------- */
.hud {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 12px;
  padding: 10px 14px; background: rgba(19,16,12,.9); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease);
}
.hud.is-on { opacity: 1; transform: none; }
.hud::before, .hud::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--cream); }
.hud::before { top: -3px; inset-inline-start: -3px; }
.hud::after { bottom: -3px; inset-inline-end: -3px; }
.hud__num { font: 700 34px/1 var(--font-mono); color: var(--amber); text-shadow: 0 0 14px rgba(240,163,94,.6); direction: ltr; }
.hud__txt { display: grid; line-height: 1.25; }
.hud__txt b { font-size: 13px; }
.hud__txt span { font: 500 10.5px var(--font-mono); color: var(--muted); letter-spacing: .1em; direction: ltr; text-align: right; }
.hud__ticks { grid-column: 1 / -1; height: 5px; background: repeating-linear-gradient(to left, var(--line-2) 0 1px, transparent 1px 6px); }

.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; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .gallery { grid-auto-rows: 90px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .topbar__cta { display: none; }
  .nav {
    position: fixed; top: 72px; inset-inline: 0; bottom: 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font: 700 52px/1.15 var(--font-display); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--cream); }
  .nav a::after { display: none; }
  .topbar.menu-open { background: var(--bg); backdrop-filter: none; }
  .nav .nav__exam { display: block; color: var(--red); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 84px 0; }
  .hero { padding: 100px 0 88px; }
  .hero__scroll { display: none; }
  .facts > div { padding: 10px 14px; }
  .days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .days::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 84px; scroll-snap-align: start; }
  .session { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .session__time { font-size: 18px; }
  .session .badge { justify-self: start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(3n+1) { grid-column: span 2; grid-row: span 2; }
  .acc__title { font-size: 26px; }
  .acc__panel { padding-inline: 0; }
  .panel { padding: 24px 18px; }
  .score b { font-size: 110px; }
  .hud { display: none; }
  .lightbox { grid-template-columns: 1fr; padding: 64px 12px; }
  .lb__nav { position: absolute; bottom: 20px; }
  .lb__prev { inset-inline-start: 30%; }
  .lb__next { inset-inline-end: 30%; }
}

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

/* =========================================================
   Lock: site blurred behind the login popup
   ========================================================= */
body.is-locked, body.menu-lock { overflow: hidden; }
.page { transition: filter .5s var(--ease); }
body.is-locked .page { filter: blur(14px) brightness(.55) saturate(.8); pointer-events: none; user-select: none; }

/* ---------- User box (top bar) ---------- */
.user { display: flex; align-items: center; gap: 6px; }
body.is-locked .user { visibility: hidden; }
.user__name { font-size: 14px; color: var(--cream-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 6px; }
.user__admin, .user__out {
  min-height: 40px; background: none; border: 1px solid var(--line-2); color: var(--cream); cursor: pointer;
  font: 700 12px var(--font-mono); letter-spacing: .12em; padding: 0 12px; display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.user__out { width: 40px; padding: 0; }
.user__admin { border-color: var(--amber); color: var(--amber); }
.user__admin:hover, .user__out:hover { border-color: var(--cream); color: #fff; }
.nav__btn { display: none; }

/* ---------- Auth popup ---------- */
.auth {
  position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(70% 60% at 50% 40%, rgba(226,56,44,.12), transparent 70%), rgba(10,8,6,.35);
}
.auth[hidden] { display: none; }
.auth__box {
  position: relative; width: min(440px, 100%); background: rgba(27,23,18,.94); border: 1px solid var(--line-2);
  padding: 34px 32px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: authIn .5s var(--ease);
}
.auth__box::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 3px; background: var(--red); box-shadow: 0 0 18px var(--red-glow); }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.auth__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth__brand b { display: block; font: 700 26px/1 var(--font-display); }
.auth__brand small { color: var(--muted); font-size: 12.5px; }
.auth h2 { font: 700 52px/.9 var(--font-display); margin-bottom: 8px; }
.auth__lead { color: var(--cream-2); margin: 0 0 22px; font-size: 15px; }
.auth__lead code { font-family: var(--font-mono); color: var(--amber); font-size: 13px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); margin-bottom: 22px; }
.seg button { min-height: 44px; background: none; border: 0; color: var(--muted); font: 700 12px var(--font-mono); letter-spacing: .12em; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--cream); color: var(--bg); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 700 11px var(--font-mono); letter-spacing: .14em; color: var(--cream-2); }
.field input, .admin input, .admin textarea, .admin select {
  width: 100%; min-height: 48px; background: var(--bg); border: 1px solid var(--line-2); color: var(--cream);
  font: 16px var(--font-body); padding: 10px 14px; border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .admin input:focus, .admin textarea:focus, .admin select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,163,94,.18); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field__help { font-size: 12.5px; color: var(--muted); }
.field__err { font-size: 13px; color: var(--bad); min-height: 0; }
.field__err:empty { display: none; }
.auth__err { background: rgba(226,56,44,.14); border: 1px solid rgba(226,56,44,.5); color: #ffb3aa; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.auth__btn { width: 100%; justify-content: center; padding-inline: 20px; margin-top: 6px; }
.auth__note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth__status { text-align: center; display: grid; justify-items: center; gap: 4px; }
.auth__status .auth__btn { margin-top: 8px; }
.icon-circle { width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: var(--amber); margin-bottom: 14px; }
.icon-circle svg { width: 30px; height: 30px; }
.spinner { width: 38px; height: 38px; margin: 34px auto; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Admin panel
   ========================================================= */
.admin { position: fixed; inset: 0; z-index: 550; background: var(--bg); display: grid; grid-template-rows: auto auto 1fr; }
.admin[hidden] { display: none; }
.admin__top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.admin__top h2 { font: 700 40px/1 var(--font-display); margin-inline-end: auto; }
.admin__top h2:focus { outline: none; }
.admin__msg { font-size: 14px; color: var(--muted); }
.admin__msg.is-ok { color: var(--ok); }
.admin__msg.is-bad { color: var(--bad); }
#adminSave.is-dirty { box-shadow: 0 0 0 3px rgba(226,56,44,.3); }
.admin__close { width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; color: var(--cream); font-size: 26px; cursor: pointer; }
.admin__close:hover { border-color: var(--cream); }
.admin__tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.admin__tabs button {
  position: relative; flex-shrink: 0; min-height: 50px; padding: 0 16px; background: none; border: 0; color: var(--muted);
  font: 500 15px var(--font-body); cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.admin__tabs button:hover { color: var(--cream); }
.admin__tabs button[aria-selected="true"] { color: var(--cream); }
.admin__tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; background: var(--red); }
.count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font: 700 11px/20px var(--font-mono); padding: 0 6px; }
.count[hidden] { display: none; }
.admin__body { overflow-y: auto; padding: 28px 24px 80px; width: 100%; max-width: 1100px; margin-inline: auto; }
.a-block { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; margin-bottom: 16px; }
.a-block h3 { font: 700 30px/1 var(--font-display); margin-bottom: 16px; }
.a-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.a-head h3 { margin: 0; }
.a-muted { color: var(--muted); font-family: var(--font-body); font-size: 14px; font-weight: 400; }
.a-empty { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.a-hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-grid--4 { grid-template-columns: 140px repeat(3, minmax(0, 1fr)); }
.af { display: grid; gap: 6px; align-content: start; }
.af > span { font: 700 11px var(--font-mono); letter-spacing: .1em; color: var(--cream-2); }
.af--wide { grid-column: 1 / -1; }
.af--inline { display: flex; align-items: center; gap: 10px; }
.af--inline input { width: 140px; min-height: 40px; }
.admin textarea { resize: vertical; line-height: 1.5; }
.af__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.af__thumb { width: 96px; height: 64px; background: var(--bg) center / cover no-repeat; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.af__thumb svg { width: 24px; height: 24px; }
.af__file { color: var(--amber); font-size: 14px; }
.af__none { color: var(--muted); font-size: 14px; }
.a-item { border-top: 1px solid var(--line); padding: 14px 0; }
.a-item__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.admin .check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); }
.abtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; cursor: pointer;
  background: var(--cream); color: var(--bg); border: 1px solid var(--cream); font: 700 13px var(--font-body); white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s;
}
.abtn:hover { background: #fff; }
.abtn--ghost { background: none; color: var(--cream); border-color: var(--line-2); }
.abtn--ghost:hover { background: none; border-color: var(--cream); }
.abtn--del { background: none; color: var(--bad); border-color: rgba(255,122,107,.35); }
.abtn--del:hover { background: none; border-color: var(--bad); }
.abtn--add { background: none; color: var(--amber); border: 1px dashed rgba(240,163,94,.55); }
.abtn--add:hover { background: rgba(240,163,94,.08); border-color: var(--amber); }
.abtn[disabled] { opacity: .5; cursor: wait; }
.a-list { display: grid; gap: 8px; }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); }
.a-row > div:first-child { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.a-table th { text-align: start; font: 700 11px var(--font-mono); letter-spacing: .1em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.a-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table .num { font: 700 18px var(--font-mono); color: var(--amber); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border: 1px solid var(--line-2); }
.pill--approved { color: var(--ok); border-color: rgba(95,211,143,.45); }
.pill--pending { color: var(--amber); border-color: rgba(240,163,94,.45); }
.pill--rejected { color: var(--bad); border-color: rgba(255,122,107,.45); }
.pill--admin { color: var(--cream); border-color: var(--cream-2); }
.a-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.a-pic { display: grid; gap: 8px; }
.a-pic__img { aspect-ratio: 3 / 2; background: var(--bg) center / cover no-repeat; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.a-pic__img svg { width: 30px; height: 30px; }
.a-pic input { min-height: 40px; font-size: 14px; }
.a-pic__act { display: flex; gap: 6px; flex-wrap: wrap; }
.a-pic__act .abtn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
.a-opts { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.a-opts legend { font: 700 11px var(--font-mono); letter-spacing: .1em; color: var(--cream-2); margin-bottom: 8px; }
.a-opt { display: flex; align-items: center; gap: 10px; }
.admin .a-opt input[type="radio"] { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; accent-color: var(--ok); }
.a-opt:has(input[type="radio"]:checked) .option__key { background: var(--ok); border-color: var(--ok); color: var(--bg); }

@media (max-width: 820px) {
  .user { display: none; }
  .nav__btn {
    display: block; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
    font: 700 40px/1.2 var(--font-display); color: var(--cream-2); padding: 10px 0;
  }
  .nav__btn[hidden] { display: none; }
  .nav__btn[data-open-admin] { color: var(--amber); }
}
@media (max-width: 640px) {
  .auth__box { padding: 26px 20px 22px; }
  .auth h2 { font-size: 44px; }
  .admin__top { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .admin__top h2 { font-size: 32px; }
  .admin__msg { order: 5; width: 100%; }
  .admin__tabs { padding: 0 8px; }
  .admin__body { padding: 18px 12px 80px; }
  .a-block { padding: 16px; }
  .a-grid, .a-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Registration success + admin password reset ---------- */
.icon-circle--ok { color: var(--ok); border-color: rgba(95,211,143,.5); }
.a-reset td { background: var(--bg); white-space: normal; }
.a-reset__form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.a-reset__form .af { flex: 1; min-width: 220px; }
.a-done { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(95,211,143,.45); background: rgba(95,211,143,.08); font-size: 14.5px; }
.a-done b.ltr { font-family: var(--font-mono); color: var(--ok); }

/* ---------- Forgot password (SMS) ---------- */
.linkbtn { background: none; border: 0; padding: 6px 4px; color: var(--amber); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }
.linkbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.auth__ok { background: rgba(95,211,143,.1); border: 1px solid rgba(95,211,143,.45); color: var(--ok); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.field input.code-input { font: 700 28px var(--font-mono); letter-spacing: .5em; text-align: center; }

/* =========================================================
   v3 — Modern login popup (same fonts as the site: Karantina + Heebo)
   ========================================================= */
.auth { background: radial-gradient(80% 70% at 70% 30%, rgba(226,56,44,.16), transparent 60%), radial-gradient(60% 60% at 10% 90%, rgba(240,163,94,.10), transparent 60%), rgba(8,6,4,.45); }
.auth__box {
  width: min(940px, 100%); padding: 0; display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden;
  border-radius: 22px; border: 1px solid rgba(237,228,210,.14); background: rgba(22,18,14,.82);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.auth__box::before { display: none; }
.auth__side { position: relative; min-height: 560px; overflow: hidden; isolation: isolate; }
.auth__img {
  position: absolute; inset: 0; z-index: -2; transform: scale(1.08); animation: authPan 22s ease-in-out infinite alternate;
  background: #1a140d url("https://images.unsplash.com/photo-1547347298-4074fc3086f0?auto=format&fit=crop&w=1000&q=70") center / cover no-repeat;
  filter: saturate(.9) contrast(1.05) brightness(.75);
}
@keyframes authPan { to { transform: scale(1.18) translateX(-3%); } }
.auth__side::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14,11,8,.96) 8%, rgba(14,11,8,.35) 55%, rgba(226,56,44,.18)),
              linear-gradient(to right, rgba(22,18,14,.9), transparent 40%);
}
.auth__sideText { position: absolute; inset-inline: 30px; bottom: 30px; display: grid; gap: 12px; justify-items: start; }
.auth__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(237,228,210,.1); border: 1px solid rgba(237,228,210,.18); backdrop-filter: blur(8px);
  font: 500 13px var(--font-body); color: var(--cream);
}
.auth__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.auth__sideText b { font: 700 clamp(54px, 6vw, 76px)/.85 var(--font-display); color: var(--cream); text-wrap: balance; }
.auth__main { position: relative; padding: 36px 36px 30px; display: flex; flex-direction: column; justify-content: center; min-height: 560px; }
.auth__main::before { content: ""; position: absolute; top: 0; inset-inline: 36px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(to left, var(--red), var(--amber)); }
.auth__brand { border: 0; padding: 0; margin-bottom: 22px; font: 500 14px var(--font-body); color: var(--cream-2); }
.auth__brand .brand__mark { width: 34px; height: 34px; font-size: 22px; border-radius: 9px; }
.auth h2 { font: 700 clamp(48px, 5vw, 60px)/.9 var(--font-display); }
.auth__lead { font: 400 15.5px/1.55 var(--font-body); color: var(--cream-2); }
.seg { position: relative; border: 0; background: rgba(237,228,210,.07); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border-radius: 10px; min-height: 42px; font: 500 15px var(--font-body); letter-spacing: 0; color: var(--cream-2); }
.seg button:hover { color: var(--cream); }
.seg button[aria-selected="true"] { background: var(--cream); color: var(--bg); font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.field label { font: 500 13.5px var(--font-body); letter-spacing: 0; color: var(--cream-2); }
.field input {
  min-height: 52px; border-radius: 12px; background: rgba(8,6,4,.55); border: 1px solid rgba(237,228,210,.14);
  font: 400 16px var(--font-body); padding: 12px 16px;
}
.field input:hover { border-color: rgba(237,228,210,.28); }
.field input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(240,163,94,.16); background: rgba(8,6,4,.75); }
.field input.code-input { font: 700 30px var(--font-body); letter-spacing: .45em; }
.auth .btn, .auth .auth__btn {
  border-radius: 12px; min-height: 52px; font: 700 16.5px var(--font-body); letter-spacing: 0; text-transform: none; justify-content: center;
}
.auth .btn--red { background: linear-gradient(to left, #e2382c, #ef5a3c); box-shadow: 0 10px 30px rgba(226,56,44,.28); }
.auth .btn--red:hover { box-shadow: 0 12px 38px rgba(226,56,44,.45); transform: translateY(-1px); }
.auth .btn--line { border-color: rgba(237,228,210,.22); }
.auth__err, .auth__ok { border-radius: 12px; }
.auth__note { font: 400 14px var(--font-body); }
.linkbtn { font-family: var(--font-body); }
.icon-circle { background: rgba(237,228,210,.05); }
@media (max-width: 760px) {
  .auth { align-items: start; padding: 14px; }
  .auth__box { grid-template-columns: 1fr; border-radius: 18px; }
  .auth__side { min-height: 170px; }
  .auth__sideText { inset-inline: 20px; bottom: 18px; gap: 8px; }
  .auth__sideText b { font-size: 46px; }
  .auth__main { min-height: 0; padding: 26px 20px 22px; }
  .auth__main::before { inset-inline: 20px; }
  .auth__brand { display: none; }
}

/* ---------- Spinning ball loader ---------- */
.loader { display: grid; justify-items: center; gap: 0; padding: 34px 0 20px; }
.loader__ball { width: 64px; height: 64px; animation: ballBounce .9s cubic-bezier(.45,0,.55,1) infinite alternate; }
.loader__ball .ball { width: 100%; height: 100%; display: block; animation: ballSpin 1.1s linear infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.loader__shadow { width: 46px; height: 8px; margin-top: 10px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(3px); animation: ballShadow .9s cubic-bezier(.45,0,.55,1) infinite alternate; }
.loader__txt { margin-top: 14px; font: 500 14px var(--font-body); color: var(--muted); }
@keyframes ballSpin { to { transform: rotate(360deg); } }
@keyframes ballBounce { from { transform: translateY(-14px); } to { transform: translateY(6px); } }
@keyframes ballShadow { from { transform: scaleX(.6); opacity: .45; } to { transform: scaleX(1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .loader__ball, .loader__ball .ball, .loader__shadow { animation-duration: 2.4s !important; animation-name: ballSpin !important; }
  .loader__ball, .loader__shadow { animation: none !important; }
}

/* ---------- Schedule: free-text day names, day location, what to bring ---------- */
.days { display: flex; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 1 0 118px; padding: 10px 8px; text-align: center; }
.day__name { font-size: 26px; line-height: 1.05; }
.day-title { flex-wrap: wrap; row-gap: 6px; }
.day-loc { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--cream-2); font-size: 15px; }
.day-loc svg { color: var(--red); flex-shrink: 0; }
.session__bring { margin: 8px 0 0; font-size: 14.5px; color: var(--cream-2); padding: 6px 10px; border-inline-start: 2px solid var(--amber); background: rgba(240,163,94,.06); width: fit-content; }
.session__bring b { color: var(--amber); font-weight: 700; }

/* ---------- Presentations ---------- */
.slides { position: relative; }
.slides__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.slide { display: grid; grid-template-columns: 40px 56px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.slide:hover { background: linear-gradient(to left, var(--bg-2), transparent); }
.slide__num { font: 700 13px var(--font-mono); color: var(--red); }
.slide__icon { position: relative; width: 48px; height: 56px; display: grid; place-items: center; color: var(--cream-2); }
.slide__icon svg { width: 48px; height: 56px; }
.slide__icon b { position: absolute; bottom: 4px; inset-inline-start: -4px; background: var(--red); color: #fff; font: 700 9.5px var(--font-mono); padding: 2px 4px; letter-spacing: .04em; }
.slide__body h3 { font: 700 32px/1 var(--font-display); }
.slide__meta { font: 500 12px var(--font-mono); color: var(--muted); }
.slides.is-locked .slides__list { filter: blur(6px); pointer-events: none; user-select: none; opacity: .6; }
.slides__gate { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.slides__gate p { margin: 0; font-size: 18px; font-weight: 500; }
@media (max-width: 640px) {
  .slide { grid-template-columns: 44px 1fr; gap: 10px 14px; }
  .slide__num { display: none; }
  .slide__open { grid-column: 1 / -1; justify-self: start; }
  .slide__body h3 { font-size: 26px; }
}

/* ---------- Copyright notice popup ---------- */
.terms { position: fixed; inset: 0; z-index: 560; display: grid; place-items: center; padding: 18px; background: rgba(8,6,4,.72); backdrop-filter: blur(8px); }
.terms[hidden] { display: none; }
.terms__box { width: min(560px, 100%); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: authIn .4s var(--ease); }
.terms__kicker { margin: 0 0 6px; font: 500 13px var(--font-body); color: var(--amber); }
.terms h2 { font: 700 46px/.95 var(--font-display); margin-bottom: 16px; }
.terms h2:focus { outline: none; }
.terms__text { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 18px; }
.terms__text p { margin: 0 0 10px; color: var(--cream-2); font-size: 15px; }
.terms__text p:last-child { margin: 0; }
.terms__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.terms__check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.terms__err { color: var(--bad); font-size: 14px; min-height: 1.4em; margin: 8px 0; }
.terms__act { display: flex; gap: 10px; flex-wrap: wrap; }
.terms .abtn { min-height: 48px; border-radius: 12px; padding: 0 22px; font-size: 15.5px; }
.terms__ok { background: var(--red); border-color: var(--red); color: #fff; }
.terms__ok:hover { background: #f04a3e; }

/* ---------- Admin additions ---------- */
.a-grid--3 { grid-template-columns: 150px repeat(2, minmax(0, 1fr)); }
.a-head__act { display: flex; gap: 6px; flex-wrap: wrap; }
.a-hint--top { margin: 0 0 14px; }
.a-slide { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-items: start; }
.a-slide .slide__icon { grid-row: span 2; }
.a-slide__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .a-grid--3 { grid-template-columns: 1fr; } .a-slide { grid-template-columns: 1fr; } }

.user__admin[hidden] { display: none; }
.day-title .day-loc span { font: 500 15px var(--font-body); color: var(--cream-2); letter-spacing: 0; }

/* =========================================================
   v4 — Color-blocked sections with V-shaped transitions
   (dark → red → cream → dark … instead of black on black)
   ========================================================= */
:root { --v: clamp(42px, 6vw, 96px); --ink: #13100c; --ink-2: #5f5546; }
.section--v {
  clip-path: polygon(0 0, 50% var(--v), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--v)); padding-top: calc(120px + var(--v));
}
.section--deep { background: linear-gradient(180deg, #1f1a14, var(--bg) 85%); }
.section--v:not(.section--red):not(.section--cream):not(.section--deep) { background: var(--bg); }

/* big background chevrons, like layered shapes in the brand color */
.section--red::before, .section--cream::before, .section--deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' preserveAspectRatio='none'%3E%3Cpath d='M0 0 600 430 1200 0v170L600 600 0 170Z' fill='%23000' fill-opacity='.10'/%3E%3Cpath d='M0 330 600 760 1200 330v120L600 880 0 450Z' fill='%23000' fill-opacity='.07'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.section--cream::before { opacity: .45; }
.section--deep::before { opacity: .9; filter: invert(1); mix-blend-mode: soft-light; }
.section > .wrap { position: relative; z-index: 1; }

/* red sections */
.section--red { background: var(--red); color: #fff; }
.section--red .section__head h2 { color: #fff; }
.section--red .section__head h2 em { color: var(--ink); }
.section--red .eyebrow { color: rgba(255,255,255,.85); }
.section--red .eyebrow span { color: var(--ink); }
.section--red .eyebrow::after { background: rgba(255,255,255,.45); }
.section--red .empty { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.9); }
.section--red .card { border-color: rgba(0,0,0,.25); box-shadow: 0 18px 40px rgba(60,6,2,.35); }
.section--red .gallery__item { box-shadow: 0 14px 34px rgba(60,6,2,.3); }
.section--red .gallery__item.is-empty { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.85); box-shadow: none; }

/* cream section */
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .section__head h2 { color: var(--ink); }
.section--cream .eyebrow { color: var(--ink-2); }
.section--cream .eyebrow::after { background: rgba(19,16,12,.25); }
.section--cream .empty { border-color: rgba(19,16,12,.3); color: var(--ink-2); }
.section--cream .placeholder { color: var(--ink-2); }
.section--cream .slides__list { border-color: rgba(19,16,12,.2); }
.section--cream .slide { border-color: rgba(19,16,12,.14); }
.section--cream .slide:hover { background: linear-gradient(to left, rgba(19,16,12,.06), transparent); }
.section--cream .slide__icon { color: var(--ink); }
.section--cream .slide__meta { color: var(--ink-2); }
.section--cream .btn--line { color: var(--ink); border-color: rgba(19,16,12,.35); }
.section--cream .btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.section--cream .btn--cream { background: var(--ink); color: var(--cream); }
.section--cream .btn--cream .btn__arrow { background: var(--red); }
.section--cream .slides__gate p { color: var(--ink); }

/* rows slide in from the side (instead of only fading up) */
.slide.reveal, .acc { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.reveal:not(.is-in) { transform: translateX(-40px); }
.section__head.reveal:not(.is-in) h2 { letter-spacing: .04em; }
.section__head h2 { transition: letter-spacing 1s var(--ease); }

/* =========================================================
   Schedule — one topic per day
   ========================================================= */
.day { gap: 6px; }
.day__type { font: 700 12px var(--font-body); padding: 2px 10px; border-radius: 999px; background: rgba(237,228,210,.1); color: var(--cream-2); }
.day__type--practice { background: rgba(226,56,44,.22); color: #ff9c92; }
.day__type--theory { background: rgba(240,163,94,.2); color: var(--amber); }
.day[aria-selected="true"] .day__type { background: rgba(19,16,12,.12); color: var(--ink); }
.day[aria-selected="true"] .day__type--practice { background: var(--red); color: #fff; }
.day[aria-selected="true"] .day__type--theory { background: var(--amber); color: var(--ink); }

.dayc { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 0; border: 1px solid var(--line-2); background: rgba(27,23,18,.75); animation: dayIn .5s var(--ease); }
@keyframes dayIn { from { opacity: 0; transform: translateY(12px); } }
.dayc__main { padding: 34px 36px; }
.dayc__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dayc__label { font: 700 30px/1 var(--font-display); color: var(--cream-2); }
.dayc__topic { font: 700 clamp(48px, 6vw, 84px)/.9 var(--font-display); margin-bottom: 26px; }
.dayc__meta { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dayc__meta > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dayc__meta dt { display: flex; align-items: center; gap: 8px; font: 500 14px var(--font-body); color: var(--muted); }
.dayc__meta dt svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; }
.dayc__meta dd { margin: 0; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dayc__meta dd.ltr-num { font-family: var(--font-mono); font-size: 20px; color: var(--amber); direction: ltr; justify-content: flex-end; }
.waze {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  background: #33ccff; color: #062030; font: 700 14px var(--font-body); transition: transform .15s, box-shadow .2s;
}
.waze:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(51,204,255,.35); }
.dayc__bring { padding: 30px 30px; background: linear-gradient(160deg, rgba(240,163,94,.14), rgba(240,163,94,.04)); border-inline-start: 1px solid var(--line-2); }
.dayc__bring h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 34px/1 var(--font-display); color: var(--amber); }
.dayc__bring ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dayc__bring li { position: relative; padding-inline-start: 30px; font-size: 16.5px; }
.dayc__bring li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; border: 1.5px solid var(--amber); border-radius: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a35e' stroke-width='3'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.dtype {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font: 700 15px var(--font-body); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.dtype--practice { background: var(--red); color: #fff; }
.dtype--theory { background: var(--amber); color: var(--ink); }
.dtype--both { background: linear-gradient(to left, var(--red), var(--amber)); color: #fff; }
@media (max-width: 820px) {
  .dayc { grid-template-columns: 1fr; }
  .dayc__bring { border-inline-start: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .dayc__main { padding: 24px 18px; }
  .dayc__bring { padding: 22px 18px; }
  .dayc__meta > div { grid-template-columns: 1fr; gap: 6px; }
  .dayc__meta dd.ltr-num { justify-content: flex-start; }
  .section--v { padding-top: calc(84px + var(--v)); }
}

/* admin: segmented choice for day type */
.a-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.a-seg label { cursor: pointer; }
.a-seg input { position: absolute; opacity: 0; pointer-events: none; }
.a-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14.5px; transition: background-color .2s, border-color .2s; }
.a-seg input:checked + span { background: var(--cream); color: var(--bg); border-color: var(--cream); font-weight: 700; }
.a-seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.dayc__meta dd.ltr-num { direction: rtl; justify-content: flex-start; unicode-bidi: plaintext; }

/* =========================================================
   v5 — greeting, boot loader, exam status, separate exam page
   ========================================================= */
.hero__hello { margin: 0 0 14px; font: 500 clamp(17px, 1.6vw, 21px)/1.3 var(--font-body); color: var(--cream-2); }
.hero__hello:empty { display: none; }

/* Restoring a saved login after refresh: just the ball over the blurred site */
.auth.is-boot .auth__box { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; grid-template-columns: 1fr; width: auto; }
.auth.is-boot .auth__side { display: none; }
.auth.is-boot .auth__main { min-height: 0; padding: 0; }
.auth.is-boot .auth__main::before { display: none; }
.auth.is-boot { align-items: center; }

/* Exam card on the main site */
.exam-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px; font: 700 13px var(--font-body); background: rgba(95,211,143,.14); color: var(--ok); border: 1px solid rgba(95,211,143,.4); }
.exam-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.exam-badge--closed { background: rgba(237,228,210,.08); color: var(--cream-2); border-color: var(--line-2); }
.exam-state { font: 700 clamp(34px, 4vw, 46px)/1 var(--font-display); margin: 0 0 12px; }
.panel .btn + .btn { margin-inline-start: 10px; }

/* Admin — exam editor */
.a-warn { border: 1px solid rgba(240,163,94,.5); background: rgba(240,163,94,.1); color: var(--amber); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.a-warn code { font-family: var(--font-mono); }
.a-examstate .a-head { margin: 0; align-items: flex-start; }
.a-examstate .a-hint { margin-top: 6px; }
.a-examstate h3 .pill { vertical-align: middle; margin-inline-start: 6px; font: 700 14px var(--font-body); letter-spacing: 0; padding: 5px 14px; border-radius: 999px; }
.a-field { border: 0; padding: 0; margin: 14px 0 0; }
.a-field legend { font-size: 13px; color: var(--cream-2); margin-bottom: 8px; }
.a-part { border-color: var(--line-2); }
.a-q { border-top: 1px dashed var(--line-2); padding-top: 16px; margin-top: 16px; }
.a-q .a-head { margin-bottom: 8px; }
.a-q h4 { margin: 0; font: 700 13px var(--font-mono); letter-spacing: .1em; color: var(--amber); }
.a-part > .abtn--add { margin-top: 16px; }

/* ---------- Exam page ---------- */
.xp-body { min-height: 100vh; background:
  radial-gradient(70% 50% at 85% 0%, rgba(226,56,44,.14), transparent 60%),
  radial-gradient(50% 40% at 0% 100%, rgba(240,163,94,.08), transparent 60%), var(--bg); }
.xp-top { position: sticky; top: 0; z-index: 50; background: rgba(19,16,12,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.xp-top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.xp-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--cream-2); font-size: 14.5px; padding: 8px 12px 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, color .2s; }
.xp-back:hover { color: #fff; border-color: var(--cream); }
.xp-title { display: grid; line-height: 1.05; }
.xp-title b { font: 700 30px/1 var(--font-display); }
.xp-title span { font-size: 12.5px; color: var(--muted); }
.xp-save { margin-inline-start: auto; font-size: 13px; color: var(--muted); transition: color .2s; }
.xp-save.is-on { color: var(--ok); }
.xp-prog { border-top: 1px solid var(--line); padding: 10px 0 12px; }
.xp-prog__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 9px; font-size: 14.5px; }
.xp-prog__main b { font: 700 22px/1 var(--font-display); color: var(--cream); padding-inline: 2px; }
.xp-prog__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line-2); color: var(--cream-2); }
.xp-prog__chip--empty.is-done { color: var(--ok); border-color: rgba(95,211,143,.45); }
.xp-prog__chip--flag { color: var(--amber); border-color: rgba(240,163,94,.5); }
.xp-prog__chip--flag svg .flag__cloth, .xp-chip svg .flag__cloth { fill: currentColor; }
.xp-bar { display: flex; gap: 3px; height: 12px; }
.xp-seg { flex: 1 1 0; min-width: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(237,228,210,.13); cursor: pointer; position: relative; transition: background-color .25s, transform .15s; }
.xp-seg:hover { transform: scaleY(1.35); }
.xp-seg.is-answered { background: var(--ok); }
.xp-seg.is-flagged { background: var(--amber); }
.xp-seg.is-current { box-shadow: 0 0 0 1.5px var(--cream); }
.xp-seg:focus-visible { outline-offset: 2px; }

.xp-main { padding-block: 34px 80px; }
.xp-h { font: 700 clamp(44px, 5.4vw, 64px)/.9 var(--font-display); margin: 0 0 18px; }
.xp-h:focus { outline: none; }
.xp-msg { text-align: center; display: grid; justify-items: center; }
.xp-msg .icon-circle { font-size: 28px; }
.xp-preview { border: 1px dashed rgba(240,163,94,.6); color: var(--amber); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; text-align: center; border-radius: 12px; }
.xp-body .panel { border-radius: 18px; }
.xp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.xp-stats > div { flex: 1 1 110px; display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,6,4,.35); }
.xp-stats b { font: 700 46px/.9 var(--font-display); }
.xp-stats span { font-size: 13.5px; color: var(--muted); }
.xp-stats .is-warn b { color: var(--bad); }
.xp-stats .is-flag b { color: var(--amber); }
.xp-topics { margin: 0 0 18px; padding-inline-start: 22px; color: var(--cream); display: grid; gap: 4px; }
.xp-rules { margin: 0 0 26px; padding-inline-start: 20px; color: var(--cream-2); display: grid; gap: 8px; }
.xp-rules b { color: var(--cream); }

.xp-part { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; font: 700 clamp(36px, 4.2vw, 50px)/1 var(--font-display); color: var(--cream); }
.xp-part:first-child, .xp-preview + .xp-part { margin-top: 0; }
.xp-part span { font: 700 12px var(--font-mono); letter-spacing: .16em; color: var(--red); border: 1px solid rgba(226,56,44,.5); padding: 4px 9px; border-radius: 999px; transform: translateY(-6px); }
.xq { margin: 0 0 16px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(27,23,18,.8); border-inline-start: 4px solid var(--line-2); transition: border-color .25s, box-shadow .3s; min-width: 0; }
.xq.is-answered { border-inline-start-color: var(--ok); }
.xq.is-flagged { border-inline-start-color: var(--amber); background: linear-gradient(to left, rgba(240,163,94,.07), transparent 40%), rgba(27,23,18,.8); }
.xq.is-pulse { box-shadow: 0 0 0 3px rgba(240,163,94,.55); }
.xq__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.xq__num { font: 700 12.5px var(--font-mono); letter-spacing: .12em; color: var(--muted); }
.xq__flag { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--cream-2); font: 500 13.5px var(--font-body); cursor: pointer; transition: all .2s; }
.xq__flag:hover { border-color: var(--amber); color: var(--amber); }
.xq__flag[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--bg); font-weight: 700; }
.xq__flag[aria-pressed="true"] .flag__cloth { fill: currentColor; }
.xq__text { font: 500 clamp(18px, 1.8vw, 21px)/1.5 var(--font-body); margin: 0 0 16px; color: var(--cream); }
.xq .options { gap: 8px; }
.xq .option { border-radius: 12px; min-height: 54px; }
.xq .option__key { border-radius: 9px; }
.xq__clear { margin-top: 6px; font-size: 13px; color: var(--muted); }
.xp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.xp-nav .btn { border-radius: 12px; }
.xp-nav__pg { font: 500 13px var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.xp-group { margin-bottom: 16px; }
.xp-group h3 { font: 700 30px/1 var(--font-display); margin: 0 0 10px; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xp-chip { position: relative; display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(8,6,4,.4); color: var(--cream-2); font: 700 14px var(--font-mono); cursor: pointer; transition: transform .15s, border-color .2s; }
button.xp-chip:hover { transform: translateY(-2px); border-color: var(--cream); }
.xp-chip.is-answered { background: rgba(95,211,143,.16); border-color: rgba(95,211,143,.55); color: var(--ok); }
.xp-chip.is-flagged { border-color: var(--amber); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.xp-chip svg { position: absolute; top: -7px; inset-inline-end: -6px; width: 15px; height: 15px; background: var(--bg-2); border-radius: 50%; padding: 1px; }
.xp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.xp-legend .xp-chip { min-width: 18px; height: 18px; border-radius: 5px; cursor: default; padding: 0; margin-inline-start: 6px; }
.xp-legend .xp-chip svg { display: none; }
.xp-alert { border: 1px solid rgba(255,122,107,.5); background: rgba(226,56,44,.1); color: #ffc0b6; padding: 11px 15px; border-radius: 12px; margin-bottom: 10px; font-size: 14.5px; }
.xp-alert--flag { border-color: rgba(240,163,94,.5); background: rgba(240,163,94,.08); color: var(--amber); }
@media (max-width: 640px) {
  .xp-top__in { min-height: 56px; gap: 10px; }
  .xp-title b { font-size: 26px; }
  .xp-title span, .xp-save { display: none; }
  .xp-back { font-size: 13.5px; padding: 6px 10px; }
  .xq { padding: 18px 16px 14px; }
  .xp-nav { flex-wrap: wrap; }
  .xp-nav__pg { order: -1; width: 100%; text-align: center; }
  .xp-nav .btn { flex: 1; justify-content: center; }
  .panel .btn + .btn { margin: 10px 0 0; }
}
/* ---------- Gallery: compact moving wall ---------- */
#gallery { overflow: hidden; }
.wall { --h: 92px; display: grid; gap: 8px; transform: rotate(-2deg) scale(1.04); margin-block: 6px 10px; }
.wall__row { display: flex; width: max-content; animation: wallSlide var(--dur, 60s) linear infinite; }
.wall__row:nth-child(2) { --h: 74px; }
.wall__row.rev { animation-direction: reverse; }
.wall:hover .wall__row, .wall:focus-within .wall__row { animation-play-state: paused; }
@keyframes wallSlide { from { transform: translateX(0); } to { transform: translateX(50%); } }
.wtile { position: relative; flex: none; height: var(--h); width: var(--h); margin-inline-end: 8px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: zoom-in; background: rgba(19,16,12,.35); box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: transform .35s var(--ease); }
.wtile.w { width: calc(var(--h) * 1.5); }
.wtile.t { width: calc(var(--h) * .75); }
.wtile:hover, .wtile:focus-visible { transform: scale(1.07); z-index: 2; }
.wtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.wtile img.out { opacity: 0; }
.wtile.is-empty { cursor: default; }
.wall .empty { transform: rotate(2deg); }
@media (max-width: 640px) {
  .wall { --h: 70px; gap: 6px; }
  .wall__row:nth-child(2) { --h: 58px; }
  .wtile { margin-inline-end: 6px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) { .wall__row { animation: none; } .wtile img { transition: none; } }#gallery.section--v { padding-top: calc(70px + var(--v)); padding-bottom: 80px; }
#gallery .section__head { margin-bottom: 26px; }
@media (max-width: 640px) { #gallery.section--v { padding-top: calc(50px + var(--v)); padding-bottom: 56px; } }
/* ---------- Regulations: approval popup, site section, admin ---------- */
.auth.is-rules { align-items: start; }
.auth.is-rules .auth__main { justify-content: flex-start; }
.rgate { border: 1px solid rgba(237,228,210,.14); border-radius: 14px; background: rgba(8,6,4,.4); margin-bottom: 12px; overflow: hidden; }
.rgate__doc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.rgate__doc summary::-webkit-details-marker { display: none; }
.rgate__doc summary b { font: 700 28px/1 var(--font-display); }
.rgate__doc summary span { font-size: 13.5px; color: var(--amber); white-space: nowrap; }
.rgate__doc summary span::after { content: " ▾"; }
.rgate__doc[open] summary span::after { content: " ▴"; }
.rgate__body { max-height: 260px; overflow-y: auto; padding: 0 16px 14px; border-top: 1px solid rgba(237,228,210,.1); font-size: 14.5px; color: var(--cream-2); }
.rgate__body h4 { margin: 14px 0 4px; font-size: 15px; color: var(--cream); }
.rgate__body p { margin: 0; white-space: pre-line; }
.rgate__body .linkbtn { display: inline-block; margin-top: 12px; padding-inline: 0; }
.rgate__check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-top: 1px solid rgba(237,228,210,.1); background: rgba(237,228,210,.04); cursor: pointer; font-size: 14.5px; line-height: 1.5; }
.rgate__check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.rgate:has(input:checked) { border-color: rgba(95,211,143,.5); }

.regs { display: grid; gap: 34px; }
.reg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.reg__head h3 { font: 700 clamp(34px, 4vw, 46px)/1 var(--font-display); margin-inline-end: auto; }
.reg__ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ok); border: 1px solid rgba(95,211,143,.4); padding: 4px 12px 4px 10px; border-radius: 999px; }
.reg__ok svg { width: 16px; height: 16px; }

.a-rules { display: grid; gap: 3px; }
.a-rule { font-size: 12.5px; color: var(--bad); white-space: nowrap; }
.a-rule.is-ok { color: var(--ok); }
/* =========================================================
   v6 — Login landing page (replaces the popup). The site itself is not shown at all until login.
   ========================================================= */
body.is-locked .page { display: none; }
.auth.auth--landing { display: grid; grid-template-rows: auto 1fr; place-items: stretch; padding: 0; overflow-x: hidden; overflow-y: auto; isolation: isolate; background: var(--bg); }
.auth--landing[hidden] { display: none; }
.landing__bg { position: fixed; inset: 0; z-index: -2; transform: scale(1.06); animation: landingPan 24s ease-in-out infinite alternate;
  background: #1a140d center / cover no-repeat; }
@keyframes landingPan { to { transform: scale(1.14) translateX(-2%); } }
.auth--landing::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to left, rgba(19,16,12,.92) 0%, rgba(19,16,12,.55) 45%, rgba(19,16,12,.78) 100%),
              linear-gradient(to top, rgba(19,16,12,1) 0%, transparent 40%),
              radial-gradient(60% 50% at 20% 30%, rgba(226,56,44,.22), transparent 70%); }
.auth--landing::after { content: ""; position: fixed; z-index: -1; pointer-events: none; top: -20%; inset-inline-end: 20%; width: 40%; height: 140%;
  background: linear-gradient(to bottom, rgba(240,163,94,.16), transparent 70%); transform: skewX(-18deg); filter: blur(30px); }
.landing__top { padding: 22px clamp(20px, 4vw, 56px); }
.landing__main { display: grid; grid-template-columns: 1.15fr minmax(340px, 440px); align-items: center; gap: clamp(28px, 5vw, 80px);
  padding: 10px clamp(20px, 4vw, 56px) 48px; max-width: 1340px; width: 100%; margin: 0 auto; }
.landing__title { margin: 0; font: 700 clamp(84px, 12vw, 190px)/.8 var(--font-display); letter-spacing: -.01em; text-wrap: balance; color: var(--cream); }
.landing__title em { font-style: normal; color: var(--red); display: block; }
.landing__card { position: relative; border-radius: 22px; padding: 30px 30px 24px; background: rgba(22,18,14,.72); border: 1px solid rgba(237,228,210,.14);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); animation: landingRise .7s var(--ease) both .1s; }
.landing__card::before { content: ""; position: absolute; top: 0; inset-inline: 30px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(to left, var(--red), var(--amber)); }
@keyframes landingRise { from { opacity: 0; transform: translateY(18px); } }
.auth--landing h2 { font: 700 50px/.9 var(--font-display); }
/* longer views (regulations) get a wider card */
.auth--landing.is-rules .landing__main { grid-template-columns: 1fr minmax(340px, 560px); align-items: start; }
/* restoring a saved login after refresh: only the ball, no title or card */
.auth--landing.is-boot .landing__main { grid-template-columns: 1fr; place-items: center; min-height: 60vh; }
.auth--landing.is-boot .landing__hero { display: none; }
.auth--landing.is-boot .landing__card { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.auth--landing.is-boot .landing__card::before { display: none; }
@media (max-width: 900px) {
  .landing__main, .auth--landing.is-rules .landing__main { grid-template-columns: 1fr; align-items: start; gap: 22px; padding-top: 0; }
  .landing__title { font-size: clamp(64px, 18vw, 110px); }
  .landing__card { padding: 24px 20px 20px; }
  .landing__card::before { inset-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { .landing__bg, .landing__card { animation: none; } }