@font-face {
  font-family: 'Young Serif';
  src: url('./assets/fonts/YoungSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --holiday-display: 'Young Serif', Georgia, serif;
  --ui-display: 'Young Serif', Georgia, serif;
  --holiday-paper: #fff2d8;
  --holiday-gold: #f6cf91;
  --ui-night: #121822;
  --ui-panel: #192330;
  --ui-border: #f8db9e33;
  --story-paper: url('./assets/ui/story-paper.webp?v=20261118-story1');
  --painted-vellum: url('./assets/ui/painted-vellum.webp?v=20261118-paint2');
  --painted-evergreen: url('./assets/ui/painted-evergreen.webp?v=20261118-paint2');
  --painted-medallion: url('./assets/ui/painted-medallion.webp?v=20261118-paint2');
  --painted-light: 1;
  --painted-colour: 1;
}
body[data-theme="arctic"] { --painted-light: 1.07; --painted-colour: .72; }
body[data-theme="neon"] { --painted-light: 1.03; --painted-colour: .88; }

body {
  background: radial-gradient(ellipse at 50% 3%, #293147, transparent 66%), #0b101a;
}
body .shell,
body:not([data-mode="home"]) .shell {
  position: relative;
  background: var(--ui-night);
  border-color: #f4d6a022;
}

/* The logo and controls sit inside the scene, with room for a finger. */
.shell .app-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  min-height: 68px;
  padding: max(12px, env(safe-area-inset-top)) 18px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.app-header .brand {
  width: clamp(144px, 43vw, 186px);
  filter: drop-shadow(0 2px 5px #07121c85);
}
.app-header .credit { color: #e6d5bc; text-shadow: 0 1px 5px #07121c; }
.app-header :is(.lang-toggle, .sound-toggle) {
  border-radius: 13px;
  border-color: #fff0d32c;
  background: #101c2d7d;
  box-shadow: inset 0 1px #fff1;
  color: #fff3dc;
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .025em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.app-header .sound-toggle[aria-pressed="false"] { background: #101722b3; color: #cfccd0; }

/* Warm light, a night sky and strong, soft-edged lettering. */
#home, #business { background: var(--ui-night); color: var(--holiday-paper); }
.holiday-hero {
  padding-top: 92px;
  padding-bottom: 25px;
  background: var(--ui-night);
}
.holiday-hero::before {
  background:
    linear-gradient(180deg, #141a28ed 0%, #191b29b5 19%, #271a2730 39%, transparent 56%, #171a25d9 86%, #121822 100%),
    url('./assets/images/world-classic.webp?v=20261117') center 46% / cover no-repeat;
}
.holiday-hero::after {
  background: radial-gradient(ellipse at 50% 42%, #ffc78416, transparent 63%);
}
.holiday-copy h1 {
  max-width: 8.7ch;
  margin-inline: auto;
  font: 400 clamp(40px, 12.2vw, 57px)/1.03 var(--holiday-display);
  letter-spacing: -.035em;
  color: #fff3da;
  text-shadow: 0 3px 0 #74533c40, 0 8px 28px #090f1a85;
}
.holiday-copy p {
  max-width: 29ch;
  margin-top: 15px;
  color: #f3e5d1;
  font: 14px/1.45 Arial, sans-serif;
  text-shadow: 0 1px 9px #10141c;
}
#home .holiday-copy h1 {
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(28px, 9vw, 39px);
  line-height: 1.1;
}
#home .holiday-scene { height: clamp(241px, 40svh, 330px); }
/* the slogan (Rudi 18.11.) above the headline: small, warm, one line on a phone where it fits */
#home .holiday-copy .hero-slogan {
  max-width: 36ch;
  margin: 0 auto 7px;
  color: #ebd4b2;
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: .04em;
  text-wrap: balance;
  text-shadow: 0 1px 8px #10141c;
}
.holiday-scene {
  height: clamp(216px, 35svh, 304px);
  margin-top: 9px;
  margin-bottom: 12px;
}
.holiday-scene::before { opacity: .6; }
.holiday-choice,
.holiday-company-more {
  min-height: 51px;
  border-radius: 13px;
  font: 400 16px/1.2 var(--ui-display);
  letter-spacing: .015em;
  box-shadow: 0 3px 9px #060f1d45;
}
.holiday-choice-main,
.holiday-company-more {
  color: #263044;
  background: linear-gradient(155deg, #fff1d3, #ebce9a);
  border: 1px solid #fff4dc;
}
.holiday-choice-main small { color: #4e4a47; font: 700 12px/1 Arial, sans-serif; }
.holiday-choice-try {
  color: var(--holiday-paper);
  background: #152439ac;
  border-color: #f4d6a067;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.holiday-choice:active { transform: translateY(2px); }
.holiday-price { margin-top: 12px; color: #e2d0b6; font-size: 10px; }
.holiday-company-link { border-top-color: #f0dbac24; margin-top: 9px; color: #f6e6ca; }
.holiday-company-link small { color: #d2c5b7; }
.holiday-company-link strong { font: 400 12px/1.3 var(--ui-display); letter-spacing: .015em; }

/* The collection is part of the same night-time scene. */
#home .world-collection {
  padding-top: 34px;
  background: radial-gradient(ellipse at 7% 0, #50403c25, transparent 44%), #121822;
  border-color: var(--ui-border);
}
#home :is(.collection-heading h2, .holiday-business h2),
#business .business-details h2 {
  color: #fff0d3;
  font: 400 clamp(25px, 7.2vw, 36px)/1.12 var(--holiday-display);
  letter-spacing: -.035em;
}
#home .collection-copy { color: #c8c9ca; line-height: 1.55; }
#home .world-card {
  background: #1a2534;
  border-color: #f4d6a035;
  border-radius: 17px;
  box-shadow: 0 5px 15px #07111d40;
}
#home .world-art {
  background-image: linear-gradient(180deg, transparent 70%, #1a2534 100%), var(--world-art);
}
#home .world-caption { padding: 9px 11px 13px; }
#home .world-caption strong {
  font: 400 16px/1.12 var(--holiday-display);
  letter-spacing: -.035em;
}
#home .world-card-action { color: #ead2a9; font-size: 9px; }
#home .gift-steps {
  background: #17212e;
  border-top-color: var(--ui-border);
}
#home .gift-steps article > span {
  color: #f6d39b;
  background: #ffffff06;
  border-color: #f6d39b33;
}
#home .gift-steps h3 { color: #fff0d8; font: 400 19px/1.12 var(--holiday-display); letter-spacing: -.035em; }
#home .gift-steps article p, #home .gift-extra-note { color: #c9c9cb; }
#home .gift-extra-note { background: #101c29; border-color: var(--ui-border); }
#home .holiday-business {
  background: radial-gradient(ellipse at 84% 36%, #a67e4230, transparent 68%), #18202c;
  border-top: 1px solid var(--ui-border);
}
.holiday-business p { color: #dbd3c7; }
.holiday-business small { color: #dcc4a2; }
#home .notice { background: #111821; color: #aaaeb4; }

/* Form surfaces have the same quiet, translucent finish as the controls. */
:is(#create, #done, #buy-bar) {
  --ink: #fff0d8;
  --muted: #cbc5c2;
  --accent: #f2d19b;
  --accent-2: #fff0d0;
  --on-accent: #263044;
  --editor-border: #f1d29a33;
  --editor-surface: #18212e;
  --editor-field: #101a27;
}
:is(#create, #done) {
  position: relative;
  isolation: isolate;
  padding-top: 74px;
  background: linear-gradient(180deg, #1b2431, #121a25 700px);
}
:is(#create, #done)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  opacity: .18;
  background: linear-gradient(180deg, #111b2744, #121a25 95%), var(--active-world) center 12% / cover no-repeat;
}
:is(#create, #done) .page-heading { padding-top: 20px; padding-bottom: 22px; }
:is(#create, #done) .page-heading h1 {
  color: #fff0d8;
  font: 400 clamp(28px, 7.9vw, 36px)/1.13 var(--holiday-display);
  letter-spacing: -.035em;
}
:is(#create, #done) .live-preview { box-shadow: 0 9px 22px #07121e45; border-color: var(--editor-border); }
:is(#create, #done) :is(.preview-head, .preview-foot, .owner-count) {
  background: #192533;
  border-color: var(--editor-border);
}
#create .preview-name { font: 400 15px/1.2 var(--holiday-display); text-shadow: 0 2px 6px #111c2d; }
#create .preview-inside { background: #182638e3; border-color: #f3dab03b; }
:is(#create, #done) :is(.btn, .segmented button, .chip, .preview-inside-name),
#buy-bar .btn {
  font-family: var(--ui-display);
  font-weight: 400;
  letter-spacing: .025em;
}
:is(#create, #done, #buy-bar) .btn.primary,
:is(#create, #done) .btn.light {
  color: #263044;
  background: linear-gradient(155deg, #fff1d3, #ebce9a);
  border-color: #fff0d6;
  box-shadow: 0 3px 8px #07111c45;
}
:is(#create, #done) .btn.ghost {
  background: #172638d9;
  color: #fff0d8;
  border-color: #f3dab052;
  box-shadow: inset 0 1px #ffffff09;
}
#create .segmented { background: #111c29; border-color: var(--editor-border); }
#create .segmented button[aria-pressed="true"] { color: #263044; background: #f0d7ae; }
#create .step h2, #create .step summary {
  font: 400 19px/1.18 var(--holiday-display);
  letter-spacing: -.025em;
}
#create .step h2 span {
  background: #ffffff08;
  border-color: #f2d5aa30;
  color: #e5c590;
  font-family: Arial, sans-serif;
  font-size: 10px;
}
#create #message-step {
  --ink: #fff0d8;
  --muted: #cbc5c2;
  --accent: #f2d19b;
  --editor-border: #f1d29a33;
  --editor-field: #101a27;
  padding: 17px 15px;
  border-color: #f2d29a45;
  background: #202a36d9;
  box-shadow: inset 0 1px #fff1;
}
#create #message-step h2 span { background: #ffffff08; color: #efd6a6; }
#create #message-step :is(.text-btn, .field) { color: #f1dfc6; }
#create #message-step :is(input, textarea)::placeholder { color: #acaeb4; }
#create :is(.chip, .surprise-card, .world-card) {
  color: #fff0d8;
  background: #182635;
  border-color: #ead7b433;
  box-shadow: inset 0 1px #fff1;
}
#create .chip[aria-pressed="true"] { background: #eed7ae; color: #273345; border-color: #fff0cc; }
#create .surprise-card[aria-pressed="true"] { background: #3d4146; border-color: #f2d19b; }
#create .opening-hints-choice { background: #1a2838; border-color: var(--editor-border); }
#create #opening-hints { background: #101b2b; border-color: #d5c3a15c; }
#create #opening-hints:checked { background: #f0d6aa; color: #273345; border-color: #fff0cc; }
#create .note-bar, #done .name-list { background: #182736; border-color: var(--editor-border); }
#create .mini-preview, #buy-bar {
  background: #101c2bf5;
  border-color: #edcf983b;
  box-shadow: 0 -5px 20px #07111c66;
}
#buy-bar .buy-bar-price strong { color: #f8dfb6; }

/* Receive: broad lettering, light foil edges and a scene-coloured floor. */
body[data-mode="receive"] #receive .recipient-wrap {
  min-height: 100svh;
  padding-top: max(78px, calc(env(safe-area-inset-top) + 70px));
}
#receive .recipient-wrap::before {
  background-image: linear-gradient(180deg, #101a2be0 0%, #151c2a5c 20%, transparent 41%, transparent 65%, #18121f53 80%, var(--scene-floor) 100%), var(--active-world);
}
#receive .recipient-intro h1 {
  margin: 12px auto 11px;
  font: 400 clamp(25px, 7.1vw, 33px)/1.12 var(--holiday-display);
  letter-spacing: -.03em;
  color: #fff2dc;
  text-shadow: 0 2px 12px #07142488;
}
#receive .recipient-intro p {
  font: 12px/1.45 Arial, sans-serif;
  color: #f0e8dd;
  text-shadow: 0 1px 8px #121527;
}
#receive .recipient-intro .eyebrow { font: 700 9px/1.5 Arial, sans-serif; letter-spacing: .16em; color: #ebd4b2; }
#receive .current-world { font: 700 9px/1.3 Arial, sans-serif; color: #eee5d7; }
#receive .hit-score strong { font: 400 45px/1 var(--ui-display); color: #fff0cf; }
#receive .hit-label { color: #f0e3cf; font: 700 9px/1.4 Arial, sans-serif; letter-spacing: .075em; }
#receive :is(.mic-actions .btn, .after-card .btn, #test-unlock) {
  min-height: 49px;
  font: 400 16px/1.15 var(--ui-display);
  letter-spacing: .015em;
  border-radius: 13px;
  border: 1px solid #f7dfb268;
  box-shadow: 0 4px 12px #07132160;
}
#receive .mic-actions .btn .btn-main { font: inherit; }
#receive .mic-actions .btn .btn-sub { font: 11px/1.35 Arial, sans-serif; margin-top: 3px; letter-spacing: .015em; }
#receive :is(.mic-actions, .after-card) .btn.primary {
  color: #263044;
  background: linear-gradient(155deg, #fff1d3, #ebce9a);
  border-color: #fff0d6;
}
#receive :is(.mic-actions, .after-card) .btn.ghost, #receive #test-unlock {
  color: #fff1da;
  background: #142337db;
  border-color: #ead7b474;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#receive .receive-progress { border-color: #ecdfbf2b; background: #101a27a1; }
#receive .receive-progress i { background: linear-gradient(90deg, #edc47e, #fff0ce); }
#receive .wrap-status { color: #fff0cf; background: #162235d4; border-color: #e8d4ac3d; }
#receive .card-reveal .card-msg { font: 400 clamp(21px, 5.7vw, 26px)/1.35 var(--holiday-display); letter-spacing: -.025em; }
#receive .your-turn { font: 400 clamp(29px, 8.2vw, 39px)/1.04 var(--holiday-display); letter-spacing: -.05em; color: #fff0d3; }
body[data-theme="classic"] #receive .after-card {
  border-color: #ecdbb530;
  background: #182437d9;
  box-shadow: 0 10px 25px #07111f59;
}
body[data-mode="receive"] #close-try {
  top: calc(76px + env(safe-area-inset-top));
  right: max(15px, calc(50vw - 215px));
  background: #122236e6;
  border-color: #f5deb156;
  color: #fff0d5;
}
.status { background: #101a2aee; }
.copy-manual-dialog { background: #182535; border-color: #f2d2a55e; color: #fff0d8; }
.copy-manual-value { background: #101b29; color: #fff0d8; border-color: #ecd1a354; }

#business .company-hero::before {
  background:
    linear-gradient(180deg, #141a28e8, #18202d92 27%, #181e2922 52%, #121822 100%),
    url('./assets/images/world-midnight.webp?v=20261117') center 47% / cover no-repeat;
}
#business .holiday-copy h1 { max-width: 11ch; font-size: clamp(39px, 11.3vw, 58px); }
#business .business-details { background: #18212e; color: #e1d8cb; border-color: var(--ui-border); }
#business .business-details li { color: #d6d0ca; border-color: var(--ui-border); }
#business .business-details li::before { color: #f3d6a3; }
#business .business-details .note { color: #d9d1c7; background: #111e2d; border-color: var(--ui-border); }
#business .business-details .note strong { color: #fff0d5; }

@media (max-width: 360px) {
  .shell .app-header { padding-inline: 15px; min-height: 65px; }
  .holiday-hero { padding-top: 85px; padding-bottom: 20px; }
  .holiday-copy h1 { font-size: 41px; }
  #home .holiday-scene { height: clamp(216px, 39svh, 246px); }
  .holiday-copy p { font-size: 12px; margin-top: 12px; }
  .holiday-scene { height: clamp(190px, 34svh, 230px); margin-top: 5px; margin-bottom: 8px; }
  .holiday-choice { min-height: 48px; font-size: 14px; }
  .holiday-company-link { margin-top: 5px; }
  .holiday-company-link small { font-size: 9px; }
  .holiday-price { margin-top: 9px; font-size: 9px; }
  #receive .recipient-intro h1 { font-size: 25px; }
  #receive .recipient-intro p { font-size: 11px; }
  #receive :is(.mic-actions .btn, .after-card .btn) { font-size: 14px; min-height: 49px; }
  #receive .hit-score strong { font-size: 39px; }
}
@media (min-width: 840px) {
  .shell .app-header { padding-inline: 39px; padding-top: 18px; }
  .holiday-hero { padding-top: 110px; min-height: 600px; }
  .holiday-hero::before {
    background:
      linear-gradient(90deg, #121b29ef, #151d2be6 25%, #20202d67 50%, transparent 72%),
      linear-gradient(180deg, #111a2877, transparent 46%, #121822 100%),
      url('./assets/images/world-classic.webp?v=20261117') center 45% / cover no-repeat;
  }
  .holiday-copy h1 { font-size: clamp(56px, 6.3vw, 75px); max-width: 8.7ch; margin-left: 0; }
  #home .holiday-copy h1 { font-size: clamp(42px, 4vw, 55px); max-width: 100%; }
  #home .holiday-copy .hero-slogan { margin-left: 0; font-size: 13px; }
  #home .holiday-free-link { text-align: left; padding-inline: 0; }
  #home .holiday-scene { height: 410px; }
  .holiday-copy p { font-size: 16px; }
  #home .world-art { height: 165px; }
  #business .company-hero::before {
    background:
      linear-gradient(90deg, #121b29ed, #151d2bd1 30%, #20202d44 57%, transparent 78%),
      linear-gradient(180deg, #111a2866, transparent 46%, #121822 100%),
      url('./assets/images/world-midnight.webp?v=20261117') center 46% / cover no-repeat;
  }
  #business .holiday-copy h1 { font-size: clamp(56px, 6.1vw, 76px); }
}

/* Nine-slice paintings keep the drawn ends intact at every button width. */
:is(.holiday-choice, .holiday-company-more, #create .btn, #done .btn, #receive .btn, #buy-bar .btn) {
  --control-art: var(--painted-vellum);
  position: relative;
  isolation: isolate;
  border-radius: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--ui-display);
  font-weight: 400;
  font-style: normal;
  text-shadow: 0 1px #fff4;
  transition: transform .14s ease;
}
:is(.holiday-choice, .holiday-company-more, #create .btn, #done .btn, #receive .btn, #buy-bar .btn)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -3px -2px;
  border: 16px solid transparent;
  border-image-source: var(--control-art);
  border-image-slice: 30% 14% fill;
  border-image-width: 16px 29px;
  border-image-repeat: stretch;
  border-radius: 0;
  transform: none;
  filter: brightness(var(--painted-light)) saturate(var(--painted-colour)) drop-shadow(0 3px 3px #07132160);
  pointer-events: none;
}
:is(.holiday-choice-main, .holiday-company-more, #create .btn.primary, #done .btn.primary, #receive .mic-actions .btn.primary, #receive .after-card .btn.primary, #buy-bar .btn.primary) {
  color: #4c382b;
  border: 0;
  background: transparent;
  box-shadow: none;
}
:is(.holiday-choice-try, #create .btn.ghost, #done .btn.ghost, #receive .mic-actions .btn.ghost, #receive .after-card .btn.ghost, #receive #test-unlock) {
  --control-art: var(--painted-evergreen);
  color: #f7e5be;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px #091a24;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:is(.holiday-choice, #create .btn, #done .btn, #receive .btn, #buy-bar .btn):active {
  transform: translateY(2px) rotate(-.3deg) scale(.99);
}
.holiday-play { border-left-color: #e5c797; }
/* home: the two products side by side (name over price and who it's for), the demo below on its own (Rudi 18.11.) */
#home .holiday-choices { grid-template-columns: 1fr 1fr; }
#home .holiday-choices .holiday-choice { flex-direction: column; gap: 4px; min-height: 60px; padding: 10px 8px; line-height: 1.05; }
#home .holiday-choices .holiday-choice small { font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .01em; color: #5a4636; }
#home .holiday-try { display: flex; width: 100%; margin-top: 10px; }
/* the free red box (Rudi 18.11.): the message only; no world, paper, surprise, hits, opening time, gift inside, logo or opening email */
body[data-kind=free] :is(.paid-only, .biz-only) { display: none !important; }
/* home: the hero's red box is the free one, said on the box itself and right under the buttons (Rudi 18.11.) */
#home .free-tag {
  position: absolute; z-index: 3; top: 8%; right: 3%;
  display: grid; justify-items: center; gap: 2px;
  padding: 9px 15px 8px;
  border: 2px solid #fff3d6; border-radius: 999px;
  background: linear-gradient(160deg, #ffe9ad, #e6b25a);
  color: #6a1020;
  box-shadow: 0 6px 16px #10070d80, inset 0 1px #fff9;
  transform: rotate(8deg);
}
#home .free-tag strong { font: 400 19px/1 var(--ui-display); letter-spacing: .03em; }
#home .free-tag small { font: 700 10px/1.2 Arial, sans-serif; color: #7c2b2b; }
#home .free-tag:active { transform: rotate(8deg) translateY(2px); }
@media (prefers-reduced-motion: no-preference) {
  #home .free-tag { animation: free-tag-in .55s .5s both cubic-bezier(.2, 1.5, .4, 1); }
  @keyframes free-tag-in { from { transform: rotate(8deg) scale(.3); opacity: 0; } }
}
#home .holiday-free-link {
  display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 6px 2px;
  border: 0; background: none; color: var(--holiday-gold);
  font: 400 15px/1.3 var(--ui-display);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
#home .holiday-free-link + .holiday-price { margin-top: 4px; }
.app-header :is(.lang-toggle, .sound-toggle) {
  border: 0;
  border-radius: 50%;
  background: var(--painted-medallion) center / 100% 100% no-repeat;
  color: #fff0d0;
  box-shadow: none;
  text-shadow: 0 1px 2px #07151a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.app-header .sound-toggle[aria-pressed="false"] { background: var(--painted-medallion) center / 100% 100% no-repeat; color: #bdb9a5; }

/* Quiet reading surfaces and printed labels share the same ink and paper. */
#create :is(.chip, .surprise-card, .world-card),
#create .segmented,
:is(#create, #done) :is(.preview-head, .preview-foot) {
  background-color: #1c3034;
  background-image: linear-gradient(145deg, #1b3033f0, #152a31f4), var(--story-paper);
  background-size: auto, 300px;
  border-color: #c5ae7a40;
  box-shadow: inset 0 1px #eed9b00c;
}
#create .chip,
#create .surprise-card,
#create .segmented { border-radius: 9px 12px 8px 11px; }
#create .chip[aria-pressed="true"],
#create .segmented button[aria-pressed="true"] {
  background-color: #e4c797;
  background-image: linear-gradient(#fff1cd33, #b0884822), var(--story-paper);
  background-size: auto, 290px;
  border-color: #e9cca0;
  color: #49372c;
}
#create .chip {
  --control-art: var(--painted-evergreen);
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#create .chip[aria-pressed="true"] {
  --control-art: var(--painted-vellum);
  background: transparent;
  border: 0;
}
#create .chip::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2px;
  border: 11px solid transparent;
  border-image-source: var(--control-art);
  border-image-slice: 30% 14% fill;
  border-image-width: 11px 16px;
  pointer-events: none;
}
#create .surprise-card[aria-pressed="true"] { background-color: #3a4841; border-color: #e9cca0; }
#create :is(.world-selected, .surprise-check),
#create .step h2 > span {
  background: var(--painted-medallion) center / contain no-repeat;
  border: 0;
  color: #fae8c2;
}
#create .surprise-card[aria-pressed="true"] .surprise-check { color: #fae8c2; }
#create .opening-hints-choice,
#done .name-list {
  background: #233633c4;
  border-color: #cfb8884d;
  border-radius: 11px 15px 10px 13px;
}
#create #message-step {
  background-color: #233236;
  background-image: linear-gradient(155deg, #233236eb, #1a3034f2), var(--story-paper);
  background-size: auto, 300px;
  border-color: #c6ac795e;
  border-radius: 12px 18px 13px 16px;
}
#create #message-step :is(input, textarea),
#create .field input {
  border-color: #bea77b4f;
  border-radius: 7px 10px 8px 9px;
  background: #0f2229aa;
}
:is(#create, #done) :is(.mini-copy strong, .owner-count strong, .names-count, .surprise-copy strong, .chips .chip strong, #custom-field input, .ticket strong),
#buy-bar .buy-bar-price strong,
.copy-manual-dialog h2,
.status h2,
.modal-panel h2 {
  font-family: var(--ui-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.02em;
}
#create :is(.chips .chip strong, #custom-field input) { font-size: 26px; }
#create #opens .chip strong { font-size: 16px; line-height: 1.2; letter-spacing: 0; }
#create .mini-preview .btn { font-size: 14px; }
#create .surprise-copy strong { font-size: 18px; line-height: 1.2; }
#create .mini-copy strong { font: 700 12px/1.3 Arial, sans-serif; letter-spacing: 0; }
#create .mini-preview,
#buy-bar {
  border-color: #c3a97959;
  background-color: #15292c;
  background-image: linear-gradient(155deg, #142a2cf4, #112329f5), var(--story-paper);
  background-size: auto, 300px;
}
#buy-bar .btn { font-size: 15px; line-height: 1.3; white-space: normal; }
#buy-bar .buy-bar-price strong { font-size: 23px; line-height: 1.15; }
#home .world-card {
  border-radius: 12px 18px 13px 16px;
  border-color: #c9ae7b54;
  background: #1b3036;
}
#home .world-caption {
  position: relative;
  isolation: isolate;
  padding: 14px 12px 16px;
}
#home .world-caption::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2px 2px 3px;
  border: 12px solid transparent;
  border-image-source: var(--painted-evergreen);
  border-image-slice: 30% 14% fill;
  border-image-width: 12px 17px;
  pointer-events: none;
}
#home .world-caption strong { font-weight: 400; font-size: 16px; line-height: 1.2; }
#home .world-card-action { font: 700 8px/1.3 Arial, sans-serif; letter-spacing: .1em; color: #d9bf91; }
#receive .wrap-status {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#receive .wrap-status::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1px -3px;
  border: 7px solid transparent;
  border-image-source: var(--painted-evergreen);
  border-image-slice: 30% 14% fill;
  border-image-width: 7px 15px;
  pointer-events: none;
}
#receive .card-reveal {
  color: #49372c;
  background-color: #e9d1a9;
  background-image: linear-gradient(#fff3dabb, #fff1d2a6), var(--story-paper);
  background-size: auto, 340px;
  border: 1px solid #ead0a4;
  border-radius: 11px 16px 12px 14px;
  box-shadow: 0 2px 0 #a17a4f, 0 12px 28px #09131f80;
}
#receive .your-turn { font-size: clamp(27px, 7.6vw, 36px); line-height: 1.12; letter-spacing: -.025em; }
#receive .hit-score strong { text-shadow: 0 2px #5b482a88, 0 2px 14px #0d132a6b; }
#receive .ticket strong {
  font: 400 21px/1.3 var(--ui-display);
  letter-spacing: -.015em;
}
#create .step :is(h2, summary) b { font-weight: inherit; }

@media (max-width: 360px) {
  .holiday-choice { padding: 11px 8px; gap: 6px; font-size: 14px; }
  .holiday-choice-main small { font-size: 10px; }
  .holiday-company-link strong { font-size: 10px; }
  #receive .mic-actions .btn { padding-inline: 8px; }
  #create .step h2, #create .step summary { font-size: 18px; }
  #create .surprise-copy strong { font-size: 16px; }
}
@media (min-width: 650px) {
  body[data-mode="receive"] #close-try { top: calc(105px + env(safe-area-inset-top)); }
}

/* 20.11.2026, after the live check */
/* Only the chosen surprise shows its tick: the shared medallion rule above coloured every card's tick. */
#create .surprise-card:not([aria-pressed="true"]) .surprise-check { color: transparent; }
/* Prices on the pay controls in full-height figures: Young Serif's own 0 is as low as a small o, so EUR 1.90 read as 1.9o. */
/* (!important: several of these set the whole font shorthand, which puts the figures back to the font's default.) */
.btn, .buy-bar, .buy-bar strong, .segmented, .segmented button, .segmented small { font-variant-numeric: lining-nums !important; }
/* Finnish: AANET is wider than SFX and ran over the ring of the round badge. */
html[lang="fi"] .app-header .sound-toggle { font-size: 8.5px; letter-spacing: 0; }
/* The locked box: the label and the date line stay readable over the bright part of a scene. */
#receive .lock-count span,
#receive .is-locked .lock-date { opacity: 1; text-shadow: 0 1px 2px #07121ce6, 0 0 12px #07121cb3; }
/* After the card: each button has its own note right under it (the make-a-box note, then the challenge note). */
#receive .after-card :is(#send-own-note, #share-challenge-note) { margin-top: 8px; text-wrap: balance; }
#receive .after-card #share-challenge { margin-top: 18px; }
/* Owner page: every personal link has its own copy button; a long list scrolls inside its frame. The frame ends in the
   middle of a row, so it shows that more follow, and the page scrolls on when the list reaches its end. */
#done #names-list { max-height: 348px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#done #names-list li { align-items: center; }
#done #names-list li strong { max-width: 58%; }
#done #names-list .row-copy { flex: none; min-height: 40px; padding: 6px 2px 6px 8px; font-size: 11px; letter-spacing: .04em; }
#done #names-list .row-copy:focus-visible { outline-offset: -2px; }
