/* The Midwinter Advent board. Painted pine and ember gold on the
 * house palette; the doors are real buttons, large enough to read
 * across the room, and every state (locked, waiting, opened) reads
 * at a glance. The board stands whole with the season off: the
 * seasonal layer only warms it further. */
.adv-wrap { max-width: 1060px; margin: 0 auto; padding: 28px 16px 72px; }
.adv-hero { text-align: center; border: 1px solid rgba(232,163,61,.45); border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232,163,61,.16), transparent 55%),
    linear-gradient(170deg, #14231a, #0a140d 72%);
  padding: 36px 22px 28px; margin-bottom: 14px; }
.adv-hero .eyebrow { color: #e8a33d; letter-spacing: .34em; text-transform: uppercase; font-size: .95rem; margin: 0 0 8px; }
.adv-hero h1 { color: #f3e2c7; margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.adv-hero .lede { color: #d8c9a3; max-width: 640px; margin: 0 auto 10px; line-height: 1.65; font-size: 1.08rem; }
.adv-hero .law { color: #b9a88f; max-width: 600px; margin: 0 auto; line-height: 1.6; font-style: italic; }
.adv-note { text-align: center; color: #e8a33d; min-height: 1.6em; margin: 10px 0 4px; font-size: 1.05rem; }
.adv-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin-top: 14px; }
.adv-door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; min-height: 168px; padding: 16px 10px 14px; border-radius: 10px; cursor: pointer;
  border: 2px solid rgba(232,163,61,.55); color: #f3e2c7; font: inherit; text-align: center;
  background:
    linear-gradient(180deg, rgba(232,163,61,.10), rgba(0,0,0,.18) 60%),
    repeating-linear-gradient(90deg, #173526 0 26px, #122a1e 26px 28px);
  box-shadow: inset 0 0 0 3px rgba(10,20,13,.65), 0 4px 14px rgba(0,0,0,.45);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; overflow: hidden; }
.adv-door:hover, .adv-door:focus-visible { transform: translateY(-2px); border-color: #e8a33d;
  box-shadow: inset 0 0 0 3px rgba(10,20,13,.65), 0 8px 20px rgba(0,0,0,.5); outline: none; }
.adv-door .adv-tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.adv-door .adv-num { position: relative; font-family: Cinzel, serif; font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 2.7rem); line-height: 1; color: #f0d98c;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 18px rgba(232,163,61,.35); }
.adv-door .adv-date { position: relative; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #b9a88f; }
.adv-door .adv-name { position: relative; font-size: 1rem; line-height: 1.3; color: #efe3c2; }
.adv-door .adv-state { position: relative; margin-top: auto; font-size: .88rem; color: #9ec49a; display: inline-flex; align-items: center; gap: 6px; }
.adv-door .adv-state img { width: 18px; height: 18px; }
.adv-door.is-locked { cursor: default; filter: saturate(.55) brightness(.8); }
.adv-door.is-locked .adv-state { color: #a99e7f; }
.adv-door.is-today { border-color: #ffc46b; box-shadow: inset 0 0 0 3px rgba(10,20,13,.65), 0 0 22px rgba(232,163,61,.35); }
.adv-door.is-opened { background:
    linear-gradient(180deg, rgba(232,163,61,.16), rgba(0,0,0,.1) 60%),
    repeating-linear-gradient(90deg, #1d4030 0 26px, #173526 26px 28px); }
.adv-door.headline .adv-num { color: #ffc46b; }
@media (prefers-reduced-motion: no-preference) {
  .adv-door.is-today { animation: advGlow 2.6s ease-in-out infinite; }
  @keyframes advGlow { 0%, 100% { box-shadow: inset 0 0 0 3px rgba(10,20,13,.65), 0 0 14px rgba(232,163,61,.25); } 50% { box-shadow: inset 0 0 0 3px rgba(10,20,13,.65), 0 0 26px rgba(232,163,61,.45); } }
}
/* The treat card */
.adv-veil { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
  background: rgba(4,8,5,.72); padding: 18px; }
.adv-veil.open { display: flex; }
.adv-card { max-width: 520px; width: 100%; border: 2px solid rgba(232,163,61,.6); border-radius: 14px;
  background: linear-gradient(170deg, #17301f, #0a140d 75%); color: #efe3c2; padding: 28px 26px 24px;
  text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.adv-card .adv-card-date { color: #e8a33d; letter-spacing: .22em; text-transform: uppercase; font-size: .9rem; margin: 0 0 6px; }
.adv-card h2 { margin: 0 0 10px; color: #f3e2c7; font-size: 1.6rem; }
.adv-card p { line-height: 1.65; margin: 8px 0; font-size: 1.05rem; }
.adv-card .adv-code { font-family: Cinzel, serif; font-size: 1.7rem; letter-spacing: .12em; color: #ffc46b;
  border: 1px dashed rgba(232,163,61,.6); border-radius: 10px; padding: 12px 10px; margin: 14px 0 6px; word-break: break-all; }
.adv-btn { display: inline-block; margin-top: 14px; padding: 12px 26px; min-height: 48px; border: 1px solid #c9a227;
  border-radius: 8px; background: rgba(201,162,39,.14); color: #f0d98c; font: inherit; font-weight: bold;
  letter-spacing: .05em; cursor: pointer; }
.adv-btn:hover { background: rgba(201,162,39,.24); }
/* The reader drawer */
.adv-reader { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201; width: min(620px, 94vw);
  background: linear-gradient(180deg, #101c13, #0a140d); border-left: 2px solid rgba(232,163,61,.5);
  box-shadow: -18px 0 50px rgba(0,0,0,.55); transform: translateX(105%); transition: transform .3s ease;
  display: flex; flex-direction: column; }
.adv-reader.open { transform: translateX(0); }
.adv-reader header { padding: 22px 26px 10px; border-bottom: 1px solid rgba(232,163,61,.25); }
.adv-reader header .adv-card-date { color: #e8a33d; letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; margin: 0 0 4px; }
.adv-reader h2 { color: #f3e2c7; margin: 0; font-size: 1.5rem; line-height: 1.3; }
.adv-reader .adv-body { overflow-y: auto; padding: 18px 26px 30px; }
.adv-reader .adv-body p { color: #e6dcc0; line-height: 1.85; font-size: 1.12rem; margin: 0 0 1.05em; }
.adv-reader .adv-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(232,163,61,.6); background: rgba(10,20,13,.85); color: #f0d98c; font-size: 1.3rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .adv-reader { transition: none; } .adv-door { transition: none; } }

/* THE SOUL PASS (Dec 4, 2026): the calendar's furniture answers a hand. */
.adv-btn,.adv-close{transition:transform .22s cubic-bezier(.34,1.25,.5,1),background-color .2s ease,color .2s ease,border-color .2s ease}
.adv-btn:hover,.adv-close:hover{transform:translateY(-1px)}
.adv-btn:active,.adv-close:active{transform:translateY(0)}
.adv-hero h1{text-shadow:0 0 22px rgba(232,163,61,.20)}
@media (prefers-reduced-motion: reduce){.adv-btn,.adv-close{transition:none}.adv-btn:hover,.adv-close:hover{transform:none}}
