/* ===================================================================
   THE LAST CHANCE — DayZ Server  ·  Tactical / Military theme
   =================================================================== */

:root {
  --bg:            #08070c;
  --bg-2:          #0c0a13;
  --surface:       #12101a;
  --surface-2:     #171320;
  --line:          rgba(139, 69, 232, .16);
  --line-strong:   rgba(139, 69, 232, .42);
  --line-white:    rgba(255, 255, 255, .07);

  --purple:        #8b45e8;
  --purple-bright: #a855f7;
  --purple-deep:   #6d28d9;
  --glow:          rgba(139, 69, 232, .55);

  --text:          #f2eefb;
  --muted:         #9a90ad;
  --silver:        #cfc9dc;

  --online:        #46d67a;
  --offline:       #ef4444;

  --maxw:          1180px;
  --shadow:        0 24px 70px rgba(0, 0, 0, .6);

  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Oswald", "Arial Narrow", sans-serif;
  --f-mono: "Share Tech Mono", "Courier New", monospace;

  --notch: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.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; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint tactical grid on the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,69,232,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,69,232,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 80%);
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--purple-bright); text-decoration: none; }
a:hover { color: #c79bff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }

/* ---------- Tactical eyebrow ---------- */
.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  color: var(--purple-bright);
  display: inline-flex; align-items: center; gap: 11px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--purple); box-shadow: 0 0 10px var(--glow); }
.eyebrow--center { justify-content: center; }

/* ---------- Section title ---------- */
.section__title {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: .015em;
  text-align: center;
  color: #fff;
  margin-bottom: 54px;
  position: relative;
  padding-bottom: 22px;
}
.section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 62px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 24px; cursor: pointer; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 8px 16px; font-size: .82rem; --notch: 7px; }
.btn--lg { padding: 17px 34px; font-size: 1.15rem; --notch: 12px; }

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 26px rgba(139, 69, 232, .4);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 12px 36px rgba(139, 69, 232, .6); }

.btn--discord { background: #5865F2; border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(88,101,242,.35); }
.btn--discord:hover { background: #4f5bda; color: #fff; box-shadow: 0 12px 34px rgba(88,101,242,.5); }

.btn--ghost { background: rgba(139,69,232,.06); border-color: var(--line-strong); color: var(--silver); }
.btn--ghost:hover { background: rgba(139,69,232,.16); color: #fff; }

.btn.copied { background: var(--online) !important; border-color: transparent !important; color: #06210f !important; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8,7,12,.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand__word { height: 26px; width: auto; filter: drop-shadow(0 0 10px rgba(139,69,232,.35)); }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); }
.lang-flag { background: transparent; border: 0; padding: 6px 9px; font-size: 1rem; line-height: 1; cursor: pointer; filter: grayscale(.7) opacity(.55); transition: filter .2s ease, background .2s ease; }
.lang-flag:hover { filter: none; }
.lang-flag.is-active { filter: none; background: rgba(139,69,232,.2); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; font-weight: 500; color: var(--silver); position: relative; padding: 4px 0;
}
.nav__links > a:not(.btn)::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--purple); transition: width .25s ease; }
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn):hover::before { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 116px 0 92px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("/assets/img/hero.jpg?v=4") center 32% / cover no-repeat;
  transform: scale(1.16); will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 62% at 50% 46%, rgba(6,5,10,.58) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8,7,12,.82) 0%, rgba(8,7,12,.6) 42%, rgba(8,7,12,.95) 90%, var(--bg) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(139,69,232,.22) 0%, transparent 55%);
}
.hero__glow { position: absolute; left: 50%; top: 6%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(139,69,232,.28) 0%, transparent 62%); pointer-events: none; filter: blur(12px); }
.hero__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.15) 3px, rgba(0,0,0,0) 4px);
}
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: clamp(280px, 46vw, 560px);
  filter: drop-shadow(0 14px 40px rgba(139,69,232,.5));
  animation: floaty 6s ease-in-out infinite;
  margin: 6px 0 4px;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero__sub { max-width: 600px; color: var(--silver); font-weight: 300; font-size: clamp(1rem, 2.2vw, 1.18rem); margin-bottom: 30px; }

/* marquee strip at hero bottom */
.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(8,7,12,.6);
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .18em;
  font-size: .74rem; color: var(--purple-bright); padding: 9px 0;
}
.hero__marquee span { display: inline-block; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Status HUD ---------- */
.status {
  width: 100%; max-width: 560px; text-align: left;
  background: linear-gradient(180deg, rgba(23,19,32,.9), rgba(14,11,22,.94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  padding: 22px; position: relative;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.status::before, .status::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--purple); opacity: .8;
}
.status::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.status::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.status__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.status__pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .84rem; font-weight: 600; color: var(--silver); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.dot.online { background: var(--online); animation: pulse 2s infinite; }
.dot.offline { background: var(--offline); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,214,122,.55);} 70% { box-shadow: 0 0 0 9px rgba(70,214,122,0);} 100% { box-shadow: 0 0 0 0 rgba(70,214,122,0);} }
.status__players { font-family: var(--f-mono); font-size: .95rem; color: var(--silver); }
.status__players strong { color: #fff; font-size: 1.35rem; }
.muted { color: var(--muted); }

.status__connect { display: flex; gap: 12px; align-items: stretch; }
.connect { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; background: var(--bg); border: 1px solid var(--line); padding: 10px 15px; }
.connect__label { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: var(--muted); }
.connect__ip { font-family: var(--f-mono); font-size: 1.16rem; font-weight: 400; color: #fff; letter-spacing: .02em; }
.status__connect .btn { flex-shrink: 0; }
.status__cta { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.status__cta .btn { flex: 1; justify-content: center; }

/* ---------- Facts (tactical data strip) ---------- */
.facts { background: var(--bg-2); border-block: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.wipe { background: var(--bg); border-bottom: 1px solid var(--line); }
.wipe__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); padding: 26px 24px; flex-wrap: wrap; text-align: center; }
.wipe__block { display: flex; flex-direction: column; gap: 6px; }
.wipe__label { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--purple-bright); }
.wipe__date { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; color: #fff; }
.wipe__sep { color: var(--purple); font-size: 1.5rem; opacity: .7; }
.wipe__block--count .wipe__timer { font-family: var(--f-mono); font-size: 1.55rem; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .wipe__sep { display: none; } }
.fact { padding: 30px 22px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact__label { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--purple-bright); }
.fact__value { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 1.85rem; color: #fff; line-height: 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: 36px 26px 28px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.step:hover { border-color: var(--line-strong); }
.step__num { font-family: var(--f-head); font-weight: 700; font-size: 2.4rem; color: transparent; -webkit-text-stroke: 1.5px var(--purple); line-height: 1; display: block; margin-bottom: 8px; }
.step h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.28rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-weight: 300; font-size: .98rem; }
.connect--inline { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; cursor: pointer; width: 100%; flex-direction: row; padding: 11px 15px; }
.connect--inline code { font-family: var(--f-mono); color: #fff; font-size: 1.02rem; }
.connect__hint { margin-left: auto; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--purple-bright); }

/* ---------- Gallery / Ops ---------- */
.gallery { background: var(--bg); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.shot::before, .shot::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--purple-bright); z-index: 2; opacity: .85; pointer-events: none; }
.shot::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.shot::after { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; transition: transform .5s ease; }
.shot--wide { grid-column: 1 / -1; }
.shot--wide img { aspect-ratio: 40 / 13; will-change: transform; transition: none; }
.shot:hover img:not([data-zoom]) { transform: scale(1.06); }

/* ---------- Highlights / Intel ---------- */
.highlights { background: var(--bg-2); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); padding: 30px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card__tag { font-family: var(--f-mono); font-size: .8rem; color: var(--purple-bright); letter-spacing: .1em; display: block; margin-bottom: 12px; }
.card h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-weight: 300; font-size: .95rem; }

/* ---------- Discord CTA ---------- */
.discord-cta { position: relative; padding: 104px 0; overflow: hidden; text-align: center; }
.discord-cta__bg { position: absolute; inset: 0; background: url("/assets/img/band-raid.jpg?v=4") center / cover no-repeat; transform: scale(1.14); will-change: transform; }
.discord-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,12,.9), rgba(8,7,12,.84)), radial-gradient(80% 100% at 50% 50%, rgba(88,101,242,.2), transparent 70%); pointer-events: none; }
.discord-cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.discord-cta h2 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .02em; margin-bottom: 12px; }
.discord-cta h2 span { color: var(--purple-bright); }
.discord-cta p { color: var(--muted); font-weight: 300; max-width: 520px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 46px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { height: 24px; width: auto; filter: drop-shadow(0 0 8px var(--glow)); }
.footer__brand span { color: var(--muted); font-family: var(--f-mono); font-size: .82rem; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--silver); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { width: 100%; color: var(--muted); font-family: var(--f-mono); font-size: .74rem; opacity: .7; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%); z-index: 100;
  background: var(--online); color: #06210f; font-family: var(--f-head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .facts__grid .fact:nth-child(1), .facts__grid .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .shot--wide img { aspect-ratio: 16 / 9; }
  .nav__links > a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .status { padding: 18px; }
  .status__connect { flex-direction: column; }
  .status__connect .btn { justify-content: center; }
  .gallery__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg, .discord-cta__bg { transform: none !important; }
}

/* ===================================================================
   RULES PAGE
   =================================================================== */
.nav--solid { background: rgba(8,7,12,.9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::before { width: 100%; }

.rules-page { padding-top: 72px; }
.rules-hero { padding: 56px 0 32px; position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(120% 100% at 50% -20%, rgba(139,69,232,.14), transparent 60%); }
.rules-hero__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; margin: 14px 0 10px; color: #fff; }
.rules-hero__sub { color: var(--muted); font-weight: 300; max-width: 640px; }

.rules-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); }
.lang-btn { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600; color: var(--silver); background: transparent; border: 0; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s; }
.lang-btn.is-active { background: var(--purple); color: #fff; }
.rules-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 360px; border: 1px solid var(--line-strong); background: var(--bg-2); padding: 0 14px; color: var(--muted); }
.rules-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--f-body); font-size: 1rem; padding: 11px 0; }
.rules-search input::placeholder { color: var(--muted); }
.rules-count { font-family: var(--f-mono); font-size: .82rem; color: var(--purple-bright); letter-spacing: .08em; margin-left: auto; }

.rules-nav { position: sticky; top: 71px; z-index: 40; background: rgba(8,7,12,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rules-nav__inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px; }
@media (max-width: 620px) {
  .rules-nav__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rules-nav__inner::-webkit-scrollbar { display: none; }
}
.rules-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; font-weight: 500; color: var(--silver); border: 1px solid var(--line); padding: 7px 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.rules-chip__idx { font-family: var(--f-mono); font-size: .7rem; color: var(--purple-bright); }
.rules-chip:hover { color: #fff; border-color: var(--line-strong); }
.rules-chip.is-active { color: #fff; border-color: var(--purple); background: rgba(139,69,232,.14); }

.rules-main { padding: 40px 0 90px; }
.rules-cat { padding-top: 30px; scroll-margin-top: 140px; }
.rules-cat__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rules-cat__idx { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--purple); line-height: 1; }
.rules-cat__head h2 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; letter-spacing: .01em; }
.rules-cat__count { margin-left: auto; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rule { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--purple); padding: 18px 20px 18px 22px; transition: border-color .18s, background .18s; }
.rule:hover { border-color: var(--line-strong); border-left-color: var(--purple-bright); background: var(--surface-2); }
.rule__n { font-family: var(--f-mono); font-size: .82rem; color: var(--purple-bright); letter-spacing: .04em; }
.rule__t { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: 1.06rem; margin: 4px 0 8px; color: #fff; }
.rule__d { color: var(--muted); font-weight: 300; font-size: .95rem; line-height: 1.55; }

.rules-empty { text-align: center; color: var(--muted); font-family: var(--f-mono); padding: 80px 0; }

@media (max-width: 560px) { .rules-count { margin-left: 0; width: 100%; } .rules-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   SHOP PAGE
   =================================================================== */
.shop-hero { position: relative; padding: 78px 0 46px; overflow: hidden; border-bottom: 1px solid var(--line); }
.shop-hero__bg { position: absolute; inset: 0; background: url("/assets/img/hero.jpg?v=4") center 30% / cover no-repeat; }
.shop-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,12,.86), rgba(8,7,12,.93)), radial-gradient(100% 100% at 50% 0, rgba(139,69,232,.22), transparent 60%); }
.shop-hero__inner { position: relative; z-index: 2; }
.shop-hero__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; margin: 14px 0 12px; color: #fff; }
.shop-hero__sub { color: var(--silver); font-weight: 300; max-width: 660px; font-size: 1.08rem; }
.shop-hero__sub strong { color: #fff; font-weight: 600; }
.shop-notice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.shop-notice span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; color: var(--silver); border: 1px solid var(--line-strong); padding: 8px 14px; background: rgba(139,69,232,.06); }

.shop-products { background: var(--bg-2); border-top: 1px solid var(--line); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; align-items: stretch; }
.product { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 32px 26px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.product.is-popular { border-color: var(--purple); box-shadow: 0 20px 50px rgba(139,69,232,.18); }
.product__badge { position: absolute; top: 14px; right: 0; background: var(--purple); color: #fff; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 600; padding: 5px 12px; }
.product__icon { font-size: 2.3rem; line-height: 1; }
.product__name { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; margin: 12px 0 6px; color: #fff; }
.product__price { font-family: var(--f-head); font-weight: 700; font-size: 2.6rem; color: #fff; line-height: 1; margin-bottom: 18px; }
.product__price small { display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--muted); letter-spacing: .08em; margin-top: 6px; text-transform: uppercase; }
.product__price--alt, .product__price--soon { font-size: 2rem; color: var(--purple-bright); }
.product__price--soon { color: var(--muted); }
.product__desc { color: var(--muted); font-weight: 300; font-size: .92rem; margin: 0 0 16px; line-height: 1.5; }
.product__perks { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.product__perks li { position: relative; padding-left: 22px; color: var(--silver); font-weight: 300; font-size: .95rem; }
.product__perks li::before { content: "▸"; position: absolute; left: 0; color: var(--purple-bright); }
.product__btn { margin-top: auto; justify-content: center; }

.shop-custom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; border: 1px dashed var(--line-strong); padding: 22px 26px; background: var(--surface); }
.shop-custom h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 4px; }
.shop-custom p { color: var(--muted); font-weight: 300; font-size: .95rem; }

.shop-agreement { background: var(--bg); border-top: 1px solid var(--line); }
.agreement__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.agreement__box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--purple); padding: 26px 28px; }
.agreement__warning { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); color: #ffd7d7; padding: 14px 18px; margin-bottom: 18px; font-weight: 500; }
.agreement__box p { color: var(--muted); font-weight: 300; margin-bottom: 12px; line-height: 1.6; }
.agreement__box p:last-child { margin-bottom: 0; }

@media (max-width: 860px) { .shop-grid { grid-template-columns: 1fr; } }

.product__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.product__actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Product detail modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,3,8,.82); backdrop-filter: blur(4px); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); padding: 30px; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 1rem; font-family: var(--f-body); }
.modal__close:hover { color: #fff; border-color: var(--line-strong); }
.modal__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; padding-right: 44px; }
.modal__icon { font-size: 2rem; line-height: 1; }
.modal__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; color: #fff; }
.modal__lang { margin-left: auto; }
.modal__price { font-family: var(--f-head); font-weight: 700; color: var(--purple-bright); font-size: 1.3rem; margin: 8px 0 16px; }
.modal__body h4 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: .98rem; color: #fff; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.modal__body h4::before { content: "//"; color: var(--purple-bright); font-family: var(--f-mono); }
.modal__body p { color: var(--muted); font-weight: 300; margin-bottom: 10px; line-height: 1.6; }
.modal__body ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.modal__body li { position: relative; padding-left: 22px; color: var(--silver); font-weight: 300; }
.modal__body li::before { content: "▸"; position: absolute; left: 0; color: var(--purple-bright); }
.modal__note { background: rgba(139,69,232,.1); border: 1px solid var(--line-strong); padding: 12px 16px; color: var(--silver); margin-top: 16px; font-size: .92rem; line-height: 1.55; }
.modal__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.modal__cta .btn { flex: 1 1 auto; justify-content: center; }

/* ===================================================================
   CINEMATIC FX
   =================================================================== */
/* film grain + vignette + scroll progress */
.fx-grain {
  position: fixed; inset: -60%; z-index: 80; pointer-events: none; opacity: .05; 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; animation: grain 1.1s steps(4) infinite; will-change: transform;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-3%)} 75%{transform:translate(-3%,-2%)} 100%{transform:translate(3%,2%)} }
.fx-vignette { position: fixed; inset: 0; z-index: 78; pointer-events: none; background: radial-gradient(135% 130% at 50% 44%, transparent 56%, rgba(0,0,0,.5) 100%); mix-blend-mode: multiply; }
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998; background: linear-gradient(90deg, var(--purple), var(--purple-bright)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; box-shadow: 0 0 12px var(--glow); }

/* reveals */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
/* split text */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split .word__i { display: inline-block; transform: translateY(115%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.split.in .word__i { transform: none; }

/* custom cursor */
.has-fx-cursor, .has-fx-cursor * { cursor: none !important; }
.fx-cursor, .fx-cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-on .fx-cursor, .cursor-on .fx-cursor-ring { opacity: 1; }
.fx-cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--purple-bright); transition: opacity .3s; box-shadow: 0 0 8px var(--glow); }
.fx-cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(168,85,247,.6); transition: width .25s, height .25s, margin .25s, background .25s, opacity .3s; }
.fx-cursor-ring.is-hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(139,69,232,.1); border-color: rgba(168,85,247,.9); }

/* hero intro (CSS on load) + scroll cue */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
.hero__logo { animation: logoIn 1.1s ease both, floaty 6s ease-in-out 1.1s infinite; }
.hero .eyebrow { animation: fadeUp .8s ease .15s both; }
.hero__sub { animation: fadeUp .8s ease .32s both; }
.hero .status { animation: fadeUp .9s ease .48s both; }
.hero__scroll { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .2em; font-size: .64rem; text-decoration: none; animation: fadeUp 1s ease .8s both; }
.hero__scroll:hover { color: var(--silver); }
.hero__scroll-bar { width: 1px; height: 44px; background: linear-gradient(var(--purple-bright), transparent); position: relative; overflow: hidden; }
.hero__scroll-bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--purple-bright); animation: scrollDrop 1.9s ease-in-out infinite; }
@keyframes scrollDrop { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(320%); } }

/* ---------- pinned horizontal swipe gallery ---------- */
.hscroll { position: relative; background: var(--bg); }
.hscroll__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hscroll__track { display: flex; align-items: center; gap: 2.4vw; padding: 0 6vw; will-change: transform; }
.hpanel { flex: 0 0 auto; }
.hpanel--shot { position: relative; width: min(64vw, 900px); height: 72vh; overflow: hidden; border: 1px solid var(--line); }
.hpanel--shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hpanel--shot figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 26px; width: 100%; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; color: #fff; background: linear-gradient(0deg, rgba(8,7,12,.9), transparent); }
.hpanel--shot figcaption b { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .78rem; color: var(--purple-bright); letter-spacing: .12em; margin-bottom: 4px; }
.hpanel--intro, .hpanel--outro { width: min(72vw, 560px); display: flex; flex-direction: column; justify-content: center; padding: 0 1vw; }
.hpanel .hpanel__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .92; color: #fff; margin: 6px 0 16px; }
.hpanel--outro .hpanel__title span { color: var(--purple-bright); }
.hpanel__hint { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--purple-bright); }
.hpanel__hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.hpanel--outro .btn { align-self: flex-start; }
/* native (touch / reduced-motion) fallback = swipeable snap strip */
.hscroll--native { height: auto !important; }
.hscroll--native .hscroll__pin { position: static; height: auto; padding: 66px 0; }
.hscroll--native .hscroll__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 18px; scrollbar-width: none; }
.hscroll--native .hscroll__track::-webkit-scrollbar { display: none; }
.hscroll--native .hpanel { scroll-snap-align: center; }
.hscroll--native .hpanel--shot { width: 86vw; height: 58vh; }
.hscroll--native .hpanel--intro, .hscroll--native .hpanel--outro { width: 82vw; }

@media (prefers-reduced-motion: reduce) {
  .fx-grain, .hero__scroll-bar::after, .hpanel__hint span { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .split .word__i { transform: none !important; }
  .hero__logo, .hero .eyebrow, .hero__sub, .hero .status, .hero__scroll { animation: none !important; }
}
