/* =========================================================
   أسرة البابا أثناسيوس — competition engine
   (competition/index.html and its stubs). Self-contained: the site's
   tokens, fonts and themes, nothing from main.css (first load stays
   small). Mobile first, 280px → desktop. See DESIGN.md.
========================================================= */


/* ---------- fonts (the site's own files; same ranges as main.css) ---------- */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0021-0040, U+0051-0052, U+005B-0060, U+007B-007E, U+00AB, U+00BB, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin-letters.woff2") format("woff2");
  unicode-range: U+0041-0050, U+0053-005A, U+0061-007A;
}

@font-face {
  font-family: "Aref Ruqaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aref-ruqaa-arabic.woff2") format("woff2");
  unicode-range: U+0020-0021, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}


/* ---------- tokens (main.css) ---------- */

:root {
  /* gold tokens (site redesign W1): every gold in the site CSS is one of these
     triplets, used as rgb(var(--gold-…-rgb)) / rgba(var(--gold-…-rgb), a).
     assets/js/look.js swaps them for the member's colour before the first paint.
     Same block in main.css, page.css, comp.css, legal.css, xp-clip.css (tests/gold-tokens.test.mjs). */
  --gold-rgb: 215, 170, 80;
  --gold-1a1205-rgb: 26, 18, 5;
  --gold-1b1203-rgb: 27, 18, 3;
  --gold-3b2a0a-rgb: 59, 42, 10;
  --gold-4e3e1e-rgb: 78, 62, 30;
  --gold-6f4f1b-rgb: 111, 79, 27;
  --gold-8a6a2c-rgb: 138, 106, 44;
  --gold-8c6423-rgb: 140, 100, 35;
  --gold-a8792b-rgb: 168, 121, 43;
  --gold-a97b2c-rgb: 169, 123, 44;
  --gold-b8862f-rgb: 184, 134, 47;
  --gold-b8862f-shade-rgb: 184, 134, 47;
  --gold-b98a35-rgb: 185, 138, 53;
  --gold-c39340-rgb: 195, 147, 64;
  --gold-c89235-rgb: 200, 146, 53;
  --gold-c8973f-rgb: 200, 151, 63;
  --gold-c99135-rgb: 201, 145, 53;
  --gold-c99a45-rgb: 201, 154, 69;
  --gold-c9ad74-rgb: 201, 173, 116;
  --gold-d8ab51-rgb: 216, 171, 81;
  --gold-dcb45f-rgb: 220, 180, 95;
  --gold-deep-rgb: 107, 76, 23;
  --gold-e0b55c-rgb: 224, 181, 92;
  --gold-e3b862-rgb: 227, 184, 98;
  --gold-e3cf9f-rgb: 227, 207, 159;
  --gold-e6be64-rgb: 230, 190, 100;
  --gold-e7c27a-rgb: 231, 194, 122;
  --gold-e9d3a1-rgb: 233, 211, 161;
  --gold-f0d28c-rgb: 240, 210, 140;
  --gold-f0d296-rgb: 240, 210, 150;
  --gold-f0d8a0-rgb: 240, 216, 160;
  --gold-f2dcaa-rgb: 242, 220, 170;
  --gold-f2e4c4-rgb: 242, 228, 196;
  --gold-f3d48e-rgb: 243, 212, 142;
  --gold-f4dfae-rgb: 244, 223, 174;
  --gold-f6dda0-rgb: 246, 221, 160;
  --gold-f6dfa4-rgb: 246, 223, 164;
  --gold-f7d796-rgb: 247, 215, 150;
  --gold-f7dc9b-rgb: 247, 220, 155;
  --gold-f7dc9e-rgb: 247, 220, 158;
  --gold-f7e2ad-rgb: 247, 226, 173;
  --gold-fbf6ec-rgb: 251, 246, 236;
  --gold-ffe9ba-rgb: 255, 233, 186;
  --gold-fff1c9-rgb: 255, 241, 201;
  --gold-fff4d6-rgb: 255, 244, 214;
  --gold-fff6dc-rgb: 255, 246, 220;
  --gold-hi-rgb: 242, 210, 139;
  --gold-ink-rgb: 27, 19, 6;
  --gold-light-rgb: 255, 236, 190;
  --gold-soft-rgb: 231, 207, 156;
  /* end gold tokens */

  --ink: #020914;
  --navy-950: #041127;
  --navy-900: #061a31;
  --navy-850: #08213d;
  --navy-800: #0b2a4c;
  --navy-700: #12385f;

  --gold: rgb(var(--gold-rgb));
  --gold-hi: rgb(var(--gold-hi-rgb));
  --gold-ink: rgb(var(--gold-ink-rgb));
  --gold-line: rgba(var(--gold-hi-rgb), .14);
  --gold-line-strong: rgba(var(--gold-hi-rgb), .36);

  --text: #f5f7fb;
  --text-2: #b9c5d5;
  --text-3: #8d9db3;

  --carmine: #c8433a;
  --carmine-hi: #ff8a7d;
  --ok: #4fca8c;
  --ok-hi: #a6efc8;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --pad: clamp(14px, 4.6vw, 24px);
  --gutter: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-ui: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Aref Ruqaa", "Cairo", serif;

  color-scheme: dark;
}

/* the competition's theme: only the accent changes (SECTION_THEMES) */
:root,
[data-theme="gold"] {
  --accent: rgb(var(--gold-rgb));
  --accent-hi: rgb(var(--gold-hi-rgb));
  --accent-deep: rgb(var(--gold-deep-rgb));
  --accent-glow: rgba(var(--gold-rgb), .3);
  --accent-ink: rgb(var(--gold-ink-rgb));
}

[data-theme="ember"] {
  --accent: #ef8a4c;
  --accent-hi: #ffc39a;
  --accent-deep: #6e2a12;
  --accent-glow: rgba(239, 138, 76, .3);
  --accent-ink: #231006;
}

[data-theme="azure"] {
  --accent: #4cc3cb;
  --accent-hi: #9fe7ec;
  --accent-deep: #0b3f4f;
  --accent-glow: rgba(76, 195, 203, .28);
  --accent-ink: #04191d;
}

[data-theme="rose"] {
  --accent: #e8789f;
  --accent-hi: #f8b9cf;
  --accent-deep: #5d1a33;
  --accent-glow: rgba(232, 120, 159, .28);
  --accent-ink: #250913;
}

[data-theme="emerald"] {
  --accent: #4fca8c;
  --accent-hi: #a6efc8;
  --accent-deep: #0e4a30;
  --accent-glow: rgba(79, 202, 140, .26);
  --accent-ink: #04190f;
}

[data-theme="night"] {
  --accent: #9a95ee;
  --accent-hi: #cfccff;
  --accent-deep: #25226b;
  --accent-glow: rgba(154, 149, 238, .28);
  --accent-ink: #0d0b2b;
}


/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(90% 50% at 85% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(70% 40% at 0% 0%, rgba(18, 56, 95, .55), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, figure, fieldset, legend, ol, ul {
  margin: 0;
  padding: 0;
}

h1, h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ol, ul {
  list-style: none;
}

a {
  color: var(--accent-hi);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 30;
  inset-inline-start: 12px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--gold);
  text-decoration: none;
}

.skip-link:focus {
  top: max(12px, env(safe-area-inset-top));
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted {
  color: var(--text-2);
}


/* ---------- top bar ---------- */

.cbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--gutter), calc((100% - 760px) / 2 + var(--gutter))) 8px;
  background: linear-gradient(180deg, rgba(2, 9, 20, .9) 55%, rgba(2, 9, 20, 0));
}

/* a competition's own page (the bar with the timer): a solid surface like the home's (S4) */
.cbar:has(.cbar__timer) {
  padding-block: max(10px, env(safe-area-inset-top)) 10px;
  background: linear-gradient(180deg, rgba(4, 17, 39, .94), rgba(4, 17, 39, .78));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
}

/* the site's sound toggle (ui-sound.js): the home page's 🔊/🔇, next to «ارجع للموقع» */
.usound {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  background: rgba(6, 26, 49, .7);
  color: var(--gold-hi);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.usound:hover {
  background: var(--navy-800);
}

.usound:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.usound[aria-pressed="false"] {
  color: rgba(185, 197, 213, .8);
  border-color: rgba(185, 197, 213, .25);
}

.usound__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usound__body {
  fill: currentColor;
  fill-opacity: .18;
}


.cbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
}

/* the bar is one bar on every page (site redesign W1): the logo 36, the name in Ruqaa */
.cbar__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-line-strong);
}

.cbar:has(.cbar__timer) .cbar__brand img {
  box-shadow: 0 0 0 1px var(--gold-line-strong), 0 4px 12px -4px #000;
}

.cbar__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.cbar__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hi);
  background: var(--navy-900);
}

.cbar__timer.is-low {
  color: #fff;
  border-color: var(--carmine-hi);
  background: #6a1d18;
}

@media (max-width: 340px) {
  .cbar__name {
    display: none;
  }
}


/* ---------- page ---------- */

.comp {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 4px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

.comp:focus {
  outline: none;
}

.step {
  display: grid;
  gap: 14px;
}

.step--center {
  justify-items: center;
  text-align: center;
  padding-block: 28px;
}

.step__icon {
  width: 44px;
  height: 44px;
  color: var(--accent-hi);
}

.step__title {
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.step__title--quiet {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-2);
}

.card {
  min-width: 0;
  padding: var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012) 60%),
    var(--navy-900);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-hi-rgb), .09),
    0 22px 44px -28px rgba(0, 0, 0, .8);
}

.card.step {
  gap: 14px;
}

.noscript {
  margin-top: 20px;
  text-align: center;
}


/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 6px;
}

.hero__media {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 52vh;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 50% 120%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(45deg, rgba(var(--gold-hi-rgb), .045) 0 1px, transparent 1px 18px),
    var(--navy-850);
}

.hero__icon {
  width: 64px;
  height: 64px;
  color: var(--accent-hi);
  stroke-width: 1.4;
}

.hero__icon-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 20px;
}

.hero__kicker {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--accent-hi);
}

.hero__title {
  font-size: clamp(1.4rem, 6.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--gold-hi);
}

.hero--compact .hero__media,
.hero--compact .hero__art {
  max-height: 160px;
  min-height: 96px;
}

.hero--compact .hero__title {
  font-size: clamp(1.15rem, 5vw, 1.5rem);
}


/* ---------- intro ---------- */

.intro__body {
  display: grid;
  gap: 14px;
}

.intro__desc {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 3px 12px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 255, 255, .03);
}

.note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--accent);
  background: rgba(255, 255, 255, .035);
}

.note__title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent-hi);
}

.note__text {
  white-space: pre-line;
  color: var(--text-2);
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line-strong);
  background: rgba(255, 255, 255, .04);
}

.status .ic {
  margin-top: 4px;
  color: var(--accent-hi);
}

.status p {
  display: grid;
}

.status strong {
  font-size: 1.05rem;
}

.status span {
  color: var(--text-2);
  font-size: .92rem;
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 138, 125, .45);
  color: #ffd2cc;
  background: rgba(200, 67, 58, .16);
  font-weight: 600;
}


/* ---------- buttons and action bars ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  touch-action: manipulation;
}

.btn:hover {
  border-color: var(--gold-line-strong);
  background: rgba(255, 255, 255, .08);
}

.btn--primary {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}

.btn--primary:hover {
  border-color: transparent;
  background: var(--accent-hi);
}

.btn:disabled {
  opacity: .6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions > .btn {
  flex: 1 1 140px;
}

.actions > .btn--primary {
  flex-grow: 2;
}

.actions--sticky,
.actions--bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-inline: calc(-1 * var(--pad));
  margin-bottom: calc(-1 * var(--pad));
  padding: 12px var(--pad) max(12px, env(safe-area-inset-bottom));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, rgba(6, 26, 49, 0), rgba(6, 26, 49, .96) 30%);
}

.actions--bar {
  flex-wrap: nowrap;
  margin: 0;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: linear-gradient(180deg, rgba(2, 9, 20, 0), rgba(2, 9, 20, .96) 28%);
}

.actions--bar > .btn {
  flex: 1 1 0;
  min-width: 0;
}

.actions__spacer {
  flex: 1 1 0;
}


/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-weight: 700;
}

.req {
  color: var(--carmine-hi);
  font-size: .86rem;
  font-weight: 700;
}

.opt {
  color: var(--text-3);
  font-size: .86rem;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  font-size: 1.05rem;
  line-height: 1.5;
}

.field__input:focus {
  outline: 2px solid var(--accent-hi);
  outline-offset: 1px;
  border-color: transparent;
}

.field__input[dir="ltr"] {
  text-align: left;
}

.field__input--long {
  min-height: 140px;
  resize: vertical;
}

.field__input--num {
  max-width: 16rem;
}

select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: 22px 50%, 16px 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 14px;
  padding-inline-start: 36px;
}

.field__hint {
  font-size: .86rem;
  color: var(--text-3);
}

.field__error {
  font-size: .9rem;
  font-weight: 700;
  color: var(--carmine-hi);
}

.has-error > .field__input,
.field__input[aria-invalid="true"] {
  border-color: var(--carmine-hi);
}


/* ---------- answering ---------- */

.qhead {
  display: grid;
  gap: 8px;
}

.qhead__title {
  font-weight: 700;
  color: var(--text-2);
  font-size: .92rem;
}

.progress {
  display: grid;
  gap: 6px;
}

.progress__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-weight: 800;
}

.progress__answered {
  font-weight: 600;
  color: var(--text-2);
}

.progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
  transform-origin: right center;
  transform: scaleX(var(--p, 0));
}

.jump {
  border-radius: var(--radius-sm);
}

.jump__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}

.jump__toggle::-webkit-details-marker {
  display: none;
}

.jump__toggle::after {
  content: "▾";
  margin-inline-start: 8px;
}

.jump[open] .jump__toggle::after {
  content: "▴";
}

.jump__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.jump__btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}

.jump__btn.is-done {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-hi);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.jump__btn.is-current {
  outline: 2px solid var(--accent-hi);
  outline-offset: 1px;
}

.q {
  display: grid;
  gap: 12px;
  min-width: 0;
  border-color: var(--gold-line);
}

fieldset.q {
  margin: 0;
}

.q.has-error {
  border-color: rgba(255, 138, 125, .6);
}

/* floated, a legend leaves the fieldset's border and becomes an ordinary grid row */
.q__text {
  float: inline-start;
  width: 100%;
  padding: 0;
  font-size: clamp(1.08rem, 4.4vw, 1.3rem);
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-line;
}

.q--info .q__text {
  font-weight: 700;
  font-size: 1.05rem;
}

.q__num {
  color: var(--accent-hi);
}

.q__pts {
  justify-self: start;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent-hi);
}

.q__help,
.q__hint {
  color: var(--text-2);
  font-size: .92rem;
}

.q__media {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-800);
}

.q__media img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

.choices {
  display: grid;
  gap: 10px;
}

.choices--tf {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  touch-action: manipulation;
}

.choice:hover {
  border-color: var(--gold-line-strong);
}

.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice__text {
  min-width: 0;
  font-weight: 600;
  line-height: 1.55;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

.step--single .q + .q {
  margin-top: 2px;
}


/* ---------- review ---------- */

.review__count {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-hi);
}

.review__sub {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
}

.review__list {
  display: grid;
  gap: 8px;
}

.review__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  text-align: start;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.review__item.is-required {
  border-color: rgba(255, 138, 125, .55);
}

.review__num {
  font-weight: 800;
  white-space: nowrap;
}

.review__q {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ok-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ok-hi);
}

.confirm {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--navy-900));
}

.confirm__text {
  font-weight: 800;
}


/* ---------- result ---------- */

.result {
  gap: 16px;
}

.result__card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(100% 70% at 50% 0%, var(--accent-glow), transparent 70%),
    var(--navy-900);
}

.result__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
}

.result__badge .ic {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.result__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-hi);
}

.result__comp {
  color: var(--text-2);
  font-weight: 600;
}

.result__lines {
  display: grid;
  gap: 6px;
  width: 100%;
}

.result__line {
  font-weight: 700;
}

.result__line--score,
.result__line--points {
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-weight: 800;
  color: var(--accent-hi);
}

.result__line--pending {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #ffe2a8;
  background: rgba(var(--gold-rgb), .12);
}

.result__line--hint {
  color: var(--text-2);
  font-weight: 600;
}

.result .actions {
  width: 100%;
}

.answers {
  display: grid;
  gap: 10px;
}

.answers__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.answers__list {
  display: grid;
  gap: 10px;
}

.answer {
  display: grid;
  gap: 6px;
}

.answer--ok {
  border-color: rgba(79, 202, 140, .45);
}

.answer--no {
  border-color: rgba(255, 138, 125, .45);
}

.answer__head {
  display: flex;
  gap: 10px;
  font-weight: 800;
}

.answer__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--text-3);
}

.answer--ok .answer__mark {
  background: var(--ok);
}

.answer--no .answer__mark {
  background: var(--carmine-hi);
}

.answer__q {
  white-space: pre-line;
}

.answer__label {
  color: var(--text-3);
  font-weight: 700;
}

.answer__row--right {
  color: var(--ok-hi);
}

.answer__pts {
  font-size: .86rem;
  color: var(--text-3);
}

.answer__why {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: rgba(255, 255, 255, .035);
  white-space: pre-line;
}


/* ---------- connection ---------- */

.netbar {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line-strong);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--navy-800);
  box-shadow: 0 12px 30px -12px #000;
}

.queued .step__icon {
  color: var(--carmine-hi);
}


/* ---------- desktop ---------- */

@media (min-width: 760px) {

  .comp {
    padding-top: 10px;
  }

  .step {
    gap: 18px;
  }

  .actions--bar {
    justify-content: space-between;
  }

  .actions--bar > .btn {
    flex: 0 1 220px;
  }

  .actions--bar > .actions__spacer {
    flex: 0 1 220px;
  }

}


/* ---------- motion (only for people who are fine with it) ---------- */

@media (prefers-reduced-motion: no-preference) {

  .step {
    animation: step-in .32s var(--ease-out) both;
  }

  .progress__bar {
    transition: transform .35s var(--ease-out);
  }

  .btn,
  .choice,
  .jump__btn {
    transition: transform .2s var(--ease-out), background-color .2s, border-color .2s;
  }

  .btn:active,
  .choice:active {
    transform: scale(.98);
  }

  @keyframes step-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

}


/* =========================================================
   «نقاطي» (points/index.html, portal.js)
========================================================= */

.btn--small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: .92rem;
}

.portal {
  gap: 16px;
}

.portal__me {
  display: grid;
  gap: 12px;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(100% 80% at 100% 0%, var(--accent-glow), transparent 65%),
    var(--navy-900);
}

.portal__who {
  display: grid;
  gap: 2px;
}

.portal__name {
  font-size: clamp(1.3rem, 6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--gold-hi);
}

.portal__balance {
  display: grid;
  gap: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line-strong);
  background: rgba(255, 255, 255, .04);
}

.portal__balance-label {
  font-weight: 700;
  color: var(--text-2);
}

.portal__balance strong {
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--accent-hi);
}

.portal__me [data-logout] {
  justify-self: start;
}

.portal__notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 202, 140, .5);
  font-weight: 700;
  color: var(--ok-hi);
  background: rgba(79, 202, 140, .12);
}

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

.portal__h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.plist {
  display: grid;
  gap: 8px;
}

.prow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}

.prow__main {
  display: grid;
  flex: 1 1 180px;
  min-width: 0;
}

.prow__title {
  font-weight: 800;
}

.prow__meta {
  font-size: .88rem;
  color: var(--text-3);
}

.prow__line {
  font-weight: 700;
  color: var(--accent-hi);
}

.prow__line.is-pending {
  color: #ffe2a8;
}

.prow__amount {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.prow__amount.is-plus {
  color: var(--ok-hi);
}

.prow__amount.is-minus {
  color: var(--carmine-hi);
}

.pstatus {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  border: 1px solid var(--gold-line-strong);
  color: var(--text-2);
}

.pstatus--approved {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--accent-hi);
}

.pstatus--fulfilled {
  color: var(--ok-hi);
  border-color: rgba(79, 202, 140, .5);
}

.pstatus--cancelled {
  color: var(--text-3);
}

.shop__group {
  display: grid;
  gap: 10px;
}

.shop__cat {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-hi);
}

.shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.shop__item {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, .03);
}

.shop__item.is-off .shop__media {
  opacity: .55;
}

.shop__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}

.shop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop__media--art {
  aspect-ratio: auto;
  height: 88px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 50% 120%, var(--accent-glow), transparent 70%),
    var(--navy-850);
}

.shop__icon {
  width: 52px;
  height: 52px;
  color: var(--accent-hi);
  stroke-width: 1.4;
}

.shop__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.shop__body > :last-child {
  margin-top: auto;
}

.shop__name {
  font-size: 1.05rem;
  font-weight: 800;
}

.shop__desc {
  font-size: .92rem;
  color: var(--text-2);
}

.shop__cost {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-hi);
}

.shop__note {
  font-size: .86rem;
  color: var(--text-3);
}

.shop__off {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, .2);
  font-weight: 800;
  color: var(--text-2);
}

dialog.order {
  width: min(460px, calc(100% - 24px));
  margin: auto;
  color: var(--text);
}

dialog.order::backdrop {
  background: rgba(2, 9, 20, .72);
}

dialog.order[open] {
  display: grid;
  gap: 14px;
}

.order__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.order__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-hi);
}

.result__lines--start {
  justify-items: start;
}


/* ---------- «نقاطي» v2: the store's schedule, cancel, seasons (§18.3, §18.4) ---------- */

.portal__alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 138, 125, .5);
  font-weight: 700;
  color: #ffd2cc;
  background: rgba(200, 67, 58, .14);
}

.store-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line-strong);
  background: rgba(var(--gold-rgb), .08);
}

.store-state__icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--accent-hi);
}

.store-state__text {
  display: grid;
  min-width: 0;
}

.store-state__headline {
  font-weight: 800;
  color: var(--text);
}

.store-state__countdown {
  font-weight: 700;
  color: var(--accent-hi);
}

.store-state__countdown:empty {
  display: none;
}

.store-state--closed {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}

.store-state--closed .store-state__icon {
  color: var(--text-2);
}

.shop__item.is-soon .shop__media {
  opacity: .8;
}

.season__dates {
  font-size: .92rem;
}

.season__earned {
  font-weight: 800;
  color: var(--accent-hi);
}

.season__meter {
  display: block;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  -webkit-appearance: none;
  appearance: none;
}

.season__meter::-webkit-meter-bar {
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.season__meter::-webkit-meter-optimum-value,
.season__meter::-webkit-meter-suboptimum-value,
.season__meter::-webkit-meter-even-less-good-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}

.season__meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}

.seasons__summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 800;
  color: var(--text-2);
  cursor: pointer;
}

.seasons__summary:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.seasons[open] > .plist {
  margin-top: 8px;
}

.seasons__summary {
  gap: 10px;
  list-style: none;
}

.seasons__summary::-webkit-details-marker {
  display: none;
}

/* a small chevron: down while folded, up when open */
.seasons__summary::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-inline-end: 2px solid var(--accent-hi);
  border-block-end: 2px solid var(--accent-hi);
  transform: rotate(45deg);
  transition: transform .2s var(--ease-out);
}

.seasons[open] > .seasons__summary::before {
  margin-top: 4px;
  transform: rotate(-135deg);
}

/* ---------- §19.2 guests, §19.3 the age notice ---------- */

.note--age {
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
}

/* the account's icon (assets/js/account/link.js): the control is the door, and the photo fills it */
.acct-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.acct-badge__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  overflow: hidden;
  border-radius: 20px 20px 7px 7px;
  font: 700 1.3rem / 1 var(--font-display);
  color: var(--gold-hi);
  background: rgba(6, 26, 49, .8);
  transition: filter .16s;
}

.acct-badge__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
  pointer-events: none;
}

.acct-badge:hover .acct-badge__face {
  filter: brightness(1.14);
}

.acct-badge.is-in .acct-badge__face {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
}

.acct-badge.is-in .acct-badge__face::after {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.acct-badge__face img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.acct-badge__face svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a competition's running timer needs the room */
.cbar__timer:not([hidden]) ~ .acct-badge {
  display: none;
}

/* moving between the site's pages feels like one app: the browser keeps the bar still and fades the page
   (Phase 8 track P, assets/js/nav.js). Where unsupported, the page simply loads. */
@view-transition {
  navigation: auto;
  types: site-page;
}

/* only for a move between pages (the type), so a page's own transitions (the account's sign-in) stay as they were */
html:active-view-transition-type(site-page) :is(.topbar, .pbar, .cbar) {
  view-transition-name: site-topbar;
}

html:active-view-transition-type(site-page) .tabbar {
  view-transition-name: site-tabbar;
}

html:active-view-transition-type(site-page)::view-transition-old(root),
html:active-view-transition-type(site-page)::view-transition-new(root) {
  animation-duration: .22s;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}


/* =========================================================
   Phase 8 track P, closing round 2 (owner, 2026-11-04)
========================================================= */

/* «ارجع للموقع» as the Home icon, at the bar's end, from the first frame («نقاطي» has it in its markup; nav.js adds
   it to the competition pages, whose shells are drawn without it). The link and its words stay for no-JS. */
.cbar__home {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(6, 26, 49, .7);
  -webkit-tap-highlight-color: transparent;
}

.cbar__home::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background: var(--gold-hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.6 12 4l8 6.6V19a1.5 1.5 0 0 1-1.5 1.5H15v-5.5h-6v5.5H5.5A1.5 1.5 0 0 1 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.6 12 4l8 6.6V19a1.5 1.5 0 0 1-1.5 1.5H15v-5.5h-6v5.5H5.5A1.5 1.5 0 0 1 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cbar__home:hover {
  background: var(--navy-800);
}

.cbar__home:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

/* ---------- «نقاطي»: the summary card, the tabs, the prizes ---------- */

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

.portal__me .season {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--gold-line);
}

.season__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.season__name {
  font-size: 1rem;
  font-weight: 800;
}

.pstats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.pstat {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  min-height: 64px;
  padding: 8px 6px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s, border-color .16s, transform .16s;
}

.pstat:hover {
  border-color: var(--gold-line-strong);
  background: rgba(255, 255, 255, .07);
}

.pstat:active {
  transform: scale(.97);
}

.pstat:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.pstat__n {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hi);
}

.pstat__w {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-2);
}

/* the tabs: one place at a time; they stay under the top bar while the page scrolls */
.ptabs {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  background: rgba(6, 26, 49, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
}

.ptabs::-webkit-scrollbar {
  display: none;
}

.ptabs__tab {
  position: relative;
  display: inline-flex;
  flex: 1 1 0;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--text-2);
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: color .18s, background-color .22s cubic-bezier(.22, 1, .36, 1);
}

.ptabs__tab:hover {
  color: var(--text);
}

.ptabs__tab[aria-selected="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 8px 18px -10px var(--accent-glow);
}

.ptabs__tab:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 1px;
}

.ptabs__icon {
  width: 18px;
  height: 18px;
}

.ptabs__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: var(--carmine);
}

.portal__panel:not([hidden]) {
  animation: ptab-in .32s cubic-bezier(.22, 1, .36, 1) both;
}

/* the tab names the panel: its own heading stays for screen readers only */
.ptabs ~ .portal__panel > .portal__h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes ptab-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* the prizes: two to a row on a phone, a compact card each */
.portal .shop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal .shop__media,
.portal .shop__media--art {
  aspect-ratio: 4 / 3;
  height: auto;
}

.portal .shop__icon {
  width: 38px;
  height: 38px;
}

.portal .shop__body {
  gap: 6px;
  padding: 10px 10px 12px;
}

.portal .shop__name {
  font-size: .95rem;
  line-height: 1.45;
}

.portal .shop__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .84rem;
}

.portal .shop__cost {
  font-size: 1rem;
}

.portal .shop__note {
  font-size: .78rem;
}

.portal .shop__body .btn,
.portal .shop__off {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  font-size: .9rem;
}

@media (max-width: 330px) {
  .portal .shop {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* a phone: the words alone, so the four tabs fit */
@media (max-width: 480px) {
  .ptabs__icon {
    display: none;
  }
}

@media (min-width: 640px) {
  .portal__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .portal__head .portal__balance {
    min-width: 220px;
    text-align: center;
  }

  .portal .shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* leaving the account: red, plain, at the end of the page */
.portal__end {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.btn--out {
  min-height: 48px;
  border-color: rgba(255, 138, 125, .55);
  color: var(--carmine-hi);
  background: rgba(200, 67, 58, .12);
}

.btn--out:hover {
  border-color: var(--carmine-hi);
  color: #fff;
  background: rgba(200, 67, 58, .3);
}

/* ---------- coming in and going out (nav.js) ---------- */

/* a light arrival: what the page draws first rises into place, in reading order */
html[data-arrive] .comp > .step > * {
  animation: nav-arrive .55s cubic-bezier(.22, 1, .36, 1) backwards;
}

html[data-arrive] .comp > .step > *:nth-child(2) { animation-delay: .07s; }
html[data-arrive] .comp > .step > *:nth-child(3) { animation-delay: .13s; }
html[data-arrive] .comp > .step > *:nth-child(n+4) { animation-delay: .19s; }

/* going back to the site: the page draws back for a moment, the bar stays */
html[data-leaving] main {
  animation: nav-leave .19s ease-in forwards;
}

@keyframes nav-arrive {
  from { opacity: 0; transform: translateY(16px); }
}

@keyframes nav-leave {
  to { opacity: 0; transform: translateY(10px) scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
  .portal__panel:not([hidden]),
  html[data-arrive] .comp > .step > *,
  html[data-leaving] main {
    animation: none;
  }

  .pstat,
  .ptabs__tab {
    transition: none;
  }
}




/* ---------- COMPETITION — site redesign S4 (wave 5) ----------
   The approved S4 layer (docs/site-redesign/comp-s4.css on the design branch), built into the engine's own markup (view.js).
   html.cx = the competition engine page (main.js), so «نقاطي» (portal.js, same comp.css) keeps its look. */
/* ---------- top bar: like the home ---------- */
.cx .cbar__timer { position: relative; gap: 8px; padding-inline: 6px 14px; font-size: 1rem; }
.cx-ring { width: 28px; height: 28px; transform: rotate(-90deg); flex: none; }
.cx-ring circle { fill: none; stroke-width: 3.2; stroke: rgba(var(--gold-hi-rgb), .16); }
.cx-ring .on { stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--to, 0); transition: stroke-dashoffset 1s linear; }
.cx .cbar__timer.is-low .cx-ring .on { stroke: var(--carmine-hi); }

/* ---------- intro ---------- */
.cx .cx-hero { position: relative; }
.cx .cx-hero .hero__art { min-height: clamp(170px, 30vh, 260px); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: radial-gradient(60% 80% at 50% 115%, rgba(var(--gold-rgb), .34), transparent 70%), radial-gradient(50% 60% at 50% 40%, rgba(18, 56, 95, .8), transparent 75%),
  repeating-conic-gradient(from 0deg at 50% 62%, rgba(var(--gold-hi-rgb), .06) 0deg 2deg, transparent 2deg 12deg), var(--navy-850); }
.cx .cx-hero .hero__icon { width: 92px; height: 92px; padding: 18px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, rgba(var(--gold-hi-rgb), .25), rgba(8, 33, 61, .9) 70%);
  box-shadow: 0 0 0 1px var(--gold-line-strong), 0 0 0 10px rgba(var(--gold-hi-rgb), .05), 0 0 60px 8px rgba(var(--gold-rgb), .25); animation: cx-float 4s ease-in-out infinite; }
@keyframes cx-float { 50% { transform: translateY(-6px); } }
.cx .hero__kicker { margin-top: 12px; font-size: 1.25rem; }
.cx .hero__title { font-family: var(--font-display); font-size: clamp(2rem, 8.6vw, 3rem); line-height: 1.3; font-weight: 700; }

.cx-stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cx-stat { display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(var(--gold-hi-rgb), .07), rgba(var(--gold-hi-rgb), .015)); text-align: center; }
.cx-stat__ic svg { width: 22px; height: 22px; color: var(--gold-hi); }
.cx-stat__n { font-size: 1.7rem; line-height: 1.2; font-weight: 900; color: var(--text); }
.cx-stat__l { font-size: .8rem; font-weight: 700; color: var(--text-3); }
.cx-until { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .88rem; color: var(--text-2); }
.cx-until__ic svg { width: 18px; height: 18px; color: var(--gold-hi); display: block; }
.cx-until__left { margin-inline-start: auto; height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(var(--gold-rgb), .16); border: 1px solid var(--gold-line-strong); color: var(--gold-hi); font-size: .8rem; font-weight: 800; }
.cx .intro__desc { font-size: 1.02rem; line-height: 1.9; }
.cx-steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: cx; display: grid; gap: 10px; }
.cx-steps li { counter-increment: cx; display: flex; align-items: flex-start; gap: 12px; line-height: 1.7; color: var(--text-2); }
.cx-steps li::before { content: counter(cx, arabic-indic); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--gold-rgb), .16); border: 1px solid var(--gold-line-strong); color: var(--gold-hi); font-weight: 900; font-size: .9rem; line-height: 1; }
.cx-reward { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: linear-gradient(90deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .03)); border: 1px solid var(--gold-line-strong); font-weight: 700; font-size: .92rem; }
.cx-reward svg { width: 22px; height: 22px; color: var(--gold-hi); display: block; }

/* scheduled / closed: the status as the headline */
.cx .status { padding: 18px; border-radius: var(--radius-md); gap: 14px; }
.cx .status strong { font-family: var(--font-display); font-size: clamp(1.6rem, 6.6vw, 2.2rem); line-height: 1.35; font-weight: 700; color: var(--gold-hi); }
.cx .status .ic { width: 40px; height: 40px; }

/* ---------- questions ---------- */
.cx .qhead__title { font-family: var(--font-display); font-weight: 700; color: var(--gold-hi); }
.cx .progress__track { height: 6px; }
.cx .cx-jump .jump__toggle { display: none; }
/* the strip scrolls inside itself: it never widens the page (7+ numbers on a 280px phone) */
.cx .qhead, .cx .cx-jump, .cx .cx-jump nav { min-width: 0; }
/* offline: the fixed connection bar never covers the last buttons */
html.cx body:has(.netbar:not([hidden])) .comp { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cx .cx-jump .jump__grid { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; margin: 0; }
.cx .cx-jump .jump__grid::-webkit-scrollbar { display: none; }
.cx .cx-jump .jump__btn { flex: none; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; }
.cx .cx-jump .jump__btn.is-current { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(var(--gold-hi-rgb), .22); }
.cx .q.card { position: relative; padding-top: 22px; }
.cx-qnum { position: absolute; top: -18px; inset-inline-start: 18px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-weight: 900; font-size: 1.2rem; box-shadow: 0 10px 24px -10px rgba(var(--gold-rgb), .8); }
.cx .q__text { font-size: 1.18rem; line-height: 1.7; }
.cx .choice { gap: 12px; min-height: 58px; transition: border-color .2s, background .2s, transform .15s; }
.cx .choice:active { transform: scale(.985); }
.cx .choice input { position: absolute; opacity: 0; pointer-events: none; }
.cx-letter { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--gold-line-strong); background: rgba(2, 9, 20, .35); color: var(--gold-hi); font-weight: 900; transition: background .2s, color .2s; }
.cx .choice:has(input:checked) .cx-letter { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.cx .choice:has(input:checked)::after { content: "✓"; margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-hi); color: var(--gold-ink); font-weight: 900; font-size: .85rem; }
.cx .choice:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cx .actions--bar { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- review ---------- */
.cx .review { text-align: start; }
.cx-donut { position: relative; width: 132px; height: 132px; margin: 6px auto 4px; }
.cx-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cx-donut circle { fill: none; stroke-width: 10; stroke: rgba(var(--gold-hi-rgb), .14); }
.cx-donut .on { stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--to, 0); }
.cx-donut b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.cx-donut small { display: block; font-size: .85rem; font-weight: 700; color: var(--text-3); }
.cx .review__count { text-align: center; }
.cx .review__item { border-radius: var(--radius-md); }

/* ---------- result ---------- */
.cx .result__card { position: relative; overflow: hidden; text-align: center; background: radial-gradient(70% 50% at 50% 0%, rgba(var(--gold-rgb), .2), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.cx-score { position: relative; width: 168px; height: 168px; margin: 4px auto 6px; }
.cx-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cx-score circle { fill: none; stroke-width: 11; stroke: rgba(var(--gold-hi-rgb), .12); }
.cx-score .on { stroke: url(#cx-score-g); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--to); animation: cx-fill 1.2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes cx-fill { from { stroke-dashoffset: 100; } }
.cx-score b { position: absolute; inset: 0; display: grid; place-content: center; font-size: 3rem; font-weight: 900; line-height: 1; }
.cx-score small { display: block; margin-top: 6px; font-size: .9rem; font-weight: 700; color: var(--text-3); }
.cx .result__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 6.4vw, 2.2rem); line-height: 1.4; color: var(--gold-hi); }
.cx-earned { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 4px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--gold-rgb), .22), rgba(var(--gold-rgb), .08)); border: 1px solid var(--gold-line-strong); font-size: .95rem; }
.cx-earned b { color: var(--gold-hi); font-size: 1.15rem; font-weight: 900; }
.cx-earned svg { width: 20px; height: 20px; color: var(--gold-hi); display: block; }
.cx .result__lines { list-style: none; padding: 0; }
.cx .result__line--earned { display: grid; justify-items: center; font-weight: inherit; }
.cx .result__card .actions { justify-content: center; }
.cx-burst { position: absolute; left: 50%; top: 96px; width: 0; height: 0; pointer-events: none; }
.cx-burst i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 2px; background: var(--gold-hi); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: cx-pop 1.1s var(--t) cubic-bezier(.16, 1, .3, 1) forwards; }
.cx-burst i:nth-child(3n) { background: var(--gold); width: 5px; height: 10px; }
.cx-burst i:nth-child(4n) { background: rgb(var(--gold-fff4d6-rgb)); border-radius: 50%; }
@keyframes cx-pop { 10% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) rotate(140deg); } }
.cx .answer { position: relative; padding-inline-start: 64px; }
.cx .answer__mark { position: absolute; inset-inline-start: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.cx .answer--ok { border-color: rgba(79, 202, 140, .45); background: linear-gradient(90deg, rgba(79, 202, 140, .1), transparent 40%), var(--navy-850); }
.cx .answer--ok .answer__mark { background: var(--ok); color: #04210f; }
.cx .answer--no { border-color: rgba(255, 138, 125, .45); background: linear-gradient(90deg, rgba(200, 67, 58, .14), transparent 40%), var(--navy-850); }
.cx .answer--no .answer__mark { background: var(--carmine); color: #fff; }
.cx .answer__why { padding: 10px 12px; border-radius: 12px; background: rgba(2, 9, 20, .4); border-inline-start: 3px solid var(--gold-line-strong); }

@media (min-width: 900px) {
  .cx .intro { max-width: 980px; }
  .cx .cx-hero .hero__art { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .cx .cx-hero .hero__icon, .cx-score .on, .cx-burst i { animation: none; } .cx-burst { display: none; } }
.cx-remind { width: 100%; margin-top: 10px; }
/* «فكّرني» set (a second tap cancels), and why it could not be set */
.cx-remind.is-on { background: none; border: 1px solid var(--gold-line-strong); color: var(--gold-hi); box-shadow: none; }
.cc__go--ghost.is-on { background: rgba(var(--gold-rgb), .14); }
.remind-note { flex-basis: 100%; margin: 6px 0 0; font-size: .85rem; line-height: 1.7; color: var(--text-2); }
.cc .remind-note { position: relative; z-index: 1; }
/* desktop: the title beside the details */
@media (min-width: 960px) {
  .cx .comp:has(> .step.intro) { width: min(100%, 1120px); max-width: none; }
  html.cx:has(.step.intro) .cbar { padding-inline: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter))); }
  .cx .step.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; max-width: none; }
  .cx .step.intro > .hero { position: sticky; top: 96px; }
  .cx .cx-hero .hero__art { min-height: 340px; }
}


/* ---------- «المسابقات» /competitions/ — site redesign S4 (wave 5): comp-list.html built (assets/js/comp/list.js) ---------- */
.cl { width: min(100%, 980px); margin: 0 auto; padding: 18px var(--gutter) 60px; display: grid; gap: 18px; }
.cl__head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cl__head h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.3; color: var(--gold-hi); }
.cl__head p { margin: 2px 0 0; color: var(--text-2); }
.cl__bal { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: linear-gradient(90deg, rgba(var(--gold-rgb), .18), rgba(var(--gold-rgb), .04)); color: var(--text); text-decoration: none; font-weight: 700; }
.cl__bal b { color: var(--gold-hi); font-size: 1.1rem; }
.cl__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cl__tabs button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: rgba(8, 33, 61, .7); color: var(--text-2); font: 700 .9rem var(--font-ui); cursor: pointer; }
.cl__tabs button.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.cl__tabs small { opacity: .75; margin-inline-start: 4px; }
.cl__grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .cl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--text); text-decoration: none; transition: transform .25s var(--ease-out), border-color .2s; }
.cc:hover { transform: translateY(-3px); border-color: var(--gold-line-strong); }
.cc__ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, rgba(var(--gold-hi-rgb), .25), rgba(8, 33, 61, .9) 70%); box-shadow: 0 0 0 1px var(--gold-line-strong); }
.cc__ic svg { width: 32px; height: 32px; }
.cc h2 { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.cc p { margin: 2px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.7; }
.cc__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc__chip { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; border: 1px solid var(--gold-line-strong); color: var(--gold-hi); background: rgba(var(--gold-rgb), .1); }
.cc__chip--open { color: #04210f; background: var(--ok); border-color: transparent; }
.cc__chip--soon { color: var(--text); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.cc__chip--done { color: var(--text-3); background: none; border-color: rgba(255, 255, 255, .14); }
.cc__go { margin-inline-start: auto; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 800; font-size: .88rem; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); }
.cc__go--ghost { background: none; border: 1px solid var(--gold-line-strong); color: var(--gold-hi); }
.cc__score { margin-inline-start: auto; font-weight: 800; color: var(--text-2); font-size: .85rem; }
.cc__score b { color: var(--gold-hi); font-size: 1.05rem; }
.cc--done { opacity: .86; }
.cl__empty { padding: 26px; border-radius: var(--radius-lg); border: 1px dashed var(--gold-line-strong); text-align: center; color: var(--text-2); }
html.cx .cbar { padding-block: max(10px, env(safe-area-inset-top)) 10px; background: linear-gradient(180deg, rgba(4, 17, 39, .94), rgba(4, 17, 39, .78)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--gold-line); }
.cl__head h1:focus { outline: none; }
.cl__tabs button[aria-pressed] { min-width: 44px; }
.cl__tabs button:focus-visible, .cc__go--ghost:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cc__ic svg { stroke-width: 1.6; }
.cc h2 a { color: inherit; text-decoration: none; }
.cc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cc__link:focus-visible { outline: none; }
.cc:has(.cc__link:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
button.cc__go { position: relative; z-index: 1; border: 1px solid var(--gold-line-strong); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
button.cc__go:disabled { cursor: default; opacity: .85; }
.cl__wait { padding: 26px 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } .cc:hover { transform: none; } }

/* ---------- «نقاطي» store — site redesign S7 (wave 5): every prize in one grid, filters by kind, a picture per kind, «فاضلك N نقطة» ---------- */
.shop-kinds { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.shop-kinds button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: rgba(8, 33, 61, .7); color: var(--text-2); font: 700 .88rem var(--font-ui); cursor: pointer; }
.shop-kinds button.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.shop-kinds button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.portal .shop.shop--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .portal .shop.shop--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop--grid .shop__item[hidden] { display: none; }
.shop__art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold-hi); background: radial-gradient(70% 80% at 50% 110%, rgba(var(--gold-rgb), .3), transparent 70%), var(--navy-800); }
.shop__art svg { width: 46%; max-width: 74px; height: auto; stroke-width: 1.6; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.shop__kind { display: inline-flex; align-self: start; justify-self: start; height: 22px; padding: 0 9px; border-radius: 999px; align-items: center; background: rgba(var(--gold-rgb), .14); color: var(--gold-hi); font-size: .7rem; font-weight: 800; margin-bottom: 4px; }
.shop__need { display: grid; gap: 6px; margin-top: 6px; }
.shop__need-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.shop__need-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.shop__need-t { font-size: .8rem; font-weight: 800; color: var(--text-2); }
