@import url('./handbag-reel.css');
.interactive-reveal { min-width: 0; }
.reveal-studio { background:#111016; border:1px solid var(--line); border-radius:18px; padding:clamp(12px,2vw,24px); }
.reveal-studio h1 { margin:0 0 12px; font-size:clamp(1.65rem,3vw,2.7rem); letter-spacing:-.04em; }
.reveal-stage { position:relative; isolation:isolate; height:clamp(200px,55svh,560px); overflow:hidden; border-radius:12px; background:#070609; }
.reveal-cover, .reveal-engine { position:absolute; inset:0; width:100%; height:100%; border:0; }
.reveal-cover { z-index:1; display:grid; place-items:center; touch-action:pan-y; background:radial-gradient(ellipse at 50% 65%,#473450,#15121b 60%,#08070a); }
[data-category=watches] .reveal-cover { background:radial-gradient(ellipse at 50% 65%,#294355,#141820 60%,#08080a); }
.reveal-cover[hidden] { display:none; }
.reveal-cover:focus-visible { outline-offset:-4px; }
.reveal-box { grid-area:1/1; max-width:88%; height:85%; max-height:100%; object-fit:contain; user-select:none; }
.reveal-lid { visibility:hidden; }
.light-opening .reveal-box { clip-path:polygon(0 29%,50% 47%,100% 28%,100% 100%,0 100%); animation:reveal-base-away .52s ease-in both; }
.light-opening .reveal-lid { visibility:visible; clip-path:polygon(0 0,100% 0,100% 28%,50% 47%,0 29%); animation:reveal-lid-away .52s ease-out both; }
@keyframes reveal-base-away { to { transform:translateY(12%) scale(.93); opacity:0; } }
@keyframes reveal-lid-away { to { transform:translateY(-34%) rotate(-8deg); opacity:0; } }
@media (prefers-reduced-motion:reduce) {
  .light-opening .reveal-box { animation:none; }
}
.reveal-engine { opacity:0; pointer-events:none; background:#000; }
.reveal-engine.is-ready { opacity:1; pointer-events:auto; }
.reveal-prompt { margin:12px 0; color:var(--paper); line-height:1.4; }
.reveal-studio .actions { display:flex; flex-wrap:wrap; gap:8px; }
.reveal-studio .button { min-height:44px; }
.interactive-reveal > .button { margin-top:12px; }
@media (max-height:620px) {
  .reveal-stage { height:clamp(150px,45svh,280px); }
}

/* The native WatchBox host fills all four edges while held. H5 keeps its
   accessible controls in their own row, outside the engine's touch surface. */
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  body:has(#main > .interactive-reveal > .reveal-studio) > :is(.mast,.bottom-nav),
  .frame:has(> #main > .interactive-reveal > .reveal-studio) > .rail { display:none; }
  #main:has(> .interactive-reveal > .reveal-studio) { grid-column:1 / -1; padding:0; }
  .interactive-reveal > .reveal-studio {
    display:grid;
    grid-template:"scene" minmax(0,1fr) "caption" auto "controls" auto / minmax(0,1fr);
    height:100vh;
    height:100dvh;
    padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border:0;
    border-radius:0;
    background:#000;
  }
  .reveal-studio > .reveal-stage { grid-area:scene; height:auto; min-height:0; border-radius:0; }
  .reveal-studio > :is(h1,.reveal-prompt) {
    grid-area:caption;
    margin:0;
    padding:4px 12px 0;
    text-align:center;
    font-size:.875rem;
    line-height:1.3;
    letter-spacing:normal;
  }
  /* Keep the heading and live region available to assistive technology. */
  [data-reveal-state=sealed] .reveal-studio > .reveal-prompt,
  [data-reveal-state=opening] .reveal-studio > h1 {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
  }
  .reveal-studio > .actions {
    grid-area:controls;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:4px 12px 8px;
  }
  .reveal-studio .button { padding-inline:8px; }
}

.interactive-reveal[data-reveal-state=revealed] { max-width:680px; }
.prize-result { overflow:hidden; border:1px solid #ffffff24; border-radius:20px; background:#18161d; }
.prize-display { display:grid; place-items:center; height:clamp(160px,34svh,320px); background:#eaddd5; }
.prize-photo { width:100%; height:100%; max-height:inherit; min-height:0; object-fit:contain; }
.prize-caption { text-align:center; padding:17px 12px 0; }
.prize-caption:last-child { padding-bottom:17px; }
.prize-source { color:#bdb4c5; font-size:.78rem; font-weight:650; }
.prize-caption h1 { margin:3px 0 8px; font-size:clamp(1.45rem,4vw,2.1rem); letter-spacing:-.04em; }
.prize-facts { display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; gap:4px 14px; margin:0; font-size:.83rem; }
.prize-facts div { display:flex; align-items:baseline; gap:5px; }
.prize-facts dt { color:#bdb4c5; }
.prize-facts dd { margin:0; font-weight:640; }
.prize-facts .prize-rarity { color:#f1cc93; }
.prize-rarity dt, .prize-status dt { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.prize-status { color:#cec7ce; }
.prize-result .prize-actions { display:flex; justify-content:center; flex-wrap:wrap; padding:15px 12px 14px; gap:6px; }
.prize-result .prize-actions a { flex:1 1 0; min-height:48px; padding:7px; border-radius:12px; font-size:.86rem; line-height:1.22; }
.prize-links { justify-content:center; align-items:center; gap:4px 12px; }
.prize-links :is(.button,.related-link) { min-height:44px; background:transparent; border:0; color:#cdc6d2; font-size:.83rem; padding:5px 2px; }
.prize-links :is(.button,.related-link):hover { color:var(--gold); text-decoration:underline; }
@media (max-height:620px) {
  .prize-display { height:clamp(134px,28svh,174px); }
}

.batch-results { max-width: 820px; margin-inline: auto; padding: 20px 16px max(20px,env(safe-area-inset-bottom)); color: #faf9fc; font-family: "Proxima Nova",system-ui,sans-serif; }
.batch-heading { padding-right: 44px; }
.batch-heading h1,.batch-pack { margin: 0; }
.batch-heading h1 { font-size: clamp(27px,4vw,34px); line-height: 1.12; }
.batch-pack { margin-bottom: 4px; color: #c8c4d4; }
.batch-totals,.batch-actions { display: flex; align-items: center; gap: 12px; }
.batch-totals { justify-content: space-between; margin: 16px 0 10px; }
.batch-totals strong { margin-left: 7px; font-variant-numeric: tabular-nums; }
.batch-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(140px,45%),1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.batch-cards .inv-detail { min-height: 170px; }
.batch-name { font-size: .91rem; line-height: 1.16; overflow-wrap: anywhere; }
.batch-actions { margin-top: 16px; flex-wrap: wrap; }
.batch-actions a { flex: 1 1 115px; display: grid; place-items: center; min-height: 46px; padding-inline: 7px; text-align: center; }

/* The public WatchBox host keeps the results on the canvas under its controls. */
[data-group-scene="watchbox"][data-reveal-state="displayed"] .reveal-prompt {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip-path: inset(50%);
}
[data-group-scene="watchbox"][data-reveal-state="displayed"] .reveal-studio > .actions {
  min-height: 64px; align-items: flex-end; justify-content: center; padding: 4px 16px 16px;
}
.reveal-studio .button.watchbox-continue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-height: 44px; padding: 0 24px; color: white;
  font: 900 14px/1 "Proxima Nova",ui-sans-serif,system-ui,sans-serif;
  -webkit-text-stroke: .03em currentColor; border-radius: 12px; border: 2px solid transparent;
  background: linear-gradient(#2f10ba,#6443f5) padding-box,linear-gradient(#4424d1,#7b5dff) border-box;
  box-shadow: 0 6px 20px #0000001a;
  transition: filter .125s cubic-bezier(.22,.61,.36,1), transform .125s cubic-bezier(.22,.61,.36,1);
}
.watchbox-continue::after {
  content: ""; box-sizing: border-box; width: 9px; height: 9px; margin: 0 3px 0 1px;
  border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
@media (hover:hover) { .watchbox-continue:hover { filter: brightness(1.1); transform: scale(1.04); } }
.watchbox-continue:active { transform: scale(.98); }
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  [data-group-scene="watchbox"] .reveal-studio:has(.reveal-engine.is-ready) { position:relative; display:block; }
  [data-group-scene="watchbox"] .reveal-studio:has(.reveal-engine.is-ready) > .reveal-stage { position:absolute; inset:0; }
  [data-group-scene="watchbox"] .reveal-studio:has(.reveal-engine.is-ready) > .actions {
    position:absolute; z-index:2; bottom:env(safe-area-inset-bottom); inset-inline:0; pointer-events:none;
  }
  [data-group-scene="watchbox"] .reveal-studio .actions button { pointer-events:auto; }
}
@media (prefers-reduced-motion:reduce) { .reveal-studio .watchbox-continue { transition:none; } }
