.hero h1{font-size:clamp(43px,4.1vw,60px);letter-spacing:0}
.story-card .story-card-art{isolation:isolate;position:relative;background:#cddbc4}
.story-card .chapter-art img.story-bg{object-position:center}
.story-card .chapter-art img.story-portrait{position:absolute;bottom:-8%;left:44%;width:38%;height:103%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 3px #2c38284d);transform:rotate(3deg)}
.story-card .chapter-art img.story-actor-1{left:36%;height:90%;transform:rotate(-7deg)}
.story-card .chapter-art img.story-actor-2{left:43%;height:94%}
.story-card .chapter-art img.story-actor-3{left:40%;height:94%}
.story-card .chapter-number{z-index:1;font:750 12px/1.2 var(--font);letter-spacing:.05em}
.story-status{font-size:13px;color:#627360}
.practice-shelf{margin-top:17px;background:#fffef9;border:1px solid #dfdfd3;border-radius:17px}
.practice-shelf summary{display:flex;align-items:center;list-style:none;cursor:pointer}
.practice-shelf summary::-webkit-details-marker{display:none}
.practice-shelf summary{min-height:59px;padding:10px 19px;gap:12px}
.practice-shelf summary strong{font-size:16px;color:#31553b}.practice-shelf summary small{margin-left:13px;color:#697d6a;font-size:13px}
.practice-icon{display:grid;place-items:center;color:#607f54;width:32px;height:32px}
.practice-toggle{margin-left:auto;font-size:18px}
.practice-shelf[open] .practice-toggle{transform:rotate(45deg)}
.practice-shelf .chapter-grid{margin:0 16px 17px}
.sq-dialog{width:min(660px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 38px);max-height:calc(100dvh - 38px);margin:auto;padding:0;overflow:auto;border:1px solid #ced8c3;border-radius:26px;background:#fcfbf4;color:#204534;box-shadow:0 24px 90px #102e2b52;overscroll-behavior:contain;font-family:var(--font)}
.sq-dialog::backdrop{background:#142f2d9c;backdrop-filter:blur(5px)}
.sq-frame{padding:19px 22px 13px;overflow:hidden;min-width:0}
.sq-header{display:flex;align-items:center;gap:11px}
.sq-seal{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;border:1px solid #d4dfc4;background:#ebf0df;color:#49724e}
.sq-header h2{font-size:22px;font-weight:800;line-height:1.3;margin:2px 0 0}.sq-kicker{font:700 12px/1.25 var(--latin);letter-spacing:.04em;color:#6d7e69}.sq-kicker b{margin:0 3px}
.sq-close{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d6decd;margin-left:auto;border-radius:50%;background:#f8f9f1;color:#4b644e}
.sq-route-line{display:flex;gap:5px;margin:16px 0 13px}.sq-route-line i{border-radius:4px;flex:1;height:5px;background:#e4e7d9}.sq-route-line .here{background:#e7b956}.sq-route-line .past{background:#71965d}
.sq-stage{width:100%;border-radius:19px;border:1px solid #193e2e24}
.sq-brief{margin:16px 1px 11px}
.sq-brief h2{font-size:23px;line-height:1.35;font-weight:800;color:#244a35;letter-spacing:.015em}.sq-brief p{margin:6px 0 0;color:#596a5b;line-height:1.6;font-size:16px}
.sq-brief h2:focus,#sq-title:focus{outline:none}
.sq-controls{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin:12px 0 5px}
.sq-primary,.sq-secondary,.sq-choice{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;min-height:45px;padding:8px 17px;font-size:16px;font-weight:720}
.sq-primary{color:#fffef4;background:#23563e;border:1px solid #1a4833;box-shadow:0 2px 0 #173e2e}.sq-primary:hover{background:#184b33}
.sq-secondary,.sq-choice{border:1px solid #c5d2bc;color:#3c6445;background:#f7f8ee}
.sq-options{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.sq-note{background:#f0f3e5;border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.5;font-weight:600;color:#46613f;margin:10px 0 0}
.sq-preview,.sq-end-stage{position:relative;width:100%;height:clamp(220px,32vw,320px);border-radius:19px;background-position:center;background-size:cover;overflow:hidden}
.sq-preview img{position:absolute;left:50%;bottom:4%;height:78%;transform:translateX(-50%);filter:drop-shadow(0 4px 3px #182a3a40)}
.sq-end-stage{background-image:url('assets/story/meadow.webp');height:clamp(230px,34vw,340px);isolation:isolate}
.sq-end-stage img{position:absolute;bottom:4%;height:63%;width:34%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 2px #3b4b3b4a);animation:sq-reunion .65s ease-out both}
.sq-end-blue{right:47%;transform:rotate(4deg)}.sq-end-friend{left:47%;transform:rotate(-4deg)}
.sq-end-text{position:absolute;top:7%;width:100%;text-align:center;font:italic 700 clamp(33px,6vw,56px)/1.1 Georgia,serif;color:#245539;text-shadow:0 1px 7px #ffffee,1px 2px #fff5c4}
@keyframes sq-reunion{from{opacity:.25;translate:0 18px}to{opacity:1;translate:0 0}}
@media(max-width:650px){.hero h1{font-size:clamp(31px,8.2vw,47px)}.sq-frame{padding:16px 14px 8px}.sq-route-line{margin:14px 0 12px}.sq-header h2{font-size:21px}.sq-brief h2{font-size:21px}.sq-brief p{font-size:15px}.practice-shelf summary{padding-inline:12px}.practice-shelf summary small{font-size:12px;margin-left:9px}.practice-shelf .chapter-grid{margin:0 10px 13px}.sq-end-controls{justify-content:space-between}.sq-controls>.sq-primary:only-child{width:100%}}
@media(max-width:560px){.sq-dialog{width:100%;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.sq-stage{border-radius:16px}}
.avatar{background:radial-gradient(circle at 50% 35%,#f0f7d9,#c8dfbd)}
.avatar img{object-fit:contain;transform:scale(1.75);transform-origin:50% 17%}
.partner-art{object-fit:contain;padding:11px;background:radial-gradient(ellipse at 50% 75%,#f5f5d4,#d2e8c6)}
.sq-achievement{margin:24px 0}.sq-stamp-title{display:flex;align-items:center;gap:12px;margin-bottom:12px}.sq-stamp-title h2{margin:0;font-size:22px}.sq-stamp-title>span{font:750 14px var(--latin);color:#637a60}
.sq-stamps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sq-stamps button{display:grid;grid-template-columns:59px 1fr;grid-template-rows:auto auto;align-items:end;column-gap:12px;padding:12px;text-align:left;color:#35533d;background:#fffef8;border:1px solid #d7dfce;border-radius:14px}
.sq-stamps button small{align-self:start;font-size:12px;color:#64765e}
.sq-stamp-art{position:relative;grid-row:span 2}.sq-stamp-art img{display:block;width:56px;height:54px;object-fit:cover;opacity:.58;border-radius:12px}.sq-stamp-art.earned img{opacity:1}.sq-stamp-art svg{position:absolute;bottom:-1px;right:-1px;border-radius:50%;color:#456040;background:#f0f4df;box-shadow:0 0 0 2px #fffdf5}
@media(max-width:830px){.sq-stamps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.sq-stamps{gap:8px}.sq-stamps button{padding:8px;column-gap:7px;grid-template-columns:39px 1fr}.sq-stamp-art img{width:37px;height:41px}.sq-stamps strong{font-size:14px}}
@media (max-width:560px) and (orientation:portrait) and (min-height:700px){
  .sq-scene .sq-stage{min-height:clamp(286px,40dvh,389px)}
}
@media(max-width:355px){
  .top-inner{gap:6px}
  .brand{gap:6px}.brand span{font-size:24px}
  .player{gap:6px}.star-bank{padding-inline:7px}
}
.fair-ticket{width:100%;isolation:isolate;position:relative;display:flex;align-items:center;gap:16px;margin-top:16px;min-height:75px;padding:8px 22px;border:1px solid #e5cd8c;border-radius:18px;background:linear-gradient(108deg,#fff0bd,#fff6da 53%,#f8e7c3);color:#66491f;text-align:left;box-shadow:0 2px 0 #e9dfc2}
.fair-ticket:hover{border-color:#c7a653;background:#fff0bf}.fair-title{display:grid;gap:3px;white-space:normal}.fair-title strong{font-size:20px;line-height:1.3}.fair-title small{font-size:13px;color:#705c30;line-height:1.4}
.fair-spark{font-size:32px;color:#ae7f22;text-shadow:1px 1px #fff9d9}.fair-gifts{display:flex;align-items:center;gap:14px;margin-left:auto}
.fair-gifts img{width:53px;height:55px;display:block;object-fit:contain;filter:drop-shadow(0 2px 1px #7a55142b)}.fair-go{display:flex;align-items:center;gap:6px;min-height:34px;padding:5px 13px;border-radius:20px;border:1px solid #d6b66c;background:#fff9e5;font-size:14px}
.sq-kit{display:flex;align-items:center;gap:8px;margin:0 0 10px;flex-wrap:wrap}.sq-kit button{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:6px 11px;border:1px solid #d7ddcd;background:#f1f4e8;border-radius:13px;color:#436145;font-weight:680;font-size:13px}
.sq-kit button:first-child{background:#fff4ce;color:#755321;border-color:#e6d399}.sq-kit .sq-buff-state{font-size:12px;color:#785380;margin-left:auto}.sq-buff-state:empty{display:none}
.rescue-album{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:12px 0 18px;list-style:none}
.rescue-album li{overflow:hidden;border:1px solid #d6dece;border-radius:14px;background:#fffdf6;text-align:center;padding-bottom:9px}.rescue-album li strong,.rescue-album li small{display:block}.rescue-album li strong{font-size:15px;margin-top:7px}.rescue-album li small{font-size:12px;color:#68786b;margin-top:2px}
.rescue-photo{position:relative;display:block;width:100%;height:clamp(66px,10vw,108px);background-size:cover;background-position:center;filter:grayscale(.86);opacity:.72}.is-rescued .rescue-photo{filter:none;opacity:1}.rescue-photo img{position:absolute;bottom:1px;left:22%;width:56%;height:90%;object-fit:contain;filter:brightness(.28)}.is-rescued .rescue-photo img{filter:none}
.sq-end-stage img.sq-end-blue{left:12%;right:auto;width:27%;height:63%}.sq-end-stage img.sq-end-friend{left:40%;width:24%;height:60%}.sq-end-stage img.sq-end-firefly{left:4%;bottom:45%;width:18%;height:30%}.sq-end-stage img.sq-end-cat{left:67%;width:26%;height:50%}
@media(min-width:821px){.chapter-grid.rescue-route{grid-template-columns:repeat(3,minmax(0,1fr))}.rescue-route .chapter-art{aspect-ratio:2.65}.sq-stamps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.fair-ticket{padding:8px 11px;gap:7px;min-height:63px;border-radius:15px;margin-top:12px}.fair-title strong{font-size:17px}.fair-title small{font-size:12px;max-width:17em}.fair-gifts{gap:3px}.fair-gifts img{width:34px;height:41px}.fair-go,.fair-spark{display:none}.sq-kit button{min-height:44px;padding-inline:9px}.sq-kit{gap:6px}.sq-kit .sq-buff-state{margin-left:0}}
