/*global-app-behavior*/html,body{overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}img,svg,video,canvas,a,button{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}input,textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}*{-webkit-user-drag:none}:root{color-scheme:light;--ink:#193f38;--paper:#fff8e7;--orange:#c95326}*{box-sizing:border-box}body{margin:0;font-family:'Microsoft YaHei',sans-serif;color:var(--ink);background:#f0ecdf}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #dc8b43;outline-offset:3px}[hidden]{display:none!important}.entry-page{min-height:100svh;display:grid;place-items:center;padding:24px;background:linear-gradient(#0d6b7799,#133f4fba),url('/store-assets/shop-exterior.png') center/cover fixed}.entry-box{width:min(440px,100%);padding:24px 32px;background:#fff9eaf5;border-radius:22px;box-shadow:0 22px 70px #103b4966}.entry-brand{width:100%;height:110px;object-fit:contain}.entry-box h1{font-size:25px;margin:8px 0 12px}.entry-box>p{font-size:13px;color:#5d7064}.entry-tabs{display:flex;gap:5px;margin:26px 0 20px;border-bottom:1px solid #c9ccbb}.entry-tabs button{flex:1;background:transparent;border:0;padding:12px 5px;color:#627068}.entry-tabs [aria-selected=true]{color:#9c421e;border-bottom:3px solid #c95326;font-weight:700}label{display:block;font-size:13px;margin:15px 0}input,textarea,select{width:100%;padding:12px;border:1px solid #c3c9b9;border-radius:7px;background:white;color:#193f38;margin-top:6px}input[type=checkbox]{width:auto;margin:0 6px 0 0}input[type=color]{height:45px}textarea{min-height:85px;resize:vertical}.primary{border:0;border-radius:9px;background:var(--orange);color:#fff8e7;padding:13px 20px;font-weight:700}#entry-submit{width:100%}.guest-button{display:block;margin:20px auto 0;border:0;background:transparent;color:#2f675b;padding:8px}.entry-note{text-align:center;font-size:11px!important}#entry-status{min-height:22px;font-size:12px;color:#99552c;line-height:1.6}#experience-code{font-size:25px;letter-spacing:.22em}.manage-header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:20px 5%;background:#173d35;color:#fff6df}.manage-header a{color:#fff6df}.manage-main{max-width:1100px;margin:auto;padding:30px 22px}.manage-nav{display:flex;gap:10px;flex-wrap:wrap}.manage-nav button,.secondary{background:#fff8e7;color:#234e42;border:1px solid #bfc6ae;border-radius:7px;padding:10px 16px}.manage-nav button.active{background:#276954;color:#fff}.manage-section{margin-top:28px}.manage-section h2{font-size:25px}.manage-section p{line-height:1.8;font-size:13px}.form-row{display:flex;gap:20px;align-items:end;flex-wrap:wrap}.form-row>label{flex:1;min-width:170px}.manage-card{background:#fff9ec;border-radius:12px;padding:20px;margin:16px 0}.product-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.product-edit{background:#fffaf0;padding:14px;border-radius:12px}.product-edit img{width:100%;height:180px;object-fit:contain;background:white}.product-edit .product-image-row{font-size:12px;color:#6b7665;display:block}.product-edit .product-image-row .product-image-hint{display:block;margin-top:2px;color:#9c8a63;font-size:11px}.product-edit .product-image-row input[type=file]{padding:8px;font-size:12px;cursor:pointer}.product-edit label{margin:8px 0}.user-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #d5d5c6}.user-row small{display:block;margin-top:6px;color:#6b7665}.code-number{font-size:30px;letter-spacing:.15em;color:#a64b25}.save-bar{position:sticky;bottom:0;background:#f0ecdfef;padding:14px 0;display:flex;gap:14px;align-items:center}#manage-status{font-size:13px;color:#895521}#qr-preview{max-width:180px}.credential-note{font-size:12px;color:#60725c}@media(max-width:500px){.entry-box{padding:20px}.manage-header{font-size:12px}.product-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.product-edit{padding:8px}.product-edit img{height:145px}.product-edit input{min-width:0}.form-row{gap:0}}
.share-cover-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 10px}.share-cover-upload .muted{font-size:12px;color:#8a7a55}

/* The entry has its own type scale; admin forms retain their operational layout. */
.entry-page{font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;padding:32px 20px}
.entry-box{width:min(420px,100%);padding:30px 32px 24px;border-radius:22px;background:#fff9ecf7}
.entry-brand{display:block;width:90%;height:92px;margin:0 auto 20px;object-fit:contain}
.entry-box h1{text-align:center;font-size:25px;line-height:1.45;font-weight:700;letter-spacing:-.025em;margin:0 0 10px;text-wrap:balance}
.entry-box>p:not(.entry-note){text-align:center;font-size:13px;line-height:1.7;color:#607366;margin:0}
.entry-tabs{gap:4px;margin:27px 0 24px;padding:4px;border:0;background:#ecebdc;border-radius:11px}
.entry-tabs button{padding:10px 8px;font-size:14px;line-height:1.5;font-weight:500;border:0;border-radius:8px;color:#596f61;transition:background .18s,color .18s}
.entry-tabs [aria-selected=true]{background:#fffaf0;color:#a44320;border:0;font-weight:700;box-shadow:0 3px 8px #344b3512}
.entry-box label{font-size:12px;line-height:1.5;font-weight:500;margin:0 0 16px;color:#496451}
.entry-box input{margin-top:9px;border:1px solid #c6cebb;background:#fffef9;border-radius:10px;padding:13px 15px;font-size:16px;line-height:1.5;box-shadow:inset 0 2px 3px #16352c03;caret-color:#c95326}
.entry-box input:focus{border-color:#a65b34;outline:2px solid #d19a6240;outline-offset:2px}
.entry-box #experience-code{height:60px;text-align:center;font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;font-size:27px;line-height:1.3;font-weight:600;letter-spacing:.24em;font-variant-numeric:tabular-nums;padding-left:calc(15px + .24em)}
.entry-box #experience-code::placeholder{font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;font-size:15px;font-weight:400;letter-spacing:.035em;color:#758271;opacity:1}
.entry-box #entry-status{margin:0 0 10px;min-height:18px;font-size:12px;line-height:1.5}
.entry-box #entry-submit{min-height:49px;font-size:16px;font-weight:600;letter-spacing:.025em;border-radius:10px;padding:12px 16px;box-shadow:0 5px 12px #9b451719}
.entry-box #entry-submit:hover{background:#ae451f}.entry-box .guest-button{font-size:13px;font-weight:500;line-height:1.5;margin:17px auto 6px;padding:9px 12px;min-height:40px}.entry-box .entry-note{font-size:11px!important;color:#75816e;text-align:center;margin:0;line-height:1.6}
@media(max-width:480px){.entry-box{padding:25px 24px 23px}.entry-brand{height:82px;margin-bottom:18px}.entry-box h1{font-size:23px}.entry-tabs{margin-top:24px;margin-bottom:22px}}
@media(max-height:680px){.entry-page{padding-top:18px;padding-bottom:18px}.entry-brand{height:64px;margin-bottom:12px}.entry-tabs{margin-top:18px;margin-bottom:18px}.entry-box{padding-top:20px;padding-bottom:18px}}
@media(prefers-reduced-motion:reduce){.entry-tabs button{transition:none}}

.library-tools{display:flex;align-items:end;gap:20px;margin:24px 0}.library-tools label{flex:1}.case-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px;margin-bottom:32px}.library-case{display:flex;gap:16px;text-align:left;padding:14px;border:1px solid #d8d6c9;border-radius:16px;background:#fffdf5;color:#203f38;cursor:pointer}.library-case.selected{border:2px solid #c95326;padding:13px;background:#fff5e8}.library-case img{width:72px;height:94px;object-fit:contain;border-radius:8px;background:white}.library-case span{display:grid;gap:8px;align-content:center;min-width:0}.library-case strong{overflow-wrap:anywhere}.library-case small{color:#687b70}.library-case b{font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:1px}.code-editor{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:20px}.code-editor label{flex:1;min-width:180px}.code-editor input{font-variant-numeric:tabular-nums;letter-spacing:5px}#code-status{color:#a74221}#case-detail-title{padding-top:20px;border-top:1px solid #d8d6c9}@media(max-width:600px){.library-tools{align-items:stretch;flex-direction:column}.case-library{grid-template-columns:1fr}.code-editor button{flex:1}}

/* Illustrated /play entry. The supplied artwork is kept intact; controls align
   to its 941 x 1672 coordinate space and retain native form semantics. */
.entry-page.entry-illustrated{position:relative;isolation:isolate;min-height:100svh;display:grid;place-items:center;padding:0;background:#6baeb3;overflow-x:hidden}
.entry-illustrated:before{content:'';position:fixed;inset:-30px;z-index:-1;background:linear-gradient(#173c392b,#12393559),url('/store-assets/entry-island-reference.png') center/cover;filter:blur(24px);pointer-events:none}
.island-entry{container-type:inline-size;position:relative;width:min(100vw,calc(100svh * 941 / 1672));min-width:min(100vw,300px);aspect-ratio:941/1672;flex-shrink:0;box-shadow:0 0 70px #214b4c33}
.island-entry-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.entry-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.entry-illustrated .entry-hotspot{position:absolute;display:block;border:0;padding:0;margin:0;background:transparent;box-shadow:none;color:transparent;border-radius:12px;cursor:pointer;-webkit-tap-highlight-color:#ffc66133;transition:box-shadow .15s,background .15s}
.entry-illustrated .entry-hotspot:hover{box-shadow:inset 0 0 16px #fff4c644;background:#fff1c514}
.entry-illustrated .entry-hotspot:focus-visible{outline:3px solid #08796f;outline-offset:3px;box-shadow:0 0 0 6px #fff3d2bd}
.entry-illustrated .entry-hotspot:active{background:#8a481828}
.entry-illustrated .entry-hotspot:disabled{cursor:wait;background:#fff1d552;opacity:1}
.entry-illustrated .experience-mode{left:12%;top:39.3%;width:39.5%;height:6.4%;min-height:40px}
.entry-illustrated .admin-mode{left:51.8%;top:40.1%;width:30.7%;height:5.1%;min-height:40px}
.entry-illustrated #experience-code{position:absolute;left:14.9%;top:51.9%;width:70.1%;height:5.9%;padding:0 3%;margin:0;border:0;border-radius:2cqw;background:linear-gradient(110deg,#fbf8f1,#fcfaf4 55%,#faf7ee);color:#6c4a29;box-shadow:none;text-align:center;font-family:'Microsoft YaHei',sans-serif;font-size:clamp(16px,3.7cqw,34px);font-weight:500;letter-spacing:.2em;line-height:1.4;caret-color:#a5521c}
.entry-illustrated #experience-code::placeholder{font-size:clamp(13px,3.2cqw,30px);letter-spacing:.045em;font-weight:400;color:#9d9b94;opacity:1}
.entry-illustrated #experience-code:focus{outline:2px solid #b8792f;outline-offset:2px;background:#fffbef}
.entry-illustrated #entry-submit{left:18%;top:60.7%;width:64%;height:7.8%;border-radius:8cqw}
.entry-illustrated .island-guest{left:30%;top:70.5%;width:39%;height:3.7%;min-height:44px}
.entry-illustrated .island-vip{left:27%;top:79.2%;width:46%;height:4%;min-height:44px}
.entry-illustrated #entry-status{position:fixed;z-index:5;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);min-height:0;padding:10px 18px;margin:0;border:1px solid #b48b4a;border-radius:10px;background:#fff7e5f5;box-shadow:0 5px 25px #39260c33;text-align:center;font-size:13px;line-height:1.6;color:#82441e}
.entry-illustrated #entry-status:empty{display:none}
.island-login-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:32px 28px 28px;border:3px double #b18a4c;border-radius:18px;background:radial-gradient(ellipse at 20% 0,#fffdf1,transparent 75%),#f3e6c9;color:#65462e;box-shadow:0 18px 70px #182c3599,inset 0 0 35px #bc955023}
.island-login-dialog::backdrop{background:#173e426b;backdrop-filter:blur(7px)}
.island-dialog-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:1px solid #b49b6f80;border-radius:50%;background:#fff9e780;color:#82613a;font-size:27px;line-height:1}
.island-dialog-eyebrow{display:block;text-align:center;font:11px Georgia,serif;letter-spacing:.23em;color:#a47537;margin-top:6px}
.island-login-dialog h2{text-align:center;margin:13px 0 9px;color:#884419;font-size:27px;letter-spacing:.1em}
.island-dialog-intro{text-align:center;font-size:12px;line-height:1.7;color:#8c7858;margin-bottom:24px}
.island-login-dialog label{font-size:13px;font-weight:500;margin:16px 0 7px}
.island-login-dialog input{font-size:16px;margin:0;padding:13px 14px;border:1px solid #c9b38e;border-radius:9px;background:#fffcf5;color:#574431;box-shadow:inset 0 2px 4px #6d50210b}
.island-login-dialog input::placeholder{color:#a8987d;font-size:14px}
#admin-status{font-size:12px;line-height:1.6;color:#a14423;min-height:20px;margin:14px 0 8px}
.island-admin-submit{display:flex;justify-content:center;align-items:center;gap:16px;width:100%;min-height:48px;border:2px solid #f5c367;border-radius:12px;background:linear-gradient(#e9a239,#b96923);box-shadow:0 3px 0 #875223,inset 0 1px 0 #ffe6a6;color:#fff8e2;font-size:16px;font-weight:700;text-shadow:0 1px 1px #7d4218}
.island-admin-submit:hover{filter:brightness(1.06)}
@media(prefers-reduced-motion:reduce){.entry-illustrated .entry-hotspot{transition:none}}
@media(forced-colors:active){.entry-illustrated .entry-hotspot{border:1px solid ButtonText;color:ButtonText;background:Canvas}.entry-illustrated .entry-hotspot .entry-sr-only{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;white-space:normal!important}.island-entry-art{opacity:.2}}

/* Homepage and farewell retain the supplied 941 x 1672 artwork without stretching. */
.island-bookend-page.island-home-page{--bookend-art:url('/store-assets/island-home.png')}
.island-bookend-page.island-farewell-page{--bookend-art:url('/store-assets/island-farewell.png')}
.island-bookend-page:before{background:linear-gradient(#173c3914,#12393533),var(--bookend-art) center/cover}
.island-bookend .bookend-primary{left:24%;top:84.8%;width:52%;height:6.5%;min-height:44px;border-radius:9cqw}
.island-bookend .bookend-shortcut{left:31%;top:92.1%;width:38%;height:3.4%;min-height:40px;border-radius:4px}
.bookend-status{position:fixed;z-index:5;left:50%;bottom:max(25px,env(safe-area-inset-bottom));transform:translateX(-50%);margin:0;padding:12px 24px;border:1px solid #d0ae67;border-radius:12px;background:#fff7e9f5;box-shadow:0 6px 25px #1e4c4b40;color:#326452;font-size:15px;line-height:1.5;pointer-events:none}
.bookend-status:empty{display:none}
.bookend-copy-fallback{position:fixed;z-index:6;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(410px,calc(100vw - 32px));padding:22px;border:1px solid #c5a36a;border-radius:14px;background:#fff8e7;box-shadow:0 10px 40px #163d3b55}
.bookend-copy-fallback label{margin:0 25px 10px 0;color:#72532f;font-size:13px}
.bookend-copy-fallback input{font-size:16px;background:#fffdf5}
#share-fallback-close{position:absolute;right:7px;top:5px;width:32px;height:32px;border:0;background:none;color:#72532f;font-size:22px}

.wx-share-guide{position:fixed;z-index:8;top:max(16px,env(safe-area-inset-top));right:16px;width:min(320px,calc(100vw - 32px));padding:20px 20px 22px;border:1px solid #c5a36a;border-radius:16px;background:#fff8e7fa;box-shadow:0 14px 44px #12383666;text-align:left;animation:wx-guide-in .35s ease both}
.wx-share-guide h2{margin:0 0 10px;font-size:18px;color:#3a5a4f}
.wx-share-guide p{margin:0;font-size:13px;line-height:1.7;color:#6b5638}
.wx-share-guide .wx-share-corner{color:#c98a3a;margin-bottom:10px}
.wx-share-guide .wx-share-corner svg{width:46px;height:46px}
#wx-share-guide-close{position:absolute;right:8px;top:6px;width:32px;height:32px;border:0;background:none;color:#72532f;font-size:22px}
@keyframes wx-guide-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

.shop-banner-editor #shop-banner-preview{display:block;width:100%;max-width:720px;max-height:360px;object-fit:contain;object-position:left center;border-radius:12px;background:#f7f1e3;border:1px solid #e0d5bd;margin:18px 0}
.shop-banner-editor #shop-banner-preview[hidden]{display:none}
.shop-banner-editor #shop-banner-name{overflow-wrap:anywhere;color:#657264;font-size:13px}
.shop-banner-editor #shop-banner-status{color:#31584a;margin-bottom:0}

/* home-viewport-fill:20260928-1:start
   Home only: / and /c/:caseId render the same 941 x 1672 artwork.
   Keep artwork and percentage hotspots in one coordinate space. */
.entry-page.entry-illustrated.island-home-page {
  --home-viewport-height: 100vh;
  height: var(--home-viewport-height);
  min-height: var(--home-viewport-height);
  max-height: var(--home-viewport-height);
  padding: 0;
  overflow: hidden;
  contain: paint;
}
@supports (height: 100svh) {
  .entry-page.entry-illustrated.island-home-page {
    --home-viewport-height: 100svh;
  }
}
@supports (height: 100dvh) {
  .entry-page.entry-illustrated.island-home-page {
    --home-viewport-height: 100dvh;
  }
}
.entry-page.entry-illustrated.island-home-page::before {
  inset: 0;
  background: var(--bookend-art) center / cover no-repeat;
  filter: none;
}
.island-home-page > .island-entry.island-bookend {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--home-viewport-height) * 941 / 1672);
  height: var(--home-viewport-height);
  min-width: 0;
  max-width: none;
  aspect-ratio: 941 / 1672;
  transform: translateX(-50%);
  box-shadow: none;
}
.island-home-page > .island-entry.island-bookend > .island-entry-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Preserve separate, visible tap targets when the browser turns sideways. */
.island-home-page .island-bookend .bookend-primary {
  min-height: min(44px, calc(var(--home-viewport-height) * 0.07));
}
.island-home-page .island-bookend .bookend-shortcut {
  min-height: min(40px, calc(var(--home-viewport-height) * 0.06));
}
/* home-viewport-fill:20260928-1:end */
