* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --paper: #fff8ed;
  --wine: #841628;
  --green: #164936;
  --gold: #b87924;
  --ink: #322a29;
  --line: #e7d5bb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:
    "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --shadow: 0 5px 20px #70320c12;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: radial-gradient(
    ellipse at 54% 15%,
    #fffaf3 0%,
    #fff8ee 58%,
    #faf0e2 100%
  );
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  min-width: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--wine);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--wine);
  line-height: 1.08;
  margin: 0;
}
p {
  margin: 0 0 0.9rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #38674a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1256px;
  width: calc(100% - clamp(32px, 9vw, 136px));
  margin-inline: auto;
}
.masthead {
  position: relative;
  z-index: 8;
  background: linear-gradient(180deg, #fffbf6 0%, #fff9efda 100%);
}
.masthead-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--wine);
  font: 700 clamp(20px, 2vw, 30px)/1 var(--serif);
  letter-spacing: -0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.gift-mark {
  display: inline-block;
  width: 1.16em;
  height: 1.19em;
  position: relative;
  color: currentColor;
  flex-shrink: 0;
}
.gift-mark::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 1%;
  width: 84%;
  height: 58%;
  background: linear-gradient(
    90deg,
    currentColor 0 43%,
    transparent 43% 57%,
    currentColor 57%
  );
  border-radius: 1px;
}
.gift-mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 64%;
  width: 100%;
  height: 12%;
  background: currentColor;
  border-radius: 1px;
}
.gift-mark i::before,
.gift-mark i::after {
  position: absolute;
  top: 2%;
  width: 28%;
  height: 22%;
  border: 1.6px solid currentColor;
  content: "";
  border-radius: 56% 70% 5% 68%;
}
.gift-mark i::before {
  left: 17%;
  transform: rotate(15deg);
}
.gift-mark i::after {
  right: 17%;
  transform: scaleX(-1) rotate(15deg);
}
.site-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}
.site-nav a,
.footer-inner nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.site-nav a:hover,
.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.68em 1.3em;
  border-radius: 9px;
  border: 1px solid #8f1424;
  color: #fff9eb;
  background: linear-gradient(#b32232, #8c1023);
  box-shadow:
    inset 0 1px 0 #ffffff36,
    0 3px 8px #6c272021;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition:
    filter 0.14s,
    transform 0.14s;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(1px);
}
.btn--secondary {
  border-color: #c9924d;
  background: #fff9ef;
  color: #412b21;
  box-shadow: inset 0 0 0 1px #fff8;
}
.masthead-cta {
  min-height: 40px;
  padding: 0.62em 1.1em;
  font-size: 14px;
}
.masthead-cta .gift-mark {
  color: #ffe3ab;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddc8b0;
  border-radius: 7px;
  width: 42px;
  height: 42px;
  padding: 9px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 4px;
  background: var(--wine);
}
.panel,
.help-item {
  background: linear-gradient(135deg, #fffdf8, #fff7eb);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.notice {
  background: #f7ecdc;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.94rem;
  color: #573b2b;
}
.page-intro {
  text-align: center;
  padding: clamp(20px, 4vw, 55px) 0 clamp(20px, 3vw, 42px);
}
.page-intro h1 {
  font-size: clamp(32px, 4.6vw, 66px);
  letter-spacing: -0.05em;
}
.page-intro > p {
  font-size: clamp(15px, 1.5vw, 20px);
  max-width: 660px;
  margin: 0.75rem auto 0;
}
.section-title {
  font-size: clamp(27px, 3.2vw, 47px);
  letter-spacing: -0.045em;
}
.ornament {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold);
  margin: 0 auto 10px;
}
.ornament:before,
.ornament:after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bb802e);
}
.ornament:after {
  transform: scaleX(-1);
}
.site-footer {
  margin-top: 24px;
}
.winter-edge {
  height: clamp(60px, 9vw, 140px);
  background-image: url("https://img.advent-with-friends.christmas/s_1y2l2i2u584p4x/footer.cffa7b21ea.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
}
.footer-bar {
  background: linear-gradient(110deg, #163c2e, #0e3021);
  color: #fff5df;
}
.footer-inner {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-inner .wordmark {
  color: inherit;
  font-size: clamp(17px, 1.7vw, 23px);
}
.footer-inner nav a {
  font-size: 13px;
}
.skip {
  position: absolute;
  z-index: 30;
  left: 12px;
  top: 0;
  transform: translateY(-140%);
  padding: 10px;
  background: var(--green);
  color: white;
}
.skip:focus {
  transform: translateY(0);
}
.help-page {
  padding-bottom: 24px;
}
.help-content,
.help-article {
  max-width: 760px;
  margin: 0 auto;
}
.help-item {
  margin-bottom: 10px;
  border-radius: 10px;
}
.help-item summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 650;
}
.help-item p {
  padding: 0 20px 12px;
}
.help-back {
  text-align: center;
  margin: 30px 0 14px;
}
.help-article {
  padding: clamp(22px, 4vw, 48px);
}
.help-article h2 {
  font-size: clamp(23px, 3vw, 32px);
  margin: 0 0 8px;
}
.help-article section + section {
  margin-top: 23px;
}
.help-article label {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  font-weight: 650;
}
.help-article label span {
  display: contents;
  font-weight: 400;
}
.help-article input,
.help-article textarea {
  background: #fffbf5;
  color: var(--ink);
  border: 1px solid #cdbca6;
  padding: 10px 12px;
  border-radius: 7px;
  width: 100%;
}
.help-article textarea {
  resize: vertical;
}
.form-status {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .masthead-inner {
    min-height: 62px;
    gap: 9px;
  }
  .wordmark {
    font-size: clamp(17px, 4.6vw, 24px);
  }
  .masthead-cta {
    margin-left: auto;
    font-size: 12px;
    min-height: 37px;
    padding: 0.5em 0.8em;
  }
  .masthead-cta .gift-mark {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #fff8ec;
    padding: 16px 5vw;
    border-block: 1px solid var(--line);
    box-shadow: var(--shadow);
    justify-content: center;
  }
  .masthead.nav-open .site-nav {
    display: flex;
  }
  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }
  .footer-inner nav {
    gap: 18px;
  }
  .footer-inner nav a {
    font-size: 13px;
  }
  .winter-edge {
    background-size: auto 100%;
  }
}
@media (max-width: 370px) {
  .masthead-cta {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.preview-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 20px;
  color: #665247;
  font-size: 0.84rem;
  margin-top: 25px;
}
.preview-roles a {
  font-weight: 650;
  text-underline-offset: 3px;
}
.cv-intro + .preview-roles {
  width: 100%;
  margin: -0.75rem auto 1.25rem;
}
/* Public guestbook and footer navigation. */
.footer-inner nav.site-directory { display: grid; gap: .45rem; padding: 1rem 0; }
.site-directory > div { display: flex; gap: .45rem 1rem; flex-wrap: wrap; }
.awf-community { max-width: 48rem; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.25rem); }
.awf-community h2 { margin: 0; }
.awf-community [hidden] { display: none !important; }
.awf-comment-form:not([data-gf-replying]) .awf-reply-target { display: none; }
.awf-comment-form { display: grid; gap: .75rem; }
.awf-comment-form label { display: grid; gap: .3rem; }
.awf-comment-form input, .awf-comment-form textarea { width: 100%; font: inherit; padding: .6rem; border: 1px solid #b99677; border-radius: .45rem; background: #fffaf3; }
.awf-comment-form button { justify-self: start; }
.awf-comment { border-top: 1px solid #dcc6ac; padding: 1rem 0; overflow-wrap: anywhere; }
.awf-comment time { font-size: .85em; }
.awf-comment [data-gf-c-replies] { padding-left: 1.25rem; }

.awf-landing,
.awf-create {
  --awf-berry: var(--wine, #85182a);
  --awf-forest: var(--green, #174631);
  --awf-honey: var(--gold, #ab742b);
  --awf-border: var(--line, #e6d4bd);
  --awf-cream: var(--paper, #fff9ef);
  color: var(--ink, #302820);
}
.awf-landing [hidden],
.awf-create [hidden] {
  display: none !important;
}
.awf-landing h1,
.awf-landing h2,
.awf-landing h3,
.awf-create h1,
.awf-create h2,
.awf-create h3,
.awf-create legend,
.awf-create .awf-field label {
  color: var(--awf-berry);
  font-family: var(--serif, Georgia, serif);
}
.awf-hero {
  overflow: hidden;
}
.awf-hero-inner {
  margin-inline: auto;
  width: min(100%, 1440px);
  min-height: min(405px, 35vw);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
}
.awf-hero-copy {
  padding: 31px 0 22px max(4.5vw, calc((100vw - 1256px) / 2));
  z-index: 1;
}
@media (min-width: 1440px) {
  .awf-hero-copy {
    padding-left: 92px;
  }
}
.awf-hero h1 {
  font-size: clamp(2.02rem, 4.25vw, 3.82rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.034em;
}
.awf-hero h1 span {
  color: var(--awf-forest);
}
.awf-hero-copy > p {
  margin: 1.25rem 0 1.5rem;
  max-width: 35ch;
  line-height: 1.48;
  font-size: clamp(1.04rem, 1.5vw, 1.27rem);
}
.awf-hero-art {
  align-self: stretch;
  display: grid;
  align-items: center;
  min-width: 0;
}
.awf-hero-art img {
  display: block;
  width: 100%;
  max-height: 565px;
  height: auto;
  object-fit: contain;
  mask-image:
    linear-gradient(to right, transparent, #000 6%),
    linear-gradient(to bottom, transparent, #000 5%, #000 96%, transparent);
  mask-composite: intersect;
}
.awf-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.awf-hero-actions .btn {
  white-space: nowrap;
  font-size: clamp(0.84rem, 1.12vw, 1rem);
  padding-inline: 1em;
}
.awf-play-icon {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  border: 1.2px solid currentColor;
  border-radius: 50%;
  font:
    bold 12px/1 Georgia,
    serif;
}
.awf-example-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--awf-forest);
  text-underline-offset: 3px;
}
.awf-landing-section {
  text-align: center;
  padding-block: clamp(16px, 1.6vw, 25px);
  scroll-margin-top: 24px;
}
.awf-section-intro {
  text-align: center;
  margin: 0 auto 17px;
}
.awf-section-intro h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.8vw, 1.5rem);
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
}
.awf-section-intro h2::before,
.awf-section-intro h2::after {
  content: "";
  display: inline-block;
  width: clamp(22px, 3.6vw, 52px);
  height: 1.5px;
  background-color: var(--awf-honey);
  flex: 0 0 auto;
}
.awf-section-intro > p {
  margin: 0.35rem auto 0;
  line-height: 1.45;
  font-size: 1rem;
}
.awf-steps {
  display: grid;
  gap: clamp(18px, 2.6vw, 38px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.awf-steps li {
  position: relative;
  padding: 23px 14px 19px;
  background: linear-gradient(155deg, #fffdf6, #fff6e8);
}
.awf-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: calc(clamp(18px, 2.6vw, 38px) * -0.5);
  top: 50%;
  transform: translate(50%, -50%);
  color: var(--awf-honey);
  font: 600 1.5rem/1 var(--serif, Georgia, serif);
}
.awf-step-count {
  position: absolute;
  top: 11px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff5dd;
  border-radius: 50%;
  font: bold 17px/1 var(--serif, Georgia, serif);
  background: linear-gradient(145deg, #bc3842, var(--awf-berry));
  box-shadow: inset 0 0 0 1px #fff4;
}
.awf-steps h3,
.awf-theme-card h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  line-height: 1.08;
  margin: 0.65rem 0 0.35rem;
  letter-spacing: -0.02em;
}
.awf-steps p,
.awf-theme-card p {
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.42;
  max-width: 28ch;
  margin: 0 auto;
}
.awf-step-art {
  position: relative;
  margin: 0 auto;
  width: 68px;
  height: 48px;
  color: var(--awf-berry);
}
.awf-step-art i,
.awf-step-art::before,
.awf-step-art::after {
  position: absolute;
  display: block;
  box-sizing: border-box;
}
.awf-step-calendar i {
  left: 12px;
  top: 4px;
  width: 45px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.awf-step-calendar i::before {
  content: "✦";
  color: var(--awf-honey);
  font:
    24px/30px Georgia,
    serif;
}
.awf-step-calendar::after {
  content: "";
  width: 57px;
  height: 6px;
  border: 2px solid;
  border-radius: 2px 2px 5px 5px;
  left: 6px;
  top: 38px;
}
.awf-step-send i {
  left: 8px;
  top: 3px;
  background: currentColor;
  width: 51px;
  height: 40px;
  clip-path: polygon(
    0 31%,
    100% 0,
    75% 99%,
    51% 67%,
    33% 88%,
    31% 53%,
    78% 16%,
    34% 45%,
    12% 33%,
    82% 10%,
    50% 61%,
    72% 85%,
    92% 9%,
    0 36%
  );
}
.awf-step-send::after {
  content: "···";
  color: var(--awf-honey);
  left: 0;
  bottom: 0;
  font:
    900 19px Georgia,
    serif;
  transform: rotate(-20deg);
}
.awf-step-note i {
  width: 46px;
  height: 34px;
  top: 9px;
  left: 7px;
  border: 2px solid;
  border-radius: 3px;
  transform: rotate(-7deg);
}
.awf-step-note i::before {
  content: "♥";
  color: var(--awf-honey);
  position: absolute;
  top: 1px;
  left: 5px;
  font:
    14px Georgia,
    serif;
}
.awf-step-note i::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 23px;
  border-top: 2px solid;
}
.awf-step-note::after {
  content: "✎";
  font:
    37px/1 Georgia,
    serif;
  color: var(--awf-berry);
  top: -1px;
  right: 2px;
}
.awf-step-present i {
  width: 41px;
  height: 27px;
  left: 13px;
  bottom: 3px;
  border: 2px solid;
  background: linear-gradient(
    90deg,
    transparent 46%,
    var(--awf-honey) 47%,
    var(--awf-honey) 53%,
    transparent 54%
  );
}
.awf-step-present::before {
  content: "";
  width: 47px;
  height: 8px;
  border: 2px solid;
  left: 10px;
  bottom: 27px;
}
.awf-step-present::after {
  content: "∞";
  color: var(--awf-honey);
  top: -14px;
  left: 18px;
  font:
    38px/1 Georgia,
    serif;
}
.awf-theme-cards {
  display: grid;
  gap: clamp(12px, 2.5vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.awf-theme-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
  padding-bottom: 15px;
  color: inherit;
}
.awf-theme-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.awf-theme-card img {
  width: 100%;
  aspect-ratio: 1.7;
  display: block;
  object-fit: cover;
}
.awf-theme-card p {
  padding: 0 10px;
}
.awf-note-strip {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
  background: #f7e8df;
  border-radius: 17px;
  padding: 19px clamp(20px, 3vw, 42px);
  margin-block: 7px 2px;
}
.awf-note-mark {
  font: 40px/1 var(--serif, Georgia, serif);
  color: var(--awf-berry);
  transform: rotate(-10deg);
}
.awf-note-strip h2 {
  margin: 0 0 0.24rem;
  font-size: clamp(1.16rem, 1.9vw, 1.5rem);
}
.awf-note-strip p {
  margin: 0;
  font-size: 0.9rem;
}
.awf-note-strip blockquote {
  margin: 0;
  border-left: 1px solid #dfc3af;
  padding-left: clamp(12px, 2.4vw, 32px);
  color: #51332c;
  font: italic clamp(1rem, 1.45vw, 1.15rem)/1.4 var(--serif, Georgia, serif);
}
.awf-faq {
  padding-bottom: clamp(26px, 3.4vw, 50px);
}
.awf-faq .awf-section-intro {
  margin-bottom: 14px;
}
.awf-faq .awf-section-intro h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}
.awf-faq-list {
  max-width: 700px;
  margin: 0 auto 0.65rem;
  text-align: left;
}
.awf-faq details {
  border: 1px solid var(--awf-border);
  background: #fffaf1;
  border-radius: 8px;
  margin-top: 5px;
}
.awf-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.64rem 1rem;
  color: #382a26;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.awf-faq summary::-webkit-details-marker {
  display: none;
}
.awf-faq summary::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  margin: -0.25rem 0.2rem 0 0;
}
.awf-faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}
.awf-faq details p {
  margin: 0;
  padding: 0 1rem 0.85rem;
  line-height: 1.5;
}
.awf-text-link {
  color: var(--awf-berry);
  font-weight: 650;
  text-underline-offset: 3px;
}

.awf-create-intro {
  text-align: center;
  padding: clamp(20px, 3vw, 42px) 20px clamp(26px, 3.2vw, 48px);
}
.awf-create-flourish {
  display: block;
  color: var(--awf-honey);
  line-height: 1;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  margin-bottom: 0.45rem;
}
.awf-create-intro h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.25vw, 4.05rem);
  line-height: 1.08;
  letter-spacing: -0.034em;
}
.awf-create-intro > p {
  margin: 0.65rem auto 0;
  max-width: 61ch;
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.48;
}
.awf-create-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.93fr);
  align-items: start;
  gap: clamp(22px, 3vw, 38px);
  padding-bottom: clamp(35px, 4.9vw, 68px);
}
.awf-create-form-panel {
  padding: clamp(19px, 2.4vw, 34px);
}
.awf-create-form-panel h2 {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(1.72rem, 2.65vw, 2.52rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.awf-title-present {
  color: var(--awf-honey);
  font-size: 1.07em;
}
.awf-field {
  margin-bottom: 1.4rem;
}
.awf-field label,
.awf-theme-select legend {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.2;
}
.awf-field label {
  display: block;
  margin-bottom: 0.45rem;
}
.awf-field label span,
.awf-theme-select legend span {
  color: #a52634;
  font-family: var(--sans, sans-serif);
  font-size: 0.75em;
}
.awf-field input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  color: var(--ink, #302820);
  font: inherit;
  border: 1px solid #c6b9aa;
  border-radius: 8px;
  background: #fffcf7;
}
.awf-field input:focus-visible,
.awf-theme-options input:focus-visible + span {
  outline: 3px solid var(--awf-forest);
  outline-offset: 3px;
}
.awf-theme-select {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.awf-theme-select legend {
  padding: 0;
}
.awf-theme-select > p {
  margin: 0.4rem 0 0.9rem;
}
.awf-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 0.9vw, 13px);
}
.awf-theme-options label {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.awf-theme-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.awf-option-card {
  display: block;
  height: 100%;
  padding: 4px 4px 11px;
  text-align: center;
  background: #fffaf1;
  border: 1.6px solid #eadccd;
  border-radius: 12px;
  box-shadow: 0 2px 7px #7b491914;
}
.awf-option-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.13;
  border-radius: 7px;
  object-fit: cover;
}
.awf-option-card strong {
  display: block;
  color: var(--awf-berry);
  font: 700 clamp(0.93rem, 1.55vw, 1.32rem)/1.1 var(--serif, Georgia, serif);
  margin: 0.55rem 0 0.3rem;
}
.awf-option-card small {
  display: block;
  font-size: clamp(0.72rem, 1.03vw, 0.87rem);
  line-height: 1.33;
  padding-inline: 3px;
}
.awf-theme-options input:checked + span {
  border-color: var(--awf-berry);
  background: #fff3e1;
  box-shadow: 0 0 0 1px var(--awf-berry);
}
.awf-theme-options input:checked + span::after {
  content: "✓";
  display: grid;
  place-items: center;
  font: bold 0.82rem/1 var(--sans, sans-serif);
  position: absolute;
  top: -7px;
  right: -4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid #fcf5e9;
  color: white;
  background: var(--awf-berry);
  pointer-events: none;
}
.awf-creation-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8ece2;
  padding: clamp(13px, 1.5vw, 20px);
  margin: 1rem 0;
  border-radius: 12px;
}
.awf-creation-note > span {
  font-size: 1.3rem;
  color: var(--awf-berry);
}
.awf-creation-note strong,
.awf-calendar-glance strong {
  display: block;
  color: var(--awf-berry);
  font: 700 clamp(1.03rem, 1.55vw, 1.32rem)/1.17 var(--serif, Georgia, serif);
}
.awf-creation-note p {
  margin: 0.4rem 0 0;
  line-height: 1.42;
  font-size: 0.9rem;
}
.awf-create-button {
  width: 100%;
  min-height: 48px;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.awf-mobile-preview { display: none; }
.awf-create-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.awf-form-status {
  margin: 0.6rem 0 0;
  font-size: 0.94rem;
  color: var(--awf-berry);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.awf-form-status:empty {
  display: none;
}
.awf-create-preview .awf-section-intro {
  margin: 0.7rem 0 1.25rem;
}
.awf-create-preview .awf-section-intro h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
}
.awf-preview-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #f3e4d2;
  box-shadow: 0 5px 17px #78482021;
}
.awf-dates-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.awf-preview-theme {
  display: block;
  width: 100%;
  height: auto;
}
.awf-preview-caption {
  padding: 0.75rem 1rem;
  background: #fff6e7;
  border-top: 1px solid var(--awf-border);
  text-align: center;
  overflow-wrap: anywhere;
}
.awf-preview-caption strong {
  display: block;
  color: var(--awf-berry);
  font: 700 1.35rem/1.1 var(--serif, Georgia, serif);
}
.awf-preview-caption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}
.awf-calendar-glance {
  margin-top: clamp(16px, 2vw, 30px);
  padding: clamp(16px, 2.4vw, 30px);
}
.awf-calendar-glance h3 {
  text-align: center;
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}
.awf-calendar-glance > div {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  padding: 0.85rem 0;
}
.awf-calendar-glance > div + div {
  border-top: 1px solid var(--awf-border);
}
.awf-calendar-glance > div:last-child {
  padding-bottom: 0;
}
.awf-calendar-glance p {
  margin: 0;
  min-width: 0;
}
.awf-calendar-glance small {
  display: block;
  margin-top: 0.24rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.awf-glance-icon {
  flex: 0 0 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f8e8d8;
  color: var(--awf-berry);
  font:
    28px/1 Georgia,
    serif;
}

@media (min-width: 701px) and (max-width: 1050px) {
  .awf-hero-actions {
    gap: 0.4rem;
  }
  .awf-hero-actions .btn {
    padding-inline: 0.7em;
    font-size: 0.83rem;
  }
}
@media (max-width: 900px) {
  .awf-hero-inner {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    min-height: 0;
  }
  .awf-hero-copy {
    padding: 32px 0 26px 24px;
  }
  .awf-hero h1 {
    font-size: clamp(2.1rem, 4.65vw, 3rem);
  }
  .awf-hero-actions .btn {
    padding-inline: 0.7em;
    font-size: 0.86rem;
  }
  .awf-steps {
    gap: 14px;
  }
  .awf-steps li:not(:last-child)::after {
    display: none;
  }
  .awf-step-count {
    top: 8px;
    left: 8px;
    width: 23px;
    height: 23px;
    font-size: 0.9rem;
  }
  .awf-steps li {
    padding-inline: 9px;
  }
}
@media (max-width: 700px) {
  .awf-hero-inner {
    display: flex;
    flex-direction: column;
  }
  .awf-hero-copy {
    align-self: stretch;
    padding: 28px 20px 4px;
    text-align: center;
  }
  .awf-hero h1 {
    font-size: clamp(1.9rem, 9.5vw, 3.6rem);
  }
  .awf-hero-copy > p {
    margin: 0.85rem auto 1.05rem;
  }
  .awf-hero-actions {
    justify-content: center;
  }
  .awf-hero-art {
    display: block;
    width: min(100%, 620px);
    align-self: center;
  }
  .awf-hero-art img {
    max-height: 400px;
  }
  .awf-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .awf-note-strip {
    grid-template-columns: auto 1fr;
    gap: 0.65rem 1rem;
  }
  .awf-note-strip blockquote {
    grid-column: 1 / -1;
    padding: 0.65rem 0 0;
    border-left: 0;
    border-top: 1px solid #dfc3af;
  }
  .awf-create-columns {
    grid-template-columns: 1fr;
  }
  .awf-mobile-preview {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: .8rem 0 0;
    padding: .45rem;
    border: 1px solid var(--awf-border);
    border-radius: 10px;
    background: #fff6e7;
  }
  .awf-mobile-preview img {
    flex: none;
    width: 88px;
    height: 66px;
    object-fit: contain;
    border-radius: 6px;
  }
  .awf-mobile-preview figcaption {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .awf-mobile-preview span { font-size: .84rem; }
  .awf-mobile-preview strong {
    display: block;
    color: var(--awf-berry);
    font: 700 1.14rem/1.2 var(--serif, Georgia, serif);
  }
  .awf-create-preview > .awf-section-intro,
  .awf-create-preview > .awf-preview-figure { display: none; }
  .awf-option-card img {
    aspect-ratio: 1.42;
  }
  .awf-landing-section {
    scroll-margin-top: 10px;
  }
}
@media (max-width: 520px) {
  .awf-theme-cards {
    grid-template-columns: 1fr;
  }
  .awf-theme-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 0;
    align-items: center;
    text-align: left;
    column-gap: 12px;
  }
  .awf-theme-card img {
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    min-height: 100px;
    aspect-ratio: auto;
  }
  .awf-theme-card h3 {
    align-self: end;
    margin: 9px 8px 4px 0;
  }
  .awf-theme-card p {
    align-self: start;
    margin: 0 8px 9px 0;
    padding: 0;
  }
  .awf-step-art {
    transform: scale(0.87);
  }
  .awf-steps p {
    font-size: 0.85rem;
  }
  .awf-section-intro > p {
    font-size: 0.94rem;
  }
  .awf-create-form-panel {
    padding: 17px 14px;
  }
  .awf-create-form-panel h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .awf-create-intro { padding-block: 15px 20px; }
  .awf-field { margin-bottom: 1rem; }
  .awf-option-card {
    padding-bottom: 0.55rem;
  }
  .awf-option-card small {
    display: none;
  }
  .awf-option-card strong {
    margin: 0.4rem 0 0;
  }
  .awf-glance-icon {
    height: 38px;
    flex-basis: 38px;
  }
}

.awf-library { margin: 1.5rem auto 2rem; }
.awf-library .panel { padding: 1.4rem 1.8rem; }
.awf-library h2 { margin: 0; }
.awf-library-links { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; }
.awf-library ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: .6rem 0 1rem; padding: 0; }
.awf-library li a { display: inline-block; padding: .55rem .8rem; background: #fff9ef; border: 1px solid #c9924d; border-radius: .5rem; overflow-wrap: anywhere; }
.awf-code-page input, [data-owner-password] input { width: 100%; padding: .7rem; margin: .45rem 0; font: inherit; }
.awf-code-page .btn, [data-password-form] { margin-top: .7rem; }

.awf-sent-library { margin-top:1rem; border-top:1px solid #e3d3bc; padding-top:.85rem; }
.awf-sent-library summary, .awf-owner-recovery summary { cursor:pointer; color:var(--red,#861f30); font-weight:700; }
.awf-sent-library h3 { margin:1rem 0 .2rem; overflow-wrap:anywhere; }
.awf-sent-library [data-sent-groups] p { margin:.2rem 0; }
.awf-owner-recovery { margin-block:1rem; }
.awf-owner-recovery label { display:block; margin-top:.8rem; }

.calendar-experience {
  --cv-ink: #78151d;
  --cv-gold: #b77c34;
  --cv-soft: #f8ecdd;
  --cv-muted: #5b5048;
  color: #352b27;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}
.calendar-experience [hidden] {
  display: none !important;
}
.calendar-experience :is(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid #1b6b5f;
  outline-offset: 3px;
}
.calendar-experience button,
.calendar-experience summary {
  cursor: pointer;
}
.calendar-experience button:disabled {
  cursor: not-allowed;
}
.cv-intro {
  text-align: center;
  padding: clamp(1.4rem, 4.6vw, 4.2rem) 0 1.25rem;
}
.cv-intro h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.9rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
  color: var(--cv-ink);
  margin: 0.06em 0 0.18em;
}
.cv-intro h1 em {
  font: inherit;
  color: #204b33;
}
.cv-intro p {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  margin: 0.3em auto;
  max-width: 44rem;
}
[data-calendar-view="contribute"] .cv-intro :is(h1, p) {
  overflow-wrap: anywhere;
}
.winter-mark {
  display: block;
  color: #b67d35;
  font-size: 1.6rem;
  line-height: 1;
}
.season-divider {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  color: var(--cv-gold);
}
.season-divider:before,
.season-divider:after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
}
.cv-message {
  margin: 1.5rem auto;
  max-width: 45rem;
  text-align: center;
  padding: 2.4rem;
}
.cv-message p {
  margin: 0.4em 0 0.8em;
}
.cv-message h2,
.cv-dialog h2,
.cv-panel h2,
.cv-invite h2,
.cv-secret h2,
.cv-compose-card h2,
.cv-section-head h2,
.cv-day-summary h2,
.cv-closed h2 {
  color: var(--cv-ink);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.cv-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.65rem 0 0.2rem;
}
.cv-toolbar .btn,
.cv-code {
  min-height: 2.8rem;
  padding: 0.58rem 1.25rem;
}
.cv-code {
  display: flex;
  gap: 0.6em;
  align-items: center;
  color: #533721;
  background: #fff5e8;
  border: 1px solid #d4a167;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 600;
}
.cv-code strong {
  color: var(--cv-ink);
  text-decoration: underline;
  text-underline-offset: 0.13em;
  overflow-wrap: anywhere;
}
.cv-feedback {
  font-size: 0.9rem;
  color: #65432c;
  line-height: 1.5;
  min-height: 1.5rem;
  text-align: center;
  margin: 0.3rem 0;
}
.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(16rem, 0.88fr);
  align-items: start;
  gap: clamp(1rem, 2.6vw, 2.2rem);
}
.cv-frame {
  position: relative;
  align-self: start;
  width: 100%;
  container-type: inline-size;
  isolation: isolate;
  --grid-left: 10%;
  --grid-top: 23.5%;
  --grid-width: 80%;
  --grid-height: 51.1%;
  --door-face: #9e171c;
  --door-dark: #590d12;
  --door-light: #d85b36;
  --door-text: #ffdda3;
  color: var(--door-text);
}
.cv-frame[data-theme="gingerbread"] {
  --door-face: #9c4518;
  --door-dark: #602609;
  --door-light: #dc8d50;
  --door-text: #fff0c5;
}
.cv-frame[data-theme="snowy"] {
  --door-face: #295875;
  --door-dark: #153348;
  --door-light: #7aa1b8;
  --door-text: #fff4dd;
}
.cv-frame[data-theme="candy"] {
  --door-face: #a02436;
  --door-dark: #680c1e;
  --door-light: #e07370;
  --door-text: #fff2d3;
}
.cv-frame-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.cv-door-grid {
  position: absolute;
  left: var(--grid-left);
  top: var(--grid-top);
  width: var(--grid-width);
  height: var(--grid-height);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.65cqw;
  z-index: 1;
}
.cv-door {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2em;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.025em;
  font:
    600 clamp(0.94rem, 4.05cqw, 2.6rem)/1 Georgia,
    serif;
  color: var(--door-text);
  border: 1px solid #daae65;
  border-radius: 8%;
  background:
    radial-gradient(
      ellipse at 32% 20%,
      var(--door-light) -50%,
      transparent 85%
    ),
    linear-gradient(155deg, var(--door-face) 25%, var(--door-dark));
  box-shadow:
    inset 0 0 0 1px #6a341a,
    inset 0 0 0 0.52cqw #ffda8b44,
    0 0.22cqw 0.4cqw #3f1b0c88;
  padding: 0.14em 0.09em;
  overflow: hidden;
  text-shadow: 0 1px 2px #35160c;
}
.cv-door:after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: 0.52cqw;
  min-width: 2px;
  height: 0.52cqw;
  min-height: 2px;
  border-radius: 50%;
  background: #ffd88b;
  box-shadow: 0 0.08em 0.1em #452310;
}
.cv-door .cv-door-writer {
  max-width: 96%;
  border-radius: 0.6em;
  padding: 0.21em 0.46em 0.24em;
  background: #fff0cd;
  color: #4b2518;
  font:
    700 clamp(0.43rem, 1.48cqw, 0.76rem)/1.05 system-ui,
    sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-shadow: none;
  letter-spacing: 0;
}
.cv-door .cv-door-sticker {
  font-size: 0.62em;
  line-height: 1;
}
.cv-door.is-open,
.cv-door.is-current {
  border-color: #ffdd83;
  background: radial-gradient(
    ellipse at 50% 65%,
    #f3b343,
    #b85118 54%,
    #8b260f 90%
  );
  box-shadow:
    inset 0 0 0 0.22cqw #fff0a5,
    0 0 1cqw #ffd65b;
}
.cv-door.is-selected {
  outline: 0.4cqw solid #ffe79e;
  outline-offset: 0.12cqw;
  box-shadow:
    inset 0 0 0 0.3cqw #ffda75,
    0 0 1.6cqw #fff781;
  z-index: 1;
}
.cv-door:hover:not(:disabled) {
  filter: brightness(1.17);
}
.cv-door:focus-visible {
  z-index: 2;
}
.cv-sidebar {
  display: grid;
  gap: 1.1rem;
}
.cv-panel,
.cv-manage {
  padding: clamp(1.05rem, 2.2vw, 1.65rem);
}
.cv-panel h2 {
  font-size: clamp(1.4rem, 2.55vw, 2rem);
  margin: 0 0 1rem;
}
.cv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
}
.cv-stats > div {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
  border: 1px solid #ead5bb;
  border-radius: 0.85rem;
  padding: 1rem 0.3rem;
  background: linear-gradient(130deg, #fffaf3, #faeddd);
}
.cv-stats dt {
  font-size: 0.86rem;
  color: #504139;
}
.cv-stats dd {
  margin: 0;
  color: var(--cv-ink);
  font:
    700 clamp(1.8rem, 3.7vw, 3rem)/1.1 Georgia,
    serif;
}
.cv-stats small {
  font-size: 0.55em;
}
.cv-today {
  color: var(--cv-ink);
  padding: 0.75rem 0.6rem;
  text-align: center;
  margin: 1rem 0 0;
  font-weight: 700;
  border-radius: 0.6rem;
  border: 1px solid #dfbe89;
  background: #ffefd6;
}
.cv-today a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.19em;
}
.cv-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-activity li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eddfd0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.cv-activity li:last-child {
  border-bottom: 0;
}
.cv-activity-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #f7e6cd;
  font-size: 1.12rem;
}
.cv-activity-name {
  color: var(--cv-ink);
  font-weight: bold;
}
.cv-owner-open {
  margin: 0 0 1rem;
  text-align: center;
}
.cv-activity-open {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.cv-activity-action, .cv-activity-date {
  margin-left: auto;
  text-align: right;
  font-size: .84rem;
}
.cv-activity-action {
  color: var(--cv-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.cv-text-button,
.cv-backlink {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--cv-ink);
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.cv-manage summary {
  color: var(--cv-ink);
  font-weight: 700;
}
.cv-manage p {
  font-size: 0.88rem;
  line-height: 1.5;
}
.cv-moderate {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin: 1rem 0 0.5rem;
}
.cv-moderate label {
  font-weight: 650;
}
.cv-moderate select {
  width: 100%;
  padding: 0.45rem;
  border: 1px solid #cdbbad;
  border-radius: 0.45rem;
  background: #fffaf3;
  color: inherit;
  font: inherit;
}
.cv-delete-calendar {
  display: block;
  margin-top: 0.7rem;
}
.cv-invite {
  margin: 2.25rem 0 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem clamp(1.1rem, 3vw, 2.5rem);
}
.cv-invite-icon {
  font-size: clamp(2rem, 5vw, 4rem);
}
.cv-invite h2,
.cv-invite p {
  margin: 0 0 0.35rem;
}
.cv-invite h2 {
  font-size: clamp(1.45rem, 3vw, 2.5rem);
}
.cv-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.cv-guest-write {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.4rem;
}
.cv-date-picker {
  min-width: 0;
}
.cv-date-picker > summary {
  color: var(--cv-ink);
  padding: .65rem 0;
  font-weight: 700;
  cursor: pointer;
}
.cv-date-picker[open] > summary {
  margin-bottom: .45rem;
}
.cv-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  padding: 1rem 0.45rem;
  margin: 0.6rem 0 1.3rem;
  border: 1px solid #efdbc1;
  border-radius: 0.75rem;
  background: #fcf3e6;
  font-size: 0.85rem;
}
.cv-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cv-legend i {
  width: 1.15rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  background: #8f1c20;
  border: 1px solid #b78748;
  box-shadow: inset 0 0 0 1px #e6be6c;
}
.cv-legend i.cv-key-selected {
  background: #d88622;
  outline: 2px solid #edbf53;
}
.cv-legend i.cv-key-filled {
  background: #f8d8aa;
}
.cv-legend i.cv-key-filled:after {
  content: "✦";
  display: block;
  color: #9b4814;
  text-align: center;
  font-style: normal;
  line-height: 1.08rem;
}
.cv-secret {
  padding: 1.6rem;
  text-align: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e9eddf, #fbf8ed 65%, #e2e7d8);
  color: #354b37;
}
.cv-secret > span {
  color: #a87532;
  font-size: 1.8rem;
}
.cv-secret h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  margin: 0.1rem auto 0.5rem;
  max-width: 20ch;
}
.cv-secret p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.cv-compose-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #d8b58b;
}
.cv-compose-card h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  max-width: 16ch;
  text-align: center;
  margin: 0 auto;
}
.cv-ribbon {
  text-align: center;
  color: var(--cv-ink);
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.cv-selected-caption {
  text-align: center;
  color: var(--cv-muted);
  font-size: 0.92rem;
  margin: 0.45rem auto 1.3rem;
}
.cv-form-group,
.cv-sticker-group {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.cv-form-group > label:not(.cv-check),
.cv-sticker-group legend,
.cv-note-label label,
.cv-dialog label {
  display: block;
  font:
    700 1.16rem/1.3 Georgia,
    serif;
  color: var(--cv-ink);
  margin: 0 0 0.4rem;
}
.cv-form-group input:not([type="checkbox"]):not([type="radio"]),
.cv-form-group textarea,
.cv-dialog input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.55rem;
  border: 1px solid #cdbbad;
  background: #fffaf3;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: #342b29;
}
.cv-form-group input:disabled {
  opacity: 0.55;
}
.cv-form-group textarea {
  resize: vertical;
  min-height: 6.75rem;
}
.cv-check {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  margin: 0.85rem 0 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}
.cv-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cv-ink);
  margin: 0.12em 0 0;
}
.cv-check small,
.cv-quota small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--cv-muted);
}
.cv-sticker-group > p {
  font-size: 0.9rem;
  color: var(--cv-muted);
  margin: 0 0 0.65rem;
}
.cv-stickers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 1.3rem;
}
.cv-sticker {
  display: block;
  position: relative;
  cursor: pointer;
}
.cv-sticker input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.cv-sticker > span {
  display: grid;
  place-items: center;
  min-height: 2.65rem;
  aspect-ratio: 1.05;
  border: 1px solid #e5cdb1;
  background: #fff9ef;
  border-radius: 0.6rem;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
}
.cv-sticker input:checked + span {
  outline: 2px solid #9c1d2b;
  background: #fff0d8;
}
.cv-sticker input:focus-visible + span {
  outline: 3px solid #1b6b5f;
  outline-offset: 3px;
}
.cv-note-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.cv-wrap-options {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}
.cv-wrap-options legend { font-weight: 700; color: var(--cv-ink); }
.cv-wrap-options p, .cv-wrap-caption { font-size: .85rem; color: var(--cv-muted); }
.cv-wrap-options [data-wrap-choices] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}
.cv-wrap { display: flex; align-items: center; gap: .4rem; padding: .5rem; border: 1px solid #e5cdb1; border-radius: .55rem; }
.cv-wrap input { accent-color: var(--cv-ink); }
.cv-wrap-caption { display: block; margin-top: .35rem; }
[data-wrapping="gold"] {
  --wrap-edge: #ab7328;
  --wrap-paper: linear-gradient(115deg, #fae6af, #fffae6 42%, #efd092 72%, #fff2d1);
}
[data-wrapping="frosted"] {
  --wrap-edge: #7795ab;
  --wrap-paper: linear-gradient(140deg, #fafefe, #dcecf2 55%, #f8fcff);
}
[data-wrapping="aurora"] {
  --wrap-edge: #8a7a9c;
  --wrap-paper: linear-gradient(125deg, #cfebe2, #e8f3e8 34%, #e9dff0 68%, #d9e5f4);
}
.cv-wrap[data-wrapping]:not([data-wrapping="classic"]):has(input:checked),
.cv-letter[data-wrapping]:not([data-wrapping="classic"]),
.cv-extra-letter[data-wrapping]:not([data-wrapping="classic"]) {
  border: 1px solid var(--wrap-edge);
  border-radius: .55rem;
  background: var(--wrap-paper);
}
.cv-note-label > span {
  font-size: 0.8rem;
  color: var(--cv-muted);
}
.cv-quota {
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 0.65rem;
  background: #fbecda;
  margin: 1.1rem 0;
  color: var(--cv-ink);
  font-size: 0.95rem;
}
.cv-quota > span {
  font-size: 1.75rem;
  color: #9d641e;
}
.cv-submit {
  width: 100%;
}
.cv-signature-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin: .7rem 0 .35rem;
}
.cv-signature-label > label:first-child { color: var(--cv-ink); font: 700 1.16rem/1.3 Georgia, serif; }
.cv-signature-label .cv-check { margin: 0; font-size: .88rem; }
.cv-compose-card [data-reciprocity-choice] { margin: .75rem 0; }
.cv-compose-options { border-block: 1px solid #e5cdb1; margin: .75rem 0; }
.cv-compose-options > summary { padding: .65rem 0; cursor: pointer; color: var(--cv-ink); font-weight: 650; }
.cv-compose-options[open] { padding-bottom: .6rem; }
.cv-delivery-time { margin: .65rem 0 .35rem; color: var(--cv-ink); font-size: .92rem; }
.cv-compose-quota { color: var(--cv-muted); font-size: .82rem; }
.cv-backlink {
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
.cv-success {
  text-align: center;
  padding: 1.6rem 0;
}
.cv-success > span {
  font-size: 3rem;
}
.cv-personal-share {
  margin: 1rem 0;
  padding: 1rem 0;
  border-block: 1px solid #e7d3b7;
}
.cv-personal-share h4 { margin: 0 0 .75rem; font-size: 1.1rem; }
.cv-personal-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.cv-personal-share label { display: block; margin: .7rem auto 0; text-align: left; }
.cv-personal-share input { display: block; width: 100%; margin-top: .3rem; }
.cv-personal-share [role="status"]:empty { display: none; }
.cv-success h3 {
  font-size: 1.55rem;
  color: var(--cv-ink);
}
.cv-success a,
.cv-success button {
  margin: 0.3rem;
}
.cv-day-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem auto 1.2rem;
  max-width: 58rem;
}
.cv-day-link {
  color: var(--cv-ink);
  text-decoration: none;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #e7d4bc;
  border-radius: 0.7rem;
  background: #fff7ed;
  padding: 0.55rem 0.9rem;
  line-height: 1.15;
}
.cv-day-link > span:first-child:not([data-next-label]),
.cv-day-link > span:last-child:not([data-prev-label]) {
  font:
    1.7rem/1 Georgia,
    serif;
}
.cv-day-link strong,
.cv-day-link small {
  display: block;
}
.cv-day-link small {
  font-size: 0.72rem;
  color: var(--cv-muted);
  margin-top: 0.2rem;
}
.cv-next {
  justify-self: end;
  text-align: right;
}
.cv-day-nav [aria-disabled="true"] {
  opacity: 0.52;
}
.cv-present {
  position: relative;
  width: min(100%, 60rem);
  margin: auto;
  container-type: inline-size;
}
.cv-present-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
.cv-letter {
  position: absolute;
  left: 35%;
  top: 31%;
  width: 43%;
  height: 43%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.25% 2%;
  text-align: center;
  box-sizing: border-box;
  color: #472612;
}
.cv-letter-sticker {
  font-size: clamp(1.8rem, 6.6cqw, 4.5rem);
  line-height: 1;
}
.cv-letter p {
  margin: 0.35em 0;
  color: #412c21;
  overflow: auto;
  max-height: 65%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    italic 500 clamp(0.82rem, 2.9cqw, 1.85rem)/1.25 Georgia,
    serif;
}
.cv-letter-from {
  font:
    italic 600 clamp(0.78rem, 2.55cqw, 1.7rem)/1.2 Georgia,
    serif;
  color: var(--cv-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cv-letter.is-long p {
  font-size: clamp(0.73rem, 2.2cqw, 1.55rem);
}
.cv-letter.is-long .cv-letter-sticker {
  font-size: clamp(1.4rem, 4.2cqw, 3rem);
}
.cv-present.is-opening .cv-letter {
  animation: cv-unwrap 0.65s ease-out;
}
@keyframes cv-unwrap {
  from {
    opacity: 0;
    transform: translateX(-4%) rotateY(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cv-closed {
  margin: 1.3rem auto;
  padding: 3.5rem 1rem;
  max-width: 46rem;
  text-align: center;
  background: linear-gradient(135deg, #fff4dd, #f4e9db);
}
.cv-closed > span {
  font-size: 3rem;
  color: var(--cv-gold);
}
.cv-closed h2 {
  font-size: 2rem;
  margin: 0.5rem;
}
.cv-section-head {
  text-align: center;
  margin: 2.1rem auto 1rem;
}
.cv-section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin: 0;
}
.cv-section-head p {
  margin: 0.45rem 0;
}
.cv-journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 1.7rem;
  align-items: center;
  width: min(100%, 55rem);
  margin: auto;
}
.cv-mini .cv-door {
  pointer-events: none;
  font-size: 4cqw;
}
.cv-journey-board {
  display: block;
}
.cv-day-summary {
  text-align: center;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  background: #f9eddd;
}
.cv-day-summary > span {
  font-size: 2.5rem;
}
.cv-day-summary h2 {
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  margin: 0.5rem 0;
}
.cv-day-summary p {
  margin: 0.25em 0;
  line-height: 1.45;
}
.cv-dialog {
  width: min(92%, 28rem);
  box-sizing: border-box;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid #d5ac7c;
  border-radius: 1rem;
  background: #fff9ed;
  color: #372a23;
}
.cv-dialog::backdrop {
  background: #281b17a8;
}
.cv-dialog h2 {
  font-size: 2rem;
  margin: 0 0 0.6rem;
}
.cv-dialog > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.cv-dialog p:last-child:empty {
  display: none;
}
@media (max-width: 740px) {
  [data-calendar-view="contribute"] .cv-intro {
    padding: .6rem 0 0;
  }
  [data-calendar-view="contribute"] .cv-intro h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  [data-calendar-view="contribute"] .cv-intro :is(.season-divider, .winter-mark) {
    display: none;
  }
  .cv-date-picker > summary {
    text-align: center;
  }
  .cv-compose { gap: .3rem; }
  .cv-compose-card { padding: .8rem 1rem 1.1rem; }
  .cv-compose-card > h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .cv-compose-card .cv-selected-caption { margin: 0 0 .55rem; }
  .cv-compose-card textarea[name="note"] { height: 5.6rem; min-height: 5.6rem; }
  .cv-compose-card .cv-submit { min-height: 44px; }
  .cv-layout,
  .cv-compose {
    grid-template-columns: 1fr;
  }
  .cv-layout {
    gap: 1rem;
  }
  .cv-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .cv-compose .cv-secret {
    display: none;
  }
  .cv-compose .cv-legend {
    margin-bottom: 0;
  }
  .cv-journey-layout {
    gap: 1rem;
  }
  .cv-day-nav .btn {
    padding-inline: 0.8rem;
  }
  .cv-day-link {
    gap: 0.3rem;
    padding: 0.5rem;
  }
  .cv-stickers {
    max-width: 27rem;
  }
  .cv-door-grid {
    gap: 0.6cqw;
  }
}
@media (max-width: 480px) {
  .cv-sidebar {
    grid-template-columns: 1fr;
  }
  .cv-toolbar {
    gap: 0.4rem;
  }
  .cv-toolbar .btn,
  .cv-code {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
    min-height: 2.6rem;
  }
  .cv-journey-layout {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .cv-day-nav {
    grid-template-columns: 1fr 1fr;
  }
  .cv-day-nav .btn {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: center;
  }
  .cv-day-link {
    grid-row: 1;
  }
  .cv-next {
    grid-column: 2;
  }
  .cv-invite {
    gap: 0.7rem;
  }
  .cv-day-summary > span {
    font-size: 1.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cv-present.is-opening .cv-letter {
    animation: none;
  }
}

.cv-scene-arch {
  position: relative;
}
.cv-door-date {
  position: absolute;
  display: grid;
  place-items: center;
  left: 6%;
  top: 42%;
  width: 16%;
  height: 17%;
  font:
    600 7cqw/1 Georgia,
    serif;
  letter-spacing: -0.05em;
  transform: skewY(4deg);
  color: #ffe0a0;
  text-shadow: 0 2px 2px #713419;
}
.cv-letter {
  padding: 0.1% 1.5%;
}
.cv-letter-sticker {
  font-size: 5.5cqw;
}
.cv-letter p {
  font-size: clamp(0.86rem, 2.45cqw, 1.6rem);
  line-height: 1.23;
  margin: 0.24em 0;
  max-height: 70%;
}
.cv-letter.is-long p {
  font-size: clamp(0.8rem, 2.12cqw, 1.4rem);
}
.cv-letter.is-long .cv-letter-sticker {
  font-size: 4.1cqw;
}
.cv-letter-from {
  font-size: clamp(0.77rem, 2.2cqw, 1.48rem);
}
@media (max-width: 600px) {
  .cv-present {
    border-radius: 1rem;
    overflow: hidden;
    padding: 0 0 clamp(0.95rem, 6cqw, 1.6rem);
    background: #7a3320 url("https://img.advent-with-friends.christmas/s_1y2l2i2u584p4x/surprise.10ac79170a.webp") 68% 50% / 160% 100% no-repeat;
  }
  .cv-scene-arch {
    width: 100%;
    height: 30.4cqw;
    overflow: hidden;
  }
  .cv-present-art {
    position: absolute;
    left: -40.7%;
    top: 0;
    width: 160%;
    max-width: none;
    height: auto;
    border-radius: 0;
  }
  .cv-door-date {
    display: none;
  }
  .cv-letter {
    position: relative;
    inset: auto;
    width: 84%;
    height: auto;
    min-height: 44cqw;
    margin: 0 auto;
    padding: 0.15rem max(0.7rem, 3.7cqw) 1.35rem;
    background: linear-gradient(115deg, #fcebc7, #fbedd5 60%, #f8e4bc);
    border: 1px solid #c39251;
    border-top: 0;
    border-radius: 0 0 0.4rem 0.4rem;
    box-shadow:
      inset 0 -4px 0 #f6dfaf,
      0 4px 6px #51261355;
  }
  .cv-letter p,
  .cv-letter.is-long p {
    font-size: clamp(1rem, 4.45cqw, 1.13rem);
    line-height: 1.38;
    max-height: none;
    overflow: visible;
    margin: 0.25rem 0 0.5rem;
  }
  .cv-letter .cv-letter-sticker,
  .cv-letter.is-long .cv-letter-sticker {
    font-size: clamp(1.6rem, 9cqw, 2.6rem);
  }
  .cv-letter-from {
    font-size: clamp(0.94rem, 4.2cqw, 1.09rem);
  }
}
@media (min-width: 601px) {
  .cv-present.is-long-lines .cv-letter p {
    white-space: normal;
  }
}

.cv-extra-notes { max-width: 42rem; margin: 2rem auto; }
.cv-extra-notes h2 { text-align: center; }
.cv-extra-letter { padding: 1.5rem; margin-top: 1rem; }
.cv-extra-letter p { white-space: pre-wrap; overflow-wrap: anywhere; }
.cv-reply-action { text-align: center; margin: 1rem auto; }
.cv-extra-letter .cv-reply-action { text-align: left; margin-bottom: 0; }
.cv-reply-action .btn { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }

.cv-code-join { display: flex; justify-content: center; align-items: end; gap: .6rem; margin: 1rem auto; flex-wrap: wrap; }
.cv-code-join label { display: grid; gap: .3rem; text-align: left; }
.cv-code-join input { padding: .65rem; max-width: 13rem; border: 1px solid var(--line); border-radius: .4rem; }
.cv-note-privacy { font-size: .875rem; line-height: 1.45; }
.cv-quick-share, .cv-opening-share { text-align: center; margin: .7rem auto 1.3rem; }
.cv-note-ideas summary, .cv-quick-share summary { cursor: pointer; color: var(--wine); font-weight: 650; }
.cv-note-ideas summary { font-size: .94rem; }
.cv-idea-options, .cv-quick-share nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.cv-quick-share nav { justify-content: center; }
.cv-idea-options button, .cv-quick-share nav a { color: var(--wine); background: var(--paper, #fffaf4); border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .7rem; font: inherit; }
.cv-idea-options button { cursor: pointer; }
.cv-opening-share p { margin: .4rem auto; font-size: .9rem; }
.cv-opening-share label { display: block; }
.cv-opening-reminder { text-align: center; margin: .65rem auto 1.25rem; }
.cv-opening-reminder summary { width: fit-content; max-width: 100%; margin: auto; padding: .6rem; cursor: pointer; color: var(--wine); font-weight: 650; }
.cv-opening-reminder summary small { display: block; color: var(--cv-ink); font-weight: 400; }
.cv-opening-reminder .btn { margin: .2rem; }
.cv-opening-share input { width: min(25rem, 90%); margin: .4rem; }
.cv-note-ideas [role=status]:empty, .cv-opening-share [role=status]:empty { display: none; }
.cv-backup:not([hidden]) { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.6rem 1.2rem; padding:1rem 1.2rem; margin:0 auto 1rem; }
.cv-backup h2 { margin:0; font-size:1.25rem; }
.cv-backup p { margin:.2rem 0 0; }
.cv-backup [role=status]:empty { display:none; }
.cv-backup [role=status] { flex-basis:100%; }

.cv-memory-choice { margin-block:.6rem; }
.cv-memory-question { font-weight:700; color:var(--cv-ink); }
.cv-memory-game { margin:1rem auto; padding:clamp(1rem,3vw,1.6rem); max-width:38rem; }
.cv-memory-game h3 { color:var(--cv-ink); margin:0 0 .8rem; }
.cv-memory-game label,.cv-memory-game input { display:block; width:100%; }
.cv-memory-game input { padding:.65rem; margin:.3rem 0 .8rem; border:1px solid #c8a88c; border-radius:.4rem; background:#fffaf3; }
.cv-memory-game .btn { white-space:normal; }
.cv-memory-results { margin:0; }
.cv-memory-results dt { font-weight:700; margin-top:.7rem; }
.cv-memory-results dd { margin:.25rem 0 0; }
.cv-memory-results dd,.cv-memory-answer { white-space:pre-wrap; overflow-wrap:anywhere; }

.cv-memory-card { margin-top:1.4rem; padding-top:1.1rem; border-top:1px solid #dcc5a5; }
.cv-memory-card select,.cv-memory-card textarea { display:block; margin-top:.4rem; max-width:100%; font:inherit; padding:.5rem; }
.cv-memory-card canvas { display:block; width:100%; height:auto; margin-top:.8rem; border-radius:.65rem; }
.cv-memory-card-actions { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; margin-top:.8rem; }
.cv-memory-card [hidden] { display:none; }

.awf-pack-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:1rem; margin:1.2rem 0; }
.awf-pack-list article { padding:1rem; background:var(--paper,#fff9ef); border:1px solid var(--line,#e6d4bd); border-radius:.75rem; }
.awf-pack-list h3 { margin:0; }
.awf-pack-list p { min-height:3em; }
[data-shop-orders] li,.gf-ticket { overflow-wrap:anywhere; margin:.7rem 0; }
.gf-ticket { border-top:1px solid var(--line,#e6d4bd); padding-top:1rem; }
.gf-ticket-subject { font-weight:bold; }
.gf-ticket-msg { margin:.6rem 0; padding:.5rem .75rem; border-left:2px solid var(--gold,#ab742b); }
.gf-ticket-text { white-space:pre-wrap; }
.gf-ticket-reply textarea { display:block; width:100%; min-height:4rem; }
[data-wrap-cash] { margin:.65rem 0; }
[data-wrap-cash] button { margin:.25rem .35rem .25rem 0; }
[data-wrap-pack] { display:block; width:100%; margin:.3rem 0; padding:.55rem; font:inherit; color:inherit; border:1px solid #d5baa0; border-radius:.45rem; background:#fffaf3; }
[data-wrap-quote] { font-variant-numeric:tabular-nums; }
.awf-wrap-preview { box-sizing:border-box; width:min(94vw,42rem); max-height:90vh; padding:clamp(.7rem,2vw,1.25rem); border:1px solid #c4a181; border-radius:1rem; color:#452820; background:#fff8ef; }
.awf-wrap-preview::backdrop { background:rgb(32 22 20 / .62); }
.awf-wrap-preview header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.8rem; }
.awf-wrap-preview header h3 { margin:0; font:700 1.3rem/1.2 Georgia,serif; }
.awf-preview-envelope { display:flex; position:relative; overflow:hidden; isolation:isolate; width:min(100%,25rem); min-height:11rem; align-items:center; justify-content:center; flex-direction:column; gap:.4rem; margin:1rem auto; padding:1.4rem; border:1px solid var(--wrap-edge,#bc8560); border-radius:.55rem; color:#41271b; cursor:pointer; background:var(--wrap-paper,#f6e7cc); box-shadow:0 .4rem .9rem #4420101a; }
.awf-preview-envelope::before { content:""; position:absolute; z-index:-1; inset:0; clip-path:polygon(0 0,100% 0,50% 62%); background:rgb(255 255 255 / .45); }
.awf-preview-seal { display:grid; place-items:center; width:2.5rem; height:2.5rem; border-radius:50%; color:#ffe4a4; background:#973725; font-size:1.6rem; }
.awf-preview-envelope strong { font:700 1.3rem/1.2 Georgia,serif; }
.awf-wrap-preview [hidden] { display:none; }

.gifts-page {max-width:1060px;margin:auto;padding-bottom:4rem}
.gift-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:1.4rem;align-items:start}
.gift-card {padding:clamp(1.2rem,3.5vw,2.4rem)}
.gift-card h2,.gift-song h3 {margin:0 0 .9rem;color:#80212c;font-family:Georgia,serif}
.gift-card p,.gift-song p {line-height:1.5}
.gift-card input,.gift-card select {display:block;width:100%;padding:.65rem;margin:.3rem 0 .8rem;border:1px solid #b49a75;border-radius:8px;background:#fff}
.gift-card [data-state],.gift-context,.gift-footer {font-size:.92rem;color:#5c4f41}
.gift-context:empty {display:none}.gift-footer {margin:1rem 0}
.gift-price {font-weight:700;color:#633d18}
.gift-gold-demo {display:grid;gap:3px;grid-template-columns:repeat(6,1fr);border-radius:12px;background:#694517;padding:.75rem;box-shadow:inset 0 0 0 3px #c6a067}
.gift-gold-demo span,.is-golden-calendar .cv-frame .cv-door {background:linear-gradient(133deg,#fff1a9 0%,#dfb45e 25%,#f7da83 36%,#c19446 78%,#f0ca76);color:#49300f;border-color:#f8e0a0;text-shadow:0 1px 0 #f4e0a2}
.gift-gold-demo span {text-align:center;border:1px solid #a27a39;border-radius:4px;font:700 1.04rem Georgia,serif;padding:.45rem .1rem}
.is-golden-calendar .cv-frame .cv-door.is-selected,.is-golden-calendar .cv-frame .cv-door.is-current {outline:3px solid #813f09;outline-offset:-3px}
.is-golden-calendar .cv-frame .cv-door:focus-visible {outline:3px solid #152f48;outline-offset:2px}
.is-golden-calendar .cv-present .cv-letter {box-shadow:0 0 0 3px #d9ac48,0 0 36px #e8bc66}
[data-golden-giver] {color:#77551b;font-size:1rem}
.gift-score {background:linear-gradient(125deg,#214d46,#446855);border-radius:12px;color:#f9dc9c;text-align:center;font:3.2rem Georgia,serif;letter-spacing:.55rem;padding:.95rem;line-height:1.3}
.gift-score span {font-size:2rem}
.gift-song {margin:.8rem auto;padding:1rem;border:1px solid #d8c4a5;border-radius:12px;background:#fff9ee;max-width:720px}
.gift-song-controls {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.gift-song-controls button {cursor:pointer;padding:.45rem .8rem;border:1px solid #917149;border-radius:50px;background:#fff9ef;color:#593b21;font:inherit}
.gift-song-controls button[aria-pressed="true"] {background:#174137;color:white;border-color:#174137}
.gift-song-controls audio {margin-top:.4rem;width:100%;max-width:30rem}

.awf-arcade { max-width: 1030px; padding-bottom: 4rem; }
.arcade-library { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.arcade-card, .arcade-table { padding: clamp(1rem, 2.5vw, 2rem); }
.arcade-card { display: flex; align-items: flex-start; flex-direction: column; gap: .65rem; }
.arcade-card h2, .arcade-table h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
.arcade-card p, .arcade-feedback { margin: 0; }
.arcade-best { margin-top: auto; color: var(--green); font-weight: 650; }
.arcade-emblem { display: grid; place-items: center; width: 3.7rem; height: 3.7rem; font: 2.1rem/1 var(--serif); background: var(--green); color: var(--paper); margin: .15rem 0 .45rem; }
.arcade-post { border: 4px dotted var(--paper); transform: rotate(-5deg); }
.arcade-lights { background: var(--wine); border-radius: 50% 50% 42% 42%; }
.arcade-roofs { clip-path: polygon(50% 0,100% 32%,100% 100%,0 100%,0 32%); padding-top: .45rem; }
.arcade-table { max-width: 625px; margin-inline: auto; }
.arcade-back { display: block; color: var(--wine); background: transparent; border: 0; padding: .55rem .1rem; margin-bottom: .4rem; text-decoration: underline; }
.arcade-target { margin: .75rem 0; color: var(--green); font-weight: 700; }
.arcade-stats { display: flex; justify-content: space-between; border-block: 1px solid var(--line); padding: .6rem 0; margin-block: 1rem; }
.arcade-prompt { font-size: 1.15rem; font-weight: 650; }
.arcade-choices, .arcade-finish { display: flex; flex-wrap: wrap; gap: .6rem; }
.arcade-choice, .arcade-window { min-height: 48px; border-radius: .5rem; background: var(--paper); color: var(--green); border: 1px solid var(--gold); font-weight: 650; padding: .5rem .85rem; }
.arcade-choice[aria-pressed="true"] { color: var(--paper); background: var(--green); }
.arcade-choice:disabled, .arcade-window:disabled { opacity: .7; }
.arcade-feedback:not(:empty) { margin: 1rem 0; font-weight: 600; }
.arcade-route, .arcade-string { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .8rem 0; }
.arcade-route span, .arcade-string span { background: var(--green); color: var(--paper); border-radius: .35rem; padding: .2rem .5rem; }
.arcade-block { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; max-width: 425px; }
.arcade-window { padding: .55rem .15rem; }
.arcade-window small { display: block; font-size: .73rem; font-weight: 700; }
.arcade-window.is-start { border: 2px solid var(--wine); color: var(--wine); }
.arcade-manual, [data-game-share-status], .arcade-save { flex-basis: 100%; }
.arcade-save:empty { display: none; }
.arcade-manual input { display: block; width: 100%; padding: .65rem; }
@media (max-width: 700px) {
  .arcade-library { grid-template-columns: 1fr; }
  .arcade-table .arcade-block { max-width: 100%; }
}

.awf-ideas { max-width: 870px; padding-bottom: 4rem; }
.ideas-groups { display: grid; gap: .65rem; margin-bottom: 1.5rem; }
.idea-group { padding: 0 clamp(1rem,3vw,1.7rem); }
.idea-group summary { padding: .85rem 0; color: var(--wine); font: 700 1.25rem/1.4 var(--serif); cursor: pointer; }
.idea-group ol { margin: 0; padding: 0 0 0 2.4rem; }
.idea-group li { border-top: 1px solid var(--line); padding: .65rem 0; }
.idea-group li::marker { color: var(--gold); font-variant-numeric: tabular-nums; }
.idea-group li div { display: flex; gap: .7rem; align-items: start; justify-content: space-between; }
.idea-group [data-copy-idea] { flex: 0 0 auto; min-height: 40px; color: var(--green); }
.idea-group [data-idea-copy-status] { color: var(--green); font-weight: 650; }
.idea-group [data-idea-copy-status]:empty { margin: 0; }
@media (max-width: 500px) {
  .idea-group li div { flex-direction: column; gap: 0; }
}
