.childhood .bouquet-game-trigger{
  display:grid;
  place-items:center;
  width:100%;
  min-width:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}
.bouquet-game-trigger img{pointer-events:none}
.wedding-game{
  width:min(500px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
  margin:auto;
  padding:0;
  overflow:auto;
  border:1px solid var(--gold);
  border-radius:18px;
  background:var(--cream);
  color:var(--ink);
  box-shadow:0 24px 80px #11292366;
}
.wedding-game::backdrop{background:#112923b8;backdrop-filter:blur(4px)}
.wedding-game [hidden]{display:none!important}
.wedding-game-sheet{padding:22px}
.wedding-game-heading{position:relative;padding-right:46px}
.wedding-game-kicker{margin:0 0 8px;color:var(--red);font-size:.64rem;font-weight:600;letter-spacing:.16em}
.wedding-game-title{margin:0;font-size:2.5rem;line-height:1;letter-spacing:-.035em}
.wedding-game-close{
  position:absolute;
  top:-9px;
  right:-9px;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--red);
  font:inherit;
  font-size:1.8rem;
  cursor:pointer;
}
.wedding-game-close:hover{background:#8c243410}
.wedding-game-hud{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 5px}
.wedding-game-hud p{margin:0;font-size:.8rem;color:var(--muted)}
.wedding-game-hud strong{color:var(--forest);font-size:.9rem;font-weight:600;font-variant-numeric:tabular-nums}
.wedding-game-hud .wedding-game-hearts{color:var(--red);font-size:1.1rem;white-space:nowrap;letter-spacing:.08em}
.wedding-game-record{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:.66rem;color:var(--muted);font-variant-numeric:tabular-nums}
.wedding-game-record p{margin:0}
.wedding-game-field{
  position:relative;
  isolation:isolate;
  height:clamp(220px,40dvh,360px);
  overflow:hidden;
  border:1px solid #b49a6480;
  border-radius:14px 14px 6px 6px;
  background:radial-gradient(ellipse at 50% 115%,#f9d6dc,transparent 72%),#f4ecdc;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  cursor:ew-resize;
}
.wedding-game-field::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:url('/assets/floral-ditsy-pattern.png') center/180px repeat;
  opacity:.08;
  pointer-events:none;
}
.wedding-game-field::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:9%;
  border-top:1px solid #b49a6466;
  background:#1c38330d;
  pointer-events:none;
}
.wedding-game-mark{position:absolute;top:14px;left:0;right:0;margin:0;text-align:center;font-family:var(--hand);font-size:1.35rem;color:#1c383366;pointer-events:none}
.wedding-game-flowers{position:absolute;inset:0;pointer-events:none}
.wedding-falling-flower{position:absolute;width:9%;min-width:26px;max-width:40px;height:auto;aspect-ratio:1;object-fit:contain;pointer-events:none}
.wedding-falling-flower.is-rain{width:10%;min-width:30px;max-width:44px}
.wedding-falling-flower.is-missed{opacity:.35}
.wedding-game-basket{position:absolute;z-index:1;top:82%;left:50%;width:16%;min-width:48px;max-width:72px;transform:translate(-50%,-40%);pointer-events:none}
.wedding-game-basket svg{display:block;width:100%;height:auto}
.wedding-game-field.is-hit{box-shadow:inset 0 0 0 3px #8c243466}
.wedding-game-field.is-hit .wedding-game-basket{opacity:.5}
.wedding-game-overlay{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;text-align:center;background:#fff9edf2;cursor:default}
.wedding-game-bloom{width:44px;height:44px;object-fit:contain;margin-bottom:8px}
.wedding-game-overlay h3{max-width:320px;margin:0;font-family:var(--serif);font-size:1.9rem;line-height:1.08;font-weight:500;color:var(--red);letter-spacing:-.025em}
.wedding-game-overlay p{max-width:310px;margin:10px 0 16px;font-size:.88rem;line-height:1.6;color:var(--muted)}
.wedding-game-action{min-height:44px;padding:10px 24px;font-size:.88rem}
.wedding-game-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}
.wedding-game-move,.wedding-game-pause{min-width:56px;min-height:44px;padding:8px 16px;border:1px solid #b49a6480;border-radius:6px;background:#fffdf7;color:var(--forest);font:inherit;font-size:1.1rem;cursor:pointer;touch-action:none}
.wedding-game-pause{font-size:.8rem}
.wedding-game-controls button:disabled{opacity:.35;cursor:default}
.wedding-game-instructions{margin:10px 0 0;text-align:center;font-size:.75rem;line-height:1.5;color:var(--muted)}
@media(max-width:480px){
  .wedding-game-sheet{padding:18px}
  .wedding-game-title{font-size:2rem}
  .wedding-game-hud{margin:14px 0 5px}
  .wedding-game-record{margin-bottom:10px}
  .wedding-game-overlay{padding:12px}
  .wedding-game-overlay h3{font-size:1.55rem}
  .wedding-game-overlay p{font-size:.8rem;margin:8px 0 12px}
  .wedding-game-bloom{width:36px;height:36px}
}
@media(max-height:650px){
  .wedding-game-kicker,.wedding-game-bloom{display:none}
  .wedding-game-title{font-size:1.8rem}
  .wedding-game-field{height:220px}
  .wedding-game-hud{margin:12px 0 3px}
  .wedding-game-record{margin-bottom:8px}
}
@media(max-height:420px){
  .wedding-game-sheet{padding:12px}
  .wedding-game-heading{min-height:32px;display:flex;align-items:center}
  .wedding-game-title{font-size:1.6rem}
  .wedding-game-record{font-size:.6rem;margin-bottom:6px}
  .wedding-game-close{top:-5px;right:-5px}
  .wedding-game-field{height:140px}
  .wedding-game-overlay{padding:8px}
  .wedding-game-overlay h3{font-size:1.3rem}
  .wedding-game-overlay p{font-size:.75rem;line-height:1.4;margin:6px 0 8px}
  .wedding-game-action{padding:6px 18px}
  .wedding-game-controls{margin-top:8px}
  .wedding-game-instructions{display:none}
}
@media(max-height:340px){
  .wedding-game-sheet{padding:10px}
  .wedding-game-title{font-size:1.4rem}
  .wedding-game-hud{margin:6px 0 2px}
  .wedding-game-record{margin-bottom:4px}
  .wedding-game-field{height:130px}
  .wedding-game-controls{margin-top:6px}
}
