/* ============================================================
   Uniqualized Theme — Emerald-Teal, Inter Font, Rounded-Rect
   ============================================================ */

:root {
  --hdr-h: 56px;

  /* Палітра — глибокий темно-зелений з бірюзовим акцентом */
  --bg-1: #0b1a1a;
  --bg-2: #112626;
  --bg-surface: rgba(17, 38, 38, .65);
  --deep: #060f0f;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.56);
  --dim: rgba(255,255,255,.36);

  --stroke: rgba(255,255,255,.09);
  --stroke2: rgba(255,255,255,.05);

  /* Акцент — бірюзово-ізумрудний */
  --accent: #00d4aa;
  --accent2: #00b892;
  --accent-rgb: 0,212,170;
  --accent-glow: 0 0 0 1px rgba(var(--accent-rgb),.25), 0 0 20px rgba(var(--accent-rgb),.15);
  --accent-glow-sm: 0 0 0 1px rgba(var(--accent-rgb),.18), 0 0 12px rgba(var(--accent-rgb),.10);

  /* Другий акцент — м'який блакитний для посилань */
  --link: #5ec4e8;
  --link-rgb: 94,196,232;

  --r8: 8px;
  --r12: 10px;
  --r14: 12px;
  --r16: 14px;
  --r20: 16px;

  --pad: 16px;
  --bbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--deep);
  background: #050d0d;
  -webkit-font-smoothing: antialiased;
}

.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0,80,60,.5) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(0,160,130,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,212,170,.06) 0%, transparent 70%),
    linear-gradient(160deg, #020a08 0%, #081a16 40%, #050d0d 70%, #020806 100%);
}
.bg-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='1' y='1' width='46' height='46' rx='6' fill='none' stroke='%2300d4aa' stroke-width='0.4'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
body.is-locked { overflow: hidden; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr { position: sticky; top: 0; z-index: 50; }

.hdr__bar {
  height: var(--hdr-h);
  background: rgba(6,15,15,.92);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--stroke);
}

.hdr__container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
}

.hdr__grid {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r12);
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 5px;
  transition: background .16s ease;
}
.burger:hover { background: rgba(255,255,255,.06); }
.burger:active { transform: scale(.96); }

.burger__line {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}

.hdr__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}
.hdr__logo img {
  height: 36px;
  width: auto;
}

.hdr__nav { display: none; }

.nav {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { margin: 0; padding: 0; }

.nav-link {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(var(--accent-rgb),.2);
}
.nav-link:active { transform: scale(.97); }

.nav-link--active {
  color: var(--accent);
  background: rgba(var(--accent-rgb),.08);
  border-color: rgba(var(--accent-rgb),.25);
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Кнопки — rounded rect замість pill */
.btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  border-color: rgba(var(--accent-rgb),.5);
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #0b1a1a;
  font-weight: 800;
  box-shadow: var(--accent-glow);
}
.btn--primary:hover {
  box-shadow: var(--accent-glow), 0 8px 24px rgba(var(--accent-rgb),.25);
}

.btn--ghost {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

/* ============================================================
   DESKTOP HEADER
   ============================================================ */
@media (min-width: 981px) {
  :root { --hdr-h: 64px; }

  .hdr__grid {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 12px;
  }

  .hdr__nav {
    display: flex;
    justify-content: center;
  }

  .hdr__logo {
    margin-left: 0;
    margin-right: 0;
  }
  .hdr__logo img { height: 46px; }

  .btn { padding: 10px 20px; font-size: 14px; }
}

/* ============================================================
   OVERLAY + SIDE MENU
   ============================================================ */
.side {
  position: fixed;
  top: 0; left: 0;
  height: 100dvh;
  width: 320px;
  max-width: calc(100vw - 56px);
  z-index: 200;
  background: linear-gradient(180deg, rgba(11,26,26,.99), rgba(6,15,15,.99));
  border-right: 1px solid var(--stroke);
  transform: translateX(-105%) translateZ(0);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  will-change: transform;
  -webkit-transform: translateX(-105%) translateZ(0);
}
.side.is-open { transform: translateX(0) translateZ(0); -webkit-transform: translateX(0) translateZ(0); }

.side__top {
  height: 64px;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--stroke);
}

.side__close {
  width: 38px; height: 38px;
  border-radius: var(--r12);
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: background .14s ease;
}
.side__close:hover { background: rgba(255,255,255,.06); }
.side__close:active { transform: scale(.95); }

.xline {
  position: absolute;
  width: 16px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}
.xline:nth-child(1) { transform: rotate(45deg); }
.xline:nth-child(2) { transform: rotate(-45deg); }

.side__content {
  padding: 8px var(--pad) var(--pad);
  overflow-y: auto;
  height: calc(100dvh - 64px);
  overscroll-behavior: contain;
}

.side__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side__item { margin: 0; padding: 0; }

.side__link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r12);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
.side__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
  transform: translateX(4px);
}
.side__link:active { transform: translateX(2px) scale(.99); }

.side__link--active {
  color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
  border-color: rgba(var(--accent-rgb),.18);
}

/* ============================================================
   SIDE — components
   ============================================================ */
.sideSection {
  margin-bottom: 10px;
  border-radius: var(--r16);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.sideSection__toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 12px;
  cursor: pointer;
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background .14s ease;
}
.sideSection__toggle:hover { background: rgba(255,255,255,.04); }

.sideSection__title { font-weight: 800; letter-spacing: .2px; }

.sideSection__arrow {
  width: 9px; height: 9px;
  border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.sideSection.is-open .sideSection__arrow { transform: rotate(225deg); }
.sideSection__panel { padding: 8px 10px 12px; }

.nav--mobile { display: grid; gap: 6px; }
.nav--mobile .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255,255,255,.03);
  border-color: var(--stroke);
}
.nav--mobile .nav-link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.2);
}

.sideBanner {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--r16);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sideBanner:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb),.2);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

/* ============================================================
   LANG SWITCH
   ============================================================ */
.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
}

.langSwitch__link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.langSwitch__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.langSwitch__link:active { transform: scale(.96); }

.langSwitch__link.is-active {
  color: #0b1a1a;
  background: var(--accent);
  border-color: var(--accent2);
  font-weight: 800;
  pointer-events: none;
}

.langSwitch--header { margin-right: 4px; }

@media (min-width: 981px) {
  .langSwitch__link { min-width: 40px; height: 30px; font-size: 12px; }
}

/* ============================================================
   PROMO SLIDER
   ============================================================ */
.promoSlider { padding: 12px 0 8px; }

.promoSlider__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.promoSlider__frame {
  position: relative;
  border-radius: var(--r16);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  overflow: hidden;
  --perView: 1;
  --gap: 12px;
}

.promoSlider__viewport { overflow: hidden; padding: 10px; }

.promoSlider__track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}

.promoSlide {
  flex: 0 0 calc((100% - (var(--gap) * (var(--perView) - 1))) / var(--perView));
  border-radius: var(--r14);
  overflow: hidden;
  text-decoration: none;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--stroke2);
  aspect-ratio: 16/9;
  transition: transform .16s ease, box-shadow .16s ease;
}

.promoSlider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.promoSlider__dot {
  width: 24px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  transition: background .14s ease, width .2s ease;
}
.promoSlider__dot.is-active {
  width: 36px;
  background: var(--accent);
}

@media (min-width: 981px) {
  .promoSlider__frame { --perView: 2; --gap: 16px; border-radius: var(--r20); }
  .promoSlider__viewport { padding: 14px; }
}

/* ============================================================
   QUICK NAV
   ============================================================ */
.qnav { padding: 8px 0 12px; }
.qnav__container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.qnav__box {
  position: relative;
  border-radius: var(--r16);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 8px;
}
.qnav__row {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.qnav__row::-webkit-scrollbar { display: none; }
.qnav__item { margin: 0; padding: 0; flex-shrink: 0; }
.qnav__link {
  height: 50px;
  width: 100px;
  border-radius: var(--r12);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  color: rgba(255,255,255,.85);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.qnav__link:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(var(--accent-rgb),.2);
  transform: translateY(-1px);
}
.qnav__text { font-weight: 700; font-size: 10px; line-height: 1; color: rgba(255,255,255,.8); }
.qnav__btn {
  width: 100%; height: 50px;
  border-radius: var(--r12);
  cursor: pointer;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: background .14s ease;
}
.qnav__box.is-collapsed .qnav__row { display: none; }
.qnav__box.is-collapsed .qnav__btn { display: flex; }

.qnav__drop {
  position: absolute;
  left: 8px; right: 8px;
  top: calc(100% + 8px);
  z-index: 25;
  border-radius: var(--r16);
  background: rgba(11,26,26,.96);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.qnav__dropInner { padding: 10px; }
.qnav__grid {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qnav__grid .qnav__link { width: 100%; }

/* ============================================================
   SLOTS GRID
   ============================================================ */
.slotsBlock { padding: 12px 0 8px; }
.slotsBlock__container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.slotsBlock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.slotsBlock__title { margin: 0; font-size: 22px; font-weight: 800; color: var(--text); }
.slotsGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.slotCard {
  position: relative;
  border-radius: var(--r14);
  overflow: hidden;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.slotCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb),.18);
}

.slotCard__img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .2s ease, transform .2s ease; }
.slotCard__hover { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; opacity: 0; transition: opacity .16s ease, background .16s ease; }
.slotCard__actions { display: flex; gap: 8px; transform: translateY(8px); transition: transform .16s ease; }

.slotBtn {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: background .14s ease;
}
.slotBtn--play { background: var(--accent); border-color: var(--accent2); color: #0b1a1a; font-weight: 800; }
.slotBtn--demo { background: rgba(6,15,15,.5); border-color: rgba(255,255,255,.14); }

.slotCard:hover .slotCard__img { filter: blur(2px) brightness(.65); transform: scale(1.03); }
.slotCard:hover .slotCard__hover { opacity: 1; background: rgba(6,15,15,.45); }
.slotCard:hover .slotCard__actions { transform: translateY(0); }

@media (min-width: 641px) { .slotsGrid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 901px) { .slotsGrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1101px) { .slotsGrid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  margin-top: 24px;
  background: rgba(6,15,15,.92);
  border-top: 1px solid var(--stroke);
  position: relative;
  padding-bottom: calc(var(--bbar-h) + 12px);
}

.ft__container { max-width: 1200px; margin: 0 auto; padding: 28px var(--pad) 16px; }

.ft__top { display: grid; grid-template-columns: 1fr; gap: 20px; }

.ft__logo { display: inline-flex; text-decoration: none; margin-bottom: 14px; }
.ft__logo img { height: 38px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }

.ft__join { margin: 0 0 12px; font-weight: 600; font-size: 15px; line-height: 1.3; color: rgba(255,255,255,.7); }

.ft__tg {
  width: 48px; height: 48px;
  border-radius: var(--r12);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.ft__tg img { width: 24px; height: 24px; object-fit: contain; }
.ft__tg:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); border-color: rgba(var(--accent-rgb),.2); }

.ft__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }

.ft__link { text-decoration: none; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.65); transition: color .14s ease; }
.ft__link:hover { color: var(--accent); }

.ft__right { display: grid; gap: 12px; }

.ft__copy { font-weight: 600; font-size: 14px; color: rgba(255,255,255,.6); display: grid; gap: 4px; }

.ft__legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.45);
}

/* 21+ badge */
.ft__age-badge {
  margin-top: 12px;
  text-align: center;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb),.4);
  background: rgba(var(--accent-rgb),.08);
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -.5px;
}

.toTop {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--bbar-h) + 20px);
  width: 48px; height: 48px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(var(--accent-rgb),.15);
  border: 1px solid rgba(var(--accent-rgb),.2);
  transition: transform .14s ease, background .14s ease;
}
.toTop:hover { transform: translateY(-2px); background: rgba(var(--accent-rgb),.25); }
.toTop::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translate(-50%, -38%) rotate(225deg);
}

@media (min-width: 821px) {
  .ft__top { grid-template-columns: 220px 1fr 240px; gap: 24px; }
  .ft__list { grid-template-columns: 1fr; gap: 10px; }
  .ft { padding-bottom: 0; }
  .toTop { bottom: 20px; }
}

@media (min-width: 1101px) {
  .ft__top { grid-template-columns: 240px 1fr 340px; gap: 28px; }
  .ft__container { padding-top: 36px; }
}

/* ============================================================
   CONTENT — article .demo
   ============================================================ */
.page { min-height: 100vh; }

.page .demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--pad) 40px;
  color: rgba(255,255,255,.85);
}

.page .demo > * { margin: 0 0 16px; }

.page .demo h1,
.page .demo h2,
.page .demo h3 {
  color: var(--text);
  letter-spacing: -.02em;
}

.page .demo h1 { font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 4px; margin-bottom: 14px; }
.page .demo h2 {
  font-size: 21px; font-weight: 700; margin-top: 28px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--stroke);
}
.page .demo h3 { font-size: 17px; font-weight: 700; margin-top: 20px; margin-bottom: 8px; }

.page .demo p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.78); }
.page .demo strong { color: var(--text); font-weight: 700; }
.page .demo em { color: rgba(var(--link-rgb),.9); font-style: italic; }

.page .demo a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--link-rgb),.25);
  transition: color .14s ease, border-color .14s ease;
}
.page .demo a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }

.page .demo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r14);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.page .demo figure img {
  border-radius: 0; border: none; box-shadow: none;
  transform: scale(1.04);
  transform-origin: center center;
  transition: transform 0.12s cubic-bezier(.23,.46,.45,.94);
  will-change: transform;
}

.page .demo ul, .page .demo ol { padding-left: 20px; color: rgba(255,255,255,.78); }
.page .demo li { margin: 6px 0; line-height: 1.6; font-size: 15px; }
.page .demo li::marker { color: var(--accent); }

.page .demo blockquote {
  margin: 18px 0; padding: 14px 16px;
  border-radius: var(--r14);
  background: rgba(var(--accent-rgb),.04);
  border: 1px solid rgba(var(--accent-rgb),.12);
  border-left: 3px solid var(--accent);
  color: rgba(255,255,255,.82);
  font-weight: 500; font-size: 14px; line-height: 1.55;
}

.page .demo table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  border-radius: var(--r14);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  display: block;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb),.3) transparent;
}

.page .demo thead th {
  text-align: left; font-weight: 700; font-size: 12px;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 10px 12px; color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
  border-bottom: 1px solid rgba(var(--accent-rgb),.12);
  white-space: nowrap;
}

.page .demo tbody td {
  padding: 10px 12px; font-size: 14px;
  color: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--stroke2);
  white-space: nowrap;
}
.page .demo tbody tr:hover td { background: rgba(255,255,255,.03); }
.page .demo tbody tr:last-child td { border-bottom: 0; }

.page .demo figure { margin: 18px 0; }

@media (min-width: 641px) {
  .page .demo h1 { font-size: 32px; }
  .page .demo h2 { font-size: 24px; }
  .page .demo h3 { font-size: 19px; }
  .page .demo p, .page .demo li { font-size: 16px; }
  .page .demo { padding-bottom: 52px; }
}

@media (min-width: 981px) {
  .page .demo h1 { font-size: 38px; }
  .page .demo h2 { font-size: 26px; margin-top: 36px; }
  .page .demo tbody td { white-space: normal; }
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.bbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bbar-h);
  z-index: 55;
  background: rgba(6,15,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke);
  padding: 0 8px env(safe-area-inset-bottom);
}

.bbar__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.bbar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: var(--r12);
  transition: background .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.bbar__link:active { background: rgba(255,255,255,.06); }

.bbar__ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: color .14s ease;
}
.bbar__ico svg { width: 22px; height: 22px; }

.bbar__text { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.45); transition: color .14s ease; }

.bbar__link--active .bbar__ico { color: var(--accent); }
.bbar__link--active .bbar__text { color: var(--accent); }

@media (min-width: 981px) {
  .bbar { display: none; }
  .ft { padding-bottom: 0; }
}

figure {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  display: block;
  touch-action: none;
}
figure img {
  display: block; width: 100%; height: auto;
  transition: transform 0.12s cubic-bezier(.23,.46,.45,.94);
  transform-origin: center center;
  transform: scale(1.04);
  will-change: transform;
}

.page .demo figcaption {
  display: block; margin-top: 8px;
  font-size: 13px; color: rgba(255,255,255,.45);
  text-align: center; line-height: 1.5;
}

@media (min-width: 768px) {
  .page .demo figure.figure--aside { float: right; width: 300px; margin: 0 0 20px 28px; }
  .page .demo table { display: table; width: 100%; }
}
@media (max-width: 767px) {
  .page .demo figure.figure--aside { float: none; width: 100%; margin: 18px 0; }
}

/* ============================================================
   AUTHOR BLOCK
   ============================================================ */
.author-block {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin: 40px 0 0; padding: 28px 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  border-radius: var(--r14);
}
.author-card { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 240px; }
.author-card__avatar {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--stroke);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: var(--deep, #060f0f);
  font-family: "Inter", monospace;
  letter-spacing: -1px;
}
.author-card__info { display: flex; flex-direction: column; gap: 4px; }
.author-card__name { font-weight: 700; font-size: 15px; color: #fff; }
.author-card__name a { color: var(--accent); text-decoration: none; }
.author-card__name a:hover { text-decoration: underline; }
.author-card__role { font-size: 12px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .4px; }
.author-card__bio { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.55; margin: 4px 0 0; }
.author-card__email { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }
.author-card__email a { color: rgba(255,255,255,.55); text-decoration: none; }
.author-card__email a:hover { color: var(--accent); }

/* ============================================================
   LEGALS
   ============================================================ */
.legals { background: rgba(0,0,0,.35); border-top: 1px solid var(--stroke2); padding: 18px 20px; }
.legals__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: center; }
.legals__link { display: flex; align-items: center; opacity: .55; transition: opacity .2s; text-decoration: none; }
.legals__link:hover { opacity: 1; }
.legals__link img { height: 32px; width: auto; display: block; }

/* ============================================================
   AUTHOR SECTION
   ============================================================ */
.author-section {
  margin: 0; padding: 32px 20px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.author-section__title {
  max-width: 1200px;
  margin: 0 auto 20px !important;
  font-size: 12px !important;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.author-section .author-block { max-width: 1200px; margin: 0 auto; border: none; background: none; padding: 0; border-radius: 0; }

/* ============================================================
   MENU OVERLAY
   ============================================================ */
#menuOverlay {
  display: none !important;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  pointer-events: none;
}
#menuOverlay.is-visible { display: block !important; pointer-events: auto; }
