.scene-invitation{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.scene-invitation .scene-instruction{margin:0;flex:1 1 240px}.scene-invitation button{flex-shrink:0}
body.postcard-open{overflow:hidden}.postcard-dialog{width:min(980px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--brown);overflow:auto}.postcard-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.postcard-header{display:grid;grid-template-columns:1fr auto;gap:12px 24px;padding:22px 28px}.postcard-header h2{font-size:32px;line-height:1.15;margin:0;color:var(--ink)}.postcard-header>button{grid-column:2;grid-row:1}.postcard-hint{grid-column:1/-1;margin:0;font-size:16px}.postcard-choices{grid-column:1/-1;display:flex;gap:20px}.postcard-choices label{display:flex;align-items:center;gap:10px;font-size:14px}.postcard-choices select{min-height:44px;max-width:100%;font-size:16px}
.postcard-stage{position:relative;height:min(56dvh,570px);min-height:150px;background:var(--soft);padding:16px 24px;display:grid;place-items:center}.postcard-canvas{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.postcard-loading{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);padding:14px 20px;margin:0;background:var(--paper);text-align:center;max-width:90%;width:max-content;font-size:16px;border-radius:10px}.postcard-stage>button{position:absolute;top:62%;left:50%;transform:translateX(-50%)}
.postcard-tools{width:100%;max-width:none;margin:0;padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;flex-wrap:wrap}.postcard-status{margin:0;font-size:14px;max-width:46ch;color:var(--ink)}.postcard-status:empty{display:none}
.postcard-message{grid-column:1/-1;display:grid;gap:6px;font-size:14px}.postcard-message textarea{width:100%;min-height:64px;max-height:120px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--input);color:var(--brown);font:16px/1.4 KomorebiBody,system-ui;caret-color:var(--ink)}.postcard-message textarea:focus-visible{outline:3px solid var(--rust);outline-offset:3px}.postcard-message small{font-size:12px;line-height:1.4}
@media(max-width:600px){.postcard-header{padding:16px;gap:10px}.postcard-header h2{font-size:26px}.postcard-choices{gap:12px}.postcard-choices label{display:grid;gap:4px;min-width:0;flex:1}.postcard-choices select{width:100%;padding:8px}.postcard-stage{height:min(46dvh,calc((100vw - 64px)*.9375 + 24px));padding:12px 16px}.postcard-tools{padding:14px 16px}.postcard-tools>.primary{width:100%}.postcard-hint{font-size:14px}}
@media(max-height:500px) and (min-width:601px){.postcard-header{padding:12px 20px;grid-template-columns:1fr auto auto;gap:8px 16px}.postcard-header h2{font-size:24px}.postcard-header>button{grid-column:3}.postcard-hint{display:none}.postcard-choices{grid-column:2;grid-row:1;gap:10px}.postcard-choices label>span{display:none}.postcard-stage{height:44dvh;padding:8px}.postcard-tools{padding:10px 20px}}
