.duel-game{--duel-ink:#163f48;--duel-paper:#fffaf0;--duel-floor:#daeee9;--duel-accent:#bb3863;--duel-second:#205f6a;box-sizing:border-box;max-width:800px;margin:0 auto;padding:clamp(14px,3vw,28px);background:var(--duel-paper);color:var(--duel-ink);border:2px solid var(--duel-ink);border-radius:24px;font-family:inherit;line-height:1.55;overflow-wrap:anywhere}
.duel-game *{box-sizing:border-box}.duel-palette-ambar{--duel-ink:#543123;--duel-floor:#f7e6bd;--duel-accent:#a32c48;--duel-second:#715023}.duel-palette-noite{--duel-ink:#f8eafe;--duel-paper:#272240;--duel-floor:#373056;--duel-accent:#ff97b2;--duel-second:#aad8ed}
.duel-kicker{font-size:.75rem;font-weight:800;letter-spacing:.13em;margin:0 0 16px}.duel-heading{font-size:clamp(1.4rem,4.5vw,2.25rem);line-height:1.2;margin:20px 0 14px}.duel-copy{font-size:1.05rem;line-height:1.65;margin:12px 0}.duel-personal-text{white-space:pre-wrap;overflow-wrap:anywhere}.duel-help-copy,.duel-footnote{font-size:.9rem;line-height:1.6}.duel-footnote{border-top:1px solid currentColor;padding-top:14px;margin:24px 0 0}
.duel-person{display:flex;align-items:center;gap:14px;min-width:0;padding:10px 12px;border-radius:16px;border:1px solid currentColor}.duel-person>.gift-portrait{flex:0 0 48px;width:48px;height:56px}.duel-person>div{min-width:0}.duel-role{display:block;font-size:.73rem;line-height:1.35}.duel-person-name{display:block;font-size:1rem;line-height:1.4;margin-top:3px}.duel-person-recipient{margin-top:18px}.duel-person-giver{margin-bottom:16px}
.duel-actions,.duel-move-buttons,.duel-review-nav{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.duel-button{appearance:none;border:2px solid var(--duel-ink);border-radius:12px;background:var(--duel-paper);color:var(--duel-ink);font:inherit;font-weight:700;min-height:48px;padding:10px 16px;cursor:pointer;text-align:center;line-height:1.4;white-space:normal}.duel-primary{background:var(--duel-ink);color:var(--duel-paper)}.duel-button:hover{outline:2px solid var(--duel-accent);outline-offset:2px}.duel-button:focus-visible,.duel-court:focus-visible,.duel-heading:focus-visible{outline:3px solid var(--duel-accent);outline-offset:4px}.duel-button:disabled{cursor:default;opacity:.6}.duel-move-buttons>.duel-button{flex:1 1 120px}.duel-review-nav{border-top:1px solid currentColor;padding-top:16px}.duel-review-nav>.duel-button{font-size:.85rem}
.duel-court{display:block;width:100%;height:auto;aspect-ratio:8/5;touch-action:none;user-select:none;border-radius:20px;max-height:500px}.duel-floor{fill:var(--duel-floor);stroke:var(--duel-ink);stroke-width:2}.duel-midline{stroke:var(--duel-ink);stroke-width:1;stroke-dasharray:8 12;opacity:.25}.duel-top-paddle{fill:var(--duel-second)}.duel-bottom-paddle{fill:var(--duel-accent)}.duel-ball{color:var(--duel-paper)}.duel-ball>circle{fill:var(--duel-ink);stroke:var(--duel-paper);stroke-width:1}.duel-ball>.gift-symbol{overflow:visible}
.duel-progress{font-weight:750;margin:8px 0;min-height:1.5em}.duel-milestone-band{display:flex;align-items:center;gap:12px;border:1px solid currentColor;border-radius:12px;padding:8px 12px;margin:10px 0}.duel-symbol{display:block;flex:0 0 36px;width:36px;height:36px}.duel-symbol>.gift-symbol{width:36px;height:36px}.duel-milestone-label{font-weight:750}.duel-message{border:2px solid var(--duel-ink);border-radius:20px;padding:clamp(16px,4vw,32px);margin:18px 0;background:var(--duel-floor)}.duel-reveal-symbol{display:block;width:74px;height:74px;color:var(--duel-accent)}.duel-reveal-symbol>.gift-symbol{width:74px;height:74px}.duel-personal-title{font-size:1.35rem;line-height:1.3;margin:14px 0}.duel-signature{font-weight:700;border-top:1px solid currentColor;margin-top:24px;padding-top:16px}.duel-paused{font-weight:750;padding:12px 16px;border:2px dashed currentColor;border-radius:12px}
@media(max-width:440px){.duel-game{border-radius:16px;padding:14px}.duel-actions>.duel-button{flex:1 1 100%;width:100%}.duel-person>.gift-portrait{flex-basis:40px;width:40px;height:47px}.duel-person{gap:10px;padding:9px}.duel-copy{font-size:1rem}.duel-move-buttons>.duel-button{padding:10px;font-size:.88rem}}
.duel-cover{display:block;width:100%;max-width:100%;height:auto}
.duel-is-playing{max-width:660px;padding:12px}.duel-is-playing>.duel-kicker,.duel-is-playing>.duel-footnote{display:none}.duel-is-playing>.duel-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.duel-is-playing>.duel-person{padding:5px 10px;margin:0;gap:10px}.duel-is-playing .duel-person>.gift-portrait{width:30px;height:35px;flex-basis:30px}.duel-is-playing .duel-role{font-size:.64rem}.duel-is-playing .duel-person-name{font-size:.9rem;margin:0}.duel-is-playing>.duel-control-copy{margin:2px 0;font-size:.76rem}.duel-is-playing>.duel-progress{margin:4px 0;font-size:.85rem}.duel-is-playing>.duel-milestone-band{margin:5px 0;padding:4px 10px;min-height:36px}.duel-is-playing .duel-symbol,.duel-is-playing .duel-symbol>.gift-symbol{width:26px;height:26px;flex-basis:26px}.duel-is-playing>.duel-court{height:clamp(116px,28svh,240px);max-height:240px;aspect-ratio:auto;touch-action:pan-y}.duel-is-playing>.duel-actions,.duel-is-playing>.duel-move-buttons{margin:6px 0;gap:6px}.duel-is-playing>.duel-actions>.duel-button{flex:1 1 110px;width:auto;font-size:.85rem;min-height:44px;padding:7px 10px}.duel-is-playing>.duel-move-buttons>.duel-button{min-height:44px;padding:7px 10px;font-size:.85rem}.duel-is-playing>.duel-paused{padding:7px 10px;margin:6px 0;font-size:.9rem}.duel-help-offer{font-size:.85rem;border-left:3px solid var(--duel-accent);padding:5px 8px;margin:6px 0}.duel-help-offer[hidden]{display:none}.duel-message .duel-personal-text{max-height:min(35svh,280px);overflow:auto;overscroll-behavior:contain}.duel-message .duel-personal-text:focus-visible{outline:2px solid var(--duel-accent);outline-offset:3px}
@media(max-width:520px){
 .duel-game.duel-compact{display:flex;flex-direction:column;gap:6px;height:min(540px,calc(100svh - 16px));max-height:calc(100svh - 16px);min-height:0;padding:10px}
 .duel-compact>.duel-kicker,.duel-compact>.duel-footnote,.duel-compact>.duel-help-copy{display:none}
 .duel-compact>.duel-person{flex:0 0 auto;margin:0;padding:4px 8px;gap:8px;border-radius:10px}
 .duel-compact .duel-person>.gift-portrait{width:30px;height:35px;flex-basis:30px}.duel-compact .duel-role{font-size:.64rem;line-height:1.3}.duel-compact .duel-person-name{font-size:1rem;line-height:1.3;margin:0}
 .duel-compact>.duel-heading{flex:0 0 auto;font-size:1.2rem;line-height:1.25;margin:2px 0}
 .duel-compact>.duel-message{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;flex:1 1 auto;min-height:90px;padding:10px;margin:0;border-radius:12px;overflow:hidden}
 .duel-compact .duel-reveal-symbol,.duel-compact .duel-reveal-symbol>.gift-symbol{width:36px;height:36px}.duel-compact .duel-personal-title{align-self:center;font-size:1.1rem;line-height:1.3;margin:0}
 .duel-compact>.duel-message>.duel-personal-text{grid-column:1/-1;min-height:0;max-height:none;overflow:auto;margin:0;font-size:1rem;line-height:1.6;padding:2px;scrollbar-gutter:stable;overscroll-behavior:contain}
 .duel-compact>.duel-ending{display:flex;flex-direction:column}.duel-compact>.duel-ending>.duel-personal-text{flex:1 1 auto}.duel-compact .duel-signature{flex:0 0 auto;margin:4px 0 0;padding-top:6px;font-size:1rem;line-height:1.4}
 .duel-compact>.duel-actions{flex:0 0 auto;gap:6px;margin:0;flex-wrap:nowrap}.duel-compact>.duel-actions>.duel-button{flex:1 1 0;min-width:0;width:auto;min-height:44px;padding:7px 8px;font-size:.875rem;line-height:1.35}
 .duel-compact>.duel-personal-text{flex:1 1 auto;min-height:0;overflow:auto;margin:4px 0;font-size:1rem;line-height:1.6;overscroll-behavior:contain}
 .duel-compact>.duel-review-nav{flex:0 0 auto;max-height:110px;overflow:auto;margin:0;padding-top:6px}
}
@media(max-width:260px),(max-height:360px){.duel-game.duel-compact{height:auto;max-height:none}.duel-compact>.duel-message{flex:0 0 auto;min-height:120px;max-height:320px}.duel-compact>.duel-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.duel-game *{scroll-behavior:auto;animation:none!important;transition:none!important}}
