/* Unified play UI only. TOP, gacha, profile dialogs and fullscreen stills retain their styles. */
#game-scrollport:has(.v30-unified){overflow:hidden;scrollbar-gutter:auto}
.v30-ui.v30-unified{--notebook-height:100dvh;--notebook-button-height:clamp(64px,10dvh,96px);display:block;position:relative;height:var(--notebook-height);min-height:0;padding:0;overflow:hidden;background:#e9ddfa;color:#333}
.v30-unified,.v30-unified *{box-sizing:border-box}
.v30-ui.v30-unified>.v30-header{position:absolute;inset:0 auto auto 0;z-index:10;margin:0;height:75px;min-height:75px;max-height:75px;border-radius:0 0 22px 0;padding-block:7px;transform:none;container-type:normal}
.v30-unified .v30-header__title img{flex:none;object-fit:contain}
.v30-unified .v30-home{display:block;height:100%;min-height:0;width:100%;max-width:none;margin:0;padding:0}
.v30-unified .v30-home__layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,6fr) minmax(0,4fr);gap:0;align-items:stretch}
.v30-unified .v30-hero{position:relative;grid-row:1;min-height:0;height:100%;padding-top:15px;border-radius:0;box-shadow:none;overflow:visible;background:#e9ddfa}
.v30-unified .v30-home .v30-home__visual{height:calc(100% - var(--notebook-button-height));max-height:none;min-height:0;margin:0;border-radius:0}
.v30-unified .v30-home .v30-home__visual::after{height:38px}
.v30-unified .v30-home .v30-self-about,.v30-unified .v30-home .v30-partners{top:auto!important;bottom:20px!important}
.v30-unified .v30-home__actions{height:var(--notebook-button-height);min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;margin:0;padding:0 14px 8px}
.v30-unified .v30-home__actions .v30-action{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;margin:0;padding:clamp(8px,calc((var(--notebook-button-height) - 26px)/2),25px) clamp(8px,2vw,20px);gap:5px;scale:1;border-radius:18px;line-height:1.4}
.v30-unified .v30-home__actions .v30-action>b{font-size:clamp(13px,3.6vw,18px);line-height:1.4}
.v30-unified .v30-home__actions .v30-action>.v30-icon{width:18px;height:18px;transform:none}
.v30-unified .v30-action>span{display:none}
.v30-unified .notebook-slot{min-height:0}
.v30-unified .notebook-unified{grid-row:2;min-width:0;min-height:0;width:calc(100% - 20px);height:100%;margin:0 10px;display:flex;flex-direction:column;position:relative;z-index:5;border-radius:17px 17px 0 0;box-shadow:none;overflow:hidden;background:#fff;padding:0;color:#333;font-family:var(--v30-font)}
.notebook-handle{flex:none;width:30px;height:3px;border-radius:3px;background:#bda3d7;margin:7px auto 0}
.notebook-unified>h2{flex:none;margin:0 16px;padding:10px 4px 9px;border-bottom:1px solid #dcd4e7;color:#7842ca;font-size:17px;line-height:1.5;font-family:var(--v30-font);font-weight:700;background:none;border-radius:0;min-height:0}
.notebook-entries{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none;scrollbar-color:#c9b5e6 transparent;scrollbar-width:thin;outline-offset:-3px}
.notebook-post{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:20px;border-bottom:1px solid #e6e1ed;position:relative;background:#fff;color:#333;box-shadow:none;border-radius:0}
.notebook-post:last-child{border-bottom:0}
.notebook-person{position:relative;text-align:center;min-width:0;align-self:start;line-height:1.4;color:#7842ca}
.notebook-person>.notebook-avatar.avatar{display:block;position:relative;width:36px;height:36px;min-height:36px;padding:0;margin:0 auto 4px;border:0;border-radius:50%;background:#eee5fb;box-shadow:none;overflow:hidden}
.notebook-person small{display:block;font-size:10px;color:#7842ca;overflow-wrap:anywhere}
.notebook-person .v30-unread{top:-2px;right:-2px}
.notebook-system{display:block;width:22px;height:3px;margin:14px auto 12px;background:#c8b5e0;border-radius:2px}
.notebook-post-body{min-width:0;font-size:15px;line-height:1.75}
.notebook-post-body>time{float:right;margin:-4px 0 4px 8px;color:#8b8296;font-size:11px;line-height:1.5}
.notebook-copy{overflow-wrap:anywhere;min-height:0;white-space:normal;color:#333}
.notebook-copy:empty{display:none}
.notebook-points{display:inline-block;margin-left:.5em;font-size:12px;line-height:1.75;white-space:nowrap;overflow-wrap:normal;color:#8052b8}
.notebook-points.notebook-skill-points{margin-left:0;color:#b2477d}
.notebook-options{clear:both;margin-top:10px;display:flex;flex-direction:column;gap:8px}
.notebook-options:empty{display:none}
.notebook-options .choices,.notebook-options .goal-buttons{display:flex;flex-direction:column;gap:8px;padding:0;margin:0;border:0;background:none;box-shadow:none}
.notebook-options .notebook-choice,.notebook-options>button{display:block;width:100%;min-height:40px;margin:0;padding:9px 12px;border:1px solid #d2b7f0;border-radius:7px;background:#fcfaff;color:#333;font:400 14px/1.6 var(--v30-font);text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.notebook-options .notebook-choice:hover:not(:disabled){background:#f1e7fc}
.notebook-options .notebook-choice:active:not(:disabled){background:#e9daf9;transform:translateY(1px)}
.notebook-options .notebook-choice:disabled{opacity:.45;cursor:default}
.notebook-options .event-action-control{margin:0;padding:0}
.notebook-options :is(.event-action-note,.event-common-note,.help-text){font-size:11px;line-height:1.6;color:#83728e;margin:3px 0 7px}
.notebook-result{font-size:12px;color:#7842ca;margin:0 0 6px}
.notebook-options textarea{width:100%;max-width:100%;font:inherit;color:#333;background:#faf7ff;border:1px solid #d2b7f0;border-radius:7px;padding:10px}
.notebook-empty{font-size:14px;color:#83728e;padding:20px}
.notebook-backdrop{display:none}
.v30-unified.notebook-expanded .notebook-backdrop{display:block;position:fixed;inset:0;z-index:50;width:100%;height:100%;border:0;margin:0;padding:0;background:#4c3a6555;backdrop-filter:blur(6px);border-radius:0;box-shadow:none}
.v30-unified.notebook-expanded .notebook-unified{position:fixed;inset:50px 10px 10px;z-index:60;width:auto;height:auto;margin:0;border-radius:18px;box-shadow:0 8px 30px #40304e33}
.v30-unified.is-date>.v30-header{transform:translateY(-115%);pointer-events:none}
.v30-unified.is-date .v30-home__layout{grid-template-rows:minmax(0,1fr) minmax(0,2fr)}
.v30-unified.is-date .v30-hero{padding:0}
.v30-unified.is-date .notebook-unified{grid-column:1}
.v30-unified.is-date .v30-home__visual,.v30-unified.is-date .v30-home__actions{visibility:hidden;pointer-events:none}
.notebook-date-visual{position:absolute;inset:0;background-position:center;background-size:cover;isolation:isolate}
.notebook-date-visual>canvas{display:block;width:100%;height:100%}
.notebook-date-badge{position:absolute;left:10px;top:10px;padding:4px 10px;background:#7c4db7ed;color:#fff;font-size:12px;line-height:1.5;border-radius:999px}
.notebook-date-bottom{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:stretch;gap:7px;z-index:2}
.notebook-date-status{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:7px;flex:1;min-width:0;background:#fffffff5;padding:6px 8px;border-radius:7px;color:#333}
.notebook-date-status>button{font:700 14px/1.4 var(--v30-font);background:none;padding:0;border:0;margin:0;min-height:0;text-align:left;box-shadow:none;white-space:nowrap;color:#333}
.notebook-meter{position:relative;min-width:0}
.notebook-meter>span{display:block;font-size:10px;line-height:1.5;color:#cc4e94;white-space:nowrap}
.notebook-meter[data-stat="trust"]>span{color:#7842ca}
.notebook-meter .meter{height:5px;margin-top:3px;background:#e9deef;border-radius:999px;overflow:hidden}
.notebook-meter .meter i{display:block;height:100%;background:#da65aa;border-radius:inherit}
.notebook-meter .meter.trust i{background:#a575dc}
.notebook-balance{flex:0 0 auto;max-width:28%;min-height:0;margin:0;padding:5px 7px;font:11px/1.5 var(--v30-font);color:#7842ca;text-decoration:underline;text-underline-offset:3px;border:0;border-radius:7px;background:#fffffff5;box-shadow:none}
.is-returning .notebook-date-visual{pointer-events:none;opacity:0;transition:opacity .65s}
.v30-chat-view-button{position:relative}
.v30-unified~.tutorial-bubble[data-notebook-above="true"]::before{top:auto;bottom:-11px;border-bottom:0;border-top:10px solid var(--popup-accent)}
@media(max-width:360px){.v30-unified .v30-home__actions{gap:7px;padding-inline:10px}.v30-unified .v30-home__actions .v30-action{padding-inline:6px;gap:3px}.v30-unified .v30-home__actions .v30-icon{width:14px;height:14px}.notebook-date-status{gap:5px;padding:5px}.notebook-date-status>button{font-size:12px}.notebook-meter>span{font-size:9px}.notebook-balance{font-size:10px;max-width:28%;padding:4px}.notebook-post{padding:20px;gap:10px;grid-template-columns:34px minmax(0,1fr)}.notebook-person>.notebook-avatar.avatar{width:32px;height:32px;min-height:32px}}
@media(min-width:1001px){
 .v30-ui.v30-unified:not(.is-date){--notebook-button-height:80px}
 .v30-unified:not(.is-date) .v30-home{width:min(calc(100% - 48px),1392px);height:calc(var(--notebook-height) - 60px);margin:30px auto 0}
 .v30-unified:not(.is-date) .v30-home__layout{grid-template-columns:minmax(0,6fr) minmax(0,4fr);grid-template-rows:minmax(0,1fr);gap:24px}
 .v30-unified:not(.is-date) .v30-hero{grid-column:1;grid-row:1;padding:0}
 .v30-unified:not(.is-date) .v30-home .v30-home__visual{height:calc(100% - 80px)}
 .v30-unified:not(.is-date) .v30-home .v30-self-about,.v30-unified:not(.is-date) .v30-home .v30-partners{bottom:25px!important}
 .v30-unified:not(.is-date) .v30-home__actions{padding:0;gap:12px}
 .v30-unified:not(.is-date) .v30-home__actions .v30-action{height:80px;padding:25px 20px;gap:8px;font-size:19px}
 .v30-unified:not(.is-date) .v30-home__actions .v30-action>b{font-size:19px}
 .v30-unified:not(.is-date) .v30-home__actions .v30-action>.v30-icon{width:20px;height:20px}
 .v30-unified:not(.is-date) .notebook-unified{grid-column:2;grid-row:1;width:100%;margin:0;height:100%;border-radius:18px}
 .v30-unified:not(.is-date) .notebook-handle{display:none}
 .v30-unified:not(.is-date) .notebook-unified>h2{margin:0 20px;padding:16px 0 12px}
}
/* Event scenes use the same 1025px PC boundary as the canvas composition. */
@media(min-width:1025px){
 .v30-ui.v30-unified .v30-home__layout{grid-template-columns:minmax(0,1fr) 430px}
 .v30-ui.v30-unified .notebook-unified{width:430px}
 .v30-unified.is-date .v30-home{width:min(calc(100% - 48px),1392px);height:calc(var(--notebook-height) - 60px);margin:30px auto 0}
 .v30-unified.is-date .v30-home__layout{grid-template-rows:minmax(0,1fr);gap:24px;align-items:start}
 .v30-unified.is-date .v30-hero{grid-column:1;grid-row:1;height:auto;align-self:start;padding:0 0 46px;container-type:inline-size}
 .v30-unified.is-date .v30-home__visual,.v30-unified.is-date .v30-home__actions{display:none}
 .v30-unified.is-date .notebook-date-visual{position:relative;inset:auto}
 .v30-unified.is-returning .v30-hero{container-type:inline-size}
 .v30-unified.is-returning .notebook-date-visual{inset:0 0 auto}
 .v30-unified:is(.is-date,.is-returning) .notebook-date-visual{width:100%;height:auto;aspect-ratio:var(--notebook-event-ratio,1.4285714285714286)}
 .v30-unified.is-date .notebook-unified{grid-column:2;grid-row:1;width:100%;margin:0;height:100%;border-radius:18px}
 .v30-unified.is-date .notebook-handle{display:none}
 .v30-unified.is-date .notebook-unified>h2{margin:0 20px;padding:16px 0 12px}
 .v30-unified:is(.is-date,.is-returning) .notebook-date-bottom{bottom:-46px;left:0;right:0;gap:10px;height:36px}
 .v30-unified:is(.is-date,.is-returning) .notebook-date-status{padding:6px 10px;gap:10px}
 .v30-unified:is(.is-date,.is-returning) .notebook-date-status>button{font-size:16px}
 .v30-unified:is(.is-date,.is-returning) .notebook-meter>span{font-size:12px}
 .v30-unified:is(.is-date,.is-returning) .notebook-balance{max-width:28%;font-size:12px;padding:6px 10px}
 /* Preserve the notebook's viewport-based height, but let a wider event photo
    and its status strip extend the outer scroll range in a short PC window. */
 #game-scrollport:has(.v30-unified:is(.is-date,.is-returning)){overflow-x:hidden;overflow-y:auto}
 .v30-ui.v30-unified:is(.is-date,.is-returning){overflow:visible}
}
@media(min-width:1440px){.v30-ui.v30-unified{--notebook-height:min(100dvh,1000px)}}
@media(prefers-reduced-motion:reduce){.is-returning .notebook-date-visual{transition:none}}

/* Completed dates/trips share a single return control in the notebook title. */
.notebook-unified>h2:has(.notebook-title-home){display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:5px}
.notebook-unified>h2>.notebook-title-home{flex:none;width:auto;min-height:32px;margin:0;padding:3px 17px;border:1px solid #d2b7f0;border-radius:7px;background:#fcfaff;color:#333;font:400 14px/1.6 var(--v30-font);white-space:nowrap;box-shadow:none}
.notebook-unified>h2>.notebook-title-home:hover{background:#f1e7fc}
.notebook-unified>h2>.notebook-title-home:active{background:#e9daf9;transform:translateY(1px)}
@media(min-width:1025px){.v30-unified.is-date .notebook-unified>h2:has(.notebook-title-home){padding-top:11px}}
