.advent {
  --advent-ink: #f7f2e9;
  --advent-muted: #bdc3cf;
  --advent-accent: #bbcaff;
  color: var(--advent-ink);
  isolation: isolate;
}
.advent .advent-header { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; margin-bottom: 40px; }
.advent .advent-eyebrow { margin: 0 0 24px; color: var(--advent-accent); font-size: 14px; line-height: 1.4; }
.advent .advent-heading { margin: 0; color: var(--advent-ink); font-size: clamp(36px, 4.7vw, 68px); font-weight: 550; line-height: 1.04; letter-spacing: -.025em; }
.advent .advent-header-aside { max-width: 440px; margin-left: auto; }
.advent .advent-intro { margin: 0; color: var(--advent-muted); font-size: 18px; line-height: 1.55; }
.advent .advent-access { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: #e4eaff; font-size: 14px; line-height: 1.5; }
.advent svg { display: block; width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.advent .advent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.advent .advent-card {
  --card-base: #18243a;
  --card-ink: #fbf3e7;
  --card-muted: #e0dcd5;
  --card-line: #f5ead72b;
  position: relative; display: grid; grid-template-rows: 28px minmax(0, 1fr) 42px;
  align-items: center; gap: 14px; min-width: 0; height: clamp(274px, 23.8vw, 338px);
  margin: 0; padding: 20px; border: 1px solid var(--card-line); border-radius: 22px;
  background: var(--card-base); color: var(--card-ink); font: inherit; text-align: left; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: border-color 220ms ease, transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease;
}
.advent .advent-card--cobalt { --card-base: #264585; }
.advent .advent-card--navy { --card-base: #18243a; }
.advent .advent-card--coral { --card-base: #783f3a; }
.advent .advent-card--cream { --card-base: #e9dfcf; --card-ink: #24304a; --card-muted: #465064; --card-line: #24304a2b; }
.advent .advent-card-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.advent .advent-number { color: var(--card-ink); font-size: 27px; font-weight: 450; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.advent .advent-card-status { color: var(--card-muted); font-size: 11px; line-height: 1.3; }
.advent .advent-art { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 0; max-height: 224px; object-fit: contain; transform: rotate(var(--art-tilt, 0deg)); pointer-events: none; transition: transform 480ms cubic-bezier(.2,.8,.2,1); }
.advent .advent-frost { position: relative; z-index: 2; height: 42px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--card-line); border-radius: 12px; background: #ffffff06; pointer-events: none; }
.advent .advent-hidden-lines { flex: 1; display: grid; gap: 6px; filter: blur(2px); opacity: .7; }
.advent .advent-hidden-lines i { display: block; height: 6px; width: var(--hidden-line, 75%); border-radius: 6px; background: var(--card-muted); }
.advent .advent-hidden-lines i:last-child { height: 4px; width: calc(var(--hidden-line, 75%) * .7); opacity: .6; }
.advent .advent-frost-lock { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; color: var(--card-ink); }
.advent .advent-frost-lock svg { width: 17px; height: 17px; }
.advent .advent-card:focus-visible { outline: 3px solid #d5e0ff; outline-offset: 4px; }
.advent .advent-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 24px; }
.advent .advent-footer>p { margin: 0; color: var(--advent-muted); font-size: 14px; line-height: 1.5; }
.advent .advent-tariff-link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid #7d95d5; color: #e0e9ff; font-size: 15px; line-height: 1.4; }
.advent .advent-tariff-link:hover { color: #fff; border-color: #fff; }
.advent .advent-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 28px 36px 30px; border: 1px solid #6b78935c; border-radius: 24px; background: #17243b; color: #f7f2e9; overflow: auto; overscroll-behavior: contain; font: inherit; box-shadow: 0 24px 90px #0009; }
.advent .advent-dialog::backdrop { background: #030610c9; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
body:has(.advent-dialog[open]) { overflow: hidden; }
.advent .advent-dialog[open] { animation: advent-dialog-in 280ms cubic-bezier(.2,.8,.2,1) both; }
.advent .advent-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.advent .advent-dialog-label { margin: 0; color: #c0cdef; font-size: 13px; font-variant-numeric: tabular-nums; }
.advent .advent-close { min-height: 44px; padding: 10px 12px; margin-right: -12px; border: 0; background: transparent; color: #dce5ff; font: inherit; font-size: 14px; cursor: pointer; }
.advent .advent-close:hover { color: #fff; }
.advent .advent-mystery-visual { position: relative; height: 205px; margin: 8px auto 22px; }
.advent .advent-mystery-art { display: block; width: 220px; height: 200px; margin: 0 auto; object-fit: contain; }
.advent .advent-mystery-lock { position: absolute; bottom: 0; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e8dfd04d; border-radius: 14px; background: #eee3d3; color: #24304a; }
.advent .advent-mystery-lock svg { width: 20px; height: 20px; }
.advent .advent-dialog-title { max-width: 380px; margin: 0 auto; color: #f7f2e9; font-size: clamp(29px, 4vw, 39px); font-weight: 550; line-height: 1.08; letter-spacing: -.025em; text-align: center; }
.advent .advent-dialog-title:focus { outline: none; }
.advent .advent-dialog-intro { margin: 20px auto 26px; max-width: 390px; color: #c5cee3; font-size: 16px; line-height: 1.55; text-align: center; }
.advent .advent-choose { display: flex; justify-content: center; align-items: center; min-height: 50px; padding: 14px 22px; border-radius: 12px; background: #eee3d3; color: #24304a; font-size: 15px; line-height: 1.4; font-weight: 500; }
.advent .advent-choose:hover { background: #fff7ea; }
.advent .advent-return { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 12px; border: 0; background: transparent; color: #b9c9ee; font: inherit; font-size: 14px; line-height: 1.4; text-align: center; cursor: pointer; }
.advent .advent-return:hover { color: white; }
.advent .advent-dialog button:focus-visible,.advent .advent-dialog a:focus-visible,.advent .advent-tariff-link:focus-visible { outline: 3px solid #b5c8ff; outline-offset: 4px; }
@keyframes advent-dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) { .advent .advent-card:hover { border-color: #d8dfe794; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .advent .advent-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #0002; }
  .advent .advent-card:hover .advent-art { transform: rotate(0deg) scale(1.035); }
}
@media (max-width: 1100px) {
  .advent .advent-header { gap: 32px; }
  .advent .advent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advent .advent-card { height: 300px; }
}
@media (max-width: 700px) {
  .advent .advent-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
  .advent .advent-header-aside { margin-left: 0; max-width: 500px; }
  .advent .advent-eyebrow { font-size: 12px; margin-bottom: 20px; }
  .advent .advent-intro { font-size: 16px; }
  .advent .advent-access { margin-top: 18px; font-size: 13px; }
  .advent .advent-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; }
  .advent .advent-footer>p { font-size: 13px; }
  .advent .advent-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px 24px 22px; }
}
@media (max-width: 620px) {
  .advent .advent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .advent .advent-card { height: clamp(222px, 60vw, 300px); grid-template-rows: 24px minmax(0, 1fr) 34px; gap: 10px; padding: 15px; border-radius: 18px; }
  .advent .advent-card:last-child { grid-column: 1 / -1; height: 260px; }
  .advent .advent-card:last-child .advent-art { max-width: 240px; justify-self: center; }
  .advent .advent-card-top { gap: 7px; }
  .advent .advent-number { font-size: 24px; }
  .advent .advent-card-status { font-size: 10px; }
  .advent .advent-frost { height: 34px; padding: 7px 9px; gap: 8px; border-radius: 9px; }
  .advent .advent-frost-lock { width: 20px; height: 20px; }
  .advent .advent-frost-lock svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .advent .advent-heading { font-size: 34px; }
  .advent .advent-card { padding: 12px; height: 212px; }
  .advent .advent-card-status { font-size: 9px; }
  .advent .advent-number { font-size: 22px; }
  .advent .advent-dialog { padding-inline: 20px; }
  .advent .advent-mystery-visual { height: 170px; }
  .advent .advent-mystery-art { height: 165px; width: 180px; }
}
body[data-motion="off"] .advent .advent-card:hover { transform: none; }
body[data-motion="off"] .advent .advent-card:hover .advent-art { transform: rotate(var(--art-tilt, 0deg)); }
body[data-motion="off"] .advent *,body[data-motion="off"] .advent *::before,body[data-motion="off"] .advent *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  .advent *, .advent *::before, .advent *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .advent .advent-card:hover { transform: none; }
  .advent .advent-card:hover .advent-art { transform: rotate(var(--art-tilt, 0deg)); }
}
