.booth-launch{display:inline-flex;align-items:center;min-height:44px;margin:8px 0;padding:9px 16px}
#booth-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--paper);color:var(--ink);overflow:auto;box-shadow:none;container:booth / inline-size}
#booth-dialog::backdrop{background:var(--paper)}
.booth-layout{display:grid;grid-template-rows:auto minmax(140px,1fr) auto auto auto auto;gap:12px;min-height:100%;height:100%;padding:24px;padding:max(20px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.booth-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.booth-header>div{min-width:0}
.booth-header h2{margin:0;font-size:18px;letter-spacing:0}
#booth-context{margin:6px 0 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#booth-dialog button,#booth-dialog select{min-width:44px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:6px;background:#fffefa;font-size:14px}
#booth-dialog button:hover:not(:disabled){border-color:var(--green);background:var(--soft)}
#booth-dialog :focus-visible{outline:3px solid var(--green);outline-offset:3px}
#booth-dialog #booth-play{background:var(--green);color:white;min-width:120px}
.booth-stage{position:relative;min-height:140px;min-width:0;background:#e9ede4;border-radius:6px}
#booth-art{position:absolute;inset:12px;display:grid;place-items:center}
#booth-dialog #booth-art{padding:0;border:0;background:transparent;min-width:0;min-height:0;cursor:zoom-in}
#booth-dialog #booth-art[aria-disabled="true"]{cursor:progress}
#booth-art img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.booth-loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;pointer-events:none}
.booth-loading button{pointer-events:auto}
#booth-status{max-width:44ch;line-height:1.6}
.booth-caption{display:flex;align-items:center;gap:24px}
.booth-caption>div{min-width:0;flex:1}
#booth-kind{font-size:12px;color:var(--green)}
#booth-age{display:inline-block;margin-left:10px;padding:3px 7px;border:1px solid currentColor;border-radius:4px;background:#fff0ed;color:#a22f32;font-size:12px;font-weight:700;line-height:1.3}
#booth-title{margin:3px 0 0;font-size:clamp(18px,2.2vw,28px);line-height:1.4;overflow-wrap:anywhere;text-wrap:balance}
#booth-author{margin:4px 0;color:#52664f;font-size:14px;overflow-wrap:anywhere}
#booth-author:empty,#booth-labels:empty{display:none}
#booth-labels{margin:6px 0 0}
#booth-dialog #booth-labels button{padding:3px 7px;min-height:24px;font-size:12px;border-color:currentColor;color:var(--green)}
#booth-price{margin:0;font-size:20px;font-weight:600;white-space:nowrap}
#booth-counter{margin:0;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.booth-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.booth-controls label{display:flex;align-items:center;gap:10px;font-size:14px}
.booth-settings{position:relative}
.booth-settings>summary{min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:6px;background:#fffefa;font-size:14px;cursor:pointer}
.booth-settings-panel{position:absolute;bottom:calc(100% + 10px);right:0;z-index:2;display:grid;gap:12px;width:260px;padding:16px;border:1px solid #9ba997;border-radius:6px;background:var(--paper)}
.booth-help{margin:0;text-align:center;color:#52664f;font-size:12px;line-height:1.5}
#booth-notice{margin:0;text-align:center;font-size:13px;line-height:1.5}
#booth-notice:empty{display:none}
@container booth (max-width:600px){
 .booth-layout{gap:10px;padding:16px;grid-template-rows:auto minmax(140px,1fr) auto auto auto auto}
 .booth-header{gap:12px}.booth-header h2{font-size:16px}#booth-context{font-size:12px}
 .booth-header button{flex-shrink:0}
 .booth-caption{gap:8px;flex-wrap:wrap}.booth-caption>div{flex-basis:100%}
 #booth-price{font-size:16px}#booth-counter{margin-left:auto}
 .booth-controls{gap:6px;flex-wrap:nowrap}#booth-dialog button,#booth-dialog select{padding:9px 12px}
 #booth-dialog .booth-controls>button,.booth-settings>summary{padding:9px 8px}
 #booth-dialog #booth-play{min-width:88px}
}
@media(pointer:coarse){#booth-dialog #booth-labels button{min-height:44px}}
@media(max-height:500px){.booth-layout{height:auto;min-height:100%;grid-template-rows:auto minmax(160px,50vh) auto auto auto auto}}
