/* Gameplay presentation: shared surfaces and controls; no game state. */
:root {
  --gameplay-surface: #15271f;
  --gameplay-surface-raised: #1b3026;
  --gameplay-line: rgba(185, 219, 200, .17);
  --gameplay-muted: #b7cbbf;
  --gameplay-radius: 18px;
}
#activitiesScreen { background: #0c1913; }
#activitiesScreen > .activities-header { padding: 14px 62px 12px 16px; }
#activitiesScreen .activities-header h1 { font: 700 26px/1.15 var(--font-display); text-transform: none; letter-spacing: -.7px; margin: 0; }
#activitiesScreen .activities-header h1[tabindex="-1"]:focus { outline: none; }
#activitiesScreen .activities-header .page-subtitle { display: block; font: 400 12px/1.4 var(--font-body); color: var(--gameplay-muted); margin-top: 4px; }
#activitiesScreen > .page-scroller { padding-top: 8px; padding-bottom: 24px; scroll-padding-block: 12px 24px; }
#activitiesScreen :is(.remote-experience,.barista-job,.reading-job) { min-width: 0; max-width: 100%; scroll-margin-top: 8px; }
#activitiesScreen :is(button,summary) { touch-action: manipulation; }
.remote-experience { margin: 8px 0 20px; color: var(--text); font-family: var(--font-body); }
.remote-experience[hidden],.remote-character[hidden] { display: none; }
.remote-experience :is(p,small,h2,h3,b), .remote-choices article { min-width: 0; overflow-wrap: anywhere; }
.remote-experience small { font: 600 10px/1.5 var(--font-body); color: #a4c4b0; letter-spacing: .04em; }
.remote-experience p { font: 400 13px/1.55 var(--font-body); color: var(--gameplay-muted); margin: 10px 0 16px; }
.remote-experience .remote-note { font-size: 11px; margin: 8px 0 12px; }
:is(.remote-experience,.barista-job,.reading-job,.gameplay-disclosure) button,.gameplay-map-link {
  box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 11px 14px; border: 1px solid var(--gameplay-line);
  border-radius: 11px; background: #ffffff06; color: var(--text); font: 600 13px/1.35 var(--font-body); cursor: pointer; text-align: left;
}
:is(.remote-experience,.barista-job,.reading-job,.gameplay-disclosure) button:focus-visible, .gameplay-disclosure summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
:is(.remote-experience,.barista-job,.reading-job) button:disabled { cursor: default; }
.remote-experience button .ui-icon,.gameplay-map-link .ui-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.remote-welcome { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 14px; border: 1px solid var(--gameplay-line); border-radius: var(--gameplay-radius); background: var(--gameplay-surface); }
.remote-player-copy { min-width: 0; }
.remote-welcome h2 { margin: 2px 0 6px; font: 700 20px/1.2 var(--font-display); letter-spacing: -.5px; }
.remote-player-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--gameplay-muted); }
.remote-player-stats b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.remote-welcome button { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; }
.remote-player-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; border-top: 1px solid var(--gameplay-line); }
.remote-test-badge { color: #a9beae; font: 500 10px/1.4 var(--font-body); }
.remote-figure { position: relative; display: block; flex: 0 0 70px; width: 70px; height: 116px; }
.remote-figure>img,.remote-figure>svg,.remote-figure>.player-avatar-initial { position: absolute; top: 0; left: 7px; width: 56px; height: 56px; z-index: 1; border-radius: 50%; background: #283d37; display: grid; place-items: center; }
.remote-figure i { position: absolute; top: 45px; left: 4px; width: 62px; height: 65px; background: linear-gradient(140deg,#65aa91,#284e42); border-radius: 27px 27px 13px 13px; border: 1px solid #9bddbd50; }
.remote-welcome .remote-figure { width: 52px; height: 52px; align-self: start; border: 1px solid #b4d8c743; border-radius: 50%; background: #274735; box-shadow: 0 0 0 5px #b4d8c708; }
.remote-welcome .remote-figure>img,.remote-welcome .remote-figure>svg,.remote-welcome .remote-figure>.player-avatar-initial { position: static; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: transparent; font-size: 26px; }
.remote-welcome .remote-figure i { display: none; }
.remote-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.remote-section-title h2,.remote-section-title h3 { margin: 0; font: 700 18px/1.25 var(--font-display); letter-spacing: -.25px; }
.remote-section-title>span { font: 400 11px/1.4 var(--font-body); color: var(--gameplay-muted); text-align: right; }
.remote-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(245px,100%),1fr)); gap: 12px; }
.remote-choices article { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 6px 12px; align-items: start; padding: 16px; border: 1px solid var(--gameplay-line); border-radius: var(--gameplay-radius); background: var(--gameplay-surface); }
.remote-choices article>.remote-choice-icon { grid-row: 1/3; margin: 0; }
.remote-choices article>small,.remote-choices article>h3 { grid-column: 2; }
.remote-choices article>p,.remote-choices article>button { grid-column: 1/-1; }
.remote-choice-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #d2ff5a0d; color: var(--lime); flex: 0 0 36px; margin-bottom: 12px; }
.remote-choice-icon .ui-icon { width: 21px; height: 21px; }
.remote-choices h3 { font: 700 20px/1.2 var(--font-display); margin: 0; letter-spacing: -.4px; }
.remote-choices p { margin: 4px 0 8px; }
.remote-choices button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; color: var(--lime); background: #d2ff5a0a; }
.remote-ongoing { margin-bottom: 18px; }
.remote-ongoing .remote-section-title { margin-top: 2px; }
.remote-ongoing .remote-live-label { color: var(--lime); }
.remote-ongoing-list { display: grid; gap: 8px; }
.remote-ongoing-list button { display: flex; align-items: center; gap: 12px; width: 100%; border-color: #d2ff5a4d; background: #21351d; }
.remote-ongoing-list .remote-choice-icon { margin: 0; }
.remote-ongoing-list button>span:nth-child(2) { min-width: 0; flex: 1; }
.remote-ongoing-list b,.remote-ongoing-list small { display: block; }
.remote-ongoing-list small { margin-top: 3px; }
.remote-objectives { display: grid; gap: 8px; }
.remote-objectives>button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: var(--gameplay-surface); }
.remote-objectives b,.remote-objectives small { display: block; }
.remote-objectives b { font-size: 13px; line-height: 1.4; }
.remote-objectives small { margin-top: 4px; color: var(--gameplay-muted); letter-spacing: 0; }
.remote-objectives>button>span { min-width: 0; }
.gameplay-disclosure { border: 1px solid var(--gameplay-line); border-radius: 14px; background: var(--gameplay-surface); margin: 14px 0; }
.gameplay-disclosure>summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 14px; min-height: 50px; cursor: pointer; font: 600 13px/1.4 var(--font-body); }
.gameplay-disclosure>summary::-webkit-details-marker { display: none; }
.gameplay-disclosure>summary>span:first-child { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.gameplay-disclosure summary .ui-icon { width: 18px; height: 18px; }
.gameplay-disclosure summary>.ui-icon,.gameplay-disclosure summary>[data-ui-icon] { flex: 0 0 18px; }
.gameplay-disclosure[open]>summary>.ui-icon,.gameplay-disclosure[open]>summary>[data-ui-icon] { transform: rotate(180deg); }
.disclosure-count { color: var(--gameplay-muted); font-size: 11px; }
.disclosure-content { padding: 0 12px 14px; }
.disclosure-content>button { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.gameplay-map-link { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; }
#activitiesEconomy .income-card { margin-top: 0; }
.remote-character{position:absolute;left:16px;bottom:170px;z-index:450;display:flex;align-items:center;gap:9px;border:1px solid #9cceba44;border-radius:15px;background:#14231eee;color:#def1e7;padding:10px;cursor:pointer;max-width:190px;text-align:left;box-shadow:0 5px 20px #0005}
.remote-character .remote-figure{flex-basis:36px;width:36px;height:56px}
.remote-character .remote-figure>img,.remote-character .remote-figure>svg,.remote-character .remote-figure>.player-avatar-initial{width:29px;height:29px;left:3px}
.remote-character .remote-figure i{top:23px;left:0;width:35px;height:30px;border-radius:17px 17px 7px 7px}
.remote-character b{display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;font:600 12px 'DM Sans',sans-serif}
.remote-character small{font:500 8px/1.8 'DM Mono',monospace;color:#aad5bf}

.remote-character>.ui-icon { width: 15px; height: 15px; }
.remote-character>span:nth-child(2) { min-width: 0; flex: 1; }
.barista-npc { margin: 18px 0 12px; padding: 14px; border: 1px solid var(--gameplay-line); border-radius: 13px; background: #ffffff03; }
.barista-npc>span { font: 600 10px/1.4 var(--font-body); color: var(--gameplay-muted); }
.barista-npc button { margin-top: 5px; }
.barista-route { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.barista-result { padding: 14px; margin: 14px 0; border: 1px solid #a8d5bd2e; border-radius: 12px; background: #ffffff04; }
.barista-result b,.barista-result small { display: block; }
.barista-result b { font-size: 13px; }
.barista-result small { color: var(--gameplay-muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
@media(max-width:360px) {
  #activitiesScreen > .activities-header { padding-left: 12px; padding-block: 12px 10px; }
  .remote-welcome { grid-template-columns: 54px minmax(0,1fr); padding: 14px; gap: 12px; }
  .remote-welcome .remote-figure { width: 54px; height: 54px; }
  .remote-welcome h2 { font-size: 20px; }
  .remote-choices article { padding: 15px; }
  .remote-section-title { align-items: baseline; gap: 8px; }
  .remote-section-title>span { font-size: 10px; }
  .remote-character { left: 10px; bottom: 165px; }
}
@media(prefers-reduced-motion:reduce) { #activitiesScreen * { scroll-behavior: auto !important; transition: none !important; } }
.app-shell:has(.bottom-sheet.visible) .remote-character { visibility: hidden; }

#activitiesScreen:has(.barista-job:not([hidden]),.reading-job:not([hidden])) .activities-header .page-subtitle { display: none; }
@media(min-width:900px) { #activitiesScreen { width: min(600px,calc(100vw - 32px)); } #activitiesScreen .activities-header h1 { font-size: 28px; } }
