#offer{box-sizing:border-box;width:min(28rem,calc(100% - 2rem));color:#f6edd9;background:#211a23;border:1px solid #b59362;border-radius:6px;padding:1.4rem}
#offer::backdrop{background:#110f13bc}
#offer label{display:grid;gap:.25rem;margin:.65rem 0}
#offer :is(input,select){width:100%;min-height:44px;box-sizing:border-box;font:inherit;padding:6px}
#offer button,#voucher button,#voucher a{min-height:44px}
#voucher{max-width:34rem;margin:1rem auto;text-align:center;overflow-wrap:anywhere}
#voucher nav{display:flex;gap:.5rem;justify-content:center;align-items:center;flex-wrap:wrap}
#voucher nav a,#voucher nav button{display:inline-grid;align-items:center;color:inherit}
.stage #sound{position:absolute;z-index:5;right:8px;bottom:8px;width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:50%;background:#16151ae0;color:#fff}
[hidden]{display:none!important}

#count-in{position:absolute;z-index:4;inset:0;display:grid;place-items:center;color:#fff8e6;text-shadow:0 2px 10px #251522;font:76px/1 Georgia,serif;pointer-events:none}
.progress,#hit,#play,#replay{display:none!important}
#choose-hostess:not([hidden]){position:absolute;z-index:3;inset:auto 0 8px;margin:auto;width:max-content;padding:8px 16px}
.result{display:none}.stage[data-phase=lose]+.progress+.result,.stage[data-phase=win]+.progress+.result:has(#gift:focus-visible){display:block}
#stage:has(#voucher:not([hidden])){min-height:390px}
#stage #voucher:not([hidden]){position:absolute;z-index:5;inset:0;max-width:none;margin:0;padding:8px;display:flex;flex-flow:column;align-items:center;justify-content:center;gap:3px;background:#150f1a80}
#stage #voucher img{max-height:calc(100% - 90px)!important;max-width:97%;min-height:0;object-fit:contain}
#stage #voucher p,#stage #voucher strong{font:14px/1.2 system-ui,sans-serif;color:white;margin:0;background:#211821}
#stage #voucher nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;background:#211821;color:#ffe3bb}
#voucher nav :is(button,a){font:600 15px/1.25 system-ui,sans-serif;color:inherit;background:none;border:0;padding:6px;display:inline-flex;align-items:center}
#voucher nav button:disabled{opacity:.6}
@media(max-width:480px){#count-in{font-size:58px}#stage #voucher nav{gap:2px}#stage #voucher p{font-size:12px}}


/* A minimum height on an auto-width 16:9 stage can enlarge its width in WebKit. */
header > div:first-child { min-width: 0; }
header .languages { flex: 0 0 auto; flex-wrap: nowrap; align-items: center; }
header .languages #sound {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}
#sound[aria-pressed="false"] .waves, #sound[aria-pressed="true"] .muted { display: none; }
#stage:has(#voucher:not([hidden])) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}
#stage #voucher:not([hidden]) {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  width: 100%;
  min-width: 0;
  padding: 12px 8px 6px;
  gap: 6px;
}
#stage #voucher img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72svh !important;
}
#stage #voucher nav {
  max-width: 100%;
  gap: 0 8px;
  padding: 0 4px;
}
@media (max-width: 640px) {
  #stage #voucher:not([hidden]) { padding: 6px 4px 2px; }
  #stage #voucher img { max-height: 78svh !important; }
  #stage #voucher nav { gap: 0 3px; padding: 0; }
}
