.advent {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #476151;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 83%, #284437, #102b23 71%, #0c241d);
  box-shadow: 0 15px 40px #142b2450, inset 0 0 110px #081f19;
  color: #ffedc7;
  position: relative;
  isolation: isolate;
}
.advent svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.advent a { color: inherit; }
.advent button:focus, .advent a:focus { outline: 3px solid #fff0b6; outline-offset: 3px; }
.advent button { font: inherit; }
.advent button:disabled { opacity: 1; }
.advent-hero {
  position: relative;
  overflow: hidden;
  padding: 0 3.1% 20px;
  min-height: 360px;
  background: #103128 url('/advent-art/village.jpg') center bottom / cover no-repeat;
}
.advent-hero::before, .advent-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.advent-hero::before { background: linear-gradient(0deg, #102b23 0%, transparent 15%, transparent 72%, #0a241c50); }
.advent-hero::after {
  bottom: auto;
  height: clamp(88px, 16vw, 151px);
  background: url('/advent-art/garland.png') center 29% / 100% auto no-repeat;
}
.advent-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; }
.advent-brand, .advent-settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  text-decoration: none;
  color: #fff1cc;
  text-shadow: 0 1px 5px #07140f;
}
.advent-brand { font-size: clamp(1rem, 3vw, 1.55rem); }
.advent button.advent-brand { padding: 0; border: 0; background: transparent; min-height: 48px; color: #fff1cc; }
.advent-brand > span, .advent button.advent-settings-trigger {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #c9b887;
  border-radius: 13px;
  background: #122f25df;
  color: #fff4d6;
}
.advent button.advent-settings-trigger:hover, .advent-brand:hover > span { background: #2d503b; }
.advent-title { position: relative; z-index: 1; text-align: center; margin: 14px 0 4px; font-family: Georgia, 'Times New Roman', serif; }
.advent-wordmark, .advent-title h1 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  color: #fff1ce;
  text-shadow: 1px 2px 0 #b18249, 0 4px 11px #08170f, 0 1px 30px #16291b;
}
.advent-wordmark { font-size: clamp(1.4rem, 5.5vw, 3rem); line-height: 1; }
.advent-wordmark span { color: #a6b374; font-size: .72em; }
.advent-title h1 { font-size: clamp(1.9rem, 7.6vw, 4.35rem); line-height: .98; letter-spacing: -.045em; }
.advent-ribbon {
  display: table;
  position: relative;
  margin: 12px auto 14px;
  padding: 5px 22px 7px;
  font-size: clamp(.9rem, 3.1vw, 1.75rem);
  font-weight: 800;
  white-space: nowrap;
  color: #651f15;
  border-radius: 50% / 14%;
  border-block: 1px solid #f4d5a4;
  background: linear-gradient(110deg,#c88b46,#f6d79e 13%,#fff1cc 49%,#fae2b4 83%,#ba7e39);
  box-shadow: 0 3px 9px #16190cb0;
}
.advent-ribbon::before, .advent-ribbon::after { content: ''; position: absolute; top: 14%; width: 19px; height: 90%; z-index: -1; background: #ddad6e; }
.advent-ribbon::before { left: -12px; clip-path: polygon(0 0,100% 0,100% 100%,0 100%,25% 50%); }
.advent-ribbon::after { right: -12px; clip-path: polygon(0 0,100% 0,75% 50%,100% 100%,0 100%); }
.advent-countdown {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 96px;
  padding: 7px 25px;
  color: #183724;
  border: 2px solid #ffe2a2;
  border-radius: 35px 35px 41px 41px / 41px 41px 37px 37px;
  background: radial-gradient(ellipse at 50% 25%, #fff8de, #ffebbd 61%, #e7bb76);
  box-shadow: inset 0 0 0 3px #be762d, inset 0 0 15px #b47b3b, 0 1px 0 2px #ed9d3c, 0 2px 21px #ffbf57a5;
}
.advent-countdown::before {
  content: '';
  position: absolute;
  height: 8px;
  inset: -5px 8% auto;
  border-radius: 60% 55% 40% 45%;
  background: linear-gradient(#fffdf0, #edf0f8 70%, #fff6e460);
  box-shadow: 0 -2px 5px #f7fcffad;
}
.advent-countdown strong { font-size: clamp(2.5rem, 9vw, 5.6rem); line-height: .95; letter-spacing: -.07em; }
.advent-countdown p { margin: 0; font-size: clamp(.99rem, 3.2vw, 1.76rem); font-weight: 700; text-align: left; line-height: 1.02; }
.advent-settings, .advent-status, .advent-grid, .advent-reveal, .advent-panels { margin-inline: 2.7%; }
.advent-settings {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-block: 8px;
  border: 1px solid #9e8a5d;
  border-radius: 11px;
  background: #193b2c;
}
.advent-settings[hidden] { display: none; }
.advent-year { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; margin: 0; }
.advent-year label, .advent-editor label { display: block; font-weight: 650; }
.advent-year input, .advent-editor input:not([type="checkbox"]), .advent-editor textarea, .advent-editor select {
  display: block;
  min-height: 45px;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid #b29663;
  border-radius: 8px;
  max-width: 100%;
  background: #fff8e4;
  color: #291f14;
  font: inherit;
}
.advent-year input { width: 100px; }
.advent-settings button, .advent-reveal button, .advent-today button, .advent [data-advent-action="retry"] {
  min-height: 45px;
  border: 1px solid #d4b178;
  border-radius: 9px;
  padding: 6px 10px;
  font-weight: 730;
  background: #264a35;
  color: #ffefc8;
}
.advent [data-advent-action="sound"] { display: inline-flex; align-items: center; gap: 7px; }
.advent [data-advent-action="sound"] span { font-size: .84em; border: 1px solid #ccb482; border-radius: 10px; padding: 1px 5px; }
.advent-status { margin-block: 5px; color: #fff1c9; font-weight: 650; }
.advent-status:empty { margin-block: 0; }
.advent-grid { display: flex; flex-wrap: wrap; margin-inline: calc(2.7% - 4px); }
.advent button.advent-door {
  position: relative;
  display: block;
  flex: 0 0 calc(20% - 8px);
  min-width: 0;
  margin: 4px;
  min-height: 46px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #deb068;
  border-radius: clamp(8px, 2.2vw, 19px);
  background: linear-gradient(#e7a84f,#ffe9ac 42%,#d3994f);
  box-shadow: inset 0 0 0 1px #f1cc80, 0 3px 5px #081911;
  isolation: isolate;
  cursor: pointer;
}
.advent-door::before { content: ''; display: block; padding-top: 94%; }
.advent button.advent-door:disabled { cursor: default; }
.advent button.advent-door.is-available {
  border-color: #fff0b0;
  box-shadow: inset 0 0 0 1px #ffedb9, 0 0 0 1px #efa940, 0 0 9px #fbbb59ed, 0 4px 13px #09190fbe;
}
.advent button.advent-door.is-open { box-shadow: inset 0 0 0 1px #ffeeab, 0 0 0 1px #ffd15b, 0 0 13px #ffb931; }
.advent button.advent-door[aria-pressed="true"] { outline: 2px solid #fff4bd; outline-offset: 2px; }
.advent-face, .advent-inside { position: absolute; inset: 0; display: block; border-radius: inherit; }
.advent-face { overflow: hidden; box-shadow: inset 0 0 10px #39251078; }
.advent-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid #fbd28e8c; border-radius: inherit; }
.advent-face img, .advent-inside img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.advent-number {
  position: absolute;
  z-index: 1;
  top: 44%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #552411;
  text-shadow: 0 1px 0 #fff1b9, 0 0 7px #ffe7a6;
  font: 700 clamp(1.45rem, 6vw, 3.95rem)/.9 Georgia, serif;
  letter-spacing: -.075em;
}
.light-number .advent-number { color: #fff1c6; text-shadow: 0 2px 1px #572807, 0 0 8px #1c1508, 0 0 13px #241207; }
.day-1 .advent-number { top: 23%; left: 30%; }
.day-3 .advent-number { top: 22%; left: 23%; }
.day-4 .advent-number { top: 61%; left: 51%; }
.day-5 .advent-number { top: 52%; left: 56%; }
.day-7 .advent-number, .day-10 .advent-number { top: 37%; left: 40%; }
.day-8 .advent-number { top: 61%; }
.day-11 .advent-number { top: 25%; }
.day-12 .advent-number { top: 54%; }
.day-13 .advent-number { top: 49%; left: 37%; }
.day-14 .advent-number, .day-15 .advent-number, .day-16 .advent-number, .day-18 .advent-number, .day-19 .advent-number,
.day-21 .advent-number, .day-22 .advent-number, .day-23 .advent-number, .day-25 .advent-number { top: 28%; }
.day-17 .advent-number, .day-24 .advent-number { top: 65%; }
.day-20 .advent-number { top: 52%; }
.advent-birthday {
  position: absolute;
  z-index: 1;
  inset: auto 13% 9% 13%;
  color: #fff4d1;
  text-shadow: 0 2px 1px #620c04, 0 0 8px #700c05;
  font: 700 clamp(.52rem, 2vw, 1rem)/1 Georgia, serif;
}
.advent-lock {
  position: absolute;
  display: grid;
  place-items: center;
  top: 4px;
  right: 4px;
  width: clamp(15px, 2.8vw, 25px);
  height: clamp(15px, 2.8vw, 25px);
  border-radius: 50%;
  background: #142416d9;
  color: #ffedc2;
}
.advent-lock svg { width: 65%; height: 65%; }
.advent-door-state, .advent-opened-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #153c28ee;
  color: #fff8df;
  border-radius: 12px;
  padding: 2px 5px;
  font: 650 clamp(.53rem, 1.3vw, .79rem)/1.1 'Segoe UI', sans-serif;
}
.advent-inside { inset: 3px; overflow: hidden; margin-left: 8%; box-shadow: inset 3px 0 7px #7a4d27; }
.advent-inside::before { content: ''; inset: 0; position: absolute; z-index: 1; background: linear-gradient(0deg,#ffe6a6 0%,#fff0cf 28%,#ffe9b7c0 42%,transparent 71%); }
.advent-inside-number {
  position: absolute;
  z-index: 2;
  top: 4%;
  left: 5%;
  color: #532911;
  background: #fbe9c1ed;
  padding: 1px 4px;
  border-radius: 7px;
  font: 700 clamp(.72rem, 1.8vw, 1.19rem)/1.1 Georgia, serif;
}
.advent-inside-title {
  position: absolute;
  z-index: 2;
  inset: auto 5% 24% 5%;
  color: #53230e;
  font: 700 clamp(.55rem, 1.9vw, 1.16rem)/1.04 Georgia, serif;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.advent-door.is-open .advent-face { visibility: hidden; }
.advent-door.is-open::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 2px auto 2px 2px;
  width: 10%;
  background: linear-gradient(90deg,#5d2c12, #cc863b 15%, #f5c776 44%, #a95e25 65%, #eebc70 94%);
  border-radius: 7px 2px 2px 7px;
  box-shadow: 3px 0 5px #572e177a;
}
.advent-door.is-opening .advent-face {
  z-index: 3;
  transform-origin: left center;
  animation: advent-swing .55s cubic-bezier(.18,.65,.36,1) both;
}
@keyframes advent-swing {
  from { visibility: visible; transform: perspective(620px) rotateY(0); }
  90% { visibility: visible; transform: perspective(620px) rotateY(-78deg); }
  to { visibility: hidden; transform: perspective(620px) rotateY(-90deg); }
}
.advent-panels { display: flex; flex-wrap: wrap; gap: 13px; margin-block: 16px; }
.advent-panel, .advent-reveal {
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 47% 15%, #fff7df,#f6e6c7 76%,#ecce9f);
  color: #492817;
  border: 2px solid #f7e4b7;
  border-radius: clamp(13px, 3vw, 22px);
  box-shadow: inset 0 0 0 1px #af864e8c, 0 2px 5px #061b13;
}
.advent-today { flex: 1.2 1 300px; box-shadow: inset 0 0 0 1px #eab351, 0 0 12px #e9a53ea3; }
.advent-events { flex: 1 1 240px; }
.advent-panel h2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 12px 7px;
  font: 700 clamp(1rem, 3.1vw, 1.55rem)/1.05 Georgia, serif;
  color: #1b3c28;
}
.advent-events h2 { font-size: clamp(1rem, 2.4vw, 1.35rem); }
.advent-today-body { display: flex; align-items: stretch; min-height: clamp(115px, 21vw, 174px); }
.advent-today-body img { display: block; width: 48%; object-fit: cover; object-position: 25% center; }
.advent-today-body > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  padding: 7px 12px;
  font: 700 clamp(.95rem, 2.6vw, 1.36rem)/1.12 Georgia, serif;
  overflow-wrap: anywhere;
}
.advent-panel p, .advent-today-title { margin: 0; }
.advent-today button { font: 700 clamp(.72rem, 1.4vw, .96rem)/1.2 'Segoe UI', sans-serif; }
.advent-events ul { padding: 0 8px 8px; margin: 0; list-style: none; }
.advent-events > p { padding: 7px 12px 14px; font-size: .92rem; }
.advent-events li > a, .advent-events li > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  text-decoration: none;
  border-radius: 12px;
  margin-top: 5px;
  color: #302a20;
  background: #fff4dc;
}
.advent-events a:hover { background: #ffe7ad; }
.advent-event-icon { display: inline-grid; place-items: center; width: 30px; flex: 0 0 30px; color: #6b3f24; }
.advent-events li strong, .advent-events time { display: block; line-height: 1.16; }
.advent-events li strong { overflow-wrap: anywhere; }
.advent-events time { color: #645743; font-size: .86em; margin-top: 2px; }
.advent-event-count { margin-left: auto; white-space: nowrap; padding: 3px 6px; border-radius: 15px; color: #563a1d; background: #f7d899; font-size: .8em; font-weight: 750; }
.advent-reveal { margin-block: 16px; padding: 14px 17px; overflow-wrap: anywhere; }
.advent-reveal h2 { margin: 6px 0 9px; font-family: Georgia, serif; color: #592713; }
.advent-reveal p { white-space: pre-wrap; }
.advent-reveal img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 9px; margin: 7px 0; }
.advent-reveal aside { margin-top: 9px; white-space: pre-wrap; color: #58442a; }
.advent-editor { display: grid; gap: 9px; }
.advent-editor textarea, .advent-editor input:not([type="checkbox"]), .advent-editor select { width: 100%; }
.advent-editor textarea { min-height: 76px; }
.advent-editor button { justify-self: start; }
.advent-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 8px 2.7% clamp(43px, 8vw, 73px);
  background: url('/advent-art/garland.png') center calc(100% + 105px) / 104% auto no-repeat;
}
.advent-footer a, .advent-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 49px;
  padding: 7px 13px;
  border: 1px solid #cbb177;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #f7dd8f26;
  background: #1a3d2e;
  color: #fff4d5;
  font-weight: 740;
  text-decoration: none;
}
.advent-footer .advent-kitchen-link { background: linear-gradient(#fff6da,#ead2a1); color: #173526; }
body[data-kitchen="display"] .advent { max-width: 920px; }
body[data-kitchen="display"].k-advent-active { background: #102b23; }
.k-advent-active .k-header { display: none; }
.k-advent-active main { padding: 0; }
.k-advent-active .advent { border-top: 0; }
@supports (display: grid) {
  .advent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-inline: 2.7%; }
  .advent button.advent-door { margin: 0; }
}
@media (max-width: 570px) {
  .advent { border-radius: 13px; }
  .advent-hero { min-height: 240px; padding-bottom: 14px; }
  .advent-top { padding-top: 11px; }
  .advent-title { margin-top: 13px; }
  .advent-brand > span, .advent button.advent-settings-trigger { width: 42px; height: 42px; min-height: 42px; }
  .advent-countdown { min-height: 66px; padding-inline: 16px; }
  .advent-grid { gap: 5px; }
  .advent-birthday { inset-inline: 5%; }
  .advent-panels { gap: 9px; margin-block: 11px; }
  .advent-panel { flex-basis: 100%; }
  .advent-footer { padding-bottom: 31px; background-position: center calc(100% + 53px); }
  .advent-footer a, .advent-footer button { padding-inline: 8px; min-height: 44px; font-size: .87rem; }
  .advent-footer svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .advent-door.is-opening .advent-face { animation: none; }
}
