/* ============================================================
   لمسة — NFC couple cards · design system (dark, neo-brutalist)
   bg #12101A · one bright accent · the cards are the only colour
   ============================================================ */
:root {
  --bg: #12101A;
  --surface: #1C1927;
  --surface-2: #272334;
  --ink: #0B0A10;
  --paper: #FDEDE0;
  --muted: rgba(253, 237, 224, 0.62);
  --accent: #D6FF3B;
  --accent-ink: #0B0A10;
  --pink: #FF5CA8;
  --danger: #FF6B6B;
  --ok: #7CF2B0;
  --line: #34304A;
  --r: 28px;
  --r-sm: 16px;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-paper: 5px 5px 0 var(--paper);
  --text: var(--paper);
  --shadow-c: var(--paper);      /* offset shadow on buttons/chips (light on dark bg) */
  --kicker: var(--accent);
  --header-bg: rgba(18, 16, 26, .85);
  --font: "Baloo Bhaijaan 2", "Fredoka", "Poppins", system-ui, sans-serif;
  color-scheme: dark;
}
/* ---------- light mode (cream) ---------- */
:root[data-theme="light"] {
  --bg: #FDEDE0;
  --surface: #FFF7EE;
  --surface-2: #F6E3D2;
  --text: #0B0A10;
  --muted: rgba(11, 10, 16, .62);
  --line: #E8D5C3;
  --shadow-c: var(--ink);
  --kicker: #D6006B;
  --header-bg: rgba(253, 237, 224, .88);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4 { margin: 0 0 .3em; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 9vw, 112px); }
h2 { font-size: clamp(36px, 7vw, 88px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; text-align: left; }
pre { background: var(--ink); border-radius: var(--r-sm); padding: 14px 18px; overflow-x: auto; color: var(--accent); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 120px) 0; position: relative; }
.section--tight { padding: 40px 0; }
.section-title { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-title .kicker { color: var(--kicker); font-weight: 800; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 26px; display: inline-flex; align-items: center; gap: 8px; }
.logo__mark { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: var(--border); border-radius: 999px;
  padding: 14px 28px; font-weight: 800; font-size: 18px; line-height: 1;
  box-shadow: 5px 5px 0 var(--shadow-c); cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, box-shadow .08s ease;
  user-select: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow-c); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow-c); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--sm { padding: 10px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--shadow-c); }
.btn--lg { padding: 20px 40px; font-size: 22px; }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: var(--surface); --btn-fg: var(--text); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: var(--ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- panels / cards ---------- */
.panel { background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
.panel--paper { background: var(--paper); color: var(--ink); }
.panel--accent { background: var(--accent); color: var(--ink); }
.panel--warn { background: #3a2a10; border-color: var(--ink); }
.panel--sm { padding: 18px; border-radius: var(--r-sm); }
.panel + .panel { margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface-2); font-size: 14px; font-weight: 700; }
.pill--accent { background: var(--accent); color: var(--ink); }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--danger { background: var(--danger); color: var(--ink); }
.pill--ok { background: var(--ok); color: var(--ink); }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; transform: rotate(-4deg); direction: ltr; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > label { font-weight: 800; font-size: 16px; }
.field > label .req { color: var(--danger); margin-inline-start: 4px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg); color: var(--text);
  border: var(--border); border-radius: var(--r-sm); padding: 12px 16px; font-size: 17px; outline: none;
}
.input:focus { box-shadow: 0 0 0 3px var(--accent); }
.input--code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; text-align: center; font-size: 26px; direction: ltr; text-transform: uppercase; }
textarea.input { min-height: 96px; resize: vertical; }
.help { font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-weight: 700; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* colour swatches */
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: var(--border); cursor: pointer;
  background: var(--c); box-shadow: 3px 3px 0 var(--ink); transition: transform .1s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-on { outline: 4px solid var(--text); outline-offset: 2px; }

/* file drop */
.filebox { display: flex; align-items: center; gap: 14px; }
.filebox__thumb { width: 64px; height: 64px; border-radius: 50%; border: var(--border); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; flex: none; }
.filebox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.filebox input[type=file] { display: none; }

/* radio-ish chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: var(--border); border-radius: 999px; padding: 8px 16px; background: var(--surface-2); cursor: pointer; font-weight: 700; }
.chip.is-on { background: var(--accent); color: var(--ink); box-shadow: 3px 3px 0 var(--shadow-c); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 100px) 0 40px; position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--kicker); }
.hero__lead { font-size: clamp(18px, 2.2vw, 24px); max-width: 560px; color: var(--muted); }

/* streak widget — the hero */
.streak-hero { position: relative; }
.streak-hero .panel { text-align: center; padding: 34px 28px; transform: rotate(2deg); }
.streak-hero .counter { font-size: clamp(90px, 14vw, 170px); font-weight: 800; line-height: .9; color: var(--ink); letter-spacing: -.04em; }
.streak-hero .counter small { font-size: .28em; display: block; letter-spacing: 0; }
.avatars { display: flex; justify-content: center; gap: -10px; margin: 18px 0 8px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; border: var(--border); background: var(--paper); display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar + .avatar { margin-inline-start: -14px; }
.avatar.is-done::after { content: '✓'; position: absolute; }
.streak-hero .flame { position: absolute; top: -34px; inset-inline-end: -14px; font-size: 64px; transform: rotate(12deg); filter: drop-shadow(3px 3px 0 var(--ink)); }
.streak-hero .mascot { position: absolute; bottom: -30px; inset-inline-start: -30px; transform: rotate(-10deg); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--ink); border-block: 3px solid var(--ink); padding: 10px 0; font-weight: 800; font-size: 20px; }
.marquee__track { display: inline-flex; gap: 22px; white-space: nowrap; animation: marquee 28s linear infinite; direction: ltr; }
.marquee__track i { font-style: normal; color: var(--pink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- wave ---------- */
.wave { display: block; width: 100%; height: 60px; }
.wave--flip { transform: scaleY(-1); }

/* ---------- product grid ---------- */
.products { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product { position: relative; background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .12s; }
.product:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.product__art { position: relative; height: 210px; display: grid; place-items: center; }
.product__art .cardmock { position: absolute; }
.product__art .cardmock:nth-child(1) { transform: rotate(-8deg) translate(-26px, -6px); }
.product__art .cardmock:nth-child(2) { transform: rotate(7deg) translate(30px, 14px); }
.product__name { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.price { display: flex; align-items: baseline; gap: 12px; font-weight: 800; font-size: 26px; }
.price .cur { font-size: 15px; color: var(--muted); }
.strike { position: relative; display: inline-block; color: var(--muted); font-size: .75em; font-weight: 700; }
.strike svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.product__dots { display: flex; gap: 6px; }
.product__dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); }

/* ---------- card mock ---------- */
.cardmock {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 1.586;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden; direction: rtl; flex: none;
}
.cardmock--sm { --w: 190px; border-radius: 12px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.cardmock--lg { --w: 420px; }
.cardmock__pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.cardmock__front, .cardmock__back { position: absolute; inset: 0; padding: 7% 6%; display: flex; align-items: center; gap: 6%; }
.cardmock__photo { width: 34%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.55); overflow: hidden; display: grid; place-items: center; flex: none; box-shadow: 3px 3px 0 var(--ink); }
.cardmock--sm .cardmock__photo { border-width: 2px; }
.cardmock__photo img { width: 100%; height: 100%; object-fit: cover; }
.cardmock__photo-ph { font-size: calc(var(--w) * .1); font-weight: 800; color: var(--cink); }
.cardmock__name { font-size: calc(var(--w) * .095); font-weight: 800; line-height: 1; color: var(--cink); text-shadow: 2px 2px 0 rgba(255,255,255,.5); word-break: break-word; }
.cardmock.is-dark .cardmock__name { text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.cardmock__heart { position: absolute; bottom: 6%; inset-inline-start: 7%; font-size: calc(var(--w) * .08); color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); }
.cardmock__back { justify-content: space-between; }
.cardmock__qr { width: 30%; aspect-ratio: 1; background: #fff; border: 3px solid var(--ink); border-radius: 10px; display: grid; place-items: center; overflow: hidden; padding: 4%; }
.cardmock__qr img, .cardmock__qr canvas { width: 100% !important; height: 100% !important; }
.cardmock__qr--fallback { font-weight: 800; color: var(--ink); background: repeating-linear-gradient(45deg, #fff 0 6px, #ddd 6px 12px); }
.cardmock__nfc { width: 16%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255,255,255,.55); display: grid; place-items: center; }
.cardmock__brand { position: absolute; bottom: 6%; inset-inline-start: 7%; font-weight: 800; font-size: calc(var(--w) * .045); color: var(--cink); letter-spacing: .05em; }
.cardmock--sm .cardmock__nfc svg { width: 14px; height: 14px; }

/* ---------- configurator ---------- */
.config { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 900px) { .config { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 40px 20px; background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.preview .cardmock { --w: min(380px, 80vw); }
.preview__stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preview__toggle { display: flex; gap: 8px; }
.preview__label { font-weight: 800; color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.side-toggle .chip { padding: 6px 14px; font-size: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; inset-inline-start: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); border: var(--border); display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-top: 6px; }

/* ---------- streak feature (home) ---------- */
.rule-list { display: grid; gap: 14px; }
.rule { display: flex; gap: 14px; align-items: flex-start; }
.rule i { font-style: normal; font-size: 24px; flex: none; }

/* ---------- pair page ---------- */
.pair-hero { display: grid; gap: 30px; grid-template-columns: 1fr; text-align: center; }
.pair-people { display: flex; justify-content: center; gap: 24px; align-items: center; flex-wrap: wrap; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.person .avatar { width: 110px; height: 110px; font-size: 44px; position: relative; }
.person__name { font-weight: 800; font-size: 22px; }
.person__state { font-size: 13px; }
.person.is-me .avatar { outline: 4px solid var(--accent); outline-offset: 3px; }
.plus { font-size: 44px; font-weight: 800; color: var(--accent); }
.big-streak { font-size: clamp(100px, 22vw, 200px); font-weight: 800; line-height: .85; letter-spacing: -.04em; color: var(--accent); text-shadow: 6px 6px 0 var(--ink); }
.big-streak small { display: block; font-size: .2em; color: var(--text); letter-spacing: 0; text-shadow: none; margin-top: 8px; }
.streak-status { font-weight: 800; font-size: 20px; margin-top: 6px; }
.feed { display: grid; gap: 18px; max-width: 640px; margin-inline: auto; }
.post { position: relative; background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.post--mine { background: var(--surface-2); }
.post__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.post__body { font-size: 19px; white-space: pre-wrap; }
.post__img { border-radius: var(--r-sm); border: var(--border); margin-top: 8px; max-height: 420px; object-fit: cover; width: 100%; }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 50%; width: 4px; background: var(--line); border-radius: 4px; }
.timeline .post { width: calc(50% - 26px); }
.timeline .post--boy { margin-inline-start: auto; }
.timeline .post--girl { margin-inline-end: auto; }
@media (max-width: 640px) { .timeline::before { display: none; } .timeline .post { width: 100%; } }

/* ---------- card entry (c.html) ---------- */
.gate { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 0; }
.gate .panel { width: min(460px, 100%); text-align: center; }
.gate .emoji { font-size: 64px; line-height: 1; margin-bottom: 8px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: var(--border); background: var(--bg); }
.pin-dots i.is-on { background: var(--accent); }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding: 30px 0; }
.admin > main { min-width: 0; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 90px; }
@media (max-width: 900px) { .tabs { flex-direction: row; flex-wrap: wrap; position: static; } }
.tab { text-align: start; border: var(--border); border-radius: var(--r-sm); background: var(--surface); padding: 12px 16px; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.tab.is-on { background: var(--accent); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow-c); }
.tab small { display: block; font-weight: 600; color: inherit; opacity: .7; font-size: 12px; }
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 2px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { background: var(--surface-2); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.status { font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); font-size: 13px; display: inline-block; }
.status--blank { background: var(--surface-2); }
.status--programmed { background: #7BDFF2; color: var(--ink); }
.status--assigned { background: #FFD93D; color: var(--ink); }
.status--claimed { background: var(--ok); color: var(--ink); }
.status--revoked { background: var(--danger); color: var(--ink); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stat { background: var(--surface-2); border: var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 30px; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); }
.progress { height: 14px; border: var(--border); border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .1s; }
select.input--inline { width: auto; padding: 6px 10px; font-size: 14px; border-width: 2px; border-radius: 10px; }
.input--inline { padding: 6px 10px; font-size: 14px; border-width: 2px; border-radius: 10px; }

/* print sheet */
.print-sheet { background: var(--paper); color: var(--ink); border: var(--border); border-radius: var(--r); padding: 28px; }
.print-sheet .grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .print-sheet .grid { grid-template-columns: 1fr; } }
.print-card { border: 3px dashed var(--ink); border-radius: var(--r-sm); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.print-card .code { font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 800; letter-spacing: .15em; direction: ltr; background: var(--ink); color: var(--accent); border-radius: 12px; padding: 6px 14px; }
.print-card .url { font-size: 12px; direction: ltr; word-break: break-all; color: #444; }
.qr-box { width: 130px; height: 130px; background: #fff; border: var(--border); border-radius: 10px; display: grid; place-items: center; padding: 6px; }
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { width: min(760px, 100%); max-height: 90vh; overflow: auto; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(50%, 20px); opacity: 0; background: var(--paper); color: var(--ink); border: var(--border); border-radius: 999px; padding: 12px 22px; font-weight: 800; box-shadow: var(--shadow); z-index: 200; transition: .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(50%, 0); }
.toast--error { background: var(--danger); }
.toast--ok { background: var(--accent); }

/* ---------- promo / ad banner ---------- */
.promo { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; background: var(--accent); color: var(--ink); border: var(--border); border-radius: var(--r); box-shadow: 8px 8px 0 var(--shadow-c); padding: 26px 30px; }
.promo h3 { margin: 0 0 4px; }
.promo .muted { color: rgba(11,10,16,.65); margin: 0; }
.promo__badge { background: var(--ink); color: var(--accent); border-radius: 999px; padding: 8px 16px; font-weight: 800; transform: rotate(-6deg); white-space: nowrap; }
.promo__timer { display: flex; gap: 4px; font-size: 32px; font-weight: 800; direction: ltr; font-variant-numeric: tabular-nums; }
.promo__timer b { background: var(--ink); color: #FDEDE0; border-radius: 10px; padding: 2px 10px; }
@media (max-width: 900px) { .promo { grid-template-columns: 1fr; text-align: center; } .promo__badge { justify-self: center; } .promo__timer { justify-content: center; } }

/* ---------- close-up ---------- */
.closeup { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.closeup__item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closeup__item:first-child .cardmock { transform: rotate(-4deg); }
.closeup__item:last-child .cardmock { transform: rotate(3deg); --w: 420px; }
@media (max-width: 520px) { .closeup .cardmock { --w: 82vw; } }
.callouts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.callout { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: var(--border); border-radius: var(--r-sm); background: var(--surface); box-shadow: 4px 4px 0 var(--ink); }
.callout i { font-style: normal; font-size: 28px; }

/* ---------- features ---------- */
.features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { padding: 26px; background: var(--bg); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; background: var(--accent); border: var(--border); border-radius: 50%; margin-bottom: 14px; box-shadow: 3px 3px 0 var(--ink); }
.feature h3 { font-size: 24px; }
.feature p { margin: 0; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review { margin: 0; background: var(--paper); color: var(--ink); border: var(--border); border-radius: var(--r); box-shadow: 6px 6px 0 var(--accent); padding: 26px; transform: rotate(var(--rot, 0)); }
.review blockquote { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.review figcaption { font-weight: 700; color: #444; display: flex; justify-content: space-between; gap: 10px; }
.stars { color: var(--pink); letter-spacing: 2px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border: var(--border); border-radius: var(--r-sm); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- cta ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--surface); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 40px; }

/* ---------- theme toggle ---------- */
.lang-btn { font-size: 14px; font-weight: 800; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: var(--border); background: var(--surface); box-shadow: 3px 3px 0 var(--shadow-c); cursor: pointer; font-size: 18px; display: grid; place-items: center; }

/* ---------- profile tabs / media / memories ---------- */
.ptabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0 30px; }
.ptabs .chip { font-size: 16px; }
.media { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 900px; margin-inline: auto; align-items: start; }
.media__box { border: var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.media__box iframe { display: block; width: 100%; border: 0; }
.media__box .yt { aspect-ratio: 16/9; }
.media__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.media__qr { width: 84px; height: 84px; background: #fff; border: var(--border); border-radius: 10px; padding: 4px; flex: none; }
.media__qr img, .media__qr canvas { width: 100% !important; height: 100% !important; }
.memories { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.memory { position: relative; border: var(--border); border-radius: var(--r-sm); overflow: hidden; box-shadow: 4px 4px 0 var(--ink); background: var(--surface); aspect-ratio: 1; }
.memory img { width: 100%; height: 100%; object-fit: cover; }
.memory__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 8px 10px; background: rgba(11,10,16,.75); color: #FDEDE0; font-size: 13px; font-weight: 700; }
.memory__date { font-weight: 500; opacity: .7; }
.memory--text { display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 700; aspect-ratio: auto; min-height: 120px; }

/* ---------- games ---------- */
.games { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.game-card { cursor: pointer; }
.game-card .emoji { font-size: 48px; }
.xo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(340px, 100%); margin-inline: auto; }
.xo button { aspect-ratio: 1; font-size: 48px; font-weight: 800; border: var(--border); border-radius: var(--r-sm); background: var(--bg); color: var(--text); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.xo button:disabled { cursor: default; }
.xo button.win { background: var(--accent); color: var(--ink); }
.xo .x { color: var(--pink); } .xo .o { color: #7BDFF2; }
.scoreboard { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(400px, 100%); margin-inline: auto; }
.mem button { aspect-ratio: 1; border: var(--border); border-radius: var(--r-sm); background: var(--accent); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font-size: 34px; overflow: hidden; padding: 0; transition: transform .15s; }
.mem button.is-open { background: var(--paper); }
.mem button.is-done { background: var(--ok); opacity: .7; }
.mem button img { width: 100%; height: 100%; object-fit: cover; }
.quiz-q { margin-bottom: 14px; }
.quiz-q .opts { display: grid; gap: 8px; margin-top: 8px; }
.quiz-q .opts button { text-align: start; border: var(--border); border-radius: var(--r-sm); padding: 10px 14px; background: var(--bg); color: var(--text); cursor: pointer; font-weight: 700; }
.quiz-q .opts button.ok { background: var(--ok); color: var(--ink); }
.quiz-q .opts button.bad { background: var(--danger); color: var(--ink); }
.quiz-q .opts button:disabled { cursor: default; }

/* ---------- footer ---------- */
.footer { border-top: 3px solid var(--ink); padding: 40px 0; margin-top: 60px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 18px; font-weight: 700; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt { margin-top: 20px; } .mt-lg { margin-top: 40px; }
.mb { margin-bottom: 20px; }
.gap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

@media print {
  body { background: #fff; color: #000; }
  .header, .footer, .tabs, .no-print, #toast { display: none !important; }
  .admin { display: block; }
  .print-sheet { border: 0; box-shadow: none; }
}
