/* ارمعها — brand layer (brand/IDENTITY-SPEC.txt). Loaded after style.css and brand/css/tokens.css.
   Colours, fonts, radii and shadows come from tokens.css only. */

/* ===== Header: one row, ≤56px, logo right; balance, avatar and menu left ===== */
#site-header { position: sticky; top: 0; z-index: 60; }
.eh {
  height: var(--header-h);
  background: var(--header-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0 var(--space-2);
  padding-inline: max(var(--space-2), env(safe-area-inset-right)) max(var(--space-2), env(safe-area-inset-left));
}
.eh-logo, .ef .eh-logo { display: flex; align-items: center; height: var(--logo-h); flex: 0 0 auto; transition: transform var(--duration) var(--ease); }
.eh-logo img { height: var(--logo-h); width: auto; display: block; }
.eh .logo-on-dark { display: none; }
.eh-actions { display: flex; align-items: center; gap: var(--space-1); }
.eh-balance {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sun); color: #2A1155;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-min); line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-pill); white-space: nowrap; text-decoration: none;
}
.eh-dot { width: 8px; height: 8px; border-radius: 50%; background: #2A1155; }
.eh-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  background: var(--violet); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 32px; text-align: center;
  display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.eh-avatar-lg { width: 48px; height: 48px; font-size: 20px; }
.eh-login {
  font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--violet);
  background: var(--surface); border: 1px solid var(--violet-soft); border-radius: var(--radius-pill);
  padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none;
}
.eh-burger {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; padding: 8px; cursor: pointer;
}
.eh-burger span, .eh-burger span::before, .eh-burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
}
.eh-burger span::before, .eh-burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.eh-burger span::before { top: -6px; }
.eh-burger span::after { top: 6px; }

/* Menu drawer (slides in from the left in RTL) */
.eh-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(23, 16, 43, .4);
  opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease);
}
.eh-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 80;
  width: min(320px, 86vw); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); padding: var(--space-3) var(--space-2) var(--space-4);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateX(-104%); opacity: 0; visibility: hidden;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease), visibility 0s linear 200ms;
  border-start-end-radius: 0; border-radius: var(--radius-panel) 0 0 var(--radius-panel);
}
[dir="rtl"] .eh-drawer { border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
body.eh-open .eh-drawer { transform: none; opacity: 1; visibility: visible; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
body.eh-open .eh-backdrop { opacity: 1; pointer-events: auto; }
.eh-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--violet-soft);
  background: var(--surface); color: var(--violet); font-size: 24px; line-height: 1; cursor: pointer; margin-bottom: var(--space-1);
}
.eh-user { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; }
.eh-user strong { display: block; font-family: var(--font-body); font-weight: 700; font-size: 16px; word-break: break-all; }
.eh-user span { display: block; font-size: var(--text-min); opacity: .8; }
.eh-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: var(--space-1) 0;
  min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--violet-soft); color: var(--violet);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.eh-buy .plus { font-size: 18px; line-height: 1; }
.eh-guest { display: grid; gap: 4px; }
.eh-sep { height: 1px; background: var(--violet-soft); margin: var(--space-1) 0; opacity: .7; }
.eh-link {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-2); border-radius: 12px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none;
  background: transparent; border: 0; width: 100%; text-align: start; cursor: pointer;
}
.eh-link:hover, .eh-link:focus-visible { background: var(--violet-soft); }
.eh-link.on { color: var(--violet); font-weight: 700; }
.eh-link.admin-nav-link { color: var(--violet); }
html.game-play #site-header, html.game-play .eh-drawer, html.game-play .eh-backdrop { display: none !important; }

/* ===== Footer: white logo on ink ===== */
.ef {
  background: var(--ink-deep); color: #F1EBFF;
  padding: var(--space-4) var(--space-2) var(--space-3);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center;
}
.ef .eh-logo img { height: 28px; }
.ef-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-3); }
.ef-links a { color: #F1EBFF; text-decoration: none; font-family: var(--font-body); font-size: var(--text-min); font-weight: 500; }
.ef-links a:hover { text-decoration: underline; }
.ef-copy { margin: 0; font-size: var(--text-min); opacity: .85; }

@media (prefers-color-scheme: dark) {
  .eh .logo-on-light { display: none; }
  .eh .logo-on-dark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-drawer, .eh-backdrop, .eh-logo { transition: none !important; }
}

/* ===== Home (brand/mockups/home.html): --sky first screen, big white logo in the top half ===== */
body.home-v2 { background: var(--paper); }
.bh {
  background: var(--sky);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-3) var(--space-6);
  text-align: center;
}
.bh-top { flex: 1 1 45%; display: flex; align-items: flex-end; justify-content: center; width: 100%; padding-bottom: var(--space-3); }
.bh-title { margin: 0; line-height: 0; }
.bh-logo { width: min(78vw, 420px); height: auto; display: block; }
.bh-bottom { flex: 1 1 45%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--space-3); width: 100%; padding-top: var(--space-2); }
/* Peach part of the gradient: ink text only (CONTRAST.txt) */
.bh-tag { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 500; color: #2A1155; max-width: 20em; }
.bh-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; min-height: 56px; padding: 14px 36px;
  background: var(--pink); color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1;
  border-radius: var(--radius-pill); box-shadow: var(--btn-shadow); text-decoration: none;
  transition: transform var(--duration) var(--ease);
}
.bh-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink-shadow); }
.bh-link { color: #2A1155; font-family: var(--font-body); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (min-width: 880px) {
  .bh-logo { width: min(52vw, 560px); }
  .bh-tag { font-size: 20px; }
  .bh-cta { font-size: 32px; min-width: 260px; }
}
@media (min-width: 1600px) {
  .bh-logo { width: min(44vw, 720px); }
  .bh-tag { font-size: 28px; }
  .bh-cta { font-size: 40px; min-height: 72px; min-width: 320px; }
  .bh-link { font-size: 20px; }
}
/* Short landscape phones: keep logo, line and button on one screen */
@media (max-height: 500px) and (orientation: landscape) {
  .bh { padding: var(--space-2) var(--space-3); }
  .bh-top { padding-bottom: var(--space-1); }
  .bh-logo { width: auto; height: min(30vh, 120px); }
  .bh-bottom { gap: var(--space-2); padding-top: 0; }
  .bh-cta { min-height: 48px; font-size: 24px; padding: 10px 28px; }
}

/* =====================================================================
   Phase 5 — identity site-wide. Old style.css variables are pointed at the
   brand tokens; hard-coded old colours are overridden below.
   ===================================================================== */
:root {
  --bg: var(--paper);
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --surface-2: var(--violet-soft);
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);
  --accent: var(--violet);
  --accent-hover: var(--violet);
  --accent-soft: var(--violet-soft);
  --accent-ink: #FFFFFF;
  --yellow: var(--sun);
  --purple: var(--violet);
  --grad: var(--violet);
  --grad-hero: var(--violet);
  --shadow-lg: var(--shadow);
  --radius: var(--radius-panel);
  --font: var(--font-body);
  --word-shadow: none;
}
html { background: var(--paper); }
body, .pub-body, .auth-body, .host-body, .start-page, .host-body .shell:not(.game-shell) {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
}
b, strong, th, label, summary { font-weight: 700; }
h1, h2, h3, h4 { font-weight: 700; }
input, textarea, select, button { font-family: var(--font-body); }
@media (max-width: 600px) { body { font-size: max(14px, 1rem); } .hint, small { font-size: max(14px, .85rem); } }

/* Big headings: Lalezar, ink/violet, no shadows */
.page-hero h1, .pub-section h2, .start-section h2, .cta-band h2, .auth-card h1, .auth-card h2, .mygames-title,
.wordmark, .start-hero .tagline, .lobby h2 {
  font-family: var(--font-display); font-weight: 400; text-shadow: none; letter-spacing: 0;
}
.page-hero h1, .pub-section h2, .start-section h2, .mygames-title { color: var(--violet); }
.wordmark { color: var(--violet); }
.page-hero { padding: var(--space-5) var(--space-3) var(--space-2); }
.pub-lead, .start-sub, .hint { color: var(--muted); }

/* Panels: white, 22px radius, one soft shadow, no thick borders */
.step-card, .feat-card, .life-card, .faq-item, .legal-card, .auth-card, .card, .panel, .buy-card, .mg-card, .resume-card,
.opt-row, .accordion, .play-mode, .lobby-qr, .join-card, .modal, .modal-card, .admin-card, .stat-card, .copy-group {
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.step-card p, .feat-card p, .life-card p, .faq-item p { color: var(--muted); }
.step-num, .feat-icon, .step-icon { background: var(--violet-soft); color: var(--violet); border-radius: 14px; }
.cta-band { background: var(--surface); color: var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow); max-width: 1080px; margin: var(--space-4) auto; padding: var(--space-4) var(--space-3); }
.cta-band h2 { color: var(--violet); }
.cta-band .pub-lead { color: var(--muted); }

/* Buttons. Secondary: white, 1px light-violet border, violet text */
.btn, .pill-lg.ghost, .start-chevron {
  background: var(--surface); color: var(--violet);
  border: 1px solid var(--violet-soft); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; box-shadow: none;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.btn:hover { background: var(--surface); color: var(--violet); }
/* Small primary actions: violet with white text (5.9:1 at any size) */
.btn-primary, .btn.btn-primary, .btn-gold, .btn-teal, .pill-lg.solid {
  background: var(--violet); color: #fff; border: 0; box-shadow: none; font-family: var(--font-body); font-weight: 700;
}
.btn-primary:hover, .btn.btn-primary:hover, .btn-gold:hover, .btn-teal:hover { background: var(--violet); color: #fff; box-shadow: none; opacity: .92; }
/* The one main button per screen: pink, white Lalezar ≥24px (large text only, CONTRAST.txt) */
.btn-primary.btn-lg, .btn.btn-primary.btn-lg, .start-go, .auth-card button[type="submit"], #joinBtn, .sel-go {
  background: var(--pink); color: #fff; border: 0;
  font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1;
  min-height: 52px; padding: 12px 32px; border-radius: var(--radius-pill);
  box-shadow: var(--btn-shadow);
}
.btn-primary.btn-lg:hover, .start-go:hover, .auth-card button[type="submit"]:hover, #joinBtn:hover, .sel-go:hover { background: var(--pink); color: #fff; box-shadow: var(--btn-shadow); opacity: 1; }
.btn-primary.btn-lg:active, .start-go:active, .auth-card button[type="submit"]:active, #joinBtn:active, .sel-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink-shadow); }
.btn-rose { background: var(--surface); color: #B0124F; border: 1px solid var(--violet-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--violet); }

/* Chips / pills (filters, toggles) */
.pill, .start-tools .pill {
  background: var(--surface); color: var(--ink); border: 0; box-shadow: var(--shadow);
  border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: var(--text-min);
  padding: 8px 14px;
}
.pill.on, .start-tools .pill.on { background: var(--violet); color: #fff; box-shadow: none; }
.start-count, .tag, .mg-badge, .sticker { background: var(--sun); color: #2A1155; font-weight: 700; }
.input, .start-search, .start-form .input, .start-page .input, .mygames-search, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  background: var(--surface); color: var(--ink); border: 1px solid var(--violet-soft); border-radius: 14px; font-family: var(--font-body); font-weight: 500;
}
.input:focus, .start-search:focus, textarea:focus, select:focus, input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }

/* Home-only gradient elsewhere is not allowed: old hero bands become plain */
.hero-home, .start-hero { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.start-hero { max-width: 1080px; margin: var(--space-3) auto 0; border-radius: var(--radius-panel); padding: var(--space-4) var(--space-3) var(--space-5); }
.start-hero .tagline { color: var(--violet); font-size: clamp(22px, 3vw, 32px); }
.start-hero .hows { color: var(--muted); font-weight: 500; }
.start-chevron { color: var(--violet); box-shadow: var(--shadow); }

/* Section capsule panels (brand/mockups/categories.html) */
.cat-section {
  background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow);
  padding: 40px var(--space-2) var(--space-3); margin: var(--space-5) 0 var(--space-3);
}
.cat-section-title {
  background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: 400;
  font-size: 20px; line-height: 1; padding: 8px 20px; border-radius: var(--radius-pill);
}
.cat-collapse {
  top: 10px; left: 10px; width: 28px; height: 28px; background: var(--violet-soft); color: var(--violet);
  font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.start-grid { gap: var(--gap); grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px; }
@media (max-width: 980px) { .start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Category card: image + violet name strip, 14px radius, alternating tilt that settles on hover/press */
.start-card, .cat-tile {
  border: 2px solid transparent; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow);
  overflow: visible; transform: rotate(var(--tilt, 0deg));
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
  display: flex; flex-direction: column; text-align: center;
}
.start-card:nth-child(odd), .cat-tile:nth-child(odd) { --tilt: -5deg; }
.start-card:nth-child(even), .cat-tile:nth-child(even) { --tilt: 5deg; }
.start-card:nth-child(3n), .cat-tile:nth-child(3n) { --tilt: -2deg; }
.start-card:hover, .start-card:focus-visible, .start-card:active, .start-card.on,
.cat-tile:hover, .cat-tile:focus-visible, .cat-tile:active { --tilt: 0deg; transform: rotate(0deg); }
.start-card .cover { aspect-ratio: 1 / 1; border-radius: 12px 12px 0 0; background: var(--violet-soft); }
.start-card .ribbon {
  position: relative; inset: auto; background: var(--violet); color: #fff;
  font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.25;
  padding: 6px 6px 7px; min-height: 2.5em; display: flex; align-items: center; justify-content: center;
}
.start-card:nth-child(even) .ribbon { background: var(--violet); }
.start-card .sticker {
  position: static; order: 3; margin: 6px auto 8px; background: var(--sun-soft); color: #2A1155;
  font-size: var(--text-min); font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: var(--radius-pill); width: fit-content; max-width: calc(100% - 8px); white-space: nowrap;
}
.start-card.on .sticker { top: auto; }
.start-card .ico-btn {
  top: 6px; width: 26px; height: 26px; background: color-mix(in srgb, #fff 86%, transparent); color: var(--violet);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; display: grid; place-items: center; padding: 0; z-index: 2;
}
.start-card .ico-info { left: 6px; right: auto; }
.start-card .ico-fav { right: 6px; left: auto; color: var(--violet); }
.start-card.on { border-color: var(--violet); box-shadow: var(--shadow); }
.start-card .check {
  top: -8px; left: -8px; right: auto; width: 22px; height: 22px; background: var(--violet); color: #fff; font-size: 13px; box-shadow: var(--shadow); z-index: 3;
}
.start-card .team-badge { bottom: auto; top: calc(100% - 4.6em); right: 6px; background: var(--ink-deep); color: #fff; font-weight: 700; font-size: 12px; }
.start-card.exhausted { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .start-card, .cat-tile { transform: none !important; } }
.cat-tile .cat-cover { border-radius: 12px; overflow: hidden; }
.cat-overlay { background: var(--violet); position: static; padding: 6px; }
.cat-overlay h3, .cat-tile h3 { color: #fff; font-family: var(--font-display); font-weight: 400; margin: 0; }
.cat-overlay .hint { color: #fff; opacity: .9; }

/* Fixed bottom bar on the category picker: selected covers, counter, «ابدأ اللعب» */
.sel-dock {
  position: fixed; right: 0; left: 0; bottom: 0; z-index: 45;
  background: var(--header-bg); box-shadow: 0 -2px 8px rgba(42, 17, 85, .08);
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--space-2) calc(10px + env(safe-area-inset-bottom)); min-height: 72px;
}
.sel-thumbs { display: flex; gap: 8px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; min-height: 48px; align-items: center; }
.sel-thumbs::-webkit-scrollbar { display: none; }
.sel-thumb { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; border: 0; padding: 0; background: var(--violet-soft); cursor: pointer; }
.sel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-thumb .x { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-deep); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.sel-empty { font-size: var(--text-min); color: var(--muted); }
.sel-count { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.sel-go { flex: 0 0 auto; font-size: 24px; min-height: 48px; padding: 10px 22px; }
.setup-wrap.has-dock { padding-bottom: 112px; }
@media (min-width: 1600px) {
  .sel-dock { min-height: 96px; padding: 16px 32px; }
  .sel-thumb { width: 64px; height: 64px; }
  .sel-go { font-size: 28px; min-height: 64px; padding: 14px 32px; }
  .sel-count { font-size: 20px; }
  .setup-wrap.has-dock { padding-bottom: 140px; }
}
html.game-play .sel-dock { display: none !important; }

/* Setup form bits */
.life-pick { background: var(--surface); color: var(--violet); border: 1px solid var(--violet-soft); border-radius: 14px; }
.life-pick.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.play-mode { border: 2px solid transparent; }
.play-mode.on { border-color: var(--violet); box-shadow: var(--shadow); }
.play-mode strong { font-family: var(--font-display); font-weight: 400; color: var(--violet); }
.lobby-team { background: var(--team); }
.lobby-dot { background: var(--violet); }

/* Auth, account, pricing, my games, legal */
.auth-body { background: var(--paper); }
.auth-card a, .legal-card a, .faq-item a, .pub-main a:not(.btn):not(.bh-cta):not(.eh-link) { color: var(--violet); }
.faq-item summary { font-weight: 700; color: var(--ink); }
.mg-card { padding: var(--space-2); }
.mg-play { background: var(--violet); color: #fff; border: 0; }
.resume-continue { background: var(--violet); color: #fff; border: 0; }
.toast { background: var(--ink-deep); color: #fff; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; }

/* ===== Game screen (host board / question): violet stage, ink question panel, no thick borders ===== */
html.game-play, html.game-play body, .game-shell { background: var(--violet); }
.game-shell { font-family: var(--font-body); }
.game-top, .game-dock { background: var(--violet); border-color: rgba(255, 255, 255, .12); }
.game-top-act:hover { color: var(--sun); }
.cat-val {
  background: #fff; color: var(--violet); border: 0; font-family: var(--font-display); font-weight: 400;
  box-shadow: 0 2px 8px rgba(42, 17, 85, .18);
}
.cat-val:hover:not(:disabled) { background: var(--sun); color: #2A1155; border: 0; }
.cat-val.used, .cat-val:disabled { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); border: 0; filter: none; opacity: .55; }
.cat-strip { background: var(--ink-deep); color: #fff; font-family: var(--font-display); font-weight: 400; }
.q-frame { border: 2px solid rgba(255, 255, 255, .22); border-radius: var(--radius-panel); background: var(--ink-deep); box-shadow: var(--shadow); }
.q-text-main, .q-title { font-family: var(--font-body); font-weight: 700; color: #fff; }
.dock-logo .wordmark { font-family: var(--font-display); color: #fff; text-shadow: none; }
.dock-name { font-family: var(--font-body); font-weight: 700; border-width: 2px; }
.dock-team.is-turn .dock-name { box-shadow: 0 0 0 3px #fff; }
.game-turn-pill { background: var(--sun); color: #2A1155; font-weight: 700; }
.q-btn-answer, .q-btn-who, .q-btn-back-ans { background: var(--sun); color: #2A1155; font-weight: 700; }
.q-none-btn { font-family: var(--font-body); font-weight: 700; }

/* Phone buzzer page */
.buzzer { font-family: var(--font-display); font-weight: 400; }

/* ===== Dark mode — follows the device setting (bg #17102B, text #F1EBFF, violet #8E6BFF) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --muted: #C9BEE6;
    --line: rgba(241, 235, 255, .14);
    --line-strong: rgba(241, 235, 255, .24);
    --surface-2: #2C2248;
  }
  .btn-primary, .btn.btn-primary, .btn-gold, .btn-teal, .pill-lg.solid, .pill.on, .start-tools .pill.on, .cat-section-title,
  .start-card .ribbon, .start-card .check, .life-pick.on, .mg-play, .resume-continue, .eh-avatar, .cat-overlay {
    /* white on #8E6BFF is 3.7:1 — keep these on the light-mode violet so normal-size white text passes */
    background: #6B3DF0;
  }
  .ef-links a, .ef-copy { color: #F1EBFF; }
  .start-card .ico-btn { background: rgba(34, 26, 56, .9); color: #F1EBFF; }
  .cat-collapse { color: #F1EBFF; }
  .eh-burger { color: var(--ink); }
  .input, .start-search, input, textarea, select { background: #2C2248; color: var(--ink); border-color: rgba(241, 235, 255, .18); }
  input::placeholder, textarea::placeholder { color: #B5A9D6; }
  html.game-play, html.game-play body, .game-shell, .game-top, .game-dock { background: #17102B; }
  .q-frame { background: #221A38; }
  .cat-val { background: #221A38; color: #F1EBFF; box-shadow: none; border: 1px solid rgba(241, 235, 255, .16); }
  .sel-thumb .x { background: #6B3DF0; }
  .toast { background: #F1EBFF; color: #17102B; }
  .step-num, .feat-icon, .step-icon { color: #F1EBFF; }
  .page-hero h1, .pub-section h2, .start-section h2, .mygames-title, .cta-band h2, .play-mode strong, .start-hero .tagline, .wordmark { color: var(--violet); }
  .auth-card a, .legal-card a, .faq-item a, .pub-main a:not(.btn):not(.bh-cta):not(.eh-link), .eh-link.on, .eh-link.admin-nav-link, .eh-buy, .eh-login, .btn, .eh-close { color: var(--violet); }
  .btn-primary, .btn.btn-primary { color: #fff; }
  .btn-primary.btn-lg, .start-go, .auth-card button[type="submit"], #joinBtn, .sel-go { color: #fff; }
}

/* Dark mode follows the device (spec), so the old in-game light/dark toggle is hidden (code kept). */
.game-top-theme, [data-act="theme"] { display: none !important; }

/* Logo swaps outside the header */
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-on-light { display: none !important; } .logo-on-dark { display: inline-block; } }
.auth-logo { display: flex; justify-content: center; gap: 0; }
.auth-logo img { height: 64px; width: auto; }
.brand-word { margin: 0; line-height: 0; }
.brand-word img { height: 28px; width: auto; }
.play-brand { display: flex; justify-content: center; }
.play-brand .brand-word img { height: 48px; }
.dock-word { width: auto !important; height: clamp(24px, 5vh, 44px) !important; }
.rotate-logo { width: min(50vw, 220px); height: auto; }
.brand-icon, .side-mark img { border-radius: 28%; }

/* Old yellow-on-light text → violet / ink (contrast) */
.auth-card h1, .pricing-hero h1, .admin-page h1, .hero h2, .auth-brand, .plan-price, .faq-item summary::after, .step-num, .team-choice .btn.on {
  color: var(--violet); text-shadow: none;
}
.auth-card h1, .pricing-hero h1, .admin-page h1, .hero h2 { font-family: var(--font-display); font-weight: 400; }
.hero h2::after, .pricing-hero h1::after, .auth-card h1::after, .admin-page h1::after { display: none; }
.site-footer a, .play-wrap .site-footer a { color: var(--violet); }
.team-choice .btn.on { background: var(--violet-soft); }
/* Rotate prompt */
.rotate-overlay { background: var(--violet); color: #fff; }
.rotate-overlay p { font-family: var(--font-display); font-weight: 400; color: #fff; text-shadow: none; }
.phone-rotate { border-color: #fff; }
.phone-rotate::after { background: var(--sun); }
@media (prefers-color-scheme: dark) { .rotate-overlay { background: #17102B; } }
/* My games: no gradients */
.mygames-buy { background: var(--violet); color: #fff; box-shadow: none; font-family: var(--font-body); font-weight: 700; }
.mg-head { background: var(--violet); color: #fff; }
.mg-card { box-shadow: var(--shadow); }
/* Category cards: names on two lines max, team badge under the strip */
.start-card .ribbon { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 7px; }
.start-card .team-badge { position: static; order: 4; margin: -2px auto 8px; display: none; width: fit-content; }
.start-card.on .team-badge { display: inline-block; }
@media (min-width: 720px) { .start-card .ribbon { font-size: 15px; } }
@media (min-width: 1600px) { .start-card .ribbon { font-size: 18px; } .start-card .sticker { font-size: 15px; } }
/* Public categories page tiles */
.cat-tile .cat-cover { aspect-ratio: auto; display: flex; flex-direction: column; }
.cat-tile .cat-cover img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; }
.cat-tile .cat-overlay { position: static; inset: auto; background: var(--violet); color: #fff; padding: 6px 6px 8px; text-align: center; }
.cat-tile .cat-overlay h3 { font-size: 15px; line-height: 1.25; }
.cat-tile .cat-overlay .hint { font-size: 14px; }

/* Purchase popover plans: plain panels; the selected plan gets the violet frame + check */
.buy-plan, .buy-plan.is-single, .buy-plan.is-pack, .buy-plan.is-monthly {
  background: var(--surface); color: var(--ink); border: 1px solid var(--violet-soft); box-shadow: none; border-radius: 14px;
}
.buy-plan .price { color: var(--violet); font-weight: 700; }
.buy-plan.is-on { border: 2px solid var(--violet); box-shadow: none; }
.buy-plan.is-on::after { color: var(--violet); }
.buy-btn { background: var(--violet); color: #fff; }
.tag-warn, .mg-ribbon { background: var(--sun); color: #2A1155; }
.cta-band { background: var(--surface); }
/* Game board: one fixed violet-family strip colour; ink strip on even blocks (no white on pink) */
.cat-strip, .cat-block:nth-child(even) .cat-strip { background: #6B3DF0; color: #fff; font-family: var(--font-display); font-weight: 400; }
.q-btn-cat, .q-btn-back-q { background: #fff; color: var(--violet); font-weight: 700; }
.buzzer-base { background: var(--pink-shadow); }
@media (max-width: 719px) {
  .start-section { padding-left: 12px; padding-right: 12px; }
  .cat-section { padding: 36px 8px 14px; }
  .start-grid { padding: 4px; }
  .start-card .team-badge, .start-card.on .team-badge { display: none; }
  .start-card .sticker { padding: 5px 6px; }
}
.start-card .team-badge { font-size: 14px; white-space: nowrap; }
.game-top-center { color: #fff; text-shadow: none; font-family: var(--font-display); transform: rotate(-5deg); }
.cat-mid { border-radius: 14px; overflow: hidden; background: var(--violet-soft); box-shadow: var(--shadow); }
.cat-mid img { object-fit: cover; }
.q-timer { border-width: 2px; border-color: rgba(255, 255, 255, .5); }
.cat-tile .cat-overlay h3, .cat-overlay h3 { text-shadow: none; }
@media (min-width: 720px) { .cat-tile .cat-overlay h3 { font-size: 18px; } }
@media (min-width: 1600px) { .cat-tile .cat-overlay h3 { font-size: 22px; } .cat-tile .cat-overlay .hint { font-size: 16px; } }

/* Identity: no text shadows anywhere */
*, *::before, *::after { text-shadow: none !important; }

/* ===== Phase 6: shared category picker (brand/mockups/categories.html) ===== */
.cp-toolbar { display: flex; align-items: center; gap: 8px; margin: var(--space-2) 0 var(--space-1); position: relative; }
.cp-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1 1 auto; padding: 4px 2px; min-width: 0; }
.cp-filters::-webkit-scrollbar { display: none; }
.cp-chip { flex: 0 0 auto; border: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: var(--text-min); padding: 8px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow); white-space: nowrap; cursor: pointer; min-height: 40px; }
.cp-chip.is-on { background: var(--violet); color: #fff; box-shadow: none; }
.cp-search { position: relative; flex: 0 0 auto; width: 40px; height: 40px; }
.cp-search-toggle { position: relative; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--violet); box-shadow: var(--shadow); display: grid; place-items: center; padding: 0; cursor: pointer; }
.cp-search input { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 1px solid var(--violet-soft); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 500; font-size: 16px; padding: 0 40px 0 12px; opacity: 0; pointer-events: none; transform: scaleX(.2); transform-origin: right center; transition: transform 180ms var(--ease), opacity 180ms var(--ease), width 180ms var(--ease); z-index: 1; }
.cp-search.is-open input { width: min(64vw, 260px); opacity: 1; pointer-events: auto; transform: scaleX(1); box-shadow: var(--shadow); }
.cp-search.is-open .cp-search-toggle { background: transparent; box-shadow: none; }
.cp-pick { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--violet-soft); background: var(--surface); color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow); min-height: 40px; cursor: pointer; }
@media (max-width: 430px) { .cp-pick { font-size: 14px; padding: 8px 10px; } .cp-toolbar { gap: 6px; } }

.cp-panel { position: relative; background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow); padding: 32px var(--space-2) var(--space-2); margin-top: var(--space-5); }
.cp-cap { position: absolute; top: 0; right: 50%; transform: translate(50%, -50%); margin: 0; background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1; padding: 8px 20px; border-radius: var(--radius-pill); white-space: nowrap; }
.cp-toggle { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; }
.cp-panel.is-collapsed { padding-bottom: 16px; }
.cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 6px 4px; }
@media (min-width: 720px) { .cp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cp-cap { font-size: 20px; } }
.cp-more { display: block; margin: var(--space-2) auto 0; background: none; border: 0; color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 8px 12px; cursor: pointer; min-height: 40px; }
.cp-empty { text-align: center; color: var(--ink); font-size: 15px; margin: var(--space-4) var(--space-2); }

.cp-card { position: relative; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; text-align: center; cursor: pointer; transform: rotate(var(--tilt, 0deg)); transition: transform 160ms var(--ease), border-color 160ms var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.cp-card:nth-child(odd) { --tilt: -5deg; }
.cp-card:nth-child(even) { --tilt: 5deg; }
.cp-card:nth-child(3n) { --tilt: -2deg; }
.cp-card:hover, .cp-card:focus-visible, .cp-card:active, .cp-card.is-selected { --tilt: 0deg; }
.cp-card:active { transform: rotate(0deg) scale(.97); }
.cp-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.cp-card.is-selected { border-color: var(--violet); }
.cp-card.is-exhausted { opacity: .55; }
.cp-media { position: relative; aspect-ratio: 1 / 1; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--violet-soft); }
.cp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-name { position: absolute; bottom: 0; right: 0; left: 0; background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 14px; line-height: 1.25; padding: 6px 6px 7px; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.cp-info, .cp-heart { position: absolute; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: color-mix(in srgb, #fff 86%, transparent); color: var(--violet); display: grid; place-items: center; padding: 0; z-index: 2; cursor: pointer; touch-action: manipulation; }
.cp-info::after, .cp-heart::after { content: ""; position: absolute; inset: -8px; }
.cp-info { left: 6px; }
.cp-heart { right: 6px; }
.cp-heart[aria-pressed="true"] { color: var(--pink); }
.cp-badge { margin: 6px auto 8px; background: var(--sun-soft); color: #2A1155; font-size: var(--text-min); font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: var(--radius-pill); width: fit-content; max-width: calc(100% - 8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-tick { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); display: none; place-items: center; box-shadow: var(--shadow); z-index: 3; }
.cp-card.is-selected .cp-tick { display: grid; }
@media (max-width: 380px) { .cp-badge { font-size: 12px; padding: 4px 6px; } .cp-name { font-size: 13px; } }
@media (min-width: 1600px) {
  .cp-grid { gap: 18px; }
  .cp-cap { font-size: 26px; padding: 10px 28px; }
  .cp-name { font-size: 18px; }
  .cp-badge { font-size: 15px; }
  .cp-chip, .cp-pick { font-size: 18px; min-height: 48px; padding: 10px 20px; }
  .cp-search, .cp-search-toggle { width: 48px; height: 48px; }
  .cp-search input { height: 48px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cp-card { transform: none !important; transition: none; } .cp-search input { transition: none; } }
@media (prefers-color-scheme: dark) {
  .cp-info, .cp-heart { background: rgba(34, 26, 56, .9); color: #F1EBFF; }
  .cp-heart[aria-pressed="true"] { color: var(--pink); }
  .cp-name, .cp-cap, .cp-chip.is-on, .cp-tick { background: #6B3DF0; }
  .cp-pick, .cp-more { color: #C9B8FF; }
  .cp-search-toggle { color: #C9B8FF; }
}
/* Skeleton while the list loads (no "loading" text) */
.cp-skel-cap { width: 120px; height: 34px; background: var(--violet-soft); }
.cp-skel-card { cursor: default; }
.cp-skel-card .cp-media, .cp-skel-cap, .cp-skel-card .cp-badge { animation: cpPulse 1.2s ease-in-out infinite; }
.cp-skel-card .cp-badge { width: 70%; background: var(--violet-soft); }
@keyframes cpPulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .cp-skel-card .cp-media, .cp-skel-cap, .cp-skel-card .cp-badge { animation: none; } }
/* Public page dock + dialog + toast */
body.has-sel-dock { padding-bottom: 104px; }
.catpick-page .sel-dock { z-index: 45; }
.cp-dialog { border: 0; border-radius: var(--radius-panel); box-shadow: var(--shadow); padding: var(--space-3); max-width: min(92vw, 360px); text-align: center; background: var(--surface); color: var(--ink); }
.cp-dialog::backdrop { background: rgba(42, 17, 85, .45); }
.cp-dialog img { border-radius: var(--radius-card); display: block; margin: 0 auto var(--space-1); }
.cp-dialog h3 { font-family: var(--font-display); font-weight: 400; color: var(--violet); margin: 0 0 8px; font-size: 24px; }
.cp-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px); background: var(--ink-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease), transform 160ms var(--ease); z-index: 60; }
.cp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cp-panel > .cp-cap { color: #fff; -webkit-text-fill-color: #fff; font-size: 18px; margin: 0; }
@media (min-width: 720px) { .cp-panel > .cp-cap { font-size: 20px; } }
@media (min-width: 1600px) { .cp-panel > .cp-cap { font-size: 26px; } }
@media (max-width: 480px) {
  .cp-panel { padding: 32px 10px 12px; }
  .cp-grid { padding: 6px 2px; }
  .cp-badge { padding: 5px 6px; max-width: calc(100% - 4px); }
  .catpick-page { padding-inline: 12px; }
}
.catpick-page { padding-top: 0 !important; }
body.has-sel-dock .page-hero { padding-bottom: 0; margin-bottom: 0; }
@media (min-width: 1600px) {
  .catpick-page, .setup-wrap #choose-cats.start-section { max-width: 1680px; }
}
/* keep the scrollable filter row from widening its (grid/flex) parent */
.cp-toolbar { contain: inline-size; min-width: 0; }
.cp-sections, #choose-cats { min-width: 0; }
@media (max-width: 480px) { .setup-wrap #choose-cats.start-section { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 400px) { .cp-badge { padding: 4px 5px; max-width: 100%; } }
.cp-media picture { display: block; width: 100%; height: 100%; }

/* ===== Phase 7: performance / feel ===== */
/* instant tap feedback, no 300ms delay */
a, button, [role="button"], [data-act], .pill, .cp-chip, input, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:not(:disabled):active, .btn:active, .pill:active, .cp-chip:active, .cp-pick:active, .cp-more:active, .sel-thumb:active { transform: scale(.96); transition: transform 80ms var(--ease); }
.sel-go:active, .start-go:active, .btn-primary.btn-lg:active { transform: translateY(2px) scale(.98); }
/* no white flash between pages: each page paints #F6F3FC / #17102B from an inline style before any CSS loads */
@media (prefers-reduced-motion: reduce) {
  button:active, .btn:active, .pill:active, .cp-chip:active { transform: none; }
}
/* header/footer placeholders keep their space before site.js fills them (CLS) */
#site-header:empty { min-height: var(--header-h); display: block; }
/* skeleton bits */
.skel-line { height: 18px; border-radius: 9px; background: var(--violet-soft); margin: 10px auto; width: 60%; max-width: 420px; animation: cpPulse 1.2s ease-in-out infinite; }
.skel-line.skel-h { height: 32px; width: 40%; }
.skel-chip { display: inline-block; width: 72px; height: 40px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow); animation: cpPulse 1.2s ease-in-out infinite; }
.skel-box { display: block; aspect-ratio: 1 / 1; width: 100%; max-width: 320px; margin: 0 auto; border-radius: var(--radius-card); background: var(--violet-soft); animation: cpPulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skel-line, .skel-chip, .skel-box { animation: none; } }

/* ===== Phase 9: steps, quick start, summary, split, rating, results, intro, «سؤال اليوم» ===== */
.quick-hint { margin: 10px auto 0; text-align: center; font-size: 14px; }
.again-link { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.setup-steps { max-width: 720px; margin: 8px auto 16px; padding: 0 16px; }
.setup-steps ol { list-style: none; display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0; }
.setup-steps li { flex: 1; }
.setup-steps button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--surface); border: 1px solid var(--violet-soft); border-radius: var(--radius-pill); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer; touch-action: manipulation; transition: transform var(--duration) var(--ease); }
.setup-steps button:active { transform: scale(.97); }
.setup-steps .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--violet-soft); color: var(--ink); font-size: 14px; }
.setup-steps li.on button { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.setup-steps li.on .n, .setup-steps li.done .n { background: var(--violet); color: #fff; }
.setup-progress { height: 6px; border-radius: 3px; background: var(--violet-soft); overflow: hidden; }
.setup-progress span { display: block; height: 100%; background: var(--violet); border-radius: 3px; transition: width 200ms var(--ease); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; }
.step-nav .start-go { min-width: 160px; }
.split-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 16px; }
.split-list { margin: 6px 0 0; font-size: 14px; color: var(--ink); background: var(--sun-soft); border-radius: var(--radius-card); padding: 6px 10px; }
.step-summary { max-width: 720px; margin: 0 auto; }
.step-summary h2 { text-align: center; }
.sum-block { background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sum-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sum-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.sum-cat img { width: 56px; height: 56px; border-radius: var(--radius-card); object-fit: cover; }
.sum-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sum-team { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-card); background: var(--team); color: var(--team-ink); }
.sum-team strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.sum-life { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-inline-end: 6px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--team-ink); }
.sum-life svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .sum-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 400px) { .sum-teams { grid-template-columns: 1fr; } }

.q-rate { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-body); font-weight: 700; font-size: 15px; }
.q-rate button { min-width: 48px; min-height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--violet-soft); background: var(--surface); font-size: 22px; cursor: pointer; touch-action: manipulation; transition: transform var(--duration) var(--ease); }
.q-rate button:active { transform: scale(.94); }
.q-rate button.on { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); background: var(--violet-soft); }

.end-kicker { font-family: var(--font-display); font-size: clamp(32px, 6vw, 56px); color: var(--violet); transform: rotate(-5deg); line-height: 1.1; }
.end-actions { margin-top: 8px; }
.end-actions .start-go { min-width: 180px; }
.result-card-wrap img { max-width: min(360px, 80vw); height: auto; border-radius: var(--radius-panel); box-shadow: var(--shadow); }

.intro-back { z-index: 120; }
.modal.intro { position: relative; text-align: center; max-width: 420px; padding: 40px 24px 24px; border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); }
.modal.intro h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--violet); margin: 12px 0 8px; }
.modal.intro p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.intro-art { width: 96px; height: 96px; margin: 0 auto; border-radius: 28%; background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 56px; display: grid; place-items: center; transform: rotate(-5deg); }
.intro-skip { position: absolute; top: 12px; inset-inline-start: 12px; background: none; border: 0; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.intro-dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 20px; }
.intro-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-soft); transition: transform var(--duration) var(--ease); }
.intro-dots span.on { background: var(--violet); transform: scale(1.3); }
.intro-next { min-width: 200px; min-height: 52px; border: 0; border-radius: var(--radius-pill); background: var(--pink); color: #fff; font-family: var(--font-display); font-size: 24px; box-shadow: var(--btn-shadow); cursor: pointer; touch-action: manipulation; }
.intro-next:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink-shadow); }

.today-page { max-width: 720px; margin: 0 auto; padding-bottom: 48px; }
.today-card { background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow); padding: 56px 20px 24px; margin: 24px 16px 16px; position: relative; text-align: center; min-height: 320px; }
.today-cap { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 22px; padding: 6px 22px; border-radius: var(--radius-pill); white-space: nowrap; min-width: 120px; min-height: 36px; }
.today-cap.skel-line { margin: 0; width: 140px; height: 36px; }
.today-media { display: block; width: 100%; max-width: 480px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; margin: 0 auto 16px; border-radius: var(--radius-card); }
.today-media.skel-box { aspect-ratio: 16 / 9; max-width: 480px; }
.today-q { font-family: var(--font-body); font-weight: 700; font-size: clamp(20px, 4.4vw, 28px); line-height: 1.6; color: var(--ink); margin: 8px 0 16px; }
.today-answer { background: var(--sun-soft); border-radius: var(--radius-card); padding: 14px; margin: 0 auto 16px; max-width: 480px; }
.today-answer strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--ink); margin-top: 4px; }
.today-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.today-next { margin-top: 16px; }
.today-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.today-actions .bh-cta { text-decoration: none; }
.today-page .toast, #todayToast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 18px; z-index: 90; }
.bh-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
/* Phase 9 results screen on the violet game background */
.game-end .end-screen { max-width: 1200px; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; }
.end-main { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.end-screen .end-kicker { color: var(--sun); }
.end-screen .end-title, .end-screen .hint { color: #fff; opacity: .92; }
.end-screen .winner-name { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 7vw, 72px); margin: 0; }
.end-screen .end-scores { margin: 12px 0; gap: 14px; }
.end-screen .end-score-card { background: #fff; color: var(--ink); border: 0; border-radius: var(--radius-card); min-width: 140px; padding: 12px 18px; box-shadow: 0 2px 8px rgba(42,17,85,.18); }
.end-screen .end-score-card.is-win { box-shadow: inset 0 0 0 3px var(--sun), 0 2px 8px rgba(42,17,85,.18); }
.end-screen .end-score-card .n { color: var(--ink); font-weight: 700; font-size: 16px; }
.end-screen .end-score-card .s { color: #6B3DF0; font-family: var(--font-display); font-weight: 400; font-size: 44px; letter-spacing: 0; }
.end-screen .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.end-screen .btn { background: #fff; color: #6B3DF0; border: 0; min-height: 44px; padding: 10px 20px; display: inline-flex; align-items: center; text-decoration: none; }
.end-screen .end-more .btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.end-screen .end-note { font-size: 14px; margin: 0; }
.end-side .result-card-wrap { margin: 0 auto; max-width: min(340px, 80vw); }
.end-side .result-card-wrap img { width: 100%; height: auto; }
.end-side .skel-box { aspect-ratio: 4 / 5; background: rgba(255,255,255,.25); }
@media (min-width: 900px) {
  .game-end .end-screen { flex-direction: row; justify-content: center; align-items: center; gap: 48px; min-height: 100%; text-align: center; }
  .end-main { flex: 1 1 auto; max-width: 620px; }
  .end-side { flex: 0 0 auto; }
  .end-side .result-card-wrap { max-width: min(380px, 30vw); }
}
@media (prefers-color-scheme: dark) {
  .end-screen .end-score-card { background: #221A38; color: #F1EBFF; }
  .end-screen .end-score-card .n { color: #F1EBFF; }
  .end-screen .end-score-card .s { color: #B9A3FF; }
  .end-screen .btn { background: #221A38; color: #F1EBFF; }
}
.start-hero + .setup-steps { margin-top: 36px; }
/* Phase 9: the results screen also works upright on a phone (to share the card); the board stays landscape-only. */
@media (orientation: portrait) {
  .game-shell[data-phase="end"] > .game-end { display: block !important; }
  .game-shell[data-phase="end"] > .rotate-overlay { display: none !important; }
}
.q-frame .q-rate span { color: #fff; }
.q-frame .q-rate button { background: rgba(255,255,255,.92); border-color: transparent; }
.q-frame .q-rate button.on { background: var(--sun); box-shadow: none; }
/* Phase 10: account deletion */
.acc-delete { margin-top: 24px; border-top: 1px solid var(--violet-soft); padding-top: 16px; }
.acc-delete summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.acc-delete form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.btn.btn-danger { background: #fff; color: #B3261E; border: 1px solid #B3261E; }
/* ===== Phase 10: native app (Capacitor) ===== */
.is-native body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; }
.is-native input, .is-native textarea { -webkit-user-select: text; user-select: text; }
.is-native .eh { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
.is-native .sel-dock { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.is-native .game-shell { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.is-native .game-top { padding-top: max(6px, env(safe-area-inset-top)); }
.is-native .ef { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.is-native #discountForm, .is-native .paddle-only, .is-native .pay-fx, .is-native .plan-kwd { display: none !important; }
.native-offline { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 200; background: #2A1155; color: #fff; border-radius: var(--radius-pill); padding: 10px 18px; display: flex; gap: 10px; align-items: center; font-family: var(--font-body); font-size: 14px; box-shadow: var(--shadow); }
.native-offline strong { color: var(--sun); }
.native-sheet-back { position: fixed; inset: 0; z-index: 150; background: rgba(23,16,43,.55); display: flex; align-items: flex-end; justify-content: center; }
.native-sheet { position: relative; width: 100%; max-width: 520px; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
.native-sheet h3 { font-family: var(--font-display); font-weight: 400; color: var(--violet); font-size: 26px; margin: 0 0 12px; text-align: center; }
.native-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; color: var(--ink); }
.native-store { display: flex; flex-direction: column; gap: 12px; }
.native-plan { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 12px 16px; border-radius: var(--radius-card); border: 1px solid var(--violet-soft); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 16px; touch-action: manipulation; }
.native-plan:active { transform: scale(.98); }
.native-plan .p { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--violet); }
.native-msg { min-height: 20px; margin: 0; text-align: center; font-weight: 700; color: var(--ink); }
.native-msg[data-kind="ok"] { color: #0B7A6E; }
.native-store-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   Design refresh — Phase A: foundation (ref/artifact/mockup.html + brand/DESIGN-SPEC.txt).
   Tokens, header, the three button styles (solid bottom shadow, 3px press), light panels
   (22–24px), alternating tilts that settle to 0 on press, dark mode. Approved identity wins:
   Lalezar only for the logo, big titles and the one main (pink) button; Tajawal 500/700 elsewhere.
   ===================================================================== */
:root {
  --bg: #F6F3FC;
  --panel: #E9E2F8;          /* light violet section panels */
  --line: #E4DCF5;           /* hairlines + secondary button shadow */
  --muted: #5B4A85;
  --violet-d: #4A22B8;       /* violet button / capsule shadow */
  --pink-d: #C93670;         /* pink button shadow */
  --press: 3px;
  --btn-shadow: 0 4px 0 var(--pink-d);
  --btn-shadow-violet: 0 4px 0 var(--violet-d);
  --btn-shadow-ghost: 0 3px 0 var(--line);
  --card-shadow: 0 3px 0 rgba(42, 17, 85, .2);
  --radius-panel: 22px;
  --radius-section: 24px;
  --radius-cat: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17102B;
    --surface: #231A3F;
    --panel: #2B2150;
    --line: #3A2E63;
    --muted: #B9A9E0;
    --violet-d: #5A3AC8;
    --header-bg: #17102B;
    --card-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  }
}

/* ---- Header: page-coloured bar, hairline under it, logo right; «رصيدي» pill + round menu left ---- */
.eh { background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line); }
.eh-logo img { height: 30px; }
.eh-actions { gap: 10px; }
.eh-balance {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; padding: 6px 12px; line-height: 1.2;
}
.eh-balance .eh-dot { display: none; }
.eh #userMenuBtn { display: none; } /* the menu button opens the same drawer (account, buy, logout live there) */
.eh-burger {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.eh-burger span, .eh-burger span::before, .eh-burger span::after { width: 16px; height: 2px; border-radius: 2px; }
.eh-burger span::before { top: -5px; }
.eh-burger span::after { top: 5px; }
.eh-login {
  min-height: 36px; padding: 4px 14px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--violet);
}
.eh-close { border-color: var(--line); }
.eh-sep { background: var(--line); opacity: 1; }
.eh-link:hover, .eh-link:focus-visible { background: var(--panel); }

/* ---- Buttons ---- */
/* every pressable thing: solid bottom shadow, sinks 3px when pressed */
.btn, .pill, .pill-lg, .start-chevron, .eh-login, .eh-buy, .life-pick, .mg-play, .resume-continue, .bh-cta, .sel-go {
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), opacity var(--duration) var(--ease);
  touch-action: manipulation;
}
/* 1) Main — one per screen: pink, white Lalezar, full pill */
.btn-primary.btn-lg, .btn.btn-primary.btn-lg, .start-go, .auth-card button[type="submit"], #joinBtn, .sel-go, .bh-cta {
  background: var(--pink); color: #fff; border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.45;
  padding: 8px 34px; min-height: 48px; box-shadow: var(--btn-shadow);
}
.bh-cta { font-size: 32px; padding: 10px 56px; }
.btn-primary.btn-lg:hover, .btn.btn-primary.btn-lg:hover, .start-go:hover, .auth-card button[type="submit"]:hover, #joinBtn:hover, .sel-go:hover, .bh-cta:hover {
  background: var(--pink); color: #fff; box-shadow: var(--btn-shadow); opacity: 1;
}
.btn-primary.btn-lg:active, .btn.btn-primary.btn-lg:active, .start-go:active, .auth-card button[type="submit"]:active, #joinBtn:active, .sel-go:active, .bh-cta:active {
  transform: translateY(var(--press)); box-shadow: 0 1px 0 var(--pink-d);
}
/* 2) Secondary: surface, 1px line border, 3px line shadow, violet text */
.btn, .pill-lg.ghost, .start-chevron, .eh-buy {
  background: var(--surface); color: var(--violet); border: 1px solid var(--line);
  box-shadow: var(--btn-shadow-ghost); font-family: var(--font-body); font-weight: 700;
}
.btn:hover, .pill-lg.ghost:hover, .eh-buy:hover { background: var(--surface); color: var(--violet); box-shadow: var(--btn-shadow-ghost); }
.btn:active, .pill-lg.ghost:active, .start-chevron:active, .eh-buy:active, .eh-login:active {
  transform: translateY(var(--press)); box-shadow: 0 0 0 var(--line);
}
.btn:disabled, .btn[disabled] { transform: none; box-shadow: none; opacity: .45; }
.btn-ghost { box-shadow: none; border-color: transparent; background: transparent; }
.btn-rose { box-shadow: var(--btn-shadow-ghost); border-color: var(--line); }
/* 3) Violet — the second action (e.g. «اعرض الجواب»): violet, white text, violet-dark shadow */
.btn-primary:not(.btn-lg), .btn.btn-primary:not(.btn-lg), .btn-gold, .btn-teal, .pill-lg.solid, .mg-play, .resume-continue, .mygames-buy {
  background: var(--violet); color: #fff; border: 0; box-shadow: var(--btn-shadow-violet);
}
.btn-primary:not(.btn-lg):hover, .btn.btn-primary:not(.btn-lg):hover, .btn-gold:hover, .btn-teal:hover {
  background: var(--violet); color: #fff; box-shadow: var(--btn-shadow-violet); opacity: 1;
}
.btn-primary:not(.btn-lg):active, .btn.btn-primary:not(.btn-lg):active, .btn-gold:active, .btn-teal:active, .pill-lg.solid:active, .mg-play:active, .resume-continue:active, .mygames-buy:active {
  transform: translateY(var(--press)); box-shadow: 0 1px 0 var(--violet-d);
}
/* Filter chips and pickers follow the secondary / violet pair */
.pill, .start-tools .pill, .life-pick {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--btn-shadow-ghost);
}
.life-pick { color: var(--violet); }
.pill.on, .start-tools .pill.on, .life-pick.on { background: var(--violet); color: #fff; border-color: var(--violet); box-shadow: 0 3px 0 var(--violet-d); }
.pill:active, .life-pick:active { transform: translateY(var(--press)); box-shadow: none; }

/* ---- Panels: light, 22px; section panels on --panel at 24px ---- */
.step-card, .feat-card, .life-card, .faq-item, .legal-card, .auth-card, .card, .buy-card, .mg-card, .resume-card,
.opt-row, .accordion, .play-mode, .lobby-qr, .join-card, .modal-card, .admin-card, .stat-card, .copy-group, .cta-band, .start-hero {
  border-radius: var(--radius-panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel { border-radius: var(--radius-panel); }
.cat-section { background: var(--panel); border-radius: var(--radius-section); box-shadow: none; padding-top: 36px; }

/* ---- Title capsules: violet pill, white Lalezar 22px, tilted −3°, solid shadow ---- */
.cat-section-title {
  font-size: 22px; line-height: 1.45; padding: 4px 28px; white-space: nowrap;
  box-shadow: 0 3px 0 var(--violet-d);
  transform: translate(50%, -50%) rotate(-3deg);
  transition: transform .15s var(--ease);
}
.cat-section:nth-of-type(even) .cat-section-title { transform: translate(50%, -50%) rotate(3deg); }
.cat-section-title:active { transform: translate(50%, -50%) rotate(0deg); }
.cat-collapse { background: var(--surface); border: 0; width: 28px; height: 28px; }

/* ---- Category cards: alternating ±2° tilt (mockup), back to 0 on hover / press; 18px, solid shadow ---- */
.start-card, .cat-tile {
  border-radius: var(--radius-cat); box-shadow: var(--card-shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
}
.start-card:nth-child(odd), .cat-tile:nth-child(odd) { --tilt: -2deg; }
.start-card:nth-child(even), .cat-tile:nth-child(even) { --tilt: 2deg; }
.start-card:nth-child(3n), .cat-tile:nth-child(3n) { --tilt: -2deg; }
.start-card:nth-child(6n), .cat-tile:nth-child(6n) { --tilt: 2deg; }
.start-card:nth-child(odd).on, .cat-tile:nth-child(odd).on { transform: rotate(-2deg); }
.start-card:nth-child(even).on, .cat-tile:nth-child(even).on { transform: rotate(2deg); }
.start-card:hover, .start-card:focus-visible, .cat-tile:hover, .cat-tile:focus-visible { transform: rotate(0deg); }
.start-card:active, .cat-tile:active { transform: rotate(0deg) scale(.97); }
.start-card.on { border-color: transparent; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--violet), var(--card-shadow); }
.start-card .cover { border-radius: calc(var(--radius-cat) - 2px) calc(var(--radius-cat) - 2px) 0 0; }

/* ---- Forms on the new tokens ---- */
.input, .start-search, .start-form .input, .start-page .input, .mygames-search, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], textarea, select {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.start-search, input[type="search"] { border-radius: var(--radius-pill); }
.input:focus, .start-search:focus, textarea:focus, select:focus, input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---- Dark mode (device setting): same components on #17102B ---- */
@media (prefers-color-scheme: dark) {
  html, body, .pub-body, .auth-body, .host-body, .start-page { background: var(--bg); }
  .eh { background: var(--bg); }
  .input, .start-search, input, textarea, select { background: var(--surface); border-color: var(--line); }
  /* white text keeps the light-mode violet (#6B3DF0, contrast 5.9:1) as in Phase 5; shadows use the dark violet */
  .btn-primary:not(.btn-lg), .btn.btn-primary:not(.btn-lg), .btn-gold, .btn-teal, .pill-lg.solid, .mg-play, .resume-continue, .mygames-buy,
  .pill.on, .start-tools .pill.on, .life-pick.on, .cat-section-title { background: #6B3DF0; box-shadow: 0 4px 0 #3A1A9A; }
  .pill.on, .start-tools .pill.on, .life-pick.on, .cat-section-title { box-shadow: 0 3px 0 #3A1A9A; }
  .btn, .pill-lg.ghost, .start-chevron, .eh-buy, .eh-login { color: var(--violet); }
  .start-card.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--violet), var(--card-shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .pill, .pill-lg, .start-chevron, .eh-login, .eh-buy, .life-pick, .bh-cta, .sel-go, .cat-section-title { transition: none !important; }
  .cat-section-title, .cat-section:nth-of-type(even) .cat-section-title { transform: translate(50%, -50%) !important; }
}

/* Phase A on the shared category picker (catpick.js: categories page + host setup) */
.cp-panel { background: var(--panel); border-radius: var(--radius-section); box-shadow: none; padding-top: 36px; }
.cp-panel > .cp-cap, .cp-cap {
  font-size: 22px; line-height: 1.45; padding: 4px 28px; box-shadow: 0 3px 0 var(--violet-d);
  transform: translate(50%, -50%) rotate(-3deg); transition: transform .15s var(--ease);
}
.cp-panel:nth-of-type(even) > .cp-cap { transform: translate(50%, -50%) rotate(3deg); }
.cp-cap:active { transform: translate(50%, -50%) rotate(0deg); }
.cp-toggle { background: var(--surface); width: 28px; height: 28px; top: 8px; left: 10px; font-size: 17px; }
.cp-chip, .cp-pick, .cp-search-toggle {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--btn-shadow-ghost);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.cp-pick, .cp-search-toggle { color: var(--violet); }
.cp-chip.is-on { background: var(--violet); color: #fff; border-color: var(--violet); box-shadow: 0 3px 0 var(--violet-d); }
.cp-chip:active, .cp-pick:active, .cp-search-toggle:active { transform: translateY(var(--press)); box-shadow: none; }
.cp-search input { border-color: var(--line); }
.cp-card {
  border-radius: var(--radius-cat); border: 0; box-shadow: var(--card-shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.cp-card:nth-child(odd) { --tilt: -2deg; }
.cp-card:nth-child(even) { --tilt: 2deg; }
.cp-card:nth-child(3n) { --tilt: -2deg; }
.cp-card:nth-child(6n) { --tilt: 2deg; }
.cp-card.is-selected:nth-child(odd) { --tilt: -2deg; }
.cp-card.is-selected:nth-child(even), .cp-card.is-selected:nth-child(6n) { --tilt: 2deg; }
.cp-card.is-selected:nth-child(3n):not(:nth-child(6n)) { --tilt: -2deg; }
.cp-card:hover, .cp-card:focus-visible { --tilt: 0deg; }
.cp-card:active { --tilt: 0deg; transform: rotate(0deg) scale(.97); }
.cp-card.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--violet), var(--card-shadow); }
.cp-media { border-radius: var(--radius-cat) var(--radius-cat) 0 0; }
@media (prefers-color-scheme: dark) {
  .cp-chip.is-on { background: #6B3DF0; box-shadow: 0 3px 0 #3A1A9A; }
  .cp-panel > .cp-cap, .cp-cap { box-shadow: 0 3px 0 #3A1A9A; }
  .cp-card.is-selected { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--violet), var(--card-shadow); }
}
@media (min-width: 1600px) { .cp-panel > .cp-cap, .cp-cap { font-size: 26px; padding: 6px 32px; } }
@media (prefers-reduced-motion: reduce) {
  .cp-panel > .cp-cap, .cp-cap, .cp-panel:nth-of-type(even) > .cp-cap { transform: translate(50%, -50%) !important; transition: none; }
  .cp-chip, .cp-pick, .cp-search-toggle { transition: none; }
}

/* Phase A fix: the game toast sits over the board's first row (top:56px) for 2.8s and used to
   swallow taps on those cells. It has no buttons, so let taps pass through to the board. */
.toast { pointer-events: none; }

/* =====================================================================
   Design refresh — Phase B: home, categories, teams (ref/artifact/mockup.html)
   ===================================================================== */
:root { --page-max: 720px; --cc: #8E6BFF; --cd: #5A3AC8; }
body.setup-mode, body:has(.mk-wide) { --page-max: 1180px; }
@media (min-width: 1600px) {
  :root { --page-max: 960px; }
  body.setup-mode, body:has(.mk-wide) { --page-max: 1680px; }
}
/* header content lines up with the page column (mockup: header inside the same wrap) */
.eh { padding-inline: max(16px, env(safe-area-inset-right), calc((100% - var(--page-max)) / 2 + 16px)) max(16px, env(safe-area-inset-left), calc((100% - var(--page-max)) / 2 + 16px)); }

@keyframes mk-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--r, 0deg)); } }
@keyframes mk-shake { 0%, 100% { translate: 0; } 25% { translate: -6px; } 75% { translate: 6px; } }
@keyframes mk-bump { 50% { transform: scale(1.25); } }
@keyframes mk-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---- Home: one --sky card (28px), big white logo, tagline, CTA, links, 3 floating mini cards, facts, dark footer ---- */
body.home-mk { background: var(--bg); }
.mk-home.bh { background: none; min-height: 0; display: block; max-width: var(--page-max); margin: 0 auto; padding: 20px 16px 0; text-align: center; }
.mk-hero { background: var(--sky); border-radius: 28px; padding: 34px 16px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.mk-hero .bh-title { margin: 4px 0 0; line-height: 0; }
.mk-hero .bh-logo { width: clamp(240px, 68vw, 380px); height: auto; }
.mk-hero .bh-tag { font-size: 18px; font-weight: 700; color: #2A1155; margin: 0; }
.mk-hero .bh-cta { min-width: 0; }
.mk-hero .bh-links { gap: 4px 18px; }
.mk-hero .bh-link { color: #2A1155; font-size: 15px; font-weight: 700; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.mk-minis { display: flex; gap: 14px; margin-top: 10px; direction: ltr; }
.mk-mini { --r: 0deg; display: block; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; background: var(--cc, #8E6BFF); box-shadow: 0 3px 0 rgba(42, 17, 85, .2); transform: rotate(var(--r)); animation: mk-bob 3.4s ease-in-out infinite; }
.mk-mini img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: brightness(1.18) contrast(1.05); }
.mk-facts { display: flex; justify-content: center; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; flex-wrap: wrap; }
@media (min-width: 1600px) {
  .mk-hero { padding: 56px 32px 40px; gap: 22px; }
  .mk-hero .bh-logo { width: 460px; }
  .mk-hero .bh-tag { font-size: 26px; }
  .mk-hero .bh-link { font-size: 20px; }
  .mk-mini { width: 110px; height: 110px; border-radius: 20px; }
  .mk-facts { font-size: 20px; gap: 32px; }
}

/* ---- Footer (all public pages): dark ink panel, 22px corners, short centred links ---- */
#site-footer { max-width: var(--page-max); margin: 22px auto 0; padding: 0 16px 28px; }
.ef { background: #2A1155; color: #E4DCF5; border-radius: 22px; padding: 18px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; font-size: 14px; }
.ef > .eh-logo { display: none; }
.ef-links { gap: 8px 18px; }
.ef-links a { color: #E4DCF5; font-weight: 700; font-size: 14px; padding: 4px 2px; }
.ef-copy { width: 100%; font-size: 12px; opacity: .7; }

/* ---- Page head: round back button + Lalezar 30px title + one muted line + 3-part step bar ---- */
.mk-page { max-width: var(--page-max); margin: 0 auto; padding: 20px 16px 0; }
.mk-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.mk-back { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; text-decoration: none; transition: transform .12s var(--ease); }
.mk-back:active { transform: scale(.92); }
.mk-h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0; color: var(--ink); }
.mk-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.mk-steps-bar { display: flex; gap: 8px; margin: 4px 0 16px; }
.mk-steps-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.mk-steps-bar span.on { background: var(--violet); }
.setup-steps.mk-steps { margin: 4px 0 16px; padding: 0; background: none; box-shadow: none; border: 0; max-width: none; }
.setup-steps.mk-steps ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.setup-steps.mk-steps li { flex: 1; margin: 0; padding: 0; }
.setup-steps.mk-steps li button { display: block; width: 100%; height: 22px; padding: 8px 0; margin: 0; border: 0; background: none; box-shadow: none; cursor: pointer; }
.setup-steps.mk-steps li button::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); transition: background .2s; }
.setup-steps.mk-steps li.on button::before { background: var(--violet); }
.setup-steps.mk-steps .l, .setup-steps.mk-steps .setup-progress { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-page .pub-section { padding: 0; margin: 0; max-width: none; }
@media (min-width: 1600px) {
  .mk-h1 { font-size: 42px; }
  .mk-sub { font-size: 18px; }
  .mk-back { width: 52px; height: 52px; }
}

/* ---- Host setup column ---- */
body.setup-mode .start-page { background: var(--bg); color: var(--ink); }
body.setup-mode .setup-wrap { max-width: var(--page-max); padding: 20px 16px 24px; }
body.setup-mode .setup-wrap .start-section,
body.setup-mode .setup-wrap #choose-cats.start-section { max-width: none; padding: 0; margin: 0; }
.mk-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 0 14px; }
.mk-quick .pill-lg { min-height: 40px; padding: 6px 18px; font-size: 15px; border-radius: 999px; }
.mk-quick .again-link { display: inline-block; margin: 0; min-height: 40px; font-size: 14px; }
.start-hero, .start-chevron { display: none; }

/* ---- Categories tools: search pill + «اختار لي ٦», filter chips under them ---- */
.cp-toolbar { display: block; margin: 0 0 6px; }
.cp-tools { display: flex; gap: 10px; align-items: center; }
.cp-search, .cp-search.is-open { position: relative; flex: 1 1 auto; min-width: 0; width: auto; height: 44px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; }
.cp-search:focus-within { border-color: var(--violet); }
.cp-search .cp-search-toggle, .cp-search.is-open .cp-search-toggle { position: static; width: 20px; height: 20px; flex: 0 0 auto; padding: 0; border: 0; background: none; box-shadow: none; color: var(--muted); display: grid; place-items: center; transform: none; }
.cp-search .cp-search-toggle:active { transform: none; }
.cp-search input, .cp-search.is-open input { position: static; flex: 1 1 auto; min-width: 0; width: auto; height: 100%; border: 0; background: none; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; padding: 0; font: inherit; font-family: var(--font-body); font-size: 15px; color: var(--ink); outline: 0; border-radius: 0; }
.cp-search input::placeholder { color: var(--muted); opacity: .8; }
.cp-tools .cp-pick { flex: 0 0 auto; min-height: 44px; padding: 6px 20px; font-size: 16px; }
.cp-filters { margin-top: 10px; padding: 4px 2px 6px; }
.cp-filters .cp-chip { min-height: 34px; padding: 4px 14px; font-size: 14px; }

/* ---- Section panels: --panel, 24px, centred tilted capsule, −/+ fold animating grid rows ---- */
.cp-panel { margin: 34px 0 0; padding: 36px 12px 14px; }
.cp-panel.is-collapsed { padding-bottom: 4px; }
.cp-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.cp-collapse > div { overflow: hidden; min-height: 0; }
.cp-panel.is-collapsed .cp-collapse { grid-template-rows: 0fr; }
.cp-panel > .cp-cap, .cp-cap { font-size: 22px; padding: 4px 28px; top: -17px; transform: translateX(50%) rotate(-3deg); }
.cp-panel:nth-of-type(even) > .cp-cap { transform: translateX(50%) rotate(3deg); }
.cp-cap:active { transform: translateX(50%) rotate(0deg); }
.cp-toggle { width: 26px; height: 26px; top: 8px; left: 10px; font-size: 17px; font-weight: 700; }
.cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; padding: 6px 2px 4px; }
@media (min-width: 520px) { .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .cp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 22px; } }

/* ---- Category card: category colour, big real 3D image, darker name strip (white Lalezar 20px),
        sun badge tilted 4°, (i) top corner, check pops in when picked ---- */
.cp-card { background: var(--cc); border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 0 rgba(42, 17, 85, .2); display: flex; flex-direction: column; text-align: center; isolation: isolate; outline-offset: 3px; }
.cp-card.is-selected { border: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--violet), 0 3px 0 6px rgba(42, 17, 85, .2); }
.cp-card.shake { animation: mk-shake .3s; }
.cp-media { aspect-ratio: 100 / 80; border-radius: 0; background: none; overflow: hidden; }
.cp-media picture, .cp-media img { display: block; width: 100%; height: 100%; }
.cp-media img { object-fit: cover; mix-blend-mode: multiply; filter: brightness(1.18) contrast(1.05); }
.cp-card .cp-name { position: static; background: var(--cd); color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.3; padding: 4px 6px 3px; min-height: 0; display: block; }
.cp-card .cp-badge { position: absolute; top: 8px; right: -6px; left: auto; z-index: 2; margin: 0; width: auto; max-width: none; background: var(--sun); color: #2A1155; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 3px 12px; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.cp-card .cp-info, .cp-card .cp-heart { width: 24px; height: 24px; left: 8px; right: auto; background: #fff; color: #6B3DF0; font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1; box-shadow: none; z-index: 2; }
.cp-card .cp-info { top: 8px; }
.cp-card .cp-heart { top: 38px; }
.cp-card .cp-heart[aria-pressed="true"] { color: var(--pink); }
.cp-card .cp-tick { top: auto; right: auto; bottom: 40px; left: 8px; width: 26px; height: 26px; background: #fff; color: #6B3DF0; display: grid; place-items: center; box-shadow: none; z-index: 2; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.cp-card.is-selected .cp-tick { display: grid; transform: scale(1); }
.cp-card.is-exhausted { opacity: .55; }
.cp-skel-card { background: var(--line); box-shadow: none; }
.cp-skel-card .cp-name { background: transparent; }
@media (min-width: 1600px) {
  .cp-card .cp-name { font-size: 26px; }
  .cp-card .cp-badge { font-size: 15px; padding: 4px 14px; }
  .cp-card .cp-info, .cp-card .cp-heart, .cp-card .cp-tick { width: 32px; height: 32px; font-size: 16px; }
  .cp-card .cp-heart { top: 48px; }
  .cp-card .cp-tick { bottom: 54px; }
}

/* ---- Tray: slides up from the bottom once something is picked ---- */
.sel-dock, .catpick-page .sel-dock {
  position: fixed; left: 50%; right: auto; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(var(--page-max, 720px) - 32px, calc(100% - 32px)); max-width: 720px;
  transform: translateX(-50%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 8px; min-height: 0; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(42, 17, 85, .18);
}
.sel-dock.is-empty { transform: translate(-50%, calc(100% + 40px)); pointer-events: none; }
.sel-thumbs { gap: 6px; min-height: 34px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.sel-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--cc, #8E6BFF); animation: mk-pop .25s both; }
.sel-thumb img { mix-blend-mode: multiply; filter: brightness(1.18); }
.sel-thumb .x { display: none; }
.sel-count { font-weight: 700; font-size: 14px; color: var(--ink); display: inline-block; }
.sel-count.bump { animation: mk-bump .25s; }
.sel-dock .sel-go { font-size: 20px; padding: 6px 22px; min-height: 0; line-height: 1.45; }
.setup-wrap.has-dock { padding-bottom: 96px; }
@media (min-width: 1600px) {
  .sel-dock, .catpick-page .sel-dock { max-width: 960px; padding: 10px 18px 10px 10px; min-height: 0; }
  .sel-thumb { width: 52px; height: 52px; }
  .sel-count { font-size: 20px; }
  .sel-dock .sel-go { font-size: 26px; padding: 8px 30px; min-height: 0; }
}

/* ---- Teams: two light cards (label + Lalezar 22px name field), random names, main button ---- */
body.setup-mode .start-form .team-cols { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
@media (min-width: 720px) { body.setup-mode .start-form .team-cols { grid-template-columns: 1fr 1fr; } }
.mk-team { background: var(--panel); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; border: 0; }
.mk-team label { font-weight: 700; font-size: 14px; color: var(--muted); margin: 0; }
.mk-team .team-name-input { height: 48px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ink); padding: 0 14px; outline: 0; box-shadow: none; transition: border-color .15s; }
.mk-team .team-name-input:focus { border-color: var(--violet); box-shadow: none; }
.mk-team-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.mk-team .life-picks { margin: 0; }
.mk-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 14px 0 0; }
body.setup-mode .start-form .play-modes { background: var(--panel); border-radius: 22px; padding: 14px; margin: 14px 0 0; box-shadow: none; border: 0; }
body.setup-mode .start-form .play-modes-title { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--muted); margin: 0 0 10px; }
body.setup-mode .start-form .accordion { margin: 14px 0 0; background: var(--panel); border: 0; box-shadow: none; border-radius: 22px; }
body.setup-mode .step-nav { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
body.setup-mode .step-summary { background: none; box-shadow: none; padding: 0; }
body.setup-mode .step-summary .sum-block, body.setup-mode .step-summary .opt-row { background: var(--panel); border-radius: 22px; padding: 14px; border: 0; box-shadow: none; margin: 0 0 14px; }
@media (min-width: 1600px) {
  .mk-team { padding: 22px; }
  .mk-team label { font-size: 18px; }
  .mk-team .team-name-input { height: 64px; font-size: 30px; }
}

/* ---- Dark mode (device setting) ---- */
@media (prefers-color-scheme: dark) {
  .mk-hero .bh-tag, .mk-hero .bh-link { color: #2A1155; }
  .ef { background: #0E0920; }
  .cp-card .cp-info, .cp-card .cp-heart, .cp-card .cp-tick { background: #fff; color: #6B3DF0; }
  .cp-search input { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-mini, .sel-thumb, .sel-count.bump, .cp-card.shake { animation: none !important; }
  .cp-collapse, .sel-dock, .cp-card .cp-tick, .mk-back { transition: none !important; }
}

/* =====================================================================
   Design refresh — Phase C: board, question, result (ref/artifact/mockup.html)
   ===================================================================== */
@keyframes mk-fall { from { transform: translate3d(0, -20px, 0) rotate(0); opacity: 1; } to { transform: translate3d(var(--dx, 0), 92vh, 0) rotate(540deg); opacity: 0; } }
html.game-play, html.game-play body, html.game-play .game-shell { background: var(--bg); }
html.game-play .game-shell { color: var(--ink); }

/* top bar: page colour + hairline, Lalezar logo tilted −5°, small secondary buttons */
html.game-play .game-top { background: var(--bg); border-bottom: 1px solid var(--line); color: var(--ink); height: clamp(42px, 8vh, 56px); order: 0; }
html.game-play .game-top-center { color: var(--violet); font-size: clamp(22px, 4.4vh, 30px); transform: rotate(-5deg); }
html.game-play .game-turn-pill { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 4px 12px; box-shadow: none; }
html.game-play .game-top-act { background: var(--surface); color: var(--violet); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-family: var(--font-body); font-weight: 700; font-size: 13px; box-shadow: 0 3px 0 var(--line); transition: transform .12s, box-shadow .12s; }
html.game-play .game-top-act:hover { color: var(--violet); }
html.game-play .game-top-act:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
html.game-play .game-top-act[disabled] { opacity: .45; box-shadow: none; }

/* team cards on top of the board */
html.game-play .game-dock.mk-scores { order: 1; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; padding: 12px 16px 0; background: none; border: 0; min-height: 0; width: 100%; max-width: 1400px; margin: 0 auto; align-items: stretch; }
.mk-tb { position: relative; background: var(--panel); border-radius: 20px; padding: 10px 12px 12px; transition: box-shadow .2s; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tn sc" "hs hs"; align-items: center; gap: 4px 10px; color: var(--ink); min-width: 0; }
.mk-tb.is-turn { box-shadow: 0 0 0 3px var(--violet); }
.mk-tn { grid-area: tn; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-tb .dock-name { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--ink); background: none; padding: 0; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; }
.mk-turn { flex: 0 0 auto; background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mk-tb .score-pill { grid-area: sc; display: flex; align-items: center; gap: 6px; background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; }
.mk-tb .score-pill button { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 16px; line-height: 1; padding: 0; display: grid; place-items: center; box-shadow: none; }
.mk-tb .score-pill .val { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--violet); display: inline-block; min-width: 1.6em; text-align: center; background: none; }
.mk-tb .score-pill .val.pop { animation: mk-bump .35s; }
.mk-tb .score-pop { font-size: 14px; color: var(--muted); }
.mk-hs { grid-area: hs; display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 0; }
html.game-play .life-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0; box-shadow: none; transition: transform .12s, opacity .2s; position: relative; }
html.game-play .life-ico svg { width: 16px; height: 16px; }
html.game-play .life-ico:active { transform: scale(.92); }
html.game-play .life-ico.is-used, html.game-play .life-ico.is-frozen { opacity: .3; }
html.game-play .life-ico.is-armed { background: var(--sun); color: #2A1155; border-color: var(--sun); opacity: 1; }
html.game-play .mk-qr { display: flex; align-items: center; justify-content: center; }
html.game-play .mk-qr .dock-qr img { width: 64px; height: 64px; border-radius: 10px; background: #fff; padding: 4px; }

/* lifeline bubble: light card with an arrow, name in Lalezar, short line, «استخدموها» / «إلغاء» */
.life-tip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 8px 24px rgba(42, 17, 85, .22); }
.life-tip-name { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--violet); }
.life-tip-text, .life-tip-why { margin: 4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.life-tip-actions { display: flex; gap: 8px; }
.life-tip-use, .life-tip-cancel { font-family: var(--font-body); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 6px 14px; border: 0; min-height: 34px; box-shadow: none; }
.life-tip-use { background: #6B3DF0; color: #fff; }
.life-tip-cancel { background: none; color: var(--muted); }

/* board: 6 columns — darker name strip, then the value tiles in the category colour */
html.game-play .game-board-stage.mk-board { order: 2; display: block; flex: 1 1 auto; min-height: 0; padding: 12px 16px 14px; width: 100%; max-width: 1400px; margin: 0 auto; grid-template-columns: none; grid-template-rows: none; }
.mk-grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; height: 100%; min-height: 0; }
.mk-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.mk-chd { flex: 0 0 auto; background: var(--cd); color: #fff; border-radius: 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(13px, 1.5vw, 24px); line-height: 1.1; text-align: center; padding: 6px 4px; min-height: 44px; display: grid; place-items: center; gap: 4px; }
.mk-chd img { display: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--cc); mix-blend-mode: normal; }
.mk-tiles { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 6px; min-height: 0; }
html.game-play .cat-val.mk-tile { width: auto; height: auto; min-height: 36px; max-height: 120px; margin: 0; border: 0; border-radius: 12px; background: var(--cc); color: var(--ct, #fff); font-family: var(--font-display); font-weight: 400; font-size: clamp(16px, 2.1vw, 36px); line-height: 1; box-shadow: 0 3px 0 rgba(42, 17, 85, .22); transition: transform .12s, box-shadow .12s, opacity .2s; padding: 0; text-shadow: none; }
html.game-play .cat-val.mk-tile:hover { filter: brightness(1.05); }
html.game-play .cat-val.mk-tile:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
html.game-play .cat-val.mk-tile.used { opacity: .25; box-shadow: none; pointer-events: none; }
@media (min-height: 640px) and (min-width: 900px) { .mk-chd img { display: block; } .mk-chd { padding: 10px 4px 8px; } }

/* question: category chip + 60s ring, image in a category-colour card, big centred text */
html.game-play .question-stage.mk-q { order: 2; display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; width: 100%; max-width: 980px; margin: 0 auto; grid-template-columns: none; }
.mk-q .q-frame-wrap { height: auto; display: block; }
html.game-play .mk-q .q-frame { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; overflow: visible; min-height: 0; }
.mk-qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.mk-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--cd); color: #fff; font-family: var(--font-display); font-size: 18px; line-height: 1.4; padding: 4px 16px; white-space: nowrap; }
.mk-qtools { display: flex; align-items: center; gap: 10px; }
html.game-play .mk-q .q-var { position: static; inset: auto; transform: none; }
html.game-play .mk-q .var-pill { background: var(--surface); color: var(--violet); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 12px; padding: 4px 10px; box-shadow: 0 3px 0 var(--line); }
html.game-play .mk-q .q-timer.mk-timer { position: static; inset: auto; transform: none; display: flex; align-items: center; gap: 6px; background: none; border: 0; box-shadow: none; padding: 0; color: var(--ink); }
.mk-timer > button { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--muted); display: grid; place-items: center; padding: 0; box-shadow: none; }
.mk-ring { position: relative; width: 60px; height: 60px; flex: 0 0 auto; }
.mk-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); display: block; }
.mk-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.mk-ring .bgc { stroke: var(--line); }
.mk-ring .fg { stroke: var(--violet); stroke-dasharray: 163.4; transition: stroke-dashoffset 1s linear, stroke .3s; }
.mk-ring.low .fg { stroke: var(--pink); }
html.game-play .mk-ring .clock { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ink); background: none; padding: 0; min-width: 0; }
html.game-play .mk-ring.low .clock { color: var(--pink); }
html.game-play .mk-q .q-state { display: block; height: auto; width: 100%; text-align: center; padding: 0; }
html.game-play .mk-q .media-stage { background: var(--cc); border-radius: 22px; overflow: hidden; box-shadow: 0 3px 0 rgba(42, 17, 85, .2); max-height: min(230px, 38vh); min-height: 0; display: grid; place-items: center; margin: 0 auto; width: 100%; border: 0; }
html.game-play .mk-q .media-stage img, html.game-play .mk-q .media-stage video { max-width: 100%; max-height: min(230px, 38vh); width: auto; height: auto; object-fit: contain; display: block; border-radius: 0; }
html.game-play .mk-q .q-text-main { font-family: var(--font-body); font-weight: 700; font-size: clamp(24px, 6vw, 36px); line-height: 1.5; text-align: center; margin: 18px 4px; color: var(--ink); text-shadow: none; }
html.game-play .mk-q .q-text-main.mk-qt-small { font-size: clamp(16px, 3vw, 22px); color: var(--muted); margin: 12px 4px; }
.mk-ans { background: var(--panel); border-radius: 20px; padding: 14px; text-align: center; margin: 0 0 14px; animation: mk-pop .3s cubic-bezier(.3, 1.4, .5, 1) both; }
.mk-ans small { color: var(--muted); font-weight: 700; font-size: 14px; }
html.game-play .mk-ans .q-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.3; color: var(--violet); margin: 0; text-shadow: none; }
html.game-play .mk-q .q-who-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; animation: mk-pop .25s both; margin: 0; }
html.game-play .mk-q .q-who-btn { width: 100%; border: 0; border-radius: 999px; padding: 10px 8px; min-height: 0; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.4; color: #fff; background: #6B3DF0; box-shadow: 0 4px 0 var(--violet-d); transition: transform .12s, box-shadow .12s; }
html.game-play .mk-q .q-who-btn.mk-who-pink { background: var(--pink); box-shadow: 0 4px 0 var(--pink-d); }
html.game-play .mk-q .q-who-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--violet-d); }
html.game-play .mk-q .q-who-btn.mk-who-pink:active { box-shadow: 0 1px 0 var(--pink-d); }
html.game-play .mk-q .q-who-btn.is-buzz { outline: 3px solid var(--sun); outline-offset: 2px; }
html.game-play .mk-q .q-none-btn { grid-column: 1 / -1; width: 100%; background: var(--surface); color: var(--violet); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--line); font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 8px 16px; margin: 0; }
html.game-play .mk-q .q-none-btn:active { transform: translateY(3px); box-shadow: none; }
html.game-play .mk-q .q-title { color: var(--ink); }
html.game-play .mk-q .q-actions { position: static; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; background: none; transform: none; }
html.game-play .mk-q .q-act { position: static; transform: none; }
html.game-play .mk-q .q-btn-answer { background: #6B3DF0; color: #fff; border: 0; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 20px; padding: 8px 34px; min-height: 48px; box-shadow: 0 4px 0 var(--violet-d); transition: transform .12s, box-shadow .12s; }
html.game-play .mk-q .q-btn-answer:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--violet-d); }
html.game-play .mk-q .q-btn-zoom, html.game-play .mk-q .q-btn-back-q, html.game-play .mk-q .q-btn-back-ans { background: var(--surface); color: var(--violet); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--line); font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 6px 18px; min-height: 40px; }
.mk-chgrow { display: flex; gap: 10px; justify-content: center; margin: 14px 0 0; flex-wrap: wrap; }
.mk-chg { font-size: 15px; }
html.game-play .mk-q .q-rate { justify-content: center; margin: 14px 0 0; }
html.game-play .mk-q .q-rate span { color: var(--muted); }
html.game-play .mk-q .q-rate button { background: var(--surface); border: 1px solid var(--line); }
html.game-play .mk-q .q-rate button.on { background: var(--sun); border-color: var(--sun); }
html.game-play .mk-q .buzz-toast { position: static; transform: none; margin: 12px auto 0; width: fit-content; background: #2A1155; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
html.game-play .mk-q .media-credit { color: var(--muted); }

/* result: «مبروك …» Lalezar 56px −4°, score cards (winner ringed in sun), confetti */
html.game-play .game-end { background: var(--bg); color: var(--ink); overflow-y: auto; }
html.game-play .game-end .end-screen.mk-res { color: var(--ink); text-align: center; }
.mk-res .end-main { display: flex; flex-direction: column; align-items: center; }
html.game-play .mk-crown { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.2; color: var(--violet); transform: rotate(-4deg); margin: 8px 0 0; text-shadow: none; }
.mk-res-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.mk-res-sub .end-kicker { display: inline; font: inherit; color: inherit; background: none; padding: 0; transform: none; }
html.game-play .mk-fin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; width: min(100%, 520px); }
html.game-play .mk-fin .end-score-card { background: var(--panel); border-radius: 20px; padding: 14px; border: 0; box-shadow: none; color: var(--ink); }
html.game-play .mk-fin .end-score-card.is-win { box-shadow: 0 0 0 3px var(--sun); }
html.game-play .mk-fin .end-score-card .n { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ink); }
html.game-play .mk-fin .end-score-card .s { font-family: var(--font-display); font-weight: 400; font-size: 40px; color: var(--violet); line-height: 1.2; }
html.game-play .mk-res .end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
html.game-play .mk-res .end-actions .btn, html.game-play .mk-res .end-more .btn { background: var(--surface); color: var(--violet); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--line); font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 6px 20px; min-height: 44px; }
html.game-play .mk-res .end-actions .btn[disabled] { opacity: .5; }
html.game-play .mk-res .end-more { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
html.game-play .mk-res .end-more .btn { font-size: 14px; min-height: 36px; padding: 4px 14px; }
html.game-play .mk-res .hint { color: var(--muted); }
html.game-play .mk-res .result-card-wrap { max-width: 240px; margin: 0 auto; }
.mk-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.mk-confetti i { position: absolute; top: 0; width: 9px; height: 14px; border-radius: 2px; animation: mk-fall 2.6s ease-in both; will-change: transform, opacity; }

/* short landscape phones: compact team cards so the board fits */
@media (max-height: 520px) {
  html.game-play .game-dock.mk-scores { padding: 8px 12px 0; gap: 8px; }
  .mk-tb { padding: 6px 10px 8px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tn hs sc"; border-radius: 16px; }
  .mk-tb .score-pill .val { font-size: 26px; }
  .mk-tb .dock-name { font-size: 17px; }
  html.game-play .life-ico { width: 28px; height: 28px; font-size: 12px; }
  .mk-hs { margin: 0; justify-content: center; }
  html.game-play .game-board-stage.mk-board { padding: 8px 12px 10px; }
  .mk-chd { min-height: 32px; font-size: 13px; padding: 4px 2px; }
  .mk-col { gap: 6px; }
  .mk-tiles { gap: 5px; }
  html.game-play .cat-val.mk-tile { min-height: 28px; font-size: 17px; border-radius: 10px; }
  html.game-play .question-stage.mk-q { padding: 10px 14px 12px; }
  .mk-qtop { margin-bottom: 8px; }
  html.game-play .mk-q .q-text-main { font-size: 24px; margin: 10px 4px; }
  html.game-play .mk-q .media-stage, html.game-play .mk-q .media-stage img { max-height: 150px; }
  html.game-play .mk-crown { font-size: 40px; }
}
/* TV: bigger, readable from the sofa */
@media (min-width: 1600px) {
  html.game-play .game-dock.mk-scores { max-width: 1760px; padding: 20px 32px 0; gap: 20px; }
  html.game-play .game-board-stage.mk-board { max-width: 1760px; padding: 20px 32px 24px; }
  .mk-grid6 { gap: 12px; }
  .mk-tiles, .mk-col { gap: 12px; }
  .mk-tb { padding: 14px 18px 16px; border-radius: 24px; }
  .mk-tb .dock-name { font-size: 30px; }
  .mk-tb .score-pill .val { font-size: 52px; }
  .mk-tb .score-pill button { width: 36px; height: 36px; font-size: 20px; }
  html.game-play .life-ico { width: 46px; height: 46px; font-size: 18px; }
  .mk-chd { font-size: 26px; min-height: 64px; border-radius: 16px; }
  .mk-chd img { width: 72px; height: 72px; }
  html.game-play .cat-val.mk-tile { font-size: 44px; border-radius: 16px; box-shadow: 0 5px 0 rgba(42, 17, 85, .22); }
  html.game-play .question-stage.mk-q { max-width: 1400px; padding: 28px 32px; }
  .mk-chip { font-size: 28px; padding: 6px 24px; }
  .mk-ring, .mk-ring svg { width: 96px; height: 96px; }
  html.game-play .mk-ring .clock { font-size: 36px; }
  html.game-play .mk-q .q-text-main { font-size: 56px; }
  html.game-play .mk-q .media-stage, html.game-play .mk-q .media-stage img { max-height: 42vh; }
  html.game-play .mk-ans .q-title { font-size: 56px; }
  html.game-play .mk-q .q-who-btn { font-size: 32px; padding: 14px 10px; }
  html.game-play .mk-q .q-btn-answer { font-size: 30px; padding: 12px 48px; }
  html.game-play .mk-crown { font-size: 88px; }
  html.game-play .mk-fin { width: min(100%, 820px); }
  html.game-play .mk-fin .end-score-card .n { font-size: 30px; }
  html.game-play .mk-fin .end-score-card .s { font-size: 64px; }
}
@media (prefers-color-scheme: dark) {
  html.game-play .life-ico.is-armed { color: #2A1155; }
  .life-tip-use { background: #6B3DF0; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-ans, html.game-play .mk-q .q-who-row, .mk-tb .score-pill .val.pop, .mk-confetti i { animation: none !important; }
  .mk-ring .fg, html.game-play .cat-val.mk-tile, html.game-play .life-ico, .mk-tb { transition: none !important; }
}
.mk-tb.dock-team .dock-name, .mk-tb.dock-team.is-turn .dock-name { background: none; border: 0; box-shadow: none; min-width: 0; padding: 0; display: block; justify-content: flex-start; }
html.game-play .cat-val.mk-tile { max-height: none; }
html.game-play .mk-q .q-who-row { margin-inline: auto; max-width: 620px; width: 100%; }
html.game-play .mk-q .q-rate { display: flex; align-items: center; gap: 8px; width: fit-content; margin-inline: auto; }
html.game-play .mk-q .q-text-main, html.game-play .mk-q .q-title { margin-inline: auto; max-width: 22em; text-align: center; }
html.game-play .mk-q .mk-ans .q-title { color: var(--violet); }

/* =====================================================================
   Design refresh — Phase D: in-page navigation, skeletons, 180ms enter, how / FAQ / contact
   ===================================================================== */
@keyframes rt-in { from { opacity: .4; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
@keyframes rt-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.rt-enter, .mk-enter, .main > .view.view-enter { animation: rt-in 180ms cubic-bezier(.2, .7, .3, 1) both; }
main:focus { outline: none; }
.rt-skel { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 18px; }
.rt-skel i { display: block; height: 74px; border-radius: 22px; background: linear-gradient(90deg, var(--panel) 0%, var(--surface) 50%, var(--panel) 100%); background-size: 200% 100%; animation: rt-shimmer 1.1s linear infinite; }
.rt-skel i.h { height: 40px; width: min(60%, 320px); border-radius: 14px; }
.rt-skel i.s { height: 18px; width: min(85%, 460px); border-radius: 9px; }
/* full page loads (host, login…): cross-document fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: rt-in 180ms cubic-bezier(.2, .7, .3, 1) both; }

/* how / FAQ: page head like the mockup (round back button + Lalezar 30) */
.mk-info .page-hero.mk-hero-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; text-align: right; padding: 18px 0 6px; }
.mk-info .page-hero.mk-hero-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 0; color: var(--ink); }
.mk-info .page-hero.mk-hero-head .pub-lead { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 15px; text-align: right; }
.mk-info .pub-section { padding: 10px 0 14px; }
.mk-info .pub-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--violet); text-align: right; margin: 8px 0 10px; }
.mk-info .pub-section > .pub-lead { text-align: right; color: var(--muted); font-size: 15px; margin: 0 0 12px; }
/* steps: tilted white cards with a coloured Lalezar number (mockup .hs1) */
.mk-info .steps-grid { display: flex; flex-direction: column; gap: 14px; }
.mk-info .step-card { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "n t" "n p"; align-items: center; gap: 2px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--card-shadow); text-align: right; transform: rotate(var(--r, 0deg)); }
.mk-info .step-card:nth-child(1) { --r: -1deg; --n: #19C3B1; }
.mk-info .step-card:nth-child(2) { --r: 1deg; --n: #FF7A59; }
.mk-info .step-card:nth-child(3) { --r: -.6deg; --n: #8E6BFF; }
.mk-info .step-card:nth-child(4) { --r: .8deg; --n: #FF4D8D; }
.mk-info .step-card .step-num { grid-area: n; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: #fff; background: var(--n); transform: rotate(-5deg); box-shadow: 0 3px 0 rgba(42, 17, 85, .2); position: static; margin: 0; }
.mk-info .step-card:nth-child(1) .step-num, .mk-info .step-card:nth-child(2) .step-num { color: #2A1155; }
.mk-info .step-card .step-icon { display: none; }
.mk-info .step-card h3 { grid-area: t; font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0; color: var(--ink); }
.mk-info .step-card p { grid-area: p; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
/* features + lifelines: 2-column small panels (mockup .hl) */
.mk-info .feat-grid, .mk-info .life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-info .feat-card, .mk-info .life-card { background: var(--panel); border: 0; border-radius: 16px; padding: 10px 12px; box-shadow: none; text-align: right; }
.mk-info .feat-card .feat-icon { font-size: 18px; margin: 0 0 4px; }
.mk-info .feat-card h3, .mk-info .life-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--violet); margin: 0; }
.mk-info .feat-card p, .mk-info .life-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mk-info .cta-band { background: none; border: 0; box-shadow: none; text-align: center; padding: 18px 0 8px; }
.mk-info .cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); }
.mk-info .cta-band .pub-lead { color: var(--muted); }
/* FAQ: rounded <details> with a round + that turns 45° */
.mk-info .faq-list { display: block; }
.mk-info .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin: 0 0 10px; overflow: hidden; box-shadow: none; padding: 0; }
.mk-info .faq-item summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--ink); }
.mk-info .faq-item summary::-webkit-details-marker { display: none; }
.mk-info .faq-item summary::after { content: "+"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--panel); color: var(--ink); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .2s; position: static; transform: none; }
.mk-info .faq-item[open] summary::after { transform: rotate(45deg); }
.mk-info .faq-item p { margin: 0; padding: 0 16px 14px; color: var(--muted); line-height: 1.6; }
/* contact: head + form in a soft panel */
.mk-contact .auth-logo { display: none; }
.mk-contact .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--card-shadow); }
.mk-contact .mk-head { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.mk-contact .auth-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--ink); margin: 0; }
.mk-contact .auth-card .input { border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.mk-contact .auth-card .input:focus { border-color: var(--violet); outline: none; }
@media (min-width: 1600px) {
  .mk-info .page-hero.mk-hero-head h1, .mk-contact .auth-card h1 { font-size: 44px; }
  .mk-info .step-card h3 { font-size: 26px; }
  .mk-info .step-card p, .mk-info .faq-item summary, .mk-info .faq-item p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-enter, .mk-enter, .main > .view.view-enter, .rt-skel i { animation: none !important; }
  ::view-transition-new(root), ::view-transition-old(root) { animation: none !important; }
  .mk-info .step-card { transform: none; }
  .mk-info .faq-item summary::after { transition: none; }
}
.auth-wrap.mk-contact { min-height: 0; justify-content: flex-start; padding-top: 18px; }
