.ru { white-space: pre-line; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.hero-center .author-block a, .author-label a, .v14-result-card a, .v14-collage a { color: #f5dfa9; }
#sceneBanner {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background-position: left top;
}
#sceneBanner::before { content: none; }
.english-corner-sign {
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  padding: 8px 10px 9px;
  transform-origin: top left;
  pointer-events: none;
  text-align: center;
  font: 500 29px/1.02 Georgia,serif;
  letter-spacing: .1px;
  color: #ecd09b;
  text-shadow: 0 2px 2px #1a140d, 0 0 10px #1a140dd9;
  background: linear-gradient(90deg,transparent,#1b211bc9 12%,#22231ac9 84%,transparent);
}
.english-corner-sign span, .english-corner-sign strong { display: block; }
.english-corner-sign strong { color: #f3dab0; font-size: 36px; font-weight: 500; }
.advent-tile { color: inherit; text-align: left; min-width: 0; }
.advent-tile img { width: 100%; height: 112px; object-fit: cover; border-radius: 8px; }
.advent-tile strong, .advent-tile span { display: block; }
.advent-progress { grid-column: 1 / -1; }
.advent-progress #bagText { margin-top: 8px; }
.advent-about { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1fr); align-items: start; gap: 20px; }
.advent-about > img { width: 100%; border-radius: 14px; max-height: 350px; object-fit: contain; }
.advent-about .advent-qr { display: block; width: 112px; max-width: 100%; border-radius: 8px; margin-top: 10px; }
.advent-about a { color: #ffe2a9; }
.advent-works { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)); gap: 10px; margin: 12px 0; }
.advent-works .feedback { margin: 0; }
.advent-works h3 { margin: 4px 0 12px; }
.advent-work-preview, .advent-video, .advent-cert { display: block; width: 100%; height: auto; margin: 12px auto; border-radius: 8px; }
.advent-video { max-height: 68vh; }
.advent-video[src="assets/film.mp4"] { max-width: calc(68vh * 854 / 458); object-fit: contain; }
.advent-work-preview { max-height: 68vh; max-width: max-content; object-fit: contain; }
.advent-activity-photo {
  width: 100%;
  max-width: 545px;
  max-height: clamp(235px, 47vh, 430px);
  object-fit: contain;
  display: block;
  border-radius: 13px;
  margin: 9px auto 15px;
}
.advent-person { display: flex; gap: 14px; align-items: center; }
.advent-person img { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; flex: 0 0 82px; }
.advent-vocab { display: grid; gap: 8px; margin: 12px 0; }
.advent-vocab > *, .v14-vocab details { padding: 10px 14px; border-radius: 9px; background: #fff1d312; }
.advent-vocab p, .v14-vocab p { margin: 4px 0 0; }
.advent-final-tree {
  position: relative;
  width: min(100%,650px);
  margin: 8px auto;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  isolation: isolate;
}
.advent-final-tree img { display: block; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; object-fit: contain; transition: filter 1s; filter: brightness(.78) saturate(.87); }
.advent-final-tree.is-lit img { filter: brightness(1.16) saturate(1.1); }
.advent-tree-star {
  position: absolute; top: 17.65%; left: 49.84%; width: 7.5%; aspect-ratio: 1;
  transform: translate(-50%,-84%) scale(.45);
  opacity: 0;
  filter: drop-shadow(0 0 7px #ffcb42) drop-shadow(0 0 17px #ff9b2b);
  transition: opacity .7s, transform .8s;
}
.advent-tree-star::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%,61% 34%,98% 35%,68% 57%,79% 94%,50% 71%,21% 94%,32% 57%,2% 35%,39% 34%);
  background: radial-gradient(circle,#fff9d3,#ffda5d 54%,#cc852a);
}
.is-lit .advent-tree-star { opacity: 1; transform: translate(-50%,-84%) scale(1); }
.advent-cert-label { display: block; margin: 8px 0; }
#adventCertName { padding: 10px; width: min(100%, 490px); border-radius: 8px; }
.advent-mood-choices { align-items: flex-start; }
.advent-mood-choices > div { text-align: center; }
#activity .advent-mood-choices .btn { margin: 0; }
.advent-mood-choices small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.advent-finale-panel { text-align: center; }
#gamePanel.advent-finale-panel > h2 {
  color: var(--gold);
  font-size: clamp(1.35rem, 4.8vw, 2.05rem);
  line-height: 1.23;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.advent-finale-note {
  padding: clamp(11px, 3vw, 20px);
  border: 1px solid #d8b88160;
  border-radius: 14px;
  background: #193340;
}
.advent-finale-portrait {
  display: block;
  width: 94px;
  height: 94px;
  margin: 0 auto 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;
}
#gamePanel .advent-finale h3, #gamePanel .advent-finale h4 { margin: 0 auto 8px; line-height: 1.25; }
#gamePanel .advent-finale h3 { font-size: clamp(1.12rem, 4vw, 1.45rem); text-wrap: balance; }
#gamePanel .advent-finale p { max-width: 58ch; margin: 0 auto 8px; line-height: 1.5; }
.advent-finale-signature, .advent-finale-dates, .advent-finale h4, .advent-finale-club > h3 { color: var(--gold); }
.advent-finale-club { border-top: 1px solid #d8b88180; margin-top: 15px; padding-top: 15px; }
.advent-finale-cafe { display: block; width: 100%; max-height: 240px; object-fit: cover; margin: 0 auto 10px; border-radius: 9px; aspect-ratio: 16 / 9; }
.advent-finale h4 { font: 500 clamp(1.15rem, 4vw, 1.5rem) 'Playfair Display', Georgia, serif; }
#activity .advent-finale .btn { width: min(100%, 34rem); margin: 3px auto 0; text-align: center; }
.advent-finale-back { margin-top: 12px; }
.advent-finale-panel .author-label { margin-top: 12px; }
.v14-letter-photo { max-height: 330px; width: 100%; object-fit: contain; }
.v14-letter-wrap.opened .v14-letter-photo { transform: none; }
.v14-story-text { background: #f1e8d3; color: #28362f; max-width: 72ch; margin-inline: auto; font-size: 1.04rem; }
.v14-suspects img, .v14-statement img, .v14-clue img { object-fit: contain; margin: auto; }
.v14-cover { height: auto; object-fit: contain; }
.v14-collage-grid span { font-size: .78rem; }
.gold-ticket { min-height: 235px; }
.ticket-copy { position: static; min-height: inherit; }
#gamePanel, #activity, .v14-result-card, .v14-collage { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .advent-about { grid-template-columns: minmax(95px,.7fr) minmax(0,1fr); gap: 12px; }
  .advent-tile img { height: 92px; }
  .v14-library-intro { grid-template-columns: minmax(0,1fr); }
  .v14-letter-text { padding: 17px; }
  .v14-match-row { grid-template-columns: 70px minmax(0,1fr); }
  .v14-match-row img { width: 70px; }
  .v14-match-row select { min-width: 0; }
  .v14-match-row > :last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .advent-final-tree *, .v14-letter-photo { transition: none !important; }
}
.advent-tile strong, .advent-tile span { overflow-wrap: anywhere; }
.chapter-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.chapter-tabs button { min-width: 0; padding-inline: 4px; }
#gamePanel input, #gamePanel select, #gamePanel textarea { max-width: 100%; }
@media (max-width: 520px) {
  .persistent { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chapter-tabs { gap: 4px; padding-inline: 7px; }
  .chapter-tabs button { font-size: .86rem; }
}
@keyframes advent-letter-slide {
  from { translate: 0 -18px; opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .v14-letter-text { animation: advent-letter-slide .42s ease-out both; }
}
.b2room .b2photo { aspect-ratio: 1672 / 941; }
.b2spot.seen { width:32px; height:32px; padding:0; border-radius:50%; }
@media (max-width: 420px) {
  .b2spot, .b2spot.seen { width:27px; height:27px; }
}

/* Personal letters from Katerina */
#welcomeOverlay .overlay-box {
  width: min(700px, 100%);
  max-height: calc(100dvh - 26px);
  padding: clamp(15px, 4vw, 30px);
}
#welcomeOverlay h2, .advent-letter-title {
  margin-block: 6px 17px;
  color: #f5d99e;
}
.advent-letter {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(12px, 3vw, 24px);
  padding: clamp(12px, 3vw, 23px);
  color: #fff2da;
  border: 1px solid #b8945f;
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, #31544a, #142a36 72%);
  text-align: left;
}
.advent-letter-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 214px;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid #d8b881;
  border-radius: 10px;
}
#welcomeMedia .advent-letter-photo { aspect-ratio: 1; object-position: center; }
.advent-letter-copy p { margin: 0 0 .64em; }
.advent-letter-copy p:last-child { margin-bottom: 0; }
.advent-letter-signature { color: #f5d99e; font: italic 1.08em/1.4 Georgia, serif; }
.advent-wish { margin-block: 16px; padding: 12px 14px; border: 1px solid #e6c68b60; border-radius: 12px; }
.advent-wish details { margin-top: 7px; }
.advent-final-club { margin-block: 20px; padding-top: 16px; border-top: 1px solid #d8b88170; }
@media (max-width: 480px) {
  .advent-letter { display: block; }
  .advent-letter-photo { width: 100px; height: 100px; margin: 0 auto 12px; }
  #welcomeOverlay h2 { font-size: 1.28rem; }
}

.advent-sharing {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid #cfb37b91;
  border-radius: 12px;
  background: #1c3b3c;
}
.advent-sharing h3 { margin: 0; color: #f5d99e; font: 600 1.25rem Playfair Display, Georgia, serif; }
.advent-sharing p { margin: 5px auto 9px; max-width: 51ch; }
.advent-share-feedback:not(:empty) { margin: 6px auto 0; max-width: 49ch; font-size: .9rem; }
.advent-share-text { display: block; margin: 7px auto; padding: 8px; width: 100%; max-width: 470px; resize: vertical; }

#adventure { scroll-margin-top: 12px; }
.advent-calendar-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  margin: 8px auto 12px;
  padding: 10px 20px;
  border: 1px solid #f8dc9f;
  background: linear-gradient(160deg,#fff0bc,#dbab53);
  color: #2d2113;
  box-shadow: 0 3px 14px #2419087a;
  text-align: center;
  text-decoration: none;
}
.advent-calendar-primary:hover { background: #ffe9a7; }
.advent-calendar-shortcut {
  position: fixed;
  right: max(12px,env(safe-area-inset-right));
  bottom: max(12px,env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid #d9b87d;
  border-radius: 24px;
  background: #12283d;
  color: #ffe5b0;
  box-shadow: 0 3px 12px #06111abd;
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
}
.advent-calendar-shortcut.overlaps-content { visibility: hidden; }

@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/great-vibes-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/great-vibes-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1;
}

.advent-png-preview { flex-basis: 100%; margin-top: 4px; }
.advent-png-preview summary { cursor: pointer; }
.advent-png-preview .advent-work-preview { max-height: none; }
.advent-ready-download, .advent-ready-download > .advent-png-actions { display: contents; }
.advent-share-help { flex-basis: 100%; margin: 4px 0; }
.advent-ready-download .advent-share-help { order: 1; }
.advent-ready-download .advent-png-preview { order: 2; }

.day10-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 5px 0 12px;
  border: 1px solid #d0ad776b;
  border-radius: 12px;
  background: #192f2d;
}
.day10-preview--room { aspect-ratio: 16 / 9; }
.day10-preview--ornament {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: clamp(180px, 40vw, 355px);
  background: radial-gradient(ellipse at 50% 43%,#344b43,#142b28 78%);
}
.day10-preview-image { display: block; width: 100%; height: auto; }
.day10-preview--ornament .day10-preview-image { width: 100%; height: 100%; object-fit: contain; }
.day10-tree-thumb { display: block; width: 100%; height: 105px; margin-bottom: 4px; object-fit: contain; }

.advent-tile-portrait {
  --portrait-size: 120px;
  height: var(--portrait-size);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(118deg,#b7b4af 0%,#c1bdb5 36%,#92917b 76%,#737965 100%);
}
.persistent .tile .advent-tile-portrait { display: flex; }
.persistent .tile .advent-tile-portrait img {
  width: var(--portrait-size);
  height: var(--portrait-size);
  max-width: 100%;
  object-fit: contain;
  mask-image: linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);
}
.advent-about > img {
  width: min(100%,238px);
  max-height: 300px;
  justify-self: center;
}
.advent-final-club { margin-block: 18px; padding: 18px; }
.advent-final-club h3, .advent-final-club h4 { margin: 0 0 8px; }
.advent-final-club p { margin: 8px 0; }
.advent-copy-fallback { position: fixed; inset: 0 auto auto 0; opacity: 0; pointer-events: none; }
.promo-status:empty { display: none; }
.movie-night-section { margin-block: 24px; }
.movie-night-note { color: #d0e2f0; font-size: .92rem; }
.movie-night-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.movie-night-film {
  display: grid;
  grid-template-columns: minmax(88px,.8fr) minmax(0,1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(145deg,#142b43,#0d2136);
  border: 1px solid #d6b67b4d;
  border-radius: 14px;
}
.movie-night-film img { display: block; width: 100%; height: auto; border-radius: 7px; }
.movie-night-film h4 { margin: 2px 0 6px; font: 600 1.15rem 'Playfair Display',Georgia,serif; }
.movie-night-meta { color: #efce95; margin: 0 0 8px; }
.movie-night-film .english { margin: 6px 0; }
.movie-night-film button[aria-pressed="true"] { background: #efd197; color: #10253c; }
.movie-night-choice { margin: 10px 0 0; padding: 8px; color: #fff0cf; }
.movie-night-tips {
  margin: 24px 0;
  padding: clamp(14px,3vw,26px);
  border: 1px solid #d6b67b65;
  border-radius: 16px;
  background: linear-gradient(138deg,#1a344b,#0d2136);
}
.movie-night-tips-title { display: flex; align-items: center; gap: 14px; }
.movie-night-tips-title img { width: 76px; height: 76px; border-radius: 9px; object-fit: contain; }
.movie-night-tips-title h3, .movie-night-tips-title p { margin: 0 0 4px; }
.movie-night-tips ul { padding-left: 20px; }
.movie-night-tips li { margin: 0 0 8px; }
@media (max-width: 680px) { .movie-night-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .advent-tile-portrait { --portrait-size: 72px; } }

/* Front page and Start here */
#home .top {
  justify-content: flex-end;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 4px;
}
#home .hero-center {
  width: min(100%, 700px);
  display: grid;
  justify-items: center;
  gap: clamp(7px, 2svh, 15px);
  padding: 12px 15px 26px;
}
#home h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 5.5rem);
  line-height: 1.02;
}
#home .advent-home-subtitle, #home .advent-home-instructions {
  margin: 0;
  max-width: 49ch;
  background: radial-gradient(ellipse, rgba(8,24,46,.88),rgba(8,24,46,.35) 85%,transparent);
  text-shadow: 0 2px 6px #071a2b;
}
#home .advent-home-subtitle { padding: 3px 12px; color: #f5d99e; font-size: clamp(1rem, 2.6vw, 1.3rem); }
#home .advent-home-instructions { padding: 7px 10px; font-size: clamp(.96rem, 2.3vw, 1.06rem); line-height: 1.4; }
#home .advent-home-intro {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 510px);
  max-width: none;
  margin: 0;
  padding: 9px 12px;
  text-align: center;
}
#home .advent-home-intro .mini-intro { justify-content: flex-start; line-height: 1.35; }
#home .advent-home-intro img { width: 48px; height: 48px; }
#home .advent-home-intro button, .advent-home-gift button, #welcomeOverlay button { min-height: 44px; }
.advent-home-gift { width: fit-content; max-width: 100%; }
#home .advent-calendar-primary, #welcomeOverlay .advent-calendar-primary {
  width: min(100%, 510px);
  margin: 0;
}
#tabs { scroll-margin-top: max(12px, env(safe-area-inset-top)); }

#welcomeOverlay .overlay-box {
  width: min(570px, 100%);
  max-height: calc(100dvh - 22px);
  padding: clamp(13px, 3.6vw, 24px);
}
#welcomeOverlay #adventWelcomeTitle { margin: 0 0 10px; font-size: clamp(1.2rem, 4.5vw, 1.7rem); line-height: 1.17; }
.advent-welcome-circle {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  width: clamp(125px, min(52vw, 29dvh), 242px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid #dfbe82;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 30%, #24435a, #12283d 78%);
}
.advent-welcome-circle > video, .advent-welcome-play { position: absolute; inset: 0; width: 100%; height: 100%; }
.advent-welcome-circle > video { display: block; object-fit: cover; object-position: center; }
.advent-welcome-play {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: inherit;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.advent-welcome-play:focus-visible { outline: 2px solid #fff0bc; outline-offset: -5px; }
.advent-welcome-play-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f3d394;
  box-shadow: 0 2px 12px #071728b3;
}
.advent-welcome-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-block: 8px solid transparent;
  border-left: 12px solid #12283d;
}
.advent-welcome-play.is-playing { align-items: end; padding-bottom: 10%; }
.advent-welcome-play.is-playing .advent-welcome-play-icon { width: 32px; height: 32px; opacity: .92; }
.advent-welcome-play.is-playing .advent-welcome-play-icon::after {
  width: 9px;
  height: 12px;
  margin: 0;
  border: solid #12283d;
  border-width: 0 3px;
}
.advent-welcome-placeholder { max-width: 13ch; color: #f5d99e; font-size: .94rem; line-height: 1.25; }
.advent-welcome-status { margin: 8px 0 0; font-size: .9rem; color: #f5d99e; }
.advent-welcome-status:empty { display: none; }
#welcomeOverlay .advent-sharing { margin: 13px 0 10px; padding: 10px 12px; }
#welcomeOverlay .advent-sharing p { font-size: .97rem; line-height: 1.4; }
.advent-welcome-actions { display: grid; justify-items: center; gap: 7px; }
#welcomeOverlay .btn { padding: 8px 14px; }

@media (max-height: 650px) {
  .advent-welcome-circle { width: clamp(114px, min(49vw, 24dvh), 185px); }
  #welcomeOverlay .advent-sharing { margin: 9px 0 7px; padding: 8px 10px; }
}

@media (max-width: 480px) {
  #home { min-height: 100svh; }
  #home .hero-center { gap: 8px; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  #home h1 { font-size: clamp(2rem, 8.7vw, 2.8rem); }
  #home .advent-home-intro img { width: 42px; height: 42px; }
  #home .advent-home-intro button, .advent-home-gift button { padding: 8px 14px; }
}

/* Calendar and sections below it */
#adventure { padding-bottom: 18px; }
#adventCalendar { scroll-margin-top: max(12px, env(safe-area-inset-top)); }
.advent-calendar-heading { margin: 0 auto 12px; text-align: center; }
.advent-calendar-heading h2 { margin: 0 0 8px; }
.advent-calendar-heading > p { margin: 5px 0; }
.advent-calendar-subtitle { color: #f5d99e; font-size: clamp(1rem, 2.8vw, 1.2rem); }
.advent-calendar-heading .english { margin: 6px auto 0; }
.advent-calendar-heading .trans { display: block; min-height: 44px; margin: 0 auto; }
.advent-calendar-heading .ru { text-align: center; }
.advent-location-map { margin-top: 12px; padding: clamp(8px, 2vw, 20px); }
.advent-location-prompt, .advent-door-prompt { margin: 3px 0 9px; color: #f5d99e; text-align: center; }
.advent-location-map .chapter-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 10px);
  padding: 0;
  margin: 0 0 12px;
}
.advent-location-map .chapter-tabs button {
  display: grid;
  gap: 4px;
  place-content: center;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border-radius: 9px;
  padding: 5px 2px;
  line-height: 1.18;
}
.advent-location-map .chapter-tabs span { font-size: clamp(.67rem, 2.45vw, .94rem); font-weight: 600; white-space: nowrap; }
.advent-location-map .chapter-tabs strong { font-size: clamp(.84rem, 3vw, 1.15rem); }
.advent-location {
  width: min(100%, 680px);
  margin: 0 auto 13px;
  border: 1px solid #d8b77c72;
  border-radius: 14px;
  overflow: hidden;
  background: #152a3f;
}
#sceneBanner.advent-location-image { width: 100%; }
.advent-location-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.advent-location figcaption { padding: 10px 13px 12px; }
.advent-location figcaption p { margin: 0; }
.advent-location figcaption h3 { margin: 4px 0; font: 600 clamp(1.15rem, 3vw, 1.6rem) 'Playfair Display', Georgia, serif; }
.advent-location figcaption p:last-child { line-height: 1.32; }
.advent-location-image .english-corner-sign {
  top: 7.5%;
  left: .5%;
  width: 20%;
  min-width: 0;
  padding: .3em 0;
  color: #ecd3a2;
  background: none;
  font-size: clamp(.41rem, 1.21vw, .83rem);
  transform: skewY(18deg);
}
.advent-location-image .english-corner-sign strong { font-size: 1.2em; }
.advent-location-map .doors {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.advent-location-map .door {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 99px;
  min-width: 0;
  padding: 8px 4px;
  text-align: center;
}
.advent-location-map .door b { font-size: clamp(1.52rem, 5vw, 2.1rem); }
.advent-location-map .door small { font-size: clamp(.76rem, 2.7vw, .89rem); line-height: 1.22; overflow-wrap: anywhere; }
.advent-location-map .location-next { border-color: #d8b77c99; background: #12283d; color: #f5d99e; }
.advent-location-map .location-next > span { font-size: 1.65rem; }
.advent-location-map .location-next small { color: inherit; }

#adventure .advent-extras { display: grid; grid-template-columns: minmax(0,1fr); margin-top: 24px; padding-top: 16px; gap: 12px; border-top: 1px solid #d8b77c66; }
.advent-progress-copy { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 8px; }
#progressPercent, .advent-club-dates { color: #f5d99e; }
.advent-progress > h2 { margin: 0; }
.advent-extra-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#adventure .advent-extra-grid > .advent-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: clamp(7px, 2.4vw, 14px);
  background: #14283c;
}
.advent-extra-grid .advent-tile > img, .advent-extra-grid .advent-tile-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 176px;
  border-radius: 8px;
  object-fit: cover;
}
#adventure .advent-extra-grid > .advent-tile > .advent-certificate-thumbnail {
  object-fit: contain;
  background: #10243a;
}
#adventure .advent-extra-grid > .advent-tile > img { height: auto; }
#adventure .advent-extra-grid .advent-tile-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}
#adventure .advent-extra-grid .advent-tile-portrait img { width: auto; height: 100%; margin: 0; }
.advent-extra-grid .advent-tile > strong { font: 600 clamp(.96rem, 2.8vw, 1.2rem)/1.15 'Playfair Display', Georgia, serif; }
.advent-tile-copy { font-size: clamp(.84rem, 2.7vw, .97rem); line-height: 1.32; font-weight: 400; }
.advent-tile-copy > b { display: block; margin-bottom: 5px; }
.advent-contact { border-top: 1px solid #d8b77c66; padding-top: 13px; }
.advent-contact > h2 { margin: 0 0 11px; color: #f5d99e; text-align: center; font-size: clamp(1.2rem, 3vw, 1.45rem); }
.advent-contact .advent-tile { border: 1px solid #d8b77cb8; }
.advent-tile-action {
  min-height: 44px;
  align-content: center;
  margin-top: auto;
  padding: 5px 3px;
  border: 1px solid #d8b77c90;
  border-radius: 7px;
  color: #f5d99e;
  text-align: center;
  font-size: clamp(.81rem, 2.6vw, .95rem);
  line-height: 1.2;
}
.advent-tile-action > span { display: inline; }
body > .footer { position: relative; padding: 14px 65px 23px; border-top: 1px solid #d8b77c55; font-size: .83rem; }
body > .footer p { margin: 3px 0; }

#gameModal.advent-task { scroll-padding-top: 112px; }
#gameModal.advent-task .modal-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 7px 10px;
  background: #091b2cf7;
  border-bottom: 1px solid #d8b77c66;
}
.advent-task .modal-bar > .btn { justify-self: start; margin: 0; min-height: 44px; text-align: left; }
.advent-task .modal-bar > .pill { white-space: nowrap; }
.advent-day-heading { grid-column: 1 / -1; text-align: center; line-height: 1.22; padding: 0 0 5px; }
.advent-day-heading strong {
  display: block;
  font: 600 clamp(1.42rem, 5vw, 1.85rem)/1.12 'Playfair Display', Georgia, serif;
  color: var(--cream);
  letter-spacing: .045em;
}
.advent-day-heading span { color: var(--gold); font-size: .88rem; }
.advent-task #gamePanel > .eyebrow { display: none; }

.advent-complete { text-align: center; }
#gamePanel .advent-completed-day {
  margin: 0;
  color: var(--gold);
  font-size: clamp(.95rem, 4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: .085em;
}
.advent-completion-star {
  display: block;
  margin: 4px 0;
  font: 400 clamp(4.2rem, 15vw, 6.1rem)/1.1 Georgia, serif;
  color: #f4ce85;
  text-shadow: 0 0 22px #e8bd7170;
}
.advent-completion-star.already-collected { color: #d3b57d; text-shadow: none; }
.advent-complete .english { text-align: center; }
.advent-complete .trans { display: block; margin: 2px auto 0; min-height: 40px; }
.advent-completion-progress, .advent-completion-actions { max-width: 40rem; margin: 0 auto; }
#gamePanel .advent-completion-progress p { margin: 6px 0 10px; font-weight: 700; }
.advent-completion-progress .progress-track { margin: 0; }
.advent-completion-actions { display: grid; gap: 8px; margin-top: 14px; }
.advent-completion-actions .btn { min-height: 44px; margin: 0; }
.advent-completion-actions button:last-child { justify-self: center; border-color: transparent; background: transparent; }
.advent-complete .author-label { margin-top: 7px; }
.advent-completion-invite {
  max-width: 40rem;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid #d8b88180;
}
.advent-completion-greeting {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  margin-bottom: 12px;
}
.advent-completion-greeting img {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
}
#gamePanel .advent-completion-invite p { margin: 0 auto 7px; line-height: 1.5; }
#gamePanel .advent-completion-greeting p { margin: 0; }
#gamePanel .advent-completion-invite h3, #gamePanel .advent-completion-invite h4 {
  margin: 0 auto 8px;
  color: var(--gold);
  font: 500 clamp(1.15rem, 4vw, 1.45rem)/1.25 'Playfair Display', Georgia, serif;
  text-wrap: balance;
}
.advent-completion-invite-dates { color: var(--gold); }
.advent-completion-invite .advent-finale-cafe { max-height: 200px; height: auto; }
.advent-completion-prices { margin: 10px auto; padding-top: 9px; border-top: 1px solid #d8b88160; }
.advent-completion-prices s { white-space: nowrap; }
.advent-completion-prices strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.2;
  margin-top: 3px;
}
.advent-completion-invite .btn { width: min(100%, 34rem); margin: 3px auto 0; }
.advent-completion-invite > .btn { margin-top: 10px; }
.advent-club-details-back { text-align: center; margin-top: 12px; }

@media (max-width: 880px) {
  .advent-location-map .doors { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  body > .footer { padding: 14px 16px max(68px, calc(env(safe-area-inset-bottom) + 56px)); }
  #adventure { padding-inline: 10px; }
  .advent-location-map { padding-inline: 6px; }
}
