/* BlackBear Mobile — site styles (v3, store-style redesign).
   Mobile-first, one file, no framework, no build step. */

:root {
  --bg: #0D0D0F;
  --bg-2: #151518;         /* raised surfaces */
  --bg-3: #1D1D21;         /* hover surfaces, chips */
  --line: #26262B;
  --line-2: #33333A;
  --orange: #F26722;
  --orange-2: #FF8A4C;     /* hover / glow */
  --orange-ink: #1A0E07;   /* text on orange */
  --text: #F5F5F7;
  --text-2: #A7A7AE;       /* body copy: 7.9:1 on --bg */
  --text-3: #7A7A83;       /* muted: 4.9:1 on --bg */
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --r-tile: 26px;
  --r-card: 20px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-2); }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--orange-ink); padding: 8px 14px; z-index: 100; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--text-3); }
.lead { font-size: 1.15rem; max-width: 56ch; color: var(--text-2); }
.lead p:last-child { margin-bottom: 0; }

/* ---- Header ---- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(13,13,15,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; flex-direction: column; }
.site-nav.is-open { display: flex; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line); }
.site-nav a:last-child { border: 0; }
.site-nav a[aria-current] { color: var(--orange); }
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; background: none; border: 0; padding: 0; }
  .site-nav a { padding: 8px 14px; border: 0; border-radius: var(--r-pill); font-size: .98rem; transition: background .2s, color .2s; }
  .site-nav a:hover { background: var(--bg-3); color: var(--text); }
  .site-nav a[aria-current] { background: var(--bg-3); color: var(--text); }
  .site-nav .nav-cta { margin-left: 10px; background: var(--text); color: var(--bg); font-weight: 700; }
  .site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current] { background: var(--orange); color: var(--orange-ink); }
  .brand img { width: 172px; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: var(--orange-ink); }
.btn--primary:hover { background: var(--orange-2); color: var(--orange-ink); box-shadow: 0 12px 30px -12px rgba(242,103,34,.7); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.link { color: var(--text); font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: .92rem; white-space: nowrap; transition: border-color .2s, color .2s; }
.link:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Sections ---- */
.section { padding: 48px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
/* modifiers come after the media query so they win at every width */
.section--tight { padding-top: 28px; padding-bottom: 28px; }
.section--page { padding-top: 40px; }
.hero + .section { padding-top: 32px; }
@media (min-width: 720px) { .section--page { padding-top: 56px; } .hero + .section { padding-top: 48px; } }

/* ---- Page header (Games / Apps / Services / Contact) ---- */
.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { margin: 0; }
.count { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 11px; border-radius: var(--r-pill); background: var(--bg-3); color: var(--text-2); font-size: .95rem; font-weight: 500; letter-spacing: 0; }

/* ---- Home hero ---- */
.hero { position: relative; padding: 52px 0 24px; overflow: hidden; isolation: isolate; }
.hero::before {
  /* level-editor grid: fades out toward the bottom */
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 100%);
  opacity: .6;
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -20vw; top: -30vh; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(242,103,34,.22), transparent 70%);
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__title { margin-bottom: 18px; max-width: 12ch; }
.hero__sub { font-size: 1.15rem; max-width: 42ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242,103,34,.6); }
@media (min-width: 900px) {
  .hero { padding: 88px 0 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 56px; }
}

/* Featured game card (App Store "Today" style) */
.feature { position: relative; display: block; border-radius: var(--r-tile); overflow: hidden; text-decoration: none; color: inherit; background: var(--bg-2); border: 1px solid var(--line-2); aspect-ratio: 16 / 11; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.feature__art { position: absolute; inset: 0; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__art img { transform: scale(1.04); }
.feature__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,15,.96) 0%, rgba(13,13,15,.55) 34%, rgba(13,13,15,0) 62%); }
.feature__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; align-items: center; gap: 14px; }
.feature__icon { flex: none; width: 60px; height: 60px; border-radius: 22.5%; overflow: hidden; box-shadow: 0 8px 20px -6px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
.feature__icon img { width: 100%; height: 100%; object-fit: cover; }
.feature__text { min-width: 0; flex: 1; }
.feature__title { margin: 0; font-size: 1.15rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature__pitch { margin: 2px 0 0; font-size: .92rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature__get { flex: none; }
@media (min-width: 560px) { .feature__bar { padding: 22px 24px; } .feature__icon { width: 72px; height: 72px; } .feature__title { font-size: 1.35rem; } }

/* ---- Store-style tile grid ---- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile { display: flex; flex-direction: column; gap: 12px; padding: 12px; margin: -12px; border-radius: 32px; text-decoration: none; color: inherit; transition: background .25s var(--ease); }
.tile:hover, .tile:focus-visible { background: var(--bg-2); color: inherit; outline: none; }
.tile:focus-visible .tile__icon { box-shadow: 0 0 0 3px var(--orange); }
.tile__icon {
  position: relative; aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; background: var(--bg-3);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 12px 28px -14px rgba(0,0,0,.9);
  will-change: transform;
}
.tile__icon img { width: 100%; height: 100%; object-fit: cover; }
.tile__icon::after { /* soft top-light on the icon, like a real glass icon */
  content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.12), transparent 45%); pointer-events: none;
}
.tile:hover .tile__icon {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1px rgba(242,103,34,.5), 0 30px 50px -20px rgba(242,103,34,.55);
}
.tile__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile__text { min-width: 0; }
.tile__title { margin: 0; font-size: 1.02rem; line-height: 1.2; color: var(--text); }
.tile__pitch { margin: 3px 0 0; font-size: .88rem; line-height: 1.35; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__get { flex: none; padding: 5px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: .8rem; background: var(--bg-3); color: var(--text); transition: background .2s, color .2s; }
@media (min-width: 560px) { .tile__get { padding: 6px 15px; font-size: .82rem; } }
.tile:hover .tile__get { background: var(--orange); color: var(--orange-ink); }
.tile__get--soon { background: transparent; color: var(--text-3); border: 1px solid var(--line-2); font-weight: 500; }
.tile:hover .tile__get--soon { background: transparent; color: var(--text-2); }

/* Platform chips — tiny monochrome marks */
.platforms { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.platform { width: 20px; height: 20px; border-radius: 6px; background: var(--bg-3) center/12px no-repeat; opacity: .85; }
.platform--android { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F5F7'%3E%3Cpath d='M3 20.5v-17c0-.6.6-1 1.2-.7l14.6 8.2c.6.4.6 1.2 0 1.6L4.2 21.2c-.6.4-1.2 0-1.2-.7z'/%3E%3C/svg%3E"); }
.platform--ios { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F5F7'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.5 2-3.6-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.8.8-3.5.8-.7 0-1.9-.8-3.1-.8-1.6 0-3 .9-3.9 2.3-1.6 2.8-.4 7 1.2 9.3.8 1.1 1.7 2.4 2.9 2.4 1.2 0 1.6-.8 3-.8s1.8.8 3 .8c1.3 0 2-1.1 2.8-2.3.9-1.3 1.2-2.5 1.3-2.6 0 0-2.3-.9-2.3-3.7zM14 5.8c.6-.8 1.1-1.9 1-3-.9 0-2.1.6-2.7 1.4-.6.7-1.1 1.8-1 2.9 1 .1 2.1-.5 2.7-1.3z'/%3E%3C/svg%3E"); }
.platform--steam { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F5F7' stroke-width='2'%3E%3Ccircle cx='16' cy='8' r='3.2'/%3E%3Ccircle cx='8' cy='16' r='2.8'/%3E%3Cpath d='M10.2 13.8l3.6-3.4M3 15l3 1.5'/%3E%3C/svg%3E"); }

/* ---- About / services ---- */
.about { display: grid; gap: 28px; }
.about__text { max-width: 60ch; }
.about__text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } .about h2 { margin: 0; } }

.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 36px 0 56px; }
.service { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; overflow: hidden; }
.service::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service:hover::after { transform: scaleX(1); }
.service h2 { font-size: 1.2rem; margin: 18px 0 8px; }
.service p { margin: 0; font-size: .95rem; }
.service__icon { display: block; width: 44px; height: 44px; border-radius: 22.5%; background: var(--orange) center/24px no-repeat; }
.icon-gamepad { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E07' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='7' width='20' height='11' rx='5'/%3E%3Cpath d='M7 12h4M9 10v4M15 11h.01M17 13h.01'/%3E%3C/svg%3E"); }
.icon-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E07' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.icon-server { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E07' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='18' height='7' rx='2'/%3E%3Cpath d='M7 6.5h.01M7 17.5h.01'/%3E%3C/svg%3E"); }
.icon-chart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0E07' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }

.cta { text-align: center; padding: 44px 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-tile); }
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 48ch; margin: 0 auto 22px; }
.cta .stores { justify-content: center; margin-top: 0; }

/* ---- Product page ---- */
.phero { position: relative; padding: 40px 0 36px; overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(28px) saturate(120%); transform: scale(1.15); }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,13,15,.35), rgba(13,13,15,.85) 60%, var(--bg) 100%); }
.phero__inner { display: grid; gap: 22px; align-items: end; }
.phero__cover { width: 148px; border-radius: 22.5%; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
.phero__cover img { aspect-ratio: 1; object-fit: cover; }
.phero__kind { display: inline-block; color: var(--text-2); font-weight: 500; font-size: .95rem; margin: 0 0 8px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); }
.phero__pitch { font-size: 1.2rem; color: var(--text); max-width: 44ch; margin-bottom: 20px; }
.phero__soon { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.phero__soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@media (min-width: 720px) {
  .phero { padding: 64px 0 48px; }
  .phero__inner { grid-template-columns: 224px minmax(0, 1fr); gap: 40px; }
  .phero__cover { width: 224px; }
}

/* Store buttons — self-contained, no badge images needed */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 14px; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.1; transition: transform .2s var(--ease), background .2s; min-height: 54px; }
.store:hover { background: #fff; color: var(--bg); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .7rem; font-weight: 500; opacity: .75; }
.store strong { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 0; padding-top: 22px; padding-bottom: 22px; }
.facts__list dt { color: var(--text-3); font-size: .85rem; }
.facts__list dd { margin: 2px 0 0; color: var(--text); font-weight: 500; }
@media (min-width: 720px) { .facts__list { grid-template-columns: repeat(4, 1fr); } .facts__list > div + div { border-left: 1px solid var(--line); padding-left: 24px; } }

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Screenshot shelf: horizontal, scroll-snapped, user-driven (no autoplay) */
.shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 6px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-overflow-scrolling: touch; }
.shelf__item { flex: none; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.shelf__item img { height: 220px; width: auto; aspect-ratio: 16/9; object-fit: cover; }
.shelf__item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.shelf__item:focus-visible { outline-offset: 0; }
@media (min-width: 720px) { .shelf__item img { height: 300px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,6,8,.94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 12px; }
.lightbox button { position: absolute; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { border-color: var(--orange); color: var(--orange); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---- Rich text (markdown output) ---- */
.rich h2, .rich h3, .rich h4 { margin-top: 1.6em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li { margin-bottom: .3em; }
.rich p, .rich li { max-width: 68ch; }
.rich a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- Contact ---- */
.contact { display: grid; gap: 40px; }
.contact__email { display: inline-block; font-size: 1.3rem; font-weight: 700; text-decoration: none; margin-bottom: 20px; word-break: break-all; color: var(--text); }
.contact__email:hover { color: var(--orange); }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-size: .95rem; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--orange); color: var(--orange); }
.contact__form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 24px; }
@media (min-width: 840px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; } .contact__form { padding: 32px; } }

.field { margin-bottom: 18px; }
.field label { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); padding: 12px 14px; border-radius: 12px; font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(242,103,34,.25); }
.field [aria-invalid="true"] { border-color: #FF6B6B; }
.field--short input { max-width: 160px; }
.field--hp { position: absolute; left: -9999px; }
.error { color: #FF8A8A; font-size: .9rem; margin: 6px 0 0; }
.notice { padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--bg); }
.notice--ok { border-color: var(--orange); }
.notice strong { color: var(--text); }
.empty { color: var(--text-3); padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-card); }

/* ---- Event draw ---- */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 26px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.panel > p { margin-bottom: 20px; }
.panel--done { border-color: var(--orange); }
.captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.captcha img { border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); image-rendering: auto; }
.input--code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .06em; }
@media (min-width: 720px) { .panel { padding: 32px; } }

/* ---- Static page (privacy / terms) ---- */
.page-updated { color: var(--text-3); margin-bottom: 32px; }
.delete { scroll-margin-top: 88px; margin-top: 48px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-tile); }
.delete h2 { margin-bottom: 8px; }
.delete .notice { margin: 0 0 18px; }
.notice--err { border-color: #FF6B6B; }

/* ---- Modal dialog ---- */
.modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-tile); background: var(--bg-2); color: var(--text-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.modal::backdrop { background: rgba(6,6,8,.72); backdrop-filter: blur(6px); }
.modal__panel { position: relative; padding: 28px; }
.modal__panel h2 { font-size: 1.5rem; margin-bottom: 8px; padding-right: 40px; }
.modal__panel > p { margin-bottom: 20px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal__close:hover { border-color: var(--orange); color: var(--orange); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal__done p { margin-bottom: 20px; }
.codefield { display: flex; gap: 8px; }
.codefield input { flex: 1; min-width: 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .04em; }
.codefield .btn { flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 480px) { .modal__panel { padding: 22px; } .modal__actions { flex-direction: column-reverse; } .modal__actions .btn { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  .modal[open] { animation: modal-in .25s var(--ease); }
}

/* ---- 404 ---- */
.notfound { text-align: center; padding: 32px 0; }
.notfound__code { font-size: clamp(5rem, 22vw, 10rem); font-weight: 700; color: var(--orange); line-height: .95; letter-spacing: -0.06em; margin: 0 0 8px; }
.notfound .lead { margin: 0 auto 24px; }

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: .95rem; }
.site-foot__inner { display: grid; gap: 32px; }
.site-foot__brand p { margin: 14px 0 0; max-width: 32ch; }
.site-foot__col { display: flex; flex-direction: column; gap: 8px; }
.site-foot__col a { color: var(--text-2); text-decoration: none; }
.site-foot__col a:hover { color: var(--orange); }
.site-foot__h { font-size: 1rem; margin-bottom: 4px; }
.site-foot__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
@media (min-width: 720px) { .site-foot__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---- Motion (only for people who have not asked for less) ---- */
@media (prefers-reduced-motion: no-preference) {
  /* one orchestrated hero entrance on page load */
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero [data-rise] { opacity: 0; animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,103,34,.55); } 100% { box-shadow: 0 0 0 10px rgba(242,103,34,0); } }
  .hero__note .dot, .phero__soon .dot { animation: pulse 1.8s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .tile__icon, .tile:hover .tile__icon { transform: none; }
}
