/* Main play screen only. The title and game rules are unchanged. */
body[data-game-screen="play"]{min-height:100svh;background:linear-gradient(#fff9fa,#f6eee2);color:#553e47}
.play-header{display:flex;align-items:center;gap:12px;padding:5px 12px;max-width:1440px;margin:auto;background:#fffaf9;border-bottom:1px solid #efdee3;min-height:60px}.header-brand{padding:0;border:0;background:none;width:100px;flex-shrink:0}.header-brand img{display:block;width:100%;height:46px;object-fit:contain}.session-clock{display:flex;align-items:center;gap:12px;margin-right:auto}.session-clock>strong{font-size:30px;color:#b33765;font-weight:400;white-space:nowrap}.session-clock>strong small{font-size:17px}.session-clock p{font-size:12px;line-height:1.5;margin:0;white-space:nowrap}.session-clock #clock-time{color:#c35075}.session-actions,.session-funds{display:flex;flex-direction:column;white-space:nowrap;padding:0 10px}.session-actions{border-right:1px solid #ead8df}.session-actions span,.session-funds span{font-size:11px}.session-actions b,.session-funds b{font-size:17px;font-weight:400;line-height:1.6;font-variant-numeric:tabular-nums}.session-funds small{font-size:12px}.header-meet,.attack-button{background:#b97991;color:white;border:1px solid #a66880;border-radius:4px;box-shadow:inset 0 0 0 1px #d09caf;padding:8px 14px;white-space:nowrap;font-size:14px;min-height:40px}.header-meet.emphasis{box-shadow:0 0 0 2px #e8b3c6}.header-meet:disabled,.attack-button:disabled{opacity:.58}.session-menu{width:40px;height:44px;padding:0;border:0;background:transparent;color:#55464d;font-size:25px}
.compact-main.show-layout{max-width:1440px;margin:0 auto!important;padding:10px 12px 60px!important;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:22px;align-items:start}.compact-stage.romance-stage{position:sticky;top:12px;display:block;height:510px;min-height:0;margin:0;padding:0;border:0;border-radius:7px;overflow:hidden;background:var(--scene) center/cover;isolation:isolate}.compact-stage:before{content:"";position:absolute;inset:0;background:#fff2e722;z-index:-1}.compact-stage:after{display:none}.main-cast{position:absolute;top:0;width:61%;height:100%;overflow:hidden;pointer-events:none}.self-visual{left:5%}.male-visual{right:0}.cast-amp{position:absolute;top:36%;left:47%;font:48px/1 Georgia,serif;color:#fff;text-shadow:0 1px 8px #9c735d22}.self-profile-link{position:absolute;left:8px;top:6px;background:#fff8edc9;border:0;border-radius:2px;padding:3px;font-size:13px;min-height:30px;text-decoration:none;text-underline-offset:2px}.self-brief,.male-brief{position:absolute;top:32%;font-family:var(--serif);line-height:1.5;text-shadow:0 1px 3px #fff}.self-brief{left:10px;max-width:27%}.self-brief strong,.male-brief strong{display:block;font-size:25px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}.you-label,.new-invitation{font:12px/1.7 var(--sans);letter-spacing:.05em;color:#b945b8}.self-brief p,.male-brief p{font-size:14px;line-height:1.65;margin:8px 0 0}.male-brief{right:10px;top:35%;text-align:right;max-width:28%}.balance-link{font:inherit;padding:0;background:#fff5e9a1;border:0;text-decoration:underline;color:inherit;line-height:1.5}.partner-tools{position:absolute;top:5px;right:5px;display:flex;gap:4px;align-items:center;max-width:65%;overflow-x:auto;padding-bottom:2px}.partner-profile-link{font-size:12px;background:#fff7f0;border:1px solid #d9b6c4;border-radius:5px;min-height:34px;padding:5px 8px;white-space:nowrap}.contact-circle{display:block;flex:0 0 34px;width:34px;height:34px;min-height:0;padding:0;border:1px solid #bf9aa8;border-radius:50%;overflow:hidden;background:#e1d9ce}.compact-meters{position:absolute;bottom:3px;right:3px;width:49%;padding:5px 6px;background:#fff9f5ed;border-radius:2px}.compact-meters .meters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;background:none}.compact-meters .meter-cell{min-width:0;position:relative}.compact-meters .meter-row{display:flex;justify-content:space-between;gap:3px;white-space:nowrap;font-size:12px;line-height:1.6}.compact-meters .meter{height:5px;margin-top:2px;border-radius:0;background:#ecd9e1}.compact-meters .meter i{height:100%;display:block}.empty-portrait{padding-top:30%;text-align:center;font-size:64px;color:#a58993}.empty-meters{font-size:12px;text-align:center}.profile-skills{font-size:14px;line-height:2}
.compact-main .timeline{min-width:0;margin:0;padding:0;max-width:none}.compact-main .feed-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px 8px;margin:0}.compact-main .feed-header .eyebrow{color:#b35e7d;font-size:12px;letter-spacing:.2em}.attack-button{font-size:13px;min-height:36px;padding:6px 10px}.compact-main .post{border:1px solid #eed6e0;border-radius:13px;background:#fffdfd;margin:0 0 14px;padding:18px 16px;box-shadow:none}.compact-main .post>p{font-size:14px;line-height:1.9;margin:18px 0 0}.compact-main #question{padding:22px 16px 16px}.compact-main #question>.eyebrow{font-size:10px;letter-spacing:.25em;color:#b25c7d}.compact-main .choices{display:grid;gap:4px;margin-top:22px}.compact-main .choice{display:block;width:100%;text-align:left;background:#fcf5f8;border:1px solid #edd3df;border-radius:10px;padding:12px 8px;min-height:48px;color:#533d47;font-size:13px;line-height:1.6;box-shadow:none}.compact-main .choice:hover:not(:disabled){background:#f7e8f0}.compact-main .post-head{gap:10px}.compact-main .post-name{font-size:14px}.compact-main .date{font-size:11px;color:#a58091}.compact-main .avatar{width:38px;height:38px;min-width:38px}.compact-main .message-question .post-head small{font-size:12px}.compact-main .meter-change{right:0;top:-24px;font-size:calc(17px - 2pt)}.compact-main .goal-editor textarea{width:100%}
body[data-game-screen="play"] #bgm-controls{position:fixed;display:flex;right:8px;bottom:10px;left:auto;max-width:calc(100vw - 16px);transform:scale(.9);transform-origin:right bottom;z-index:50;background:#fff9f4eb}
@media(max-width:800px){.play-header{padding:3px;gap:5px;min-height:58px}.header-brand{width:clamp(45px,16vw,78px)}.header-brand img{height:42px}.session-clock{gap:6px;margin-right:auto}.session-clock>strong{font-size:25px}.session-clock>strong small{font-size:13px}.session-clock p{font-size:10px;line-height:1.45}.session-actions,.session-funds{padding:0 3px}.session-actions span,.session-funds span{font-size:10px}.session-actions b,.session-funds b{font-size:13px;line-height:1.5}.session-funds small{font-size:10px}.header-meet{font-size:12px;min-height:36px;padding:7px 10px}.session-menu{width:28px;min-width:28px;height:40px;font-size:23px}.compact-main.show-layout{display:block;margin:0 3px!important;width:auto!important;padding:0 0 56px!important}.compact-stage.romance-stage{position:relative;top:auto;height:clamp(190px,43vw,225px);border-radius:5px}.main-cast{width:59%;height:100%}.self-visual{left:4%}.male-visual{right:-1%}.cast-amp{font-size:39px;top:37%;left:46%}.self-profile-link{left:4px;top:2px;padding:2px;font-size:10px;min-height:28px}.self-brief{left:6px;top:28%;max-width:25%}.self-brief strong,.male-brief strong{font-size:22px;line-height:1.35}.self-brief p,.male-brief p{font-size:12px;line-height:1.5;margin:7px 0 0}.you-label,.new-invitation{font-size:10px}.male-brief{right:6px;top:32%;max-width:27%}.partner-tools{top:3px;right:3px;gap:3px}.partner-profile-link{font-size:10px;min-height:32px;padding:5px 6px}.contact-circle{width:32px;height:32px;flex-basis:32px}.compact-meters{padding:3px 5px;bottom:2px;right:2px;width:49%}.compact-meters .meters{gap:7px}.compact-meters .meter-row{font-size:10px;gap:1px}.compact-meters .meter{height:4px;margin-top:2px}.compact-main .feed-header{padding:4px 0 7px 12px}.compact-main .feed-header .eyebrow{font-size:11px}.attack-button{font-size:11px;min-height:30px;padding:5px 10px}.compact-main .post{padding:16px;margin:0 5px 14px}.compact-main #question{padding:21px 16px 16px}.compact-main .post>p{font-size:13px;line-height:1.9;margin-top:18px}.compact-main .choices{margin-top:22px;gap:4px}.compact-main .choice{font-size:12px;min-height:47px;padding:12px 7px}.compact-main .post-name{font-size:13px}.compact-main .date{font-size:10px}}
@media(max-width:359px){.play-header{gap:3px}.header-brand{width:43px}.session-clock{gap:3px}.session-clock>strong{font-size:22px}.session-actions,.session-funds{padding:0 2px}.session-actions span,.session-funds span{font-size:9px}.header-meet{padding:6px 7px;min-width:40px}.session-menu{min-width:23px;width:23px}.self-brief strong,.male-brief strong{font-size:19px}.self-brief p,.male-brief p{font-size:11px}.compact-meters{width:51%}.compact-meters .meter-row{font-size:9px}.compact-stage.romance-stage{height:190px}.partner-tools{max-width:61%}}
.compact-stage.romance-stage{background:linear-gradient(#fff6e657,#fff6e657),var(--scene) center/cover}
@media(max-width:800px){.male-visual{width:51%;right:9%}.self-brief,.male-brief{text-shadow:0 1px 4px #fff,0 0 8px #fff8}}
@media(max-width:359px){.session-actions span,.session-funds span{font-size:10px}.compact-meters .meter-row{font-size:10px}}
/* Normalize artwork by head landmarks, not source canvas width. */
.compact-stage.romance-stage{--cast-height:510px;height:var(--cast-height);container-type:inline-size}
.compact-stage .main-cast{top:0;width:62%;height:100%;overflow:visible}
.compact-stage .self-visual{left:0;right:auto}.compact-stage .male-visual{right:0;left:auto}
.compact-stage .self-brief,.compact-stage .male-brief{color:#34242b;text-shadow:0 0 2px #fff,0 0 5px #fff,0 1px 10px #fff8f0,0 0 14px #fff8f0}
.compact-stage .self-brief:before,.compact-stage .male-brief:before{content:"";position:absolute;inset:-7px -5px;z-index:-1;border-radius:12px;background:#fff7eab8;filter:blur(7px)}
.compact-stage .self-brief,.compact-stage .male-brief{isolation:isolate}.compact-stage .you-label,.compact-stage .new-invitation{color:#9a228a;text-shadow:0 0 4px #fff}
.compact-stage .balance-link{color:#34242b;background:#fff7eab8}.compact-stage .self-profile-link,.compact-stage .partner-profile-link{color:#38282f;background:#fffaf2f0}
body[data-game-screen="play"] :is(.contact-circle,.avatar,.encounter-face){position:relative;overflow:hidden}
@media(min-width:801px){.compact-stage.romance-stage{--cast-height:clamp(370px,36vw,510px)}.header-meet{flex:0 0 auto;max-width:120px}}
@media(max-width:800px){.compact-stage.romance-stage{--cast-height:clamp(190px,43vw,225px)}}
@media(max-width:800px){.compact-stage .self-brief{top:23%}.compact-stage .self-brief p{margin-top:5px}}

/* Choice cards are a full-width single column; conversation grid is scoped separately. */
.compact-main #question,.compact-main .line-question{display:block;min-width:0;max-width:100%}.compact-main #question>p,.compact-main .line-question>p{grid-column:auto;overflow-wrap:anywhere}.compact-main .choices:not(.life-cards){grid-template-columns:minmax(0,1fr);min-width:0;width:100%}.compact-main .choice{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Single profile needs no horizontal scrolling container. */
.male-profile-cards.single{display:block!important;width:100%;max-width:100%;overflow:visible}.male-profile-cards.single .male-profile-card{width:100%;max-width:100%;min-width:0;flex:none}.male-profile-cards.single dd{overflow-wrap:anywhere}
@media(max-width:494px){.male-brief{max-width:34%}.male-brief strong{font-size:clamp(16px,4.4vw,22px)}}

/* Keep relationship status and name in one flow on small screens. */
.male-brief .relationship-badge{position:absolute;right:0;bottom:calc(100% + 6px);z-index:4;display:block;width:max-content;max-width:100%;background:#fff5f8;color:#8c435e;border-radius:10px;padding:2px 7px;font:11px/1.4 sans-serif;text-shadow:none;white-space:nowrap}
@media(max-width:800px){.compact-stage .partner-tools{top:3px;right:3px;gap:2px;padding-bottom:0}.compact-stage .partner-profile-link{font-size:10px;padding:3px 5px;min-height:30px}.compact-stage .male-brief{top:39px;right:6px;max-width:34%;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.compact-stage .male-brief .relationship-badge{position:static;margin:0;padding:1px 6px;font-size:10px;line-height:1.3;flex:none}.compact-stage .male-brief strong{font-size:clamp(16px,4.3vw,20px);line-height:1.2}.compact-stage .male-brief p{margin:2px 0 0;font-size:11px;line-height:1.45}.compact-stage .male-brief .new-invitation{font-size:9px;line-height:1.3}}
