/* Mobile_LevelSelectionV3: fixed chrome with an independently scrolling card list. */
.puzzle-chooser {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  color: var(--parchment); font-family: var(--nunito);
}
.puzzle-chooser[open] { display: grid; place-items: center; }
.puzzle-chooser::backdrop { background: #100d0db3; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.chooser-content {
  position: relative; isolation: isolate; width: calc(min(390px, 100%) - 41px);
  height: min(534px, calc(100dvh - 84px)); box-sizing: border-box;
  border: 1px solid #977f53; background: linear-gradient(#1a1616, #121111);
  box-shadow: 10px 10px 20px #0004;
}
.chooser-brand { position: absolute; top: 32px; left: 8px; right: 8px; display: grid; grid-template-columns: minmax(0, 46px) max-content minmax(0, 46px); align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--gold); font: 600 18px/22px var(--trajan); text-align: center; text-shadow: var(--shadow); }
.chooser-brand::before, .chooser-brand::after { content: ''; height: 2px; background: url(assets/intro/objective-accent.svg) center no-repeat; }
.chooser-brand::before { transform: scaleX(-1); }
.brand-home { color: inherit; text-decoration: none; pointer-events: auto; }
.brand-home:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.chooser-heading { position: absolute; top: calc(62px + var(--chooser-dev-space, 0px)); left: calc(50% + 5px); width: 241px; height: 89px; transform: translateX(-50%); box-sizing: border-box; padding-top: 18px; background: url(assets/selection/heading-scroll.webp) center / 100% 100% no-repeat; color: #272823; text-align: center; }
#chooser-title { outline: none; margin: 0; font: 600 18px/22px var(--trajan); }
#chooser-description { width: 168px; margin: 1px auto 0; font: 400 12px/13px var(--nunito); }
.puzzle-options {
  position: absolute; left: 7px; right: 12px; top: calc(130px + var(--chooser-dev-space, 0px)); bottom: 8px;
  display: flex; flex-direction: column; gap: 0; padding: 4px 4px 16px 17px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
  scrollbar-width: none; scroll-padding-block: 16px;
  -webkit-mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.puzzle-options::-webkit-scrollbar { display: none; }
.puzzle-option { position: relative; isolation: isolate; flex: 0 0 159px; width: 100%; padding: 0; border: 0; border-radius: 0; background: url(assets/selection/card-accent.webp) 6px 4px / 13px 129px no-repeat; color: var(--parchment); font-family: var(--nunito); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.puzzle-option::before { content: ''; position: absolute; z-index: -3; left: 8px; right: 0; top: 0; height: 142px; background: url(assets/victory-v2/email-panel.webp) center / 100% 100% no-repeat; }
.puzzle-option::after { content: ''; position: absolute; z-index: -1; left: 21px; right: 12px; top: 21px; height: 111px; background: linear-gradient(transparent, #171414 54%); pointer-events: none; }
.puzzle-option-art { position: absolute; z-index: -2; left: 20px; top: 8px; width: calc(100% - 32px); height: 109px; object-fit: cover; pointer-events: none; }
.puzzle-option-tag { position: absolute; left: 0; top: 0; right: 12px; height: 39px; display: flex; align-items: flex-start; }
.puzzle-option-day { flex: 0 0 82px; height: 39px; box-sizing: border-box; padding-top: 13px; background: url(assets/selection/day-ribbon.webp) center / 100% 100% no-repeat; color: #272823; font: 600 13px/17px var(--trajan); text-align: center; }
.puzzle-option-hint { margin-top: 13px; padding: 0 15px 0 3px; background: linear-gradient(90deg, #171414b3, transparent); color: #d3c5a8; font: 400 10px/17px var(--nunito); white-space: nowrap; }
.puzzle-option strong { position: absolute; left: 31px; right: 10px; top: 48px; color: var(--gold); font: 600 22px/23px var(--trajan); text-shadow: var(--shadow); }
.puzzle-option-description { position: absolute; left: 36px; right: 15px; top: 72px; font: 400 12px/13px var(--nunito); }
.puzzle-option small { position: absolute; left: 36px; right: 15px; top: 100px; padding-top: 2px; border-top: 1px solid #a9823633; color: #d3c5a8; font: 400 10px/13px var(--nunito); white-space: nowrap; }
.puzzle-option-play { position: absolute; top: 112px; left: calc(50% - 3px); transform: translateX(-50%); width: max-content; min-width: 209px; height: 47px; box-sizing: border-box; padding: 16px 48px 0 18px; color: var(--gold); font: 600 13px/15px var(--trajan); text-align: center; white-space: nowrap; }
.puzzle-option-play::before { content: ''; position: absolute; z-index: -1; left: 6px; right: 22px; top: 0; height: 53px; background: url(assets/selection/play-background.webp) center / 100% 100% no-repeat; }
.puzzle-option-arrow { position: absolute; right: -2px; top: -3px; width: 53px; height: 51px; background: url(assets/v6/ring.webp) center top / 100% 108% no-repeat, url(assets/popups/close-disc.svg) center / 69% 69% no-repeat; }
.puzzle-option-arrow::after { content: ''; position: absolute; left: 22px; top: 21px; width: 11px; height: 10px; background: url(assets/intro/start-arrow.svg) center / contain no-repeat; transform: rotate(90deg); }
/* V3's compact yellow face reuses the canonical primary button artwork. */
.puzzle-option:not(:disabled) .puzzle-option-play {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 192px; max-width: calc(100% - 24px); height: 33.445px;
  padding: 0 12px; color: #232323e6; font: 600 15px/18px var(--trajan);
  text-shadow: 1px -.5px #ffe3b3;
}
.puzzle-option:not(:disabled) .puzzle-option-play::before {
  left: -3.226%; right: -9.677%; top: -18.519%; height: 174.074%;
  background-image: url(assets/victory-v2/email-button.svg);
  filter: var(--important-button-glow);
}
.puzzle-option:not(:disabled) .puzzle-option-arrow {
  position: relative; top: auto; right: auto; flex: 0 0 13px;
  width: 13px; height: 13px; background: none;
}
.puzzle-option:not(:disabled) .puzzle-option-arrow::after {
  left: 1.6px; top: 2.125px; width: 9.79721px; height: 8.75px;
  background-image: url(assets/selection/play-arrow.svg?v=1);
}
.puzzle-option:focus-visible { outline: none; filter: brightness(1.12) drop-shadow(0 0 4px #e4c073aa); }
.choose-puzzle:focus-visible { outline: none; filter: brightness(1.12) drop-shadow(0 0 4px #e4c073aa); }
.puzzle-option:disabled { cursor: default; opacity: 1; }
.puzzle-option:disabled .puzzle-option-hint { position: relative; min-width: 64px; }
.puzzle-option-lock-tag { position: absolute; left: 41px; top: -3px; width: 17px; height: 22px; }
.puzzle-option:disabled .puzzle-option-play { color: #cfcfcf; font: 600 12px/15px var(--trajan); text-shadow: 1px -.5px #000; }
.puzzle-option[data-availability="tomorrow"] .puzzle-option-play { width: 209px; padding: 16px 22px 0 17px; }
.puzzle-option[data-availability="tomorrow"] .puzzle-option-play::before {
  left: 17px; right: 21px; top: 6px; height: 33px;
  background-image: url(assets/selection/locked-button.webp);
}
.puzzle-option[data-availability="tomorrow"] .puzzle-option-lock { position: absolute; right: 8px; top: -7px; width: 21px; height: 28px; }
.puzzle-option[data-availability="future"] { flex-basis: 82px; background: none; }
/* Day3-2DaysMoreCompact preserves the frame's edges using two cropped slices. */
.puzzle-option[data-availability="future"]::before { height: 57px; background-size: 100% 142px; background-position: center top; }
.puzzle-option-frame-bottom {
  position: absolute; z-index: -3; left: 8px; right: 0; top: 51px; height: 31px;
  background: url(assets/victory-v2/email-panel.webp) center bottom / 100% 142px no-repeat;
  pointer-events: none;
}
.puzzle-option[data-availability="future"]::after { height: 54px; }
.puzzle-option[data-availability="future"] .puzzle-option-art,
.puzzle-option[data-availability="future"] strong,
.puzzle-option[data-availability="future"] .puzzle-option-description,
.puzzle-option[data-availability="future"] small { display: none; }
.puzzle-option[data-availability="future"] .puzzle-option-play {
  top: 38px; left: calc(50% - 4px); display: flex; align-items: center; gap: 9px;
  min-width: 0; height: 31px; padding: 0;
}
.puzzle-option[data-availability="future"] .puzzle-option-play::before { content: none; }
.puzzle-option[data-availability="future"] .puzzle-option-play > span { transform: translateY(3px); }
.puzzle-option[data-availability="future"] .puzzle-option-lock { order: -1; flex: 0 0 23px; width: 23px; height: 31px; }
.puzzle-option--tutorial { flex-basis: 98px; background: none; }
.puzzle-option--tutorial::before { height: 57px; background-size: 100% 142px; background-position: center top; }
.puzzle-option--tutorial::after { height: 54px; }
.puzzle-option--tutorial strong { left: 85px; top: 15px; }
.puzzle-option--tutorial .puzzle-option-description { left: 85px; top: 35px; line-height: 18px; }
.puzzle-option--tutorial .puzzle-option-play { top: 56px; }
.puzzle-option-tutorial-icon { position: absolute; left: 4px; top: 14px; width: 59px; height: 56px; }
/* Let live titles and descriptions wrap without colliding with the reward or CTA. */
.puzzle-option[data-availability="available"] { flex: 0 0 auto; min-height: 159px; box-sizing: border-box; padding: 36px 10px 44px 85px; }
.puzzle-option[data-availability="available"]::before { height: calc(100% - 17px); }
.puzzle-option[data-availability="available"]::after { top: 8px; height: auto; bottom: 27px; background: linear-gradient(to bottom, rgba(21, 19, 19, .67), #171414 31.048%); }
.puzzle-option[data-availability="available"] strong { position: static; display: block; }
.puzzle-option[data-availability="available"] .puzzle-option-description { position: static; display: block; margin-top: 2px; line-height: 18px; }
.puzzle-option[data-availability="available"] small { position: static; display: block; margin-top: 3px; white-space: normal; }
.puzzle-option[data-availability="available"] .puzzle-option-play { top: auto; bottom: 5.555px; }
.puzzle-option-reward { position: absolute; left: -13px; top: 41px; width: 83px; height: 87px; background: url(assets/selection/reward-background.svg) 12px 6px / 59px 56px no-repeat; text-align: center; pointer-events: none; }
.puzzle-option-reward-title { position: absolute; left: 8px; top: 2px; width: 68px; height: 14px; background: linear-gradient(90deg, transparent, #8d2822 20%, #7b0e34 80%, transparent); color: var(--gold-dim); font: 700 12px/14px var(--nunito); }
.puzzle-option-reward-detail { position: absolute; left: 0; top: 19px; width: 83px; height: 14px; background: linear-gradient(90deg, transparent, #252525 20%, #3d2104 80%, transparent); color: #d3c5a8; font: italic 10px/14px var(--nunito); }
.puzzle-option-reward img { position: absolute; left: 26px; top: 38px; width: 32px; height: 45px; box-sizing: border-box; border: 1px solid var(--gold); border-radius: 5px; object-fit: cover; transform: rotate(15deg); }
.puzzle-option[data-availability="future"] { margin-top: 11px; }
@media (hover: hover) { .puzzle-option:not(:disabled):hover .puzzle-option-play { filter: brightness(1.2); } }
@media (max-width: 360px) {
  .puzzle-options { left: 0; right: 9px; padding-left: 6px; }
  .puzzle-option strong { font-size: 18px; }
  .puzzle-option-description { font-size: 11px; }
  .puzzle-option small { font-size: 9px; }
  .puzzle-option-hint { font-size: 9px; }
  .puzzle-option[data-availability="available"] { padding-left: 76px; }
  .puzzle-option-reward { left: -4px; }
}

.popup-banner { position: absolute; left: -13.123px; top: -14.055px; width: calc(100% + 25.246px); height: 124.415px; pointer-events: none; mask: url(assets/popups/header-mask.svg) 4.123px -12.945px / calc(100% - 8.246px) 121.125px no-repeat; }
.popup-banner-panel { position: absolute; left: 0; top: 8px; width: 100%; height: 103px; }
.popup-banner-eagle { position: absolute; left: 50%; top: 0; width: 100px; height: 34px; transform: translateX(-50%); }
.puzzle-close.info-close { z-index: 2; right: -19px; top: -19px; width: 55px; height: 53px; }
.puzzle-close img { position: absolute; display: block; pointer-events: none; }
.popup-close-disc { left: 8.75px; top: 7.5px; width: 37.5px; height: 37.55px; }
.popup-close-ring { left: 0; top: 0; width: 55px; height: 57px; }
.popup-close-mark { position: absolute; left: 20px; top: 16px; width: 15px; font: 600 24px/1 var(--trajan); text-align: center; color: var(--gold); }
.puzzle-close:focus-visible { outline: none; filter: brightness(1.12) drop-shadow(0 0 4px #e4c073aa); }

/* Daily entry flow: tutorial, today, then tomorrow and email catch-up guidance. */
.puzzle-option[hidden], .chooser-archive[hidden] { display: none; }
.puzzle-chooser:not([data-schedule-state="ready"]) [data-puzzle] { display: none; }
.chooser-schedule-note { flex: 0 0 auto; margin: 12px 12px 0 8px; padding: 12px 10px; border-block: 1px solid #977f5355; color: var(--gold); font: 600 13px/19px var(--nunito); text-align: center; }
.chooser-archive { flex: 0 0 auto; margin: 12px 12px 0 8px; padding: 0 10px; text-align: center; }
.chooser-archive h2 { margin: 0 0 4px; color: var(--gold); font: 600 14px/19px var(--trajan); }
.chooser-archive p { margin: 0; color: var(--parchment); font: 400 13px/19px var(--nunito); }

.chooser-content:has(.chooser-day-preview) { --chooser-dev-space: 40px; }
.chooser-day-preview { position: absolute; top: 62px; left: 32px; right: 32px; display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gold); font: 600 12px/18px var(--nunito); }
.chooser-day-preview select { flex: 1; min-width: 0; height: 32px; padding: 4px 8px; border: 1px solid #977f53; border-radius: 4px; background: #252525; color: var(--parchment); font: 400 14px/20px var(--nunito); }
.chooser-day-preview select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
