:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: #1b1c1f;
  background: #f6f3ed;
}

.travel-gallery { min-width: 0; margin-top: 24px; }
.content-shell:has(.travel-gallery) .content-topbar h1 { hyphens: none; }
.travel-gallery [hidden] { display: none; }
.full-door-detail .travel-gallery h2 { font-size: 24px; line-height: 1.3; margin: 0 0 16px; hyphens: none; }
.travel-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.travel-toolbar button { padding: 10px 14px; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; color: #263e35; font: inherit; cursor: pointer; }
.travel-toolbar button[aria-pressed="true"] { background: #286e55; border-color: #286e55; color: #fff; }
.travel-status { min-height: 24px; margin: 12px 0; font-size: 15px; }
.travel-status.is-error { color: #982239; }
.travel-collection { padding: 24px 0; border-bottom: 1px solid #dfe5e1; }
.travel-grid, .travel-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.travel-item { margin: 0; min-width: 0; }
.travel-item .gallery-media { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f1f4f2; border-radius: 4px; }
.travel-item figcaption { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 8px; font-size: 15px; }
.travel-item figcaption span { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.travel-star { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; color: #52625b; font-size: 28px; line-height: 1; cursor: pointer; }
.travel-star[aria-pressed="true"] { background: #fff6d6; color: #89620a; border-color: #c19b3e; }
.travel-gallery button:disabled { opacity: .5; cursor: default; }
.travel-gallery button:focus-visible, .travel-gallery select:focus-visible { outline: 3px solid #286e55; outline-offset: 3px; }
.travel-comparison { padding-top: 16px; }
.travel-compare-pane { min-width: 0; }
.travel-compare-pane label, .travel-upload label { display: grid; gap: 8px; font-weight: 600; min-width: 0; }
.travel-compare-pane label { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.travel-compare-pane select:focus-visible { outline-offset: -3px; }
.travel-compare-pane select { width: 100%; min-width: 0; min-height: 44px; max-width: 100%; padding: 10px; margin-bottom: 16px; font: inherit; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; }
.travel-favorites-save { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; border-bottom: 1px solid #dfe5e1; }
.travel-favorites-save span { font-size: 15px; }
.travel-upload { display: grid; gap: 16px; padding-top: 24px; }
.travel-upload p { margin: 0; font-size: 15px; }
.travel-upload input, .travel-upload textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; font: inherit; font-weight: 400; }
.travel-upload input[type="file"] { font-size: 14px; }
.travel-upload textarea { resize: vertical; }
.travel-upload .primary-button { justify-self: start; max-width: 100%; }
.travel-file-limit { color: #52625b; }
@media (max-width: 600px) {
  .travel-grid, .travel-comparison { grid-template-columns: minmax(0, 1fr); }
  .travel-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .travel-toolbar button { padding: 10px 4px; font-size: 13px; overflow-wrap: normal; }
  .travel-favorites-save .primary-button { width: 100%; }
  .full-door-detail .travel-gallery h2 { font-size: 22px; }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.login-view,
.calendar-shell,
.content-shell {
  min-height: 100vh;
  padding: 32px;
}

.login-view {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 236, 188, 0.38), transparent 18%),
    linear-gradient(160deg, rgba(134, 22, 43, 0.72), transparent 38%),
    linear-gradient(24deg, rgba(17, 82, 64, 0.88), rgba(11, 36, 41, 0.96) 58%),
    #092f30;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 26px 80px rgba(2, 18, 20, 0.42);
}

.login-panel h1 {
  max-width: 620px;
  margin-bottom: 16px;
  color: #791c2a;
}

.login-copy {
  max-width: 500px;
  margin-bottom: 28px;
  color: #405348;
  font-size: 1.12rem;
}

.gift-mark {
  position: relative;
  width: 58px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 41%, #f4d17d 41%, #f4d17d 59%, transparent 59%),
    linear-gradient(#bd273e, #8f1e31);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.1);
}

.gift-mark::before {
  content: "";
  position: absolute;
  top: 19px;
  left: -4px;
  width: 66px;
  height: 10px;
  border-radius: 4px;
  background: #f4d17d;
}

.gift-mark span::before,
.gift-mark span::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 25px;
  height: 22px;
  border: 6px solid #f4d17d;
  border-radius: 50% 50% 4px 50%;
}

.gift-mark span::before {
  left: 6px;
  transform: rotate(28deg);
}

.gift-mark span::after {
  right: 6px;
  transform: scaleX(-1) rotate(28deg);
}

.winter-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.winter-lights span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe7a6;
  box-shadow: 0 0 22px 8px rgba(255, 219, 137, 0.58);
}

.winter-lights span:nth-child(1) {
  top: 12%;
  left: 14%;
}

.winter-lights span:nth-child(2) {
  top: 20%;
  right: 18%;
}

.winter-lights span:nth-child(3) {
  top: 68%;
  left: 10%;
}

.winter-lights span:nth-child(4) {
  right: 12%;
  bottom: 18%;
}

.winter-lights span:nth-child(5) {
  top: 9%;
  left: 52%;
}

.winter-scene {
  position: absolute;
  inset: auto 0 0;
  height: min(34vh, 270px);
  pointer-events: none;
}

.winter-scene::after {
  content: "";
  position: absolute;
  inset: auto -5% -42px;
  height: 118px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.92);
}

.tree {
  position: absolute;
  bottom: 30px;
  width: 0;
  height: 0;
  border-right: 72px solid transparent;
  border-bottom: 166px solid rgba(9, 78, 59, 0.88);
  border-left: 72px solid transparent;
  filter: drop-shadow(0 20px 24px rgba(2, 18, 20, 0.32));
}

.tree::before,
.tree::after {
  content: "";
  position: absolute;
  left: -56px;
  width: 0;
  height: 0;
  border-right: 56px solid transparent;
  border-bottom: 124px solid rgba(13, 96, 69, 0.94);
  border-left: 56px solid transparent;
}

.tree::before {
  top: 36px;
}

.tree::after {
  top: 74px;
  border-right-width: 46px;
  border-bottom-width: 98px;
  border-left-width: 46px;
  left: -46px;
}

.tree-left {
  left: max(24px, 7vw);
}

.tree-right {
  right: max(20px, 8vw);
  bottom: 16px;
  transform: scale(0.78);
}

.eyebrow {
  margin: 0 0 8px;
  color: #6b5f56;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.door,
.primary-button,
.secondary-button {
  border: 1px solid rgba(27, 28, 31, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.door:hover,
.primary-button:hover,
.secondary-button:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(27, 28, 31, 0.12);
  transform: translateY(-1px);
}

.login-form {
  width: min(560px, 100%);
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: #4d4945;
  font-weight: 800;
}

.login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.login-row input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(27, 28, 31, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1b1c1f;
}

.login-row input:focus {
  border-color: #b83246;
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.16);
  outline: none;
}

.primary-button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  background: #8f1e31;
  color: #fff;
  font-weight: 900;
}

.form-error {
  margin: 10px 0 0;
  color: #9d2436;
  font-weight: 800;
}

.calendar-shell {
  background:
    radial-gradient(circle at top left, rgba(180, 39, 59, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 320px),
    #f4efe6;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.topbar h1 {
  margin-bottom: 0;
  color: var(--accent);
}

.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 12px;
}

.door {
  position: relative;
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

.door span {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.door small {
  align-self: flex-end;
  color: #6b5f56;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.door.is-open {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 231, 0.96)),
    #fff;
}

.door.is-locked {
  color: rgba(255, 255, 255, 0.78);
  cursor: default;
  background:
    linear-gradient(90deg, transparent 48%, rgba(244, 209, 125, 0.58) 48%, rgba(244, 209, 125, 0.58) 52%, transparent 52%),
    linear-gradient(0deg, transparent 47%, rgba(244, 209, 125, 0.48) 47%, rgba(244, 209, 125, 0.48) 53%, transparent 53%),
    linear-gradient(145deg, #8f1e31, #4f1720);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.18);
}

.door.is-locked:hover {
  border-color: rgba(27, 28, 31, 0.16);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.18);
  transform: none;
}

.door.is-locked small {
  color: rgba(255, 255, 255, 0.74);
}

.door.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 22px;
  border: 1px solid rgba(27, 28, 31, 0.14);
  border-radius: 8px;
  background: #fff;
}

.door-detail {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.door-detail h1,
.door-detail h2,
.door-detail h3,
.content-topbar h1,
.content-topbar h2,
.content-topbar h3,
.holiday-activity h1,
.holiday-activity h2,
.holiday-activity h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.door-detail p,
.holiday-activity p,
.community-prompt,
.game-result,
.quiz-status {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.detail-open-button {
  align-self: flex-end;
  margin-top: auto;
}

.door-detail p:last-child,
.empty-state {
  margin-bottom: 0;
  color: #4d4945;
  font-size: 1.05rem;
}

.content-shell {
  background:
    radial-gradient(circle at top right, rgba(36, 107, 87, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 340px),
    #f4efe6;
}

.content-topbar,
.content-page {
  max-width: 980px;
  margin: 0 auto;
}

.content-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.content-topbar h1 {
  margin-bottom: 0;
  color: var(--accent);
}

.content-page {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(27, 28, 31, 0.14);
  border-radius: 8px;
  background: #fff;
}

.full-door-detail {
  min-height: 520px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.door-media,
.door-audio {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 8px;
}

.door-media {
  max-height: 420px;
  object-fit: contain;
  background: #151515;
}

.door-audio {
  min-height: 44px;
}

.door-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  margin-top: 20px;
}

.gallery-item {
  margin: 0;
}

.gallery-media,
.gallery-audio {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.gallery-media {
  aspect-ratio: 4 / 3;
  background: #151515;
  object-fit: cover;
}

.gallery-audio {
  min-height: 44px;
}

.gallery-item figcaption {
  margin-top: 8px;
  color: #6b5f56;
  font-size: 0.92rem;
  font-weight: 800;
}

.hangman-game {
  display: grid;
  min-height: 520px;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 28, 31, 0.12);
}

.game-completed,
.quiz-game {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 28, 31, 0.12);
}

.game-completed {
  padding: 18px;
  border-radius: 8px;
  background: #f6f3ed;
}

.game-completed p:last-child {
  margin-bottom: 0;
}

.game-completed-mark {
  margin-bottom: 6px;
  color: #246b57;
  font-weight: 900;
  text-transform: uppercase;
}

.hangman-prompt {
  color: #4d4945;
  font-weight: 800;
}

.hangman-stage {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0;
}

.hangman-playfield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 20px;
  align-items: end;
  margin-top: auto;
}

.hangman-playfield .hangman-stage {
  margin-top: 0;
}

.hangman-playfield .hangman-figure {
  align-self: end;
  justify-self: end;
}

.hangman-form {
  justify-self: center;
  width: min(420px, 100%);
  margin: 14px 0;
}

.hangman-form label {
  display: block;
  margin-bottom: 8px;
  color: #6b5f56;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.hangman-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hangman-input-row input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(27, 28, 31, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.hangman-input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.14);
  outline: none;
}

.hangman-figure {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f6f3ed;
}

.hangman-figure line,
.hangman-figure circle,
.hangman-figure path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.hangman-figure .gallows {
  stroke: #6b5f56;
}

.hangman-figure .person {
  stroke: #8f1e31;
}

.hangman-figure .is-hidden {
  opacity: 0;
}

.hangman-stage span {
  color: #8f1e31;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.hangman-stage small {
  color: #6b5f56;
  font-weight: 800;
}

.hangman-word {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(3px, 0.8vw, 12px);
  align-self: center;
  width: 100%;
  margin: 18px 0;
  padding: clamp(14px, 4vw, 34px);
  border-radius: 8px;
  background: #f6f3ed;
  color: #1b1c1f;
  overflow: hidden;
}

.hangman-word span {
  display: inline-grid;
  width: min(72px, calc((100% - 9 * clamp(3px, 0.8vw, 12px)) / 10));
  min-width: 0;
  min-height: clamp(38px, 8vw, 96px);
  place-items: center;
  border-bottom: clamp(3px, 0.7vw, 8px) solid #1b1c1f;
  font-size: clamp(1.4rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.hangman-retry {
  justify-self: center;
  margin-top: 14px;
}

.hangman-misses {
  min-height: 24px;
  margin: 0 0 8px;
  color: #6b5f56;
  font-weight: 800;
}

.hangman-last {
  margin: 0;
  color: #4d4945;
  font-weight: 900;
}

.hangman-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: #4d4945;
  font-weight: 800;
  text-align: center;
}

.quiz-progress {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.quiz-progress span {
  color: #246b57;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.quiz-progress small {
  color: #6b5f56;
  font-weight: 800;
}

.quiz-question {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.quiz-question legend {
  margin-bottom: 10px;
  color: #4d4945;
  font-weight: 900;
}

.quiz-choices {
  display: grid;
  gap: 8px;
}

.quiz-audio {
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
}

.quiz-video {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  background: #151515;
  object-fit: contain;
}

.quiz-round,
.quiz-video-pending,
.quiz-feedback {
  margin: 12px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quiz-feedback.is-correct { color: #246b57; }
.quiz-feedback.is-wrong { color: #b83246; }
.quiz-restart { margin-top: 20px; }

.quiz-choice {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 28, 31, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(27, 28, 31, 0.1);
}

.quiz-choice:disabled {
  cursor: default;
}

.quiz-choice.is-selected {
  border-color: var(--accent);
}

.quiz-choice.is-correct {
  border-color: #246b57;
  background: rgba(36, 107, 87, 0.1);
}

.quiz-choice.is-wrong {
  border-color: #b83246;
  background: rgba(184, 50, 70, 0.1);
}

.quiz-status {
  min-height: 28px;
  margin-bottom: 0;
  color: #4d4945;
  font-weight: 800;
}

.video-match-game {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 28, 31, 0.12);
}

.video-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.video-match-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.14);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.video-match-card p {
  margin-bottom: 0;
  color: #4d4945;
  font-weight: 900;
}

.video-match-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.14);
}

.video-match-card.is-correct {
  border-color: #246b57;
  background: rgba(36, 107, 87, 0.08);
}

.video-match-card.is-wrong {
  border-color: #b83246;
  background: rgba(184, 50, 70, 0.08);
}

.video-match-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #151515;
}

.video-match-current {
  width: 100%;
  min-height: 44px;
  hyphens: none;
  padding: 10px 12px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: rgba(27, 28, 31, 0.04);
  color: #1b1c1f;
  font-weight: 900;
  text-align: center;
}

.video-match-answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.video-match-answer {
  min-height: 44px;
  padding: 10px 14px;
  border: 2px dashed rgba(27, 28, 31, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
  cursor: grab;
  hyphens: none;
  font-weight: 900;
  text-align: center;
}

.video-match-answer span,
.video-match-answer small {
  display: block;
}

.video-match-answer small {
  margin-top: 4px;
  color: #6b5f56;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.video-match-answer.is-used {
  border-style: solid;
  border-color: var(--accent);
}

.video-match-answer.is-selected {
  border-style: solid;
  border-color: var(--accent);
  background: #edf5f1;
}

.video-match-answer:active { cursor: grabbing; }
.video-match-feedback { min-height: 2.8em; font-size: 0.9rem; }
.video-match-ranking-name { min-width: 0; hyphens: none; }
.ranking-form { display: grid; gap: 8px; min-width: 0; }
.ranking-form textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid #b9c8c4; border-radius: 6px; background: #fff; color: #1b1c1f; font: inherit; resize: vertical; }
.ranking-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ranking-form textarea:disabled { background: #f5f5f5; }
.ranking-form .primary-button { justify-self: start; max-width: 100%; }
.ranking-length { justify-self: end; font-size: 0.8rem; color: #686868; }
.ranking-feedback { min-height: 1.5em; margin: 0; hyphens: none; }
@media (max-width: 480px) {
  .video-match-game .ranking-item { flex-wrap: wrap; gap: 8px; }
  .video-match-game .ranking-item > span:first-child { flex-basis: 100%; }
  .video-match-game .ranking-controls { margin-left: auto; }
}

.football-game { position: relative; min-width: 0; }
.football-game input { min-height: 44px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #1b1c1f; font: inherit; }
.football-game input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.football-game input:disabled { background: #f5f5f5; color: #686868; }
.football-name-field { display: grid; gap: 8px; width: min(100%, 360px); margin: 24px 0; }
.football-name-field label { font-size: 0.9rem; font-weight: 700; line-height: 1.4; }
.football-name-field input { width: 100%; min-width: 0; }
.football-game button:disabled { opacity: 0.5; cursor: not-allowed; }
.football-game form[hidden] { display: none; }
.football-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; }
.football-message { flex: 1 1 240px; margin: 0; }
.football-match { padding: 24px 0; border-top: 1px solid #ddd; min-width: 0; }
.football-match h3 { font-size: 1.35rem; line-height: 1.35; hyphens: none; overflow-wrap: anywhere; }
.football-competition { font-size: 0.85rem; color: #595650; }
.football-final strong { margin-left: 10px; font-size: 2rem; }
.football-score-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: end; gap: 12px; max-width: 580px; border: 0; padding: 0; margin: 16px 0; }
.football-score-inputs label { display: grid; align-content: end; gap: 8px; min-width: 0; text-transform: none; font-size: 0.9rem; hyphens: none; }
.football-score-inputs input { width: 100%; min-width: 0; text-align: center; font-size: 1.5rem; }
.football-score-inputs > span { align-self: end; padding-bottom: 12px; text-align: center; font-size: 1.5rem; }
.football-celebration { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.football-celebration[hidden] { display: none; }
.football-celebration i { position: absolute; top: -20px; left: var(--confetti-x); width: 9px; height: 16px; background: var(--confetti-color); animation: football-confetti 3s var(--confetti-delay) ease-in both; }
@keyframes football-confetti { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(110vh) rotate(620deg); } }
@media (prefers-reduced-motion: reduce) { .football-celebration { display: none; } }

.meme-upload-game {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 28, 31, 0.12);
}

.meme-prompt,
.meme-slots {
  margin: 0;
  color: #4d4945;
  font-weight: 800;
}

.meme-submissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}

.meme-submission {
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: #f6f3ed;
}

.meme-submission p:last-child {
  margin-bottom: 0;
}

.meme-media {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #151515;
  object-fit: contain;
}

.meme-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: #fff;
}

.meme-form label {
  color: #6b5f56;
  font-weight: 900;
  text-transform: uppercase;
}

.meme-form input,
.meme-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(27, 28, 31, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
}

.meme-form textarea {
  resize: vertical;
}

.meme-form input:focus,
.meme-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.14);
  outline: none;
}

.meme-form button {
  justify-self: start;
}

.community-game,
.playlist-game,
.simple-game,
.ranking-game {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 28, 31, 0.12);
}

.community-prompt,
.community-slots,
.community-optional {
  margin: 0;
  color: #4d4945;
  font-weight: 800;
}

.community-optional {
  color: #6b5f56;
  font-size: 0.92rem;
}

.community-submissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.community-submission {
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: #f6f3ed;
}

.community-submission-text {
  white-space: pre-wrap;
}

.community-media {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #151515;
  object-fit: contain;
}

.community-form,
.simple-game-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: #fff;
}

.community-form label,
.simple-game-form label {
  color: #6b5f56;
  font-weight: 900;
  text-transform: uppercase;
}

.community-form input,
.community-form textarea,
.simple-game-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(27, 28, 31, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
}

.community-form textarea {
  resize: vertical;
}

.community-form input:focus,
.community-form textarea:focus,
.simple-game-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.14);
  outline: none;
}

.full-door-detail:has(.holiday-activity, .dino-game, .north-mission) {
  background: transparent;
  border: 0;
  padding: 20px 0;
  min-height: 0;
}

.holiday-activity,
.dino-game {
  display: grid;
  gap: 24px;
  min-width: 0;
  margin-top: 24px;
  letter-spacing: 0;
}

.holiday-status,
.dino-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.holiday-status p,
.dino-feedback {
  margin: 0;
}

.holiday-form,
.holiday-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.holiday-form {
  max-width: 760px;
}

.holiday-tree-form {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: center;
}

.holiday-fields label {
  font-weight: 700;
  margin-top: 8px;
}

.holiday-fields input:not([type="radio"]),
.holiday-fields textarea,
.holiday-fields select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #b9c8c4;
  border-radius: 6px;
  font: inherit;
  background: white;
  color: #1b1c1f;
}

.holiday-fields textarea {
  resize: vertical;
}

.holiday-fields button {
  margin-top: 12px;
  justify-self: start;
}

.holiday-fields :focus-visible,
.dino-stage svg:focus-visible {
  outline: 3px solid #6756a5;
  outline-offset: 3px;
}

.holiday-tree {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 3 / 4;
  justify-self: center;
  background: #eaf5f7;
  border-radius: 8px;
}

.holiday-tree > svg { width: 100%; height: 100%; display: block; }

.tree-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  cursor: pointer;
  text-align: center;
}

.tree-spot input,
.holiday-swatch input,
.dino-tools input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.tree-ball {
  display: grid;
  place-items: center;
  height: 100%;
  border: 2px dashed #fff;
  border-radius: 50%;
  color: #fff;
  background: #276854;
  font-size: 15px;
  font-weight: 700;
}

.tree-spot.is-filled .tree-ball {
  background: var(--ball, #b83246);
  border-style: solid;
}

.tree-spot:has(input:checked) .tree-ball {
  background: #b83246;
  outline: 3px solid #edbe4b;
  outline-offset: 3px;
}

.tree-spot:has(input:focus-visible) .tree-ball,
.holiday-swatch:has(input:focus-visible) span,
.dino-tools label:has(input:focus-visible) {
  outline: 3px solid #6756a5;
  outline-offset: 3px;
}

.tree-name {
  display: block;
  width: 80px;
  margin-left: -18px;
  padding: 1px 3px;
  border-radius: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: white;
  font-size: 12px;
  line-height: 1.3;
}

.holiday-swatches,
.dino-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.holiday-swatches legend,
.dino-tools legend { margin-bottom: 8px; font-weight: 700; }
.holiday-swatch { position: relative; width: 44px; height: 44px; }
.holiday-swatch span { display: block; width: 100%; height: 100%; border: 4px solid white; border-radius: 50%; background: var(--swatch); }
.holiday-swatch:has(input:checked) span { box-shadow: 0 0 0 2px #1b1c1f; }

.holiday-contributions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.holiday-contribution {
  padding: 20px;
  border: 1px solid #d4dedb;
  background: #fff;
  border-radius: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.holiday-contribution h3 { margin: 0 0 16px; color: #246b57; font-size: 20px; }
.holiday-contribution dl { margin: 0; }
.holiday-contribution dt { font-size: 13px; font-weight: 700; color: #626d67; margin-top: 14px; }
.holiday-contribution dd { margin: 4px 0 0; white-space: pre-wrap; }
.holiday-contribution img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.holiday-workshop { display: grid; gap: 0; border-block: 1px solid #c7d3ce; }
.craft { padding: 16px 0; border-bottom: 1px solid #c7d3ce; }
.craft:last-child { border-bottom: 0; }
.craft summary { display: flex; align-items: center; gap: 20px; cursor: pointer; font-weight: 750; font-size: 20px; }
.craft summary::after { content: "+"; margin-left: auto; padding: 8px; }
.craft[open] summary::after { content: "−"; }
.craft summary svg { flex: 0 0 100px; width: 100px; height: 88px; }
.craft ol { padding-left: 24px; max-width: 760px; }
.craft li { padding: 6px 0; }
.craft p { margin: 12px 0; font-weight: 650; }

.model-builder { max-width: 1120px; }
.model-builder-intro { margin: 0; max-width: 760px; color: #626d67; }
.model-builder-form { max-width: none; }
.model-builder-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.model-parts-panel,
.model-blueprint-panel { min-width: 0; }
.model-parts-panel h3,
.model-blueprint-panel h3 { margin: 0 0 12px; color: #246b57; }
.model-parts-list { display: grid; gap: 10px; max-height: 620px; overflow: auto; padding: 4px; }
.model-parts-group { display: grid; gap: 8px; }
.model-parts-group h4 { margin: 8px 0 0; padding-bottom: 4px; border-bottom: 1px solid #c7d3ce; color: #626d67; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.model-part { display: grid; gap: 8px; width: 100%; padding: 10px; border: 1px solid #c7d3ce; border-radius: 8px; background: #fff; color: #1b1c1f; text-align: left; cursor: grab; font: inherit; }
.model-part:hover,
.model-part:focus-visible { border-color: #b83246; box-shadow: 0 0 0 3px rgba(184, 50, 70, .12); outline: none; }
.model-part.is-used { background: #f5f7f2; }
.model-part-art { display: block; width: 100%; height: 76px; border-radius: 5px; background: #f1f6f3; }
.model-part-art[src] { object-fit: contain; }
.model-part-copy { display: grid; gap: 4px; }
.model-part strong { font-size: 15px; }
.model-part-copy > span { color: #626d67; font-size: 13px; line-height: 1.35; }
.model-blueprint { position: relative; min-height: 560px; overflow: hidden; border: 1px solid #c7d3ce; border-radius: 8px; background: #edf6f2; color: #246b57; }
.model-blueprint-art { position: absolute; inset: 10% 3% auto; width: 94%; opacity: .2; pointer-events: none; }
.model-assembly { position: absolute; inset: 18px 18px auto; height: 260px; border: 1px solid rgba(36, 107, 87, .25); border-radius: 8px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.model-assembly-part { position: absolute; display: grid; place-items: center; }
.model-assembly-part .model-part-art { width: 100%; height: 100%; background: transparent; }
.model-slots { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 300px 20px 34px; }
.model-slot { min-height: 94px; padding: 12px; border: 2px dashed #7aa091; border-radius: 8px; background: rgba(255, 255, 255, .9); color: #1b1c1f; text-align: left; cursor: pointer; font: inherit; }
.model-slot:hover,
.model-slot:focus-visible { border-color: #b83246; outline: none; box-shadow: 0 0 0 3px rgba(184, 50, 70, .12); }
.model-slot.is-filled { border-style: solid; border-color: #246b57; background: #fff; }
.model-slot span,
.model-slot strong { display: block; }
.model-slot span { color: #626d67; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.model-slot strong { margin-top: 8px; font-size: 15px; }
.model-submit-area { display: grid; gap: 10px; max-width: 540px; margin-top: 18px; }
.model-export-button { justify-self: start; }
.letter-game { position: relative; overflow: hidden; padding: 28px; border: 1px solid #d8cdbd; border-radius: 8px; background: #f4eadb; }
.letter-game::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(126, 77, 46, .22); pointer-events: none; }
.letter-form { position: relative; display: grid; gap: 12px; max-width: 760px; margin: 24px auto 0; padding: 34px 30px; background: #fffdf7; box-shadow: 0 12px 28px rgba(92, 55, 35, .12); }
.letter-form textarea { min-height: 260px; resize: vertical; border: 0; border-top: 1px solid #d8cdbd; border-bottom: 1px solid #d8cdbd; padding: 18px 4px; background: transparent; color: #3d2b22; font: 1.08rem/1.7 Georgia, serif; }
.letter-form textarea:focus { outline: 2px solid rgba(184, 50, 70, .35); outline-offset: 3px; }
.letter-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.letter-result { position: relative; text-align: center; font-weight: 700; }
.letter-game.is-burned .letter-form { animation: letter-burn 1.1s ease forwards; }
.letter-game.is-saved .letter-form { animation: letter-save .8s ease both; }
@keyframes letter-burn { 0% { opacity: 1; transform: translateY(0) scale(1); filter: none; } 55% { opacity: .8; transform: translateY(-12px) scale(.98); filter: sepia(1); } 100% { opacity: 0; transform: translateY(-44px) scale(.75); filter: blur(5px) sepia(1); } }
@keyframes letter-save { 0% { transform: translateY(8px); opacity: .65; } 100% { transform: translateY(0); opacity: 1; } }
.model-submit-area label { font-weight: 700; margin-top: 8px; }
.model-submit-area input:not([type="file"]) { width: 100%; padding: 12px; border: 1px solid #b9c8c4; border-radius: 6px; font: inherit; }
.model-contribution ul { margin: 0; padding-left: 20px; }
.model-contribution li { padding: 3px 0; }

.memory-game { display: grid; gap: 20px; max-width: 760px; }
.memory-header { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.memory-header p { margin: 0; }
.memory-header span { color: #626d67; font-size: 14px; font-weight: 700; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.memory-card { position: relative; aspect-ratio: 1; border: 0; border-radius: 8px; background: #246b57; color: #fff; cursor: pointer; font: inherit; overflow: hidden; }
.memory-card:hover, .memory-card:focus-visible { outline: 3px solid #b83246; outline-offset: 3px; }
.memory-card-back, .memory-card-face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 10px; transition: opacity .18s ease, transform .18s ease; }
.memory-card-back { font-size: 34px; font-weight: 800; }
.memory-card-face { opacity: 0; transform: rotateY(90deg); background: #fffdf5; color: #1b1c1f; border: 1px solid #d4dedb; }
.memory-card-face span { font-size: 36px; }
.memory-card-face strong { font-size: 13px; }
.memory-card.is-revealed .memory-card-back, .memory-card.is-matched .memory-card-back { opacity: 0; }
.memory-card.is-revealed .memory-card-face, .memory-card.is-matched .memory-card-face { opacity: 1; transform: rotateY(0); }
.memory-card.is-matched .memory-card-face { background: #eaf5f0; border-color: #246b57; }

.story-activity { max-width: 900px; }
.story-intro { padding: 20px; border-left: 4px solid #b83246; background: #fff8ea; }
.story-intro p { margin: 0 0 10px; }
.story-intro p:last-child { margin-bottom: 0; }
.story-intro blockquote { margin: 0 0 16px; font-size: 21px; line-height: 1.4; font-weight: 700; }
.story-scroll { display: grid; gap: 12px; }
.story-entry { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid #d4dedb; border-radius: 8px; background: #fff; }
.story-entry-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #246b57; color: #fff; font-weight: 800; }
.story-entry p { margin: 0 0 8px; white-space: pre-wrap; }
.story-entry strong { color: #246b57; font-size: 13px; }
.story-form { max-width: 720px; }
.story-form label { font-weight: 700; }
.story-form textarea, .story-form input { width: 100%; padding: 12px; border: 1px solid #b9c8c4; border-radius: 6px; font: inherit; }
.story-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.story-finished-note, .story-finished-list { margin: 0; color: #626d67; }

.dino-stage { width: 100%; aspect-ratio: 40 / 27; border-radius: 8px; overflow: hidden; touch-action: none; }
.dino-stage svg { width: 100%; height: 100%; display: block; cursor: crosshair; }
[data-dino-sticker] { cursor: grab; }
.dino-tools label { position: relative; width: 110px; display: grid; text-align: center; padding: 6px; border: 2px solid transparent; border-radius: 6px; cursor: pointer; background: #fff; }
.dino-tools label:has(input:checked) { border-color: #246b57; }
.dino-tools svg { width: 100%; height: 70px; pointer-events: none; }
.dino-tools span { font-size: 12px; font-weight: 700; }
.dino-actions .secondary-button,
.holiday-status .secondary-button { margin-top: 0; }

@media (max-width: 680px) {
  .holiday-tree-form { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dino-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dino-tools label { width: 100%; padding: 3px; min-width: 0; }
  .dino-tools svg { height: 50px; }
  .dino-tools span { overflow-wrap: anywhere; }
  .dino-actions { align-items: stretch; }
  .dino-actions button { flex: 1 1 100%; }
  .craft summary { font-size: 18px; gap: 10px; }
  .craft summary svg { flex-basis: 72px; width: 72px; }
  .model-builder-layout { grid-template-columns: minmax(0, 1fr); }
  .model-parts-list { max-height: none; }
  .model-parts-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-parts-group h4 { grid-column: 1 / -1; }
  .model-blueprint { min-height: 0; }
  .model-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 300px 12px 20px; gap: 10px; }
  .model-slot { min-height: 82px; padding: 10px; }
  .model-slot strong { font-size: 13px; }
  .memory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .memory-card-face span { font-size: 25px; }
  .memory-card-face strong { font-size: 10px; }
  .story-intro blockquote { font-size: 18px; }
  .story-actions button { flex: 1 1 100%; }
}

.community-form button,
.simple-game-form button {
  justify-self: start;
}

.city-guess-map-wrap {
  display: grid;
  gap: 8px;
}

.city-guess-map {
  overflow: hidden;
  border: 1px solid rgba(27, 28, 31, 0.14);
  border-radius: 8px;
  background: #dcefeb;
  cursor: crosshair;
}

.city-guess-map.is-submitted {
  cursor: default;
}

.city-guess-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.city-guess-land {
  fill: #f7f1df;
  stroke: #246b57;
  stroke-width: 8;
  stroke-linejoin: round;
}

.city-guess-coast {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3;
  stroke-linejoin: round;
}

.city-guess-label {
  fill: #246b57;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.38;
}

.city-guess-pin circle {
  stroke: #fff;
  stroke-width: 4;
}

.city-guess-pin path {
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
}

.city-guess-pin text {
  fill: #1b1c1f;
  font-size: 22px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 7px;
  stroke-linejoin: round;
}

.guess-pin circle,
.guess-pin path {
  fill: #b83246;
}

.target-pin circle,
.target-pin path {
  fill: #246b57;
}

.orientation-pin circle,
.orientation-pin path {
  fill: #8a5a23;
}

.city-guess-line {
  stroke: #b83246;
  stroke-dasharray: 10 8;
  stroke-width: 5;
  opacity: 0.72;
}

.city-guess-map-hint {
  margin: 0;
  color: #6b5f56;
  font-size: 0.92rem;
  font-weight: 800;
}

.city-guess-form p {
  margin: 0;
  color: #4d4945;
  font-weight: 800;
}

.community-rating {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #6b5f56;
  font-size: 0.9rem;
  font-weight: 800;
}

.community-rating-buttons,
.choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-rating-buttons .secondary-button {
  min-width: 40px;
  padding: 0 10px;
}

.secondary-button.is-rating-selected,
.primary-button.is-choice-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.playlist-embed {
  width: 100%;
  min-height: 352px;
  border: 0;
  border-radius: 8px;
}

.playlist-placeholder {
  padding: 18px;
  border-radius: 8px;
  background: #f6f3ed;
}

.playlist-placeholder p:last-child {
  margin-bottom: 0;
}

.bullshit-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bullshit-choice {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 28, 31, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #1b1c1f;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.bullshit-choice:hover:not(:disabled),
.bullshit-choice.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 50, 70, 0.14);
}

.bullshit-choice.is-used {
  cursor: default;
  opacity: 0.48;
  text-decoration: line-through;
}

.bullshit-choice small {
  display: block;
  margin-top: 4px;
  color: #6b5f56;
  font-size: 0.76rem;
  text-decoration: none;
}

.game-result {
  min-height: 28px;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f6f3ed;
  color: #246b57;
  font-weight: 900;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(var(--bingo-size, 5), minmax(0, 1fr));
  grid-auto-rows: minmax(130px, auto);
  gap: 10px;
  margin-top: 20px;
}

.bingo-name-form {
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.bingo-participant {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bingo-participant p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bingo-item {
  display: grid;
  grid-template-rows: 20px 1fr;
  min-width: 0;
  align-items: start;
  justify-items: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid rgba(27, 28, 31, 0.14);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.bingo-item span { min-width: 0; max-width: 100%; align-self: center; overflow-wrap: anywhere; hyphens: auto; }
.bingo-item .bingo-compact-label { display: none; }

.bingo-item input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.bingo-item.is-checked {
  border-color: #246b57;
  background: rgba(36, 107, 87, 0.1);
}
.bingo-item.is-bingo { border-color: #ba851c; background: #fff1c6; }
.bingo-item.is-bingo input { accent-color: #8b6318; }
.bingo-result { min-height: 32px; margin: 8px 0 16px; color: #246b57; font-size: 22px; font-weight: 800; }
.bingo-result.has-bingo { animation: bingo-reveal 350ms ease-out; }
@keyframes bingo-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .bingo-result.has-bingo { animation: none; } }
.full-door-detail:has(.bingo-game) { background: transparent; border: 0; padding: 20px 0; }
.content-page:has(.bingo-game) { background: transparent; border: 0; padding: 0; }
.content-topbar:has(+ .content-page .bingo-game) h1 { hyphens: none; -webkit-hyphens: none; }

.ranking-game h3 {
  margin: 0;
  color: #8f1e31;
  font-size: 1.4rem;
}

.ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 28, 31, 0.12);
  border-radius: 8px;
  background: #f6f3ed;
}

.ranking-item > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ranking-item strong {
  color: var(--accent);
  font-size: 1.4rem;
}

.ranking-controls {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.ranking-controls .secondary-button {
  min-width: 40px;
  padding: 0 10px;
}

.locked-detail {
  color: rgba(27, 28, 31, 0.62);
}

@media (max-width: 860px) {
  .login-view,
  .calendar-shell,
  .content-shell {
    padding: 20px;
  }

  .topbar,
  .calendar-layout {
    display: block;
  }

  .topbar {
    margin-bottom: 20px;
  }

  .secondary-button {
    margin-top: 14px;
  }

  .door-grid {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
  }

  .detail-panel {
    min-height: auto;
    margin-top: 14px;
  }

  .content-topbar {
    display: block;
  }

  .video-match-answers {
    grid-template-columns: 1fr;
  }

  .bingo-grid { gap: 6px; }
}

@media (max-width: 480px) {
  .login-row {
    grid-template-columns: 1fr;
  }

  .door-grid {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }

  .door {
    padding: 10px;
  }

  .hangman-playfield {
    grid-template-columns: 1fr;
  }

  .hangman-playfield .hangman-figure {
    justify-self: center;
    max-width: 220px;
  }

  .hangman-input-row {
    grid-template-columns: 1fr;
  }

  .bingo-grid { gap: 4px; grid-auto-rows: minmax(114px, auto); }
  .bingo-item { padding: 8px 3px; gap: 5px; font-size: 11px; }
  .bingo-item .bingo-full-label { display: none; }
  .bingo-item .bingo-compact-label { display: block; }

  .city-guess-pin text {
    font-size: 18px;
  }

  .playlist-embed {
    min-height: 300px;
  }

  .bullshit-choices {
    grid-template-columns: 1fr;
  }
}

.north-mission { min-width: 0; outline: none; }
.gift-fishing { min-width: 0; margin-top: 20px; }
.content-page:has(.gift-fishing) { padding: 0; border: 0; background: transparent; }
.content-page:has(.gift-fishing) .full-door-detail { background: transparent; border: 0; padding: 0; }
.fishing-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 14px 0 18px; }
.fishing-hud > div { min-width: 0; }
.fishing-hud dt { color: #48655e; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.fishing-hud dd { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; color: #254c46; }
.fishing-unit { font-size: 16px; margin-left: 5px; font-weight: 500; }
.fishing-stage { position: relative; width: 100%; aspect-ratio: 5 / 3; overflow: hidden; background: #e3f1f2; }
.fishing-stage > canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gift-fishing[data-fishing-phase="playing"] .fishing-stage > canvas { cursor: none; }
.fishing-stage > canvas:focus-visible { outline: 3px solid #b83246; outline-offset: -3px; }
.fishing-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #254c46; background: rgba(236, 247, 240, 0.94); pointer-events: none; }
.fishing-overlay[hidden], .fishing-actions button[hidden] { display: none; }
.fishing-overlay h2 { font-size: 30px; margin: 8px 0 14px; }
.fishing-overlay p { margin: 0; font-size: 15px; }
.fishing-location { color: #775085; font-weight: 700; }
.fishing-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.fishing-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fishing-legend canvas { flex: 0 0 46px; width: 46px; height: 46px; }
.fishing-legend span { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.35; color: #254c46; }
.fishing-legend small { display: block; font-size: 12px; font-weight: 500; margin-top: 3px; color: #48655e; }
.fishing-message { min-height: 48px; margin: 16px 0; font-size: 15px; font-weight: 600; line-height: 1.55; color: #254c46; }
.fishing-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 8px 0 16px; }
.fishing-actions button { min-height: 48px; max-width: 100%; font-size: 14px; }
.fishing-actions [data-fishing-action="pause"] { width: 100%; }
.fishing-actions .primary-button { min-width: 156px; background: #24755d; }
.fishing-storage { min-height: 0; margin: 0; font-size: 13px; color: #8d3d4d; }
@media (max-width: 680px) {
  .fishing-stage { aspect-ratio: 4 / 5; }
  .fishing-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .fishing-hud dd { font-size: 26px; }
  .fishing-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .fishing-legend canvas { flex-basis: 36px; width: 36px; height: 36px; }
  .fishing-legend span { font-size: 12px; }
  .fishing-actions .primary-button { flex: 1; min-width: 0; }
  .fishing-actions .secondary-button { min-width: 80px; }
  .fishing-overlay { padding: 18px; }
  .fishing-overlay h2 { font-size: 24px; }
}
.content-page:has(.north-mission) { padding: 0; border: 0; background: transparent; }
.north-mission:focus-visible { outline: 2px solid #217b66; outline-offset: 5px; }
.north-steps { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 0; margin: 16px 0 20px; list-style: none; }
.north-steps li { display: flex; align-items: center; gap: 7px; color: #667779; font-size: 13px; font-weight: 700; }
.north-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e0ebea; }
.north-steps li[aria-current] { color: #a32c41; }
.north-steps li[aria-current] > span { background: #a32c41; color: #fff; }
.north-steps li.is-done { color: #217b66; }
.north-steps li.is-done > span { color: #fff; background: #217b66; }
.north-stage { width: 100%; aspect-ratio: 5 / 3; background: #dceff3; overflow: hidden; }
.north-stage canvas { display: block; width: 100%; height: 100%; }
.north-hud { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d6e3e1; }
.north-hud progress { flex: 1; min-width: 0; height: 8px; accent-color: #217b66; border: 0; border-radius: 4px; overflow: hidden; }
.north-hud progress::-webkit-progress-bar { background: #e0ebea; }
.north-hud progress::-webkit-progress-value { background: #217b66; }
.north-hud progress::-moz-progress-bar { background: #217b66; }
.north-hud span { font-size: 13px; font-weight: 700; color: #284b48; }
.north-message { margin: 16px 0; min-height: 48px; color: #284b48; font-weight: 600; overflow-wrap: anywhere; }
.north-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 180px); gap: 24px 30px; padding: 8px 0 22px; }
.north-settings fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.north-settings legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: #284b48; font-weight: 700; }
.north-option-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.north-option { position: relative; display: grid; align-content: start; min-width: 0; border: 1px solid #d6e3e1; border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.north-option input, .north-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.north-option:has(input:checked) { border-color: #217b66; box-shadow: inset 0 0 0 1px #217b66; background: #edf6f2; }
.north-option:has(input:focus-visible), .north-swatch:has(input:focus-visible) { outline: 3px solid #a32c41; outline-offset: 3px; }
.north-option canvas { display: block; width: 100%; aspect-ratio: 230 / 116; }
.north-option span { display: block; padding: 4px 8px 10px; text-align: center; font-size: 13px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.north-colors > div { display: grid; grid-template-columns: repeat(3, 36px); gap: 10px; }
.north-swatch { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #a6b8b5; border-radius: 50%; cursor: pointer; }
.north-swatch span { width: 26px; height: 26px; background: var(--north-swatch); border-radius: 50%; }
.north-swatch:has(input:checked) { outline: 2px solid #284b48; outline-offset: 2px; }
.north-name { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 13px; font-weight: 700; color: #284b48; }
.north-name span { font-weight: 400; color: #667779; }
.north-name input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1px solid #a6b8b5; border-radius: 5px; font: inherit; font-size: 16px; background: #fff; }
.north-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.north-actions .primary-button, .north-actions .secondary-button { min-height: 48px; max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }
.north-actions button > span[aria-hidden] { display: inline-block; margin-right: 8px; font-size: 22px; line-height: 1; }
.north-drive-controls, .north-flight-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.north-direction-controls { display: flex; gap: 10px; }
.north-hold { display: inline-grid; justify-items: center; gap: 3px; min-width: 112px; padding: 10px 14px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.north-hold > span:first-child { font-size: 26px; line-height: 1; }
.north-hold > span:last-child { font-size: 12px; font-weight: 700; }
.north-hold.is-held { color: #fff; background: #217b66; border-color: #217b66; }
.north-gears { display: flex; gap: 10px; border: 0; padding: 0; margin: 0; }
.north-gears legend { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.north-gears label { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; cursor: pointer; }
.north-gears input { accent-color: #217b66; }
.north-gears label { padding: 8px 12px; border: 1px solid #c5d6d2; border-radius: 6px; background: #fff; }
.north-gears label:has(input:checked) { border-color: #217b66; background: #edf6f2; box-shadow: inset 0 0 0 1px #217b66; }
.north-gears small { display: block; font-size: 11px; color: #526d66; margin-top: 3px; }
.north-driving-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.north-driving-stats > div { min-width: 0; }
.north-driving-stats dt { font-size: 12px; color: #526d66; font-weight: 600; }
.north-driving-stats dd { margin: 3px 0 0; font-size: 20px; color: #284b48; font-weight: 700; }
.north-print-status { font-size: 15px; color: #217b66; font-weight: 600; }
.north-download-feedback { margin: 8px 0; color: #217b66; font-size: 14px; }
.door-detail h2 { font-size: 30px; line-height: 1.16; }
.content-topbar h1 { font-size: 44px; line-height: 1.12; }
.door-detail :is(p, li, dd, dt, label, legend, button), .north-option span, .north-message {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  letter-spacing: 0;
}
.north-option span { min-height: 64px; display: grid; align-items: center; }
.roast-contest { display: grid; gap: 24px; min-width: 0; margin-top: 24px; }
.roast-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.roast-toolbar p, .roast-feedback { margin: 0; }
.roast-feedback { min-height: 24px; }
.roast-submit, .roast-ballot { display: grid; min-width: 0; gap: 12px; }
.roast-submit { padding-bottom: 24px; border-bottom: 1px solid #d5ddd9; }
.roast-submit label, .roast-ballot > label { font-weight: 600; text-transform: none; }
.roast-submit input, .roast-submit textarea, .roast-ballot select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #b5bfba; border-radius: 6px; font: inherit; }
.roast-submit textarea { resize: vertical; }
.roast-submit button, .roast-ballot > button { justify-self: start; max-width: 100%; }
.roast-entries { display: grid; min-width: 0; gap: 12px; border: 0; padding: 0; margin: 4px 0 0; }
.roast-entries legend { margin-bottom: 16px; font-size: 14px; }
.roast-entry { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px; border: 1px solid #c8d2cc; border-radius: 6px; cursor: pointer; text-transform: none; }
.roast-entry:has(input:checked) { border-color: var(--accent); background: #edf5f1; }
.roast-entry input { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.roast-entry-copy { display: grid; min-width: 0; gap: 10px; }
.roast-entry-text { font-size: 20px; line-height: 1.5; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; hyphens: auto; }
.roast-entry-author, .roast-entry-score { font-size: 14px; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.roast-entry-author { color: #4f5f57; }
.roast-entry-score { color: #246b57; font-weight: 600; }
.roast-entry.is-own { background: #f3f4f3; cursor: default; }
.response-game { display: grid; gap: 12px; margin-top: 24px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.response-game > input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.response-question { min-width: 0; padding: 22px 0; border-top: 1px solid #ddd; }
.response-question h3 { font-size: 20px; line-height: 1.4; }
.response-question > label { display: block; margin: 14px 0; }
.response-question input[type=range] { width: 100%; padding: 0; accent-color: var(--accent); min-height: 44px; cursor: pointer; }
.response-range { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 18px; }
.response-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 16px 0; }
.response-choices label { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; }
.response-choices input { flex-shrink: 0; accent-color: var(--accent); }
.response-choices label:has(input:checked) { border-color: var(--accent); background: #eef6f3; }
.response-feedback { min-height: 24px; }
.quiz-explanation { display: block; margin-top: 8px; font-weight: 400; color: #4d4945; }
.playlist-join { display: inline-flex; align-items: center; text-decoration: none; margin-top: 16px; }
.city-guess-map { width: min(100%, 360px); margin-inline: auto; aspect-ratio: 280 / 575; background: #fff; }
.city-guess-map svg { display: block; width: 100%; height: 100%; }
.city-guess-pin text { font-size: 12px; stroke-width: 3px; letter-spacing: 0; }
.city-guess-pin circle, .city-guess-pin path { stroke-width: 2px; }
.city-guess-line { stroke-width: 1.5px; }
.city-guess-game .door-gallery { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); max-width: 900px; margin-inline: auto; }
.city-guess-game .door-gallery img { max-height: 320px; object-fit: contain; }
.tree-spot { width: 28px; height: 28px; }
.tree-ball { width: 28px; height: 28px; font-size: 10px; }
.tree-name { display: none; }

.full-door-detail > p { white-space: pre-line; }
.tree-spot.is-filled { padding: 0; border: 0; background: transparent; cursor: pointer; }
.tree-spot.is-filled:focus-visible { outline: 3px solid #ba851c; outline-offset: 5px; border-radius: 50%; }
.tree-message { margin-block: 20px; padding: 20px 0; border-block: 1px solid #d9dddd; }
.tree-message-header, .contribution-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tree-message-header h3 { margin: 0; font-size: 22px; }
.tree-message > p { white-space: pre-wrap; overflow-wrap: anywhere; }
.contribution-actions { justify-content: flex-start; }
.travel-item figcaption { flex-wrap: wrap; }
.travel-item figcaption > span { flex: 1 1 120px; min-width: 0; }
.language-detective { margin-top: 24px; border-top: 1px solid #d9dddd; padding-top: 24px; }
.language-progress { display: flex; justify-content: space-between; gap: 12px; color: #246b57; font-weight: 700; }
.language-detective h2 { font-size: 24px; line-height: 1.4; margin-block: 24px; }
.language-hint { border-left: 3px solid #ba851c; padding: 12px 16px; background: #f5f7f7; white-space: pre-line; }
.language-answer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.language-answer button { min-height: 76px; min-width: 0; border: 2px solid #246b57; border-radius: 6px; background: #f0f6f4; color: #173d32; font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.language-answer button:disabled { opacity: 1; }
.language-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.language-pieces button { min-height: 48px; min-width: 0; }
.language-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.language-explanation { white-space: pre-line; }
@media (max-width: 600px) {
  .language-detective h2 { font-size: 20px; }
  .language-answer button { font-size: 22px; }
}
@media (max-width: 400px) {
  .tree-spot, .tree-ball { width: 24px; height: 24px; }
}
@media (max-width: 680px) {
  .door-detail h2 { font-size: 26px; }
  .content-topbar h1 { font-size: 30px; }
  .response-choices { grid-template-columns: minmax(0, 1fr); }
  .north-option-row { grid-template-columns: minmax(0, 1fr); }
  .north-option { grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .north-option span { min-height: 64px; text-align: left; font-size: 14px; }
}
@media (max-width: 680px) {
  .north-settings { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .north-colors > div { grid-template-columns: repeat(6, 36px); }
  .north-steps { gap: 10px 12px; }
  .north-steps li { font-size: 11px; gap: 4px; }
  .north-steps li > span { width: 21px; height: 21px; }
  .north-option-row { gap: 7px; }
  .north-option span { font-size: 12px; }
  .north-hud { gap: 10px; }
  .north-hud span { font-size: 11px; }
  .north-drive-controls, .north-flight-controls { width: 100%; }
  .north-direction-controls { flex: 1 1 240px; }
  .north-hold { flex: 1; min-width: 0; }
  .north-hold > span:last-child { white-space: nowrap; }
  .north-actions { gap: 12px; }
  .north-name input { max-width: 100%; }
}
/* Calendar progress, personal exports and gallery tools. */
.ui-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: var(--icon-url) center / contain no-repeat; -webkit-mask: var(--icon-url) center / contain no-repeat; }
.door { position: relative; }
.door .door-completed-mark { position: absolute; left: 12px; bottom: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #246b57; background: #e2f1ea; }
.calendar-tools { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; border-top: 1px solid #ddd; margin-top: 24px; padding-top: 16px; }
.completed-count { margin: 0; color: #526159; font-size: 14px; }
.door-completion { margin-top: 32px; padding-top: 20px; border-top: 1px solid #ddd; }
.door-completion button, .door-completion-status { display: flex; align-items: center; gap: 8px; }
.door-completion button { max-width: 100%; }
.door-completion-status { margin: 0; color: #246b57; font-weight: 600; }
.door-completion-status.is-pending { color: #526159; font-size: 14px; font-weight: 400; }
.calendar-export { max-width: 100%; min-width: 0; }
.calendar-export summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.calendar-export form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.calendar-export label { display: grid; gap: 8px; }
.calendar-export input { max-width: 100%; min-height: 44px; padding: 10px; border: 1px solid #cbd3cf; border-radius: 6px; }
.calendar-export button, .archive-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
[data-archive-links] { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-link { text-decoration: none; min-height: 44px; }
.gallery-zoom { position: relative; display: block; width: 100%; padding: 0; background: transparent; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery-zoom img { display: block; width: 100%; }
.gallery-zoom-hint { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: #202d26; background: rgba(255,255,255,.9); border-radius: 6px; }
.gallery-zoom:focus-visible { outline: 3px solid #246b57; outline-offset: 3px; }
.lightbox-open { overflow: hidden; }
.media-lightbox { width: min(1100px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-width: none; max-height: none; padding: 16px; border: 0; border-radius: 8px; background: #161c19; color: #fff; }
.media-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.media-lightbox::backdrop { background: rgba(0,0,0,.82); }
.lightbox-toolbar, .lightbox-toolbar > div, .lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-lightbox button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #69736c; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.media-lightbox button:disabled { opacity: .35; cursor: default; }
.media-lightbox button:focus-visible { outline: 3px solid #e4c36c; outline-offset: 2px; }
.lightbox-frame { min-width: 0; min-height: 0; overflow: auto; display: grid; place-items: center; }
.lightbox-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pan-y; }
.lightbox-frame img.is-zoomed { width: 200%; max-width: none; max-height: none; touch-action: auto; }
.lightbox-frame:has(img.is-zoomed) { place-items: start; }
.lightbox-footer p { margin: 0; min-width: 0; overflow-wrap: anywhere; max-height: 100px; overflow: auto; text-align: center; font-size: 16px; }
.christmas-recap { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ddd; }
.christmas-recap h2 { font-size: 24px; }
.recap-section { padding-top: 24px; }
.recap-section h3 { font-size: 20px; }
.recap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.recap-item { margin: 0; min-width: 0; }
.recap-item figcaption { padding-top: 10px; overflow-wrap: anywhere; }
.recap-item figcaption p { margin: 6px 0 0; }
.recap-tree-message { padding: 16px 0; border-top: 1px solid #ddd; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .recap-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-tools { align-items: stretch; }
  .calendar-export { width: 100%; }
  .calendar-export form, .calendar-export label { width: 100%; }
  .media-lightbox { padding: 12px; }
}
