html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#45382e}#activity-root{width:100%;height:100%}*{box-sizing:border-box}
.valentine-workspace{position:relative;width:100%;height:100%;min-height:0;min-width:0;display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:10px 14px;padding:12px 18px 4px;color:#174a7e;font-family:Fredoka,sans-serif}
.valentine-task-head{display:contents}.luvi-stage{position:relative;grid-column:1;grid-row:1/3;min-height:0;align-self:stretch;pointer-events:none}.luvi-actor{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);width:460px;height:460px;max-width:none;object-fit:contain;pointer-events:none}
.task-brief{grid-column:2;grid-row:1;align-self:start;justify-self:center;width:100%;max-width:780px;padding:12px 20px 14px;border-radius:36% 12% 25% 10% / 25% 45% 20% 40%;background:#fff8e6;box-shadow:0 6px 15px #68401720;text-align:center}.task-brief h2{font-size:clamp(22px,2.5vw,32px);line-height:1.06;margin:0 0 7px;font-weight:600;text-wrap:balance}.task-brief p{font-size:clamp(17px,1.8vw,23px);line-height:1.13;margin:0;text-wrap:balance}
.task-model{grid-column:2;grid-row:2;min-width:0;min-height:0;display:grid;align-content:center;justify-items:center}.task-feedback{grid-column:1/-1;grid-row:3;margin:0 auto;min-height:2.25em;max-width:850px;font-size:clamp(16px,1.7vw,21px);line-height:1.15;padding:6px 12px;background:#fff8e6;border-radius:12px;text-align:center}.task-feedback:empty{visibility:hidden}.task-feedback.is-success{background:#fff0b8}
.valentine-workspace button{font:inherit;color:inherit;cursor:pointer;touch-action:none}.valentine-workspace button:disabled{cursor:default;opacity:.55}.valentine-workspace button:focus-visible{outline:4px solid #174a7e;outline-offset:3px}.valentine-workspace .is-selected{outline:4px solid #174a7e;outline-offset:2px;background-color:#fff0b8}.play-prop{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.small-action{border:2px solid #ac7445;background:#fff8e6;padding:8px 13px;border-radius:14px;min-height:48px;box-shadow:0 3px 7px #64402018}.tutorial-hand{position:absolute;width:68px;height:86px;object-fit:contain;z-index:8;pointer-events:none;transition:left 700ms ease,top 700ms ease}.tutorial-hand[hidden]{display:none}
/* Cards and willow baskets sit on the cottage table, without enclosing cards. */
.post-table{width:100%;max-width:940px;display:grid;grid-template-rows:auto auto;gap:22px}.post-supply{display:flex;gap:12px;align-items:center;min-height:84px;padding:0 6px}.post-supply>span{font-size:20px;max-width:95px;line-height:1.05;background:#fff8e6;padding:7px 9px;border-radius:10px}.post-supply .envelope-group{flex:1}.envelope-group{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;min-height:58px}.envelope-card{width:76px;height:64px;padding:2px;border:0;background:transparent;border-radius:9px}.basket-row{display:grid;grid-template-columns:repeat(var(--groups),minmax(0,1fr));gap:18px;align-items:end}.post-basket{min-width:0;display:flex;flex-direction:column;align-items:stretch;position:relative}.post-basket>.envelope-group{position:relative;z-index:2;align-content:end;min-height:70px;padding:0 5px;gap:1px}.basket-target{position:relative;display:block;width:100%;height:180px;min-height:80px;border:0;background:transparent;padding:0;margin-top:-24px;border-radius:24px}.basket-art{position:absolute;inset:0;object-fit:contain}.basket-identity{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);white-space:nowrap;display:flex;gap:10px;align-items:center;font-size:18px;background:#fff8e6;padding:4px 10px;border-radius:12px;box-shadow:0 3px 8px #734a2525}.basket-identity strong{font-size:25px;font-weight:600}.post-basket .envelope-card{width:67px;height:58px}


/* The illustrated map is scenery. SVG retains exact graph topology and alignment. */
.route-station{width:min(100%,810px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:13px;align-items:center}.route-map{position:relative;width:100%;height:370px;background:#e9e3bf url('../assets/valentines/gameplay/garden.webp') center/cover no-repeat;border:5px solid #e3c48b;border-radius:28px;touch-action:none;box-shadow:0 9px 18px #5b3a302d}.route-lines{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.route-lines line{stroke:#b39a6d;stroke-width:3.5;stroke-linecap:round}.route-lines line.route-used{stroke:#a54270;stroke-width:4.5}.route-node{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;border-radius:50%;height:84px;width:84px;padding:2px}.route-node.has-mail,.route-node:first-of-type{width:96px;height:96px}.route-node.is-visited:after{content:'';position:absolute;bottom:1px;right:1px;width:17px;height:17px;background:#f2c141;border:3px solid #fff8e6;border-radius:50%}.route-node.is-current{outline:4px solid #174a7e;outline-offset:2px}.route-node .play-prop{filter:drop-shadow(0 3px 2px #5b472322)}.route-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 13px;background:#fff8e6;border-radius:15px;font-size:21px}.route-summary p{margin:0}.route-summary button{flex:none}
@media(max-width:1000px) and (min-width:701px){.valentine-workspace{grid-template-columns:160px minmax(0,1fr);gap:10px;padding:8px}.luvi-actor{width:370px;height:370px}.task-brief{padding:12px}.post-supply{gap:5px}.envelope-card{width:62px;height:58px}.post-basket .envelope-card{width:56px;height:54px}.basket-row{gap:7px}.basket-target{height:155px}.route-map{height:350px}}
@media(max-width:700px){.valentine-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:7px;padding:2px 4px}.valentine-task-head{display:grid;grid-column:1;grid-row:1;grid-template-columns:82px minmax(0,1fr);gap:3px;min-height:104px}.luvi-stage{grid-column:1;grid-row:1;height:104px}.luvi-actor{width:148px;height:148px;bottom:-7px}.task-brief{grid-column:2;grid-row:1;padding:10px 9px;border-radius:16px;align-self:center}.task-brief h2{font-size:21px;margin-bottom:6px}.task-brief p{font-size:17px}.task-model{grid-column:1;grid-row:2}.task-feedback{grid-column:1;grid-row:3;font-size:15px;min-height:2.3em;padding:5px 8px}.post-table{gap:10px}.post-supply{min-height:62px;padding:0;gap:3px;flex-wrap:wrap}.post-supply>span{font-size:15px;max-width:68px;padding:4px}.post-supply .envelope-group{min-height:48px;gap:0}.post-supply .small-action{padding:4px 7px;font-size:14px;min-height:44px}.envelope-card{width:48px;height:48px;padding:0}.basket-row{gap:4px}.post-basket>.envelope-group{min-height:48px;padding:0;gap:0}.post-basket .envelope-card{width:44px;height:44px;padding:0}.basket-target{height:117px;margin-top:-16px;border-radius:15px}.basket-identity{gap:4px;font-size:14px;padding:3px 6px;bottom:-3px}.basket-identity strong{font-size:21px}.route-station{gap:9px}.route-map{height:270px;border-width:3px;border-radius:20px}.route-node{width:60px;height:60px}.route-node.has-mail,.route-node:first-of-type{width:68px;height:68px}.route-node.is-visited:after{width:13px;height:13px;border-width:2px}.route-summary{gap:9px;padding:6px 9px;font-size:17px}.route-summary button{min-height:44px;padding:6px 10px}.tutorial-hand{width:56px;height:70px}}
@media(orientation:landscape) and (max-height:600px){.valentine-workspace{grid-template-columns:115px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:3px 8px;padding:0 8px}.valentine-task-head{display:contents}.luvi-stage{grid-column:1;grid-row:1/3;height:auto}.luvi-actor{width:260px;height:260px;bottom:-20px}.task-brief{grid-column:2;grid-row:1;padding:5px 12px;border-radius:14px;max-width:720px}.task-brief h2{font-size:19px;margin:0 0 2px}.task-brief p{font-size:16px}.task-model{grid-column:2;grid-row:2}.task-feedback{grid-column:1/-1;grid-row:3;font-size:14px;min-height:0;padding:3px 7px}.post-table{grid-template-columns:145px minmax(0,1fr);grid-template-rows:1fr;gap:8px}.post-supply{padding:0;gap:0;justify-content:center;align-content:center}.post-supply>span{font-size:14px;max-width:none;padding:2px 5px}.post-supply .envelope-group{flex-basis:100%;min-height:44px}.post-supply .small-action{font-size:13px;min-height:44px;padding:3px 5px}.envelope-card,.post-basket .envelope-card{width:44px;height:44px}.post-basket>.envelope-group{min-height:44px}.basket-row{gap:6px}.basket-target{height:95px;margin-top:-16px}.basket-identity{font-size:13px;padding:2px 5px;gap:4px;bottom:-2px}.basket-identity strong{font-size:18px}.route-station{grid-template-columns:minmax(0,1fr) 135px;grid-template-rows:1fr;gap:9px;max-width:760px}.route-map{height:170px;border-width:2px}.route-node{width:44px;height:44px}.route-node.has-mail,.route-node:first-of-type{width:50px;height:50px}.route-summary{display:block;font-size:16px;padding:7px}.route-summary p{margin-bottom:8px}.route-summary button{width:100%;font-size:15px;padding:4px;min-height:44px}.tutorial-hand{height:62px;width:49px}}
@media(prefers-reduced-motion:reduce){.tutorial-hand{transition:none}}


.valentine-workspace .luvi-actor{max-width:none;max-height:none;filter:none}.valentine-workspace .play-prop{max-width:100%;max-height:100%;filter:none}.task-brief{border:10px solid transparent;border-image:url('shared-shell/assets/images/board-tray.webp') 17% fill / 1 round;border-radius:0;background:transparent;padding:8px 12px 10px;box-shadow:0 5px 12px #68401720}@media(max-width:700px){.task-brief{border-width:8px;padding:7px 6px}}@media(orientation:landscape) and (max-height:600px){.task-brief{border-width:6px;padding:3px 8px}}

@media(min-width:701px) and (min-height:601px){.post-basket:not(.is-crowded) .envelope-card{width:86px;height:72px}}
@media(max-width:1000px) and (min-width:701px){.post-basket:not(.is-crowded) .envelope-card{width:60px;height:56px}}
@media(max-width:700px){.post-basket:not(.is-crowded) .envelope-card{width:48px;height:48px}}
@media(orientation:landscape) and (max-height:600px){.task-brief h2{display:none}.post-basket:not(.is-crowded) .envelope-card{width:44px;height:44px}}


