/* Tsuki Town Alpha 2.0.6 — Lantern Atelier. Scope strictly to the portal and admin pages. */
.town26{--town-rose:#f5c5df;--town-cream:#ffe8d1;--town-gold:#f8d6a2;--town-plum:#301c3d;color:#faeaf2;background:radial-gradient(circle at 92% 0,#774b6829,transparent 32%),linear-gradient(180deg,#170f21 0%,#160f20 100%);padding:21px 0 0;isolation:isolate;overflow:hidden}
.town26 *{box-sizing:border-box}
.town26 .town26-wrap{max-width:1240px}
.town26 .town26-eyebrow{font-size:10px;line-height:1.6;font-weight:800;letter-spacing:.2em;color:#ffc9dd;margin:0 0 11px}
.town26 em{color:#f5b8d2;font-weight:400}
.town26 .town26-gate{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,35%);min-height:515px;border:1px solid #efbfd876;overflow:hidden;border-radius:30px;padding:62px 58px 35px;background:#22152c;box-shadow:0 28px 65px #0b061675,inset 0 0 0 1px #f2d5db1c}
.town26-gate-scenery{position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#1d1128f5 0%,#28172edb 43%,#2012298c 75%,#21112bbe),url('/town-app/assets/moonlit-street.webp') center 59%/cover no-repeat;filter:saturate(1.06)}
.town26-gate:after{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 75% 36%,transparent 17%,#28152a66 78%),linear-gradient(180deg,transparent 73%,#1a1026a8)}
.town26-gate-bloom{position:absolute;top:20px;right:35px;color:#ffd0e5;letter-spacing:15px;font-size:20px;text-shadow:0 2px 13px #ffb4d69e;pointer-events:none}
.town26-gate-bloom span{font-size:13px;color:#ffe3af}
.town26-gate-copy{position:relative;z-index:2;align-self:center;max-width:620px}
.town26-gate .town26-eyebrow{color:#ffe5cb;text-shadow:0 1px 8px #130915}
.town26-diamond{color:#fbc7aa;margin:0 3px}
.town26-gate h1{font:400 clamp(50px,5.9vw,89px)/1.03 var(--serif,Georgia,serif);letter-spacing:-.035em;margin:0 0 23px;color:#fff0f6;text-shadow:0 5px 25px #1c092c}
.town26-gate h1 em{font-style:italic;color:#ffbfd9}
.town26-intro{font-size:14px;line-height:1.9;color:#f3deec;max-width:510px;text-shadow:0 2px 11px #160d24;margin:0 0 23px}
.town26-actions{display:flex;flex-wrap:wrap;gap:12px}
.town26-actions .btn{min-height:46px;display:inline-flex;align-items:center;gap:11px;justify-content:center;font-size:12px}
.town26-gate-foot{margin-top:34px;display:flex;flex-wrap:wrap;gap:9px 19px;color:#eec5db;font-size:10px;letter-spacing:.04em}
.town26-gate-foot span::first-letter{color:#ffe0aa}
.town26-portrait{position:relative;z-index:1;justify-self:center;align-self:center;max-width:270px;width:90%;margin:30px 0 10px;transform:rotate(3deg);padding:9px 9px 0;background:linear-gradient(135deg,#4a304c,#271a35);border:1px solid #fad6dba8;border-radius:140px 140px 21px 21px;box-shadow:0 15px 50px #0a06118c,inset 0 0 0 1px #fee8fa24}
.town26-portrait img{display:block;width:100%;height:320px;object-fit:cover;object-position:50% 15%;border-radius:130px 130px 9px 9px;border:1px solid #da9ac28c;filter:saturate(.9)}
.town26-portrait figcaption{text-align:center;padding:16px 0 14px;font-size:9px;font-weight:800;letter-spacing:.15em;color:#ffe1eb}
.town26-portrait figcaption span{color:#ffd5aa;margin-left:5px}
.town26-gate-seal{position:absolute;right:23px;bottom:23px;z-index:2;display:flex;gap:8px;align-items:center;color:#f6cbe4;font-size:37px;opacity:.8;text-shadow:0 2px 12px #150b23}
.town26-gate-seal span{font:700 8px/1.35 system-ui;letter-spacing:.2em}
/* Quick paths */
.town26-wayfinder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 65px}
.town26-wayfinder a{min-width:0;display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid #b68aab7d;border-radius:17px;background:linear-gradient(125deg,#402a45,#281a35);color:#ffecf5;text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s}
.town26-wayfinder a:hover{transform:translateY(-3px);border-color:#ffd5e6;box-shadow:0 12px 27px #09061170}
.town26-wayfinder strong{font:400 21px/1.25 var(--serif,Georgia,serif);display:block}
.town26-wayfinder small{display:block;margin-top:3px;font-size:11px;color:#e1c8d9;line-height:1.4}
.town26-way-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #f1d0d395;border-radius:14px;background:#67455f80;color:#ffe7cc;font:24px Georgia,serif}
.town26-way-art{width:30px;height:30px;display:block;object-fit:contain}
.town26-way-arrow{margin-left:auto;color:#ffe0bd;font-size:18px}
/* Stories */
.town26-section-head{display:flex;align-items:end;justify-content:space-between;gap:35px;margin:0 0 20px}
.town26-section-head h2,.town26-studio-head h2,.town26-help-heading h2{font:400 clamp(37px,4.3vw,55px)/1.14 var(--serif,Georgia,serif);letter-spacing:-.03em;margin:0;color:#ffebf3}
.town26-section-head>p{max-width:360px;color:#e6ccd8;font-size:12px;line-height:1.8;margin:0 0 6px}
.town26-chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:70px}
.town26-chapter{position:relative;isolation:isolate;min-width:0;min-height:355px;display:flex;flex-direction:column;align-items:flex-start;justify-content:end;overflow:hidden;border:1px solid #ecc5d69e;border-radius:22px;padding:25px 23px;color:#fff0f7;text-decoration:none;background:#27192e;transition:transform .2s,border-color .2s}
.town26-chapter:hover{transform:translateY(-5px);border-color:#ffe4b9}
.town26-chapter>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .5s}
.town26-chapter:hover>img{transform:scale(1.04)}
.town26-chapter:first-child>img{object-position:50% 23%}
.town26-chapter:nth-child(3)>img{object-position:45% 50%}
.town26-chapter-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#1e122c34 0%,#21112766 34%,#1c1029f4 92%),linear-gradient(90deg,#20102865,transparent 65%)}
.town26-chapter-meta{font-size:9px;letter-spacing:.15em;font-weight:800;color:#ffe5b9;margin-bottom:8px}
.town26-chapter-title{display:block;font:400 32px/1.15 var(--serif,Georgia,serif);color:#fff1f7}
.town26-chapter-copy{font-size:12px;line-height:1.65;color:#f1d4e3;margin-top:8px;max-width:270px}
.town26-chapter-link{margin-top:15px;font-size:11px;color:#ffddaf;font-weight:800}
/* Studio */
.town26-studio{scroll-margin-top:90px;padding:2px 0 45px}
.town26-studio-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:0 0 22px}
.town26-studio-head>div>p:last-child{font-size:13px;color:#e4c9d9;line-height:1.8;max-width:660px;margin:12px 0 0}
.town26-studio-head .btn{white-space:normal;flex:none}
.town26 .town26-save{scroll-margin-top:90px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#ddaecf9e;border-radius:19px;background:linear-gradient(115deg,#513252eb,#32213e);padding:21px 24px;margin-bottom:16px}
.town26 .town-sync-copy{display:flex;align-items:center;gap:16px}
.town26 .town26-save-icon{width:54px;height:54px;border-radius:15px;border:1px solid #e8c6d8b0;background:radial-gradient(circle,#80526d,#4d2e51);color:#ffe5bc;font:32px Georgia,serif;flex:none;display:grid;place-items:center}
.town26 .town-sync-copy strong{font:400 24px var(--serif,Georgia,serif);color:#ffe9f2}
.town26 .town-sync-copy p{font-size:12px;color:#f1dbe8;max-width:670px;line-height:1.6}
.town26 .town-sync-buttons{justify-content:flex-end}
.town26 .town-sync-buttons .btn{font-size:11px;min-height:42px}
.town26-embed-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 22px;background:linear-gradient(90deg,#4b3052,#301e40);border:1px solid #e9c5d3a1;border-bottom:0;border-radius:21px 21px 0 0;color:#ffe0dd;font-size:10px;letter-spacing:.13em;font-weight:700}
.town26-embed-light{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:10px;background:#e9dfa3;box-shadow:0 0 0 4px #e9d5b324,0 0 12px #ffddb3}
.town26 .town26-embed{border-color:#e9c5d3a1;border-radius:0 0 22px 22px;background:#21172e;box-shadow:0 28px 62px #05020d85}
.town26 .town26-embed iframe{height:min(980px,94vh);min-height:730px}
.town26-studio-bottom{display:flex;justify-content:space-between;gap:20px;border:1px solid #a77a9b75;border-top:0;border-radius:0 0 12px 12px;background:#25182f;padding:14px 22px;color:#dac0d1;font-size:11px}
.town26-studio-bottom span:first-child{color:#f8d6ac;font-weight:700}
/* Notes */
.town26-help{padding:28px 32px 33px;border:1px solid #a77f9b81;border-radius:25px;background:linear-gradient(145deg,#3f2a42,#25182e 82%);margin:15px 0 52px}
.town26-help-heading{display:flex;gap:16px;align-items:center;margin-bottom:23px}
.town26-help-heading>span{display:grid;place-items:center;width:60px;height:60px;border:1px solid #d8afc9a4;border-radius:50%;color:#ffdbdf;font-size:30px;background:#7f52615e;flex:none}
.town26-help-heading h2{font-size:34px}
.town26 .town-notes{gap:14px;margin-top:0}
.town26 .town-notes p{border:1px solid #bb92ab6e;border-radius:14px;background:#21162b9c;color:#e6d0df;padding:19px;line-height:1.77;font-size:12px}
.town26 .town-notes strong{color:#ffe0bb}
.town26 .town-notes code{overflow-wrap:anywhere}
.town26-endnote{display:flex;align-items:center;justify-content:center;gap:15px;text-align:center;color:#b78eaa;letter-spacing:.16em;font-size:10px;padding:0 10px 58px}
.town26-endnote span{color:#e7b9d0}
/* Moonkeeper */
.town26-admin .town-admin{padding:30px 0 95px;max-width:1240px}
.town26-admin .town-admin>.back-link{margin-bottom:18px;display:inline-block}
.town26-admin-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:265px;padding:40px 43px;border:1px solid #c99bb79b;border-radius:24px;background:linear-gradient(90deg,#27182fe8 0%,#422845b8),url('/assets/ts20-town.webp') right 49%/cover;box-shadow:0 14px 46px #0c061677;overflow:hidden}
.town26-admin-hero h1{font:400 clamp(38px,5vw,62px)/1.12 var(--serif,Georgia,serif);color:#ffedf5;margin:0 0 17px;letter-spacing:-.02em}
.town26-admin-hero p:not(.town26-eyebrow){font-size:13px;line-height:1.8;color:#f6dce8;max-width:650px;margin:0}
.town26-admin-moon{font:130px Georgia,serif;color:#ffd6afaa;line-height:1;text-shadow:0 0 30px #d89fbe7a}
.town26-admin .town-admin-stats{gap:14px;margin:18px 0}
.town26-admin .town-admin-stats>div{border:1px solid #d1a2bc80;border-radius:17px;padding:24px;background:linear-gradient(125deg,#493048,#2b1d39)}
.town26-admin .town-admin-stats span{color:#eed4e2;font-size:12px}
.town26-admin .town-admin-stats strong{color:#ffe5c7;font:400 39px var(--serif,Georgia,serif);margin:8px 0}
.town26-admin .town-admin-stats strong.town-admin-date{font-size:21px}
.town26-admin .town-admin-stats small{display:block;color:#cdb3cd;font-size:11px}
.town26-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.town26-admin .town-admin-box{min-width:0;margin:0;padding:29px;border:1px solid #bd91ad7d;border-radius:19px;background:linear-gradient(125deg,#382541,#25182e)}
.town26-admin .town-admin-box h2{font:400 30px/1.2 var(--serif,Georgia,serif);color:#ffe9f2;margin:0 0 14px}
.town26-admin .town-admin-box p{font-size:12px;color:#e8d5e2;line-height:1.8}
.town26-admin .town-admin-box strong{color:#ffe0b5}
.town26-admin .town26-admin-wide{grid-column:1/-1}
.town26 a:focus-visible,.town26 button:focus-visible{outline:3px solid #ffd8b6;outline-offset:3px}
@media(max-width:1050px){.town26-gate{padding:52px 40px 34px;grid-template-columns:1fr 34%}.town26-portrait img{height:280px}.town26-wayfinder a{padding:15px 13px;gap:11px}.town26-wayfinder strong{font-size:18px}.town26-way-icon{width:41px;height:41px}.town26-chapter{min-height:335px}.town26-chapter-title{font-size:27px}}
@media(max-width:800px){.town26{padding-top:12px}.town26-gate{padding:42px 28px 32px;grid-template-columns:1fr minmax(145px,32%);min-height:450px}.town26-gate h1{font-size:clamp(48px,8vw,69px)}.town26-gate-foot{gap:9px}.town26-portrait img{height:230px}.town26-portrait figcaption{font-size:8px}.town26-wayfinder{grid-template-columns:1fr;gap:10px;margin:15px 0 48px}.town26-wayfinder a{padding:14px 20px}.town26-wayfinder strong{font-size:20px}.town26-chapter-grid{gap:12px;margin-bottom:52px}.town26-chapter{min-height:310px;padding:18px 15px}.town26-chapter-title{font-size:25px}.town26-chapter-copy{font-size:11px}.town26-section-head{align-items:flex-start;flex-direction:column;gap:10px}.town26 .town26-embed iframe{height:920px;min-height:730px}.town26 .town26-save{flex-direction:column;align-items:stretch}.town26 .town-sync-buttons{justify-content:flex-start}.town26-help{padding:25px 21px}.town26-help-heading h2{font-size:31px}}
@media(max-width:650px){.town26 .town26-gate{min-height:0;display:block;padding:45px 22px 25px;border-radius:22px}.town26-gate-scenery{background:linear-gradient(90deg,#1d102be8,#20132bd7),url('/town-app/assets/moonlit-street.webp') center/cover}.town26-gate h1{font-size:clamp(49px,10.5vw,69px)}.town26-intro{font-size:13px}.town26-portrait{width:184px;max-width:65%;margin:25px auto 10px;transform:rotate(2deg)}.town26-portrait img{height:216px}.town26-gate-seal{bottom:18px;right:16px;font-size:24px}.town26-gate-seal span{font-size:6px}.town26-gate-bloom{right:9px;top:10px;letter-spacing:10px}.town26-gate-foot{margin-top:20px}.town26-chapter-grid{grid-template-columns:1fr;gap:13px}.town26-chapter{min-height:285px;padding:24px}.town26-chapter>img{object-position:50% 42%}.town26-chapter:first-child>img{object-position:50% 30%}.town26-chapter-title{font-size:34px}.town26-studio-head{flex-direction:column;align-items:flex-start;gap:16px}.town26-studio-head h2,.town26-section-head h2{font-size:clamp(36px,9vw,48px)}.town26-studio-head .btn{width:auto}.town26-embed-top span:last-child{display:none}.town26 .town26-embed iframe{height:920px;min-height:730px}.town26-studio-bottom{flex-direction:column;gap:5px}.town26 .town-sync-copy{align-items:flex-start}.town26 .town26-save-icon{width:44px;height:44px;font-size:27px}.town26-help-heading>span{width:48px;height:48px;font-size:25px}.town26-admin-hero{padding:29px 24px;min-height:240px}.town26-admin-moon{font-size:62px;align-self:flex-start}.town26-admin .town-admin-stats{grid-template-columns:1fr}.town26-admin-grid{grid-template-columns:1fr}.town26-admin .town26-admin-wide{grid-column:auto}.town26-admin .town-admin-box{padding:23px}.town26-admin .town-admin-box h2{font-size:27px}}
@media(max-width:420px){.town26-actions{flex-direction:column}.town26-actions .btn{width:100%}.town26-gate-foot{flex-direction:column;gap:5px}.town26 .town26-save{padding:18px}.town26 .town-sync-buttons{flex-direction:column}.town26 .town-sync-buttons .btn{width:100%}.town26-help{padding:21px 16px}.town26-help-heading h2{font-size:27px}.town26-gate h1{font-size:45px}.town26-admin-moon{display:none}}
@media(prefers-reduced-motion:reduce){.town26 *, .town26 *:before,.town26 *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Alpha 2.0.6.1 — Chapter artwork polish: visible wanderer and magical keepsakes. */
.town26 .town26-chapter:first-child>img{object-position:50% 0%}
.town26 .town26-chapter:nth-child(3)>img{object-position:50% 43%;filter:saturate(.96) brightness(.88)}
.town26 .town26-chapter:nth-child(3) .town26-chapter-shade{background:linear-gradient(180deg,#1e122c15 0%,#21112755 49%,#1c1029f5 91%),linear-gradient(90deg,#20102870,transparent 85%)}
@media(max-width:650px){.town26 .town26-chapter:first-child>img{object-position:50% 0%}}
