/* ABU SARI links page - mock-up. Engraved gold on Saudi green. */

@font-face {
  font-family: "Label Arabic";
  src: url("fonts/label-arabic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+25CC, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Label Latin";
  src: url("fonts/label-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+2000-200B, U+2010-206F, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Number";
  src: url("fonts/number.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0020-0040, U+00A0, U+00B1, U+00D7, U+2009, U+2212;
  size-adjust: 101.6%;
}

:root {
  /* plain colours first: browsers that do not know oklch() keep these */
  --bg: #01150b;
  --bg-deep: #000904;
  --glow: #0c4927;
  --plate-hi: #0a2e1d;
  --plate-lo: #021d11;
  --well: #000f07;
  --line: #274836;
  --text: #f7f4e6;
  --muted: #baceb6;
  --gold: #e9c266;
  --gold-hi: #f8e8a7;
  --gold-lo: #bd8638;
  --on-gold: #1f1800;
  --shade: rgba(0, 2, 1, 0.75);
  --code-light: #f7f5ec;
  --code-dark: #07180f;
  --notice-bg: #392c07;
  --notice-text: #f8f2dc;
  --edge: linear-gradient(135deg, rgba(241, 214, 128, 0.85), rgba(161, 129, 66, 0.3) 30%, rgba(161, 129, 66, 0.2) 68%, rgba(241, 214, 128, 0.7));
}

:root {
  color-scheme: dark;
  --foil: linear-gradient(118deg, var(--gold-lo) 0%, var(--gold-hi) 28%, var(--gold) 52%, var(--gold-lo) 76%, var(--gold-hi) 100%);
  --radius: 18px;
  --radius-lg: 24px;
  --font: "Label Arabic", "Label Latin", system-ui, sans-serif;
  --num: "Number", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (color: oklch(0 0 0)) {
  :root {
    color-scheme: dark;
    --bg: oklch(0.175 0.038 160);
    --bg-deep: oklch(0.125 0.028 162);
    --glow: oklch(0.36 0.085 153);
    --plate-hi: oklch(0.27 0.052 159);
    --plate-lo: oklch(0.205 0.042 161);
    --well: oklch(0.15 0.032 161);
    --line: oklch(0.37 0.05 158);
    --text: oklch(0.965 0.018 95);
    --muted: oklch(0.83 0.04 140);
    --gold: oklch(0.83 0.12 87);
    --gold-hi: oklch(0.93 0.085 96);
    --gold-lo: oklch(0.66 0.115 72);
    --on-gold: oklch(0.21 0.045 95);
    --foil: linear-gradient(118deg, var(--gold-lo) 0%, var(--gold-hi) 28%, var(--gold) 52%, var(--gold-lo) 76%, var(--gold-hi) 100%);
    --edge: linear-gradient(
      135deg,
      oklch(0.88 0.11 92 / 0.85),
      oklch(0.62 0.09 82 / 0.3) 30%,
      oklch(0.62 0.09 82 / 0.2) 68%,
      oklch(0.88 0.11 92 / 0.7)
    );
    --shade: oklch(0.07 0.02 162 / 0.75);
    --code-light: oklch(0.97 0.012 95);
    --code-dark: oklch(0.19 0.03 160);
    --notice-bg: oklch(0.3 0.055 88);
    --notice-text: oklch(0.96 0.03 95);
    --radius: 18px;
    --radius-lg: 24px;
    --font: "Label Arabic", "Label Latin", system-ui, sans-serif;
    --num: "Number", ui-monospace, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

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

html {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--bg-deep);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-block-size: 100dvh;
  background:
    radial-gradient(120% 560px at 50% 150px, rgba(3, 56, 30, 0.95), transparent 74%),
    linear-gradient(180deg, var(--bg) 0, var(--bg-deep) 100%);
  background:
    radial-gradient(120% 560px at 50% 150px, oklch(0.3 0.07 156 / 0.95), transparent 74%),
    linear-gradient(180deg, var(--bg) 0, var(--bg-deep) 100%);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* the engraved ground: fine wave lines and a paper grain */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background: url("art/tint.svg") 0 0 / 96px 10px;
  opacity: 0.075;
}

body::after {
  background: url("art/grain.svg") 0 0 / 220px 220px;
  opacity: 0.07;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img,
svg,
canvas {
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

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

[hidden] {
  display: none !important;
}

.sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

bdi {
  unicode-bidi: isolate;
}

.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

.page {
  max-inline-size: 560px;
  margin-inline: auto;
  padding-inline: 16px;
  overflow-x: hidden;
  overflow-x: clip;
}

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

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.lang {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 0;
  z-index: 2;
}

.lang a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 16px;
  border: 1px solid rgba(233, 194, 102, 0.4);
  border: 1px solid oklch(0.83 0.12 87 / 0.4);
  border-radius: 999px;
  background: rgba(0, 15, 7, 0.6);
  background: oklch(0.15 0.032 161 / 0.6);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}

.lang a:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  block-size: clamp(300px, 88vw, 372px);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 4% 6%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(38, 103, 57, 0.55), transparent);
  background: radial-gradient(closest-side, oklch(0.46 0.1 150 / 0.55), transparent);
}

.rosette {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  inline-size: clamp(430px, 136vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 46%, transparent 96%);
  mask-image: radial-gradient(closest-side, #000 46%, transparent 96%);
  animation: bloom 2.4s var(--ease) both;
}

.r-base,
.r-light,
.ring {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

/* where the light falls: the turning lines flash as they pass through these wedges */
.r-light {
  -webkit-mask-image: conic-gradient(
    from 205deg,
    transparent 0deg,
    #000 36deg,
    transparent 78deg,
    transparent 182deg,
    #000 214deg,
    transparent 248deg,
    transparent 360deg
  );
  mask-image: conic-gradient(
    from 205deg,
    transparent 0deg,
    #000 36deg,
    transparent 78deg,
    transparent 182deg,
    #000 214deg,
    transparent 248deg,
    transparent 360deg
  );
}

.ring-a {
  animation: turn 280s linear infinite;
}

.ring-b {
  animation: turn 190s linear infinite reverse;
}

.rosette[data-paused] .ring,
.rosette.still .ring,
.rosette.corner .ring {
  animation: none;
}

@keyframes turn {
  to {
    rotate: 360deg;
  }
}

@keyframes bloom {
  from {
    clip-path: circle(6%);
    opacity: 0;
  }
  to {
    clip-path: circle(75%);
    opacity: 1;
  }
}

.emblem {
  inline-size: clamp(128px, 39vw, 166px);
  block-size: auto;
  filter: drop-shadow(0 22px 18px rgba(0, 1, 0, 0.6));
  filter: drop-shadow(0 22px 18px oklch(0.06 0.02 162 / 0.6));
  animation: settle 1.3s var(--ease) both;
}

@keyframes settle {
  from {
    opacity: 0;
    scale: 0.9;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

h1 {
  margin-block-start: -4px;
  font-size: clamp(44px, 13.4vw, 56px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 22px var(--bg-deep);
  animation: rise 1s var(--ease) 0.2s both;
}

html[lang="en"] h1 {
  letter-spacing: 0.03em;
}

h1::after {
  content: "";
  display: block;
  inline-size: 140px;
  block-size: 12px;
  margin: 8px auto 10px;
  background: url("art/rule.svg") center / contain no-repeat;
}

.tagline {
  color: var(--muted);
  font-size: 16px;
  animation: rise 1s var(--ease) 0.3s both;
}

.official {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-start: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 15, 7, 0.62);
  background: oklch(0.15 0.032 161 / 0.62);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: start;
  animation: rise 1s var(--ease) 0.4s both;
}

.official svg {
  flex: none;
  inline-size: 22px;
  block-size: 22px;
  margin-block-start: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official strong,
.legal strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- sections ---------- */

main {
  display: grid;
  gap: 34px;
  margin-block-start: 32px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

h2::before,
h2::after {
  content: "";
  flex: 1;
  block-size: 8px;
  background: url("art/wave.svg") center / 32px 8px repeat-x;
  opacity: 0.7;
}

h2::before {
  -webkit-mask-image: linear-gradient(to right, transparent, #000);
  mask-image: linear-gradient(to right, transparent, #000);
}

h2::after {
  -webkit-mask-image: linear-gradient(to left, transparent, #000);
  mask-image: linear-gradient(to left, transparent, #000);
}

[dir="rtl"] h2::before {
  -webkit-mask-image: linear-gradient(to left, transparent, #000);
  mask-image: linear-gradient(to left, transparent, #000);
}

[dir="rtl"] h2::after {
  -webkit-mask-image: linear-gradient(to right, transparent, #000);
  mask-image: linear-gradient(to right, transparent, #000);
}

/* ---------- link plates ---------- */

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

.plate {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--plate-hi), var(--plate-lo)) padding-box,
    var(--edge) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 28px -22px var(--shade);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07), 0 18px 28px -22px var(--shade);
  transition: transform 500ms var(--ease);
}

/* a band of light that crosses the plate when it is pointed at */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(248, 232, 167, 0.13) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, oklch(0.93 0.085 96 / 0.13) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  pointer-events: none;
  transition: background-position 1100ms var(--ease);
}

@media (hover: hover) {
  .plate:hover {
    transform: translateY(-2px);
  }

  .plate:hover::before {
    background-position: 100% 0;
  }

  .plate:hover .plate-title {
    color: var(--gold-hi);
  }
}

.plate:active {
  transform: scale(0.985);
}

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 6px;
  padding-inline: 14px 10px;
}

.plate-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-inline-size: 0;
  min-block-size: 82px;
  padding-block: 14px;
}

/* the whole plate is the link; the buttons sit above it */
.plate-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.mark {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, #072919, var(--well)) padding-box,
    var(--foil) border-box;
  background:
    radial-gradient(circle at 50% 28%, oklch(0.25 0.048 160), var(--well)) padding-box,
    var(--foil) border-box;
  box-shadow: inset 0 0 0 3px var(--well), inset 0 0 0 4px rgba(233, 194, 102, 0.3);
  box-shadow: inset 0 0 0 3px var(--well), inset 0 0 0 4px oklch(0.83 0.12 87 / 0.3);
  color: var(--gold);
}

.mark svg {
  inline-size: 22px;
  block-size: 22px;
  fill: currentColor;
}

.plate-text {
  display: grid;
  min-inline-size: 0;
}

.plate-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 300ms var(--ease);
}

.plate-sub {
  color: #ceddc6;
  color: oklch(0.88 0.035 135);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.icon-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 15, 7, 0.55);
  background: oklch(0.15 0.032 161 / 0.55);
  color: var(--muted);
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.icon-btn svg {
  inline-size: 19px;
  block-size: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn .i-done,
.icon-btn[data-copied] .i-copy {
  display: none;
}

.icon-btn[data-copied] {
  border-color: var(--gold);
}

.icon-btn[data-copied] .i-done {
  display: block;
  color: var(--gold-hi);
}

.mini-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 15, 7, 0.55);
  background: oklch(0.15 0.032 161 / 0.55);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}

.mini-btn:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.mini-btn .t-done,
.mini-btn[data-copied] .t-idle {
  display: none;
}

.mini-btn[data-copied] .t-done {
  display: inline;
  color: var(--gold-hi);
}

/* the one scannable code: wide screens only, a phone visitor taps instead */
.qr-tile {
  display: none;
}

/* ---------- Snapchat ---------- */

.snap {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.snap .plate-link {
  min-block-size: 0;
  padding-block: 0;
}

.snap .plate-sub {
  display: grid;
}

.snap .dot {
  display: none;
}

.snap-code {
  inline-size: 112px;
  block-size: 112px;
  padding: 4px;
  border-radius: 22px;
  background: var(--foil);
  box-shadow: 0 16px 22px -14px var(--shade);
}

.snap-code img {
  inline-size: 100%;
  block-size: 100%;
}

.plate-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- VIP ---------- */

.vip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #0c341f, #021a0f) padding-box,
    var(--foil) border-box;
  background:
    linear-gradient(180deg, oklch(0.29 0.058 157), oklch(0.195 0.04 161)) padding-box,
    var(--foil) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 34px 54px -34px var(--shade);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.09), 0 34px 54px -34px var(--shade);
}

.rosette.corner {
  top: 0;
  left: auto;
  inset-inline-end: 0;
  inline-size: 360px;
  transform: translate(-38%, -44%);
  opacity: 0.6;
  animation: none;
}

[dir="ltr"] .rosette.corner {
  transform: translate(38%, -44%);
}

.plates + .vip {
  margin-block-start: 12px;
}

.vip-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip h3 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
}

.vip-lead {
  margin-block-start: 10px;
  max-inline-size: 34ch;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-block: 22px 18px;
}

.steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.steps .n {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--well), var(--well)) padding-box,
    var(--foil) border-box;
  color: var(--gold-hi);
  font-family: var(--num);
  font-size: 16px;
}

.steps li + li::before {
  content: "";
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: calc(50% + 26px);
  inline-size: calc(100% - 44px);
  block-size: 1px;
  background: rgba(233, 194, 102, 0.45);
  background: oklch(0.83 0.12 87 / 0.45);
}

.vip-actions {
  display: grid;
  gap: 10px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 58px;
  padding: 10px 18px;
  overflow: hidden;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: transform 400ms var(--ease), border-color 300ms var(--ease);
}

.btn svg {
  flex: none;
  inline-size: 21px;
  block-size: 21px;
  fill: currentColor;
}

.btn.primary {
  background: linear-gradient(180deg, #f6e193, #e6ba5a 55%, #d1993e);
  background: linear-gradient(180deg, oklch(0.91 0.1 95), oklch(0.81 0.125 85) 55%, oklch(0.72 0.125 76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(135, 88, 20, 0.5),
    0 18px 30px -16px rgba(212, 167, 62, 0.55);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.6),
    inset 0 -2px 0 oklch(0.5 0.1 70 / 0.5),
    0 18px 30px -16px oklch(0.75 0.13 85 / 0.55);
  color: var(--on-gold);
}

/* light crossing the gold */
.btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  inline-size: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.6), transparent);
  transform: skewX(-18deg);
  animation: sheen 5.5s var(--ease) 1.8s infinite;
}

@keyframes sheen {
  0%,
  62% {
    translate: 0;
  }
  100% {
    translate: 440%;
  }
}

.btn.quiet {
  border: 1px solid rgba(233, 194, 102, 0.45);
  border: 1px solid oklch(0.83 0.12 87 / 0.45);
  background: rgba(0, 15, 7, 0.55);
  background: oklch(0.15 0.032 161 / 0.55);
}

.btn.quiet svg {
  color: var(--gold);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn.quiet:hover {
    border-color: var(--gold);
  }
}

.btn:active {
  transform: scale(0.985);
}

/* ---------- footer ---------- */

footer {
  display: grid;
  gap: 18px;
  margin-block-start: 40px;
  padding-block: 22px 30px;
  border-block-start: 1px solid var(--line);
}

.share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-code {
  flex: none;
  inline-size: 118px;
  block-size: 118px;
  padding: 4px;
  border-radius: 20px;
  background: var(--foil);
  box-shadow: 0 16px 22px -14px var(--shade);
}

.page-code svg {
  inline-size: 100%;
  block-size: 100%;
  padding: 7px;
  border-radius: 16px;
  background: var(--code-light);
  color: var(--code-dark);
  fill: currentColor;
}

.share-title {
  font-size: 17px;
  font-weight: 600;
}

.share-text {
  margin-block: 2px 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.legal {
  max-inline-size: 70ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- TikTok in-app banner ---------- */

.inapp {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-block-end: 1px solid var(--gold);
  background: var(--notice-bg);
  color: var(--notice-text);
  font-size: 14px;
  line-height: 1.65;
}

.inapp .icon-btn {
  border-color: rgba(248, 242, 220, 0.4);
  border-color: oklch(0.96 0.03 95 / 0.4);
  background: none;
  color: var(--notice-text);
}

.inapp .mini-btn {
  justify-self: start;
  border-color: rgba(248, 242, 220, 0.5);
  border-color: oklch(0.96 0.03 95 / 0.5);
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- small phones ---------- */

@media (max-width: 359px) {
  .mark {
    inline-size: 46px;
    block-size: 46px;
  }

  .plate-link {
    gap: 12px;
  }

  .snap-code {
    inline-size: 96px;
    block-size: 96px;
    border-radius: 20px;
  }

  .page-code {
    inline-size: 100px;
    block-size: 100px;
  }
}

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

@media (min-width: 960px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 560px);
    justify-content: center;
    align-items: start;
    column-gap: 96px;
    max-inline-size: 1240px;
    padding: 56px 40px 72px;
  }

  .hero {
    position: sticky;
    inset-block-start: 56px;
  }

  .lang {
    inset-block-start: -24px;
  }

  .stage {
    block-size: 400px;
  }

  .rosette {
    inline-size: 600px;
  }

  .emblem {
    inline-size: 186px;
  }

  h1 {
    font-size: 64px;
  }

  .tagline {
    font-size: 18px;
  }

  main {
    margin-block-start: 0;
  }

  footer {
    grid-column: 2;
  }

  .plate-link {
    min-block-size: 92px;
  }

  .qr-tile {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-block: 14px;
    margin-inline-start: 8px;
  }

  .qr-tile svg {
    inline-size: 96px;
    block-size: 96px;
    padding: 6px;
    border-radius: 12px;
    background: var(--code-light);
    color: var(--code-dark);
    fill: currentColor;
  }

  .qr-tile figcaption {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .snap {
    padding: 16px;
  }

  .snap-code {
    grid-row: 1 / span 2;
    grid-column: 2;
    inline-size: 132px;
    block-size: 132px;
    border-radius: 26px;
  }

  .snap .plate-actions {
    grid-column: 1;
    align-self: end;
  }

  .vip {
    padding: 28px 26px 24px;
  }

  .vip h3 {
    font-size: 30px;
  }
}

/* ---------- small pages: the hop behind a short address, and not found ---------- */

.note-page {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  text-align: center;
}

.note {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-inline-size: 420px;
}

.note-emblem {
  inline-size: 112px;
  block-size: auto;
  margin-block-end: 6px;
}

.note-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  animation: none;
}

.note-title::after {
  content: none;
}

.note p {
  color: var(--muted);
}

.note-other {
  font-size: 14px;
}

.note-other a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
