/* Kabi 寵物王 Online — website v2 (2026-11-06) */
:root{
  --sky:#29aef0;--sky-2:#64c8f6;--sky-soft:#e3f5fe;--navy:#0c2a55;--navy-2:#163d73;
  --sun:#ffd23a;--sun-2:#ffbf1f;--sun-ink:#5a3b00;--leaf:#4cbf5a;--berry:#ef4f5f;
  --cream:#fffaf0;--paper:#ffffff;--ink:#1d2f4a;--muted:#5d6f86;--line:#d9e7f2;
  --radius:22px;--shadow:0 18px 40px rgba(12,42,85,.12);--shadow-sm:0 8px 20px rgba(12,42,85,.10);
  --font:"Noto Sans TC","Noto Sans CJK TC","Microsoft JhengHei","PingFang TC","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  --display:"Baloo 2",ui-rounded,"Arial Rounded MT Bold","Noto Sans TC","Noto Sans CJK TC","Microsoft JhengHei","PingFang TC","Microsoft YaHei",system-ui,sans-serif;
  --header:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--font);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--sky)}
h1,h2,h3,h4{color:var(--navy);line-height:1.2;margin:0}
.hidden{display:none!important}

/* ---------- buttons ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 24px;font:inherit;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;white-space:nowrap}
.button:hover:not(:disabled){transform:translateY(-2px)}
.button:active:not(:disabled){transform:translateY(1px)}
.button:disabled{cursor:default;opacity:.6}
.button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
.primary{background:linear-gradient(180deg,var(--sun) 0%,var(--sun-2) 100%);color:var(--navy);box-shadow:0 5px 0 #d99a00,0 10px 20px rgba(217,154,0,.28)}
.primary:hover:not(:disabled){box-shadow:0 7px 0 #d99a00,0 14px 24px rgba(217,154,0,.3)}
.white{background:#fff;color:var(--navy);box-shadow:0 5px 0 #b9d7ea,0 10px 20px rgba(12,42,85,.15)}
.ghost{background:var(--sky-soft);color:var(--navy-2)}
.ghost:hover:not(:disabled){background:#d2eefc}
.big{font-size:18px;padding:15px 30px}
.small{font-size:14px;padding:9px 18px}
.primary.small{box-shadow:0 4px 0 #d99a00}
.full{width:100%}
.btn-icon{font-size:.95em}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:30;height:var(--header);display:flex;align-items:center;gap:20px;padding:0 clamp(16px,4vw,48px);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(12,42,85,.08)}
.brand{flex:0 0 auto}
.brand img{height:46px;width:auto}
.top nav{display:flex;gap:4px;margin-left:auto}
.top nav a{color:var(--navy);text-decoration:none;font-weight:700;font-size:15px;padding:8px 13px;border-radius:999px;transition:background .15s;white-space:nowrap}
.top nav a:hover{background:var(--sky-soft)}
.top nav a[aria-current=page]{background:var(--sky-soft);color:#0b6fa6}
.account-slot{position:relative;flex:0 0 auto;display:flex;align-items:center}
#header-login{min-width:92px}
.account-menu{position:relative}
.account-chip{display:flex;align-items:center;gap:8px;border:2px solid var(--line);background:#fff;border-radius:999px;padding:4px 14px 4px 4px;font:inherit;color:var(--navy);cursor:pointer;transition:border-color .15s}
.account-chip:hover,.account-chip[aria-expanded=true]{border-color:var(--sky-2)}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--sky);color:#fff;font-family:var(--display);font-weight:800;font-size:16px;flex:0 0 auto}
.chip-name{font-weight:800;font-size:14px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip-points{font-size:12px;font-weight:800;color:#a06c00;background:#fff3c4;border-radius:999px;padding:2px 9px;white-space:nowrap}
.chip-points b{font-family:var(--display);font-size:14px}
.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;background:#fff;border-radius:16px;box-shadow:0 18px 40px rgba(12,42,85,.2);padding:8px;display:grid;gap:2px}
.account-dropdown a,.account-dropdown button{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-weight:700;font-size:15px;color:var(--navy);text-decoration:none;padding:10px 14px;border-radius:10px;cursor:pointer}
.account-dropdown a:hover,.account-dropdown button:hover{background:var(--sky-soft)}

/* ---------- dialogs ---------- */
.login-dialog{width:min(420px,calc(100vw - 32px));border:0;border-radius:28px;padding:30px 28px 24px;box-shadow:0 30px 80px rgba(6,20,45,.45);color:var(--ink);max-height:calc(100vh - 32px);overflow:auto}
.login-dialog::backdrop{background:rgba(6,20,45,.6);backdrop-filter:blur(3px)}
.login-dialog[open]{animation:pop .18s ease-out}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.dialog-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border-radius:50%;border:0;background:var(--sky-soft);color:var(--navy);font-size:22px;line-height:1;cursor:pointer}
.dialog-logo{width:200px;height:auto;margin:0 auto 10px}
.login-dialog h2{font-size:26px;font-weight:900;margin-bottom:4px;text-align:center}
.login-dialog > .form-note{text-align:center}
.login-message{min-height:20px;margin:12px 0 0;text-align:center}
.dialog-foot{text-align:center;font-size:14px;color:var(--muted);margin:10px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.dialog-foot a{font-weight:800}
.buy-dialog h2{text-align:left}
.buy-product{display:flex;gap:14px;align-items:center;margin:14px 0}
.buy-product strong{font-size:18px;color:var(--navy)}
.buy-product p{margin:0;font-size:14px;color:var(--muted)}
.buy-summary dl{margin:0;background:#f6fbff;border-radius:16px;padding:6px 16px}
.buy-summary dl div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}
.buy-summary dl div:last-child{border-bottom:0}
.buy-summary dt{color:var(--muted)}
.buy-summary dd{margin:0;font-weight:800;color:var(--navy);text-align:right}
.buy-summary dd.bad{color:var(--berry)}
.buy-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}

.buy-summary .bad{color:#b4232f}
.buy-summary select{margin:0;padding:6px 10px;width:auto}
.buy-actions .button{flex:1}

/* ---------- hero ---------- */
.hero{position:relative;min-height:min(820px,92vh);display:flex;align-items:center;overflow:hidden;background:var(--sky)}
.hero-bg,.hero-bg img{position:absolute;inset:0;width:100%;height:100%}
.hero-bg img{object-fit:cover;object-position:62% 40%}
.hero-inner{position:relative;z-index:2;width:100%;max-width:1240px;margin:0 auto;padding:60px clamp(16px,4vw,48px) 120px}
.hero-card{max-width:520px;background:rgba(255,255,255,.88);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:32px;padding:32px 34px 30px;box-shadow:0 24px 60px rgba(12,42,85,.25);border:3px solid #fff}
.hero-logo{width:100%;max-width:420px;height:auto;margin:-4px 0 14px -6px}
.hero h1{font-size:clamp(30px,4vw,44px);font-weight:900;letter-spacing:.02em;margin-bottom:12px}
.lead{font-size:17px;color:var(--muted);margin:0}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.hero-meta{list-style:none;display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 0;padding:0}
.hero-meta li{display:flex;align-items:baseline;gap:6px;background:var(--sky-soft);color:var(--navy-2);font-size:13px;font-weight:700;border-radius:999px;padding:6px 14px}
.hero-meta b{font-family:var(--display);font-size:18px;color:var(--sky);line-height:1}
.wave{position:absolute;left:0;right:0;bottom:-1px;height:90px;z-index:3;background:var(--cream);-webkit-mask:radial-gradient(60px 46px at 50% 0,transparent 98%,#000) 50% 0/120px 100% repeat-x;mask:radial-gradient(60px 46px at 50% 0,transparent 98%,#000) 50% 0/120px 100% repeat-x}

/* ---------- start steps ---------- */
.start{position:relative;z-index:4;max-width:1100px;margin:-70px auto 0;padding:0 clamp(16px,4vw,32px)}
.start-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0;padding:0}
.start-steps a{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;background:#fff;border-radius:var(--radius);padding:18px 20px;text-decoration:none;box-shadow:var(--shadow);border:2px solid #fff;transition:transform .15s,border-color .15s}
.start-steps a:hover{transform:translateY(-3px);border-color:var(--sky-2)}
.step-no{grid-row:1/3;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-size:26px;font-weight:800;color:#fff;background:var(--sky);box-shadow:inset 0 -4px 0 rgba(0,0,0,.12)}
.start-steps li:nth-child(2) .step-no{background:var(--sun-2);color:var(--navy)}
.start-steps li:nth-child(3) .step-no{background:var(--leaf)}
.start-steps strong{color:var(--navy);font-size:18px}
.start-steps em{font-style:normal;color:var(--muted);font-size:14px}

/* ---------- section heading ---------- */
.section-heading{max-width:640px;margin:0 0 36px}
.section-heading.center{margin-left:auto;margin-right:auto;text-align:center}
.eyebrow{font-family:var(--display);font-weight:800;letter-spacing:.18em;font-size:13px;color:var(--sky);margin:0 0 6px}
.section-heading h2,.download h2,.account h2{font-size:clamp(28px,3.6vw,42px);font-weight:900;margin-bottom:12px}
.section-heading p:last-child{color:var(--muted);margin:0;font-size:17px}

/* ---------- world ---------- */
.world{max-width:1200px;margin:0 auto;padding:96px clamp(16px,4vw,32px) 80px}
.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.world-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.world-card:hover{transform:translateY(-4px)}
.world-card img{width:100%;height:230px;object-fit:cover}
.world-copy{padding:20px 22px 24px}
.world-copy h3{font-size:22px;margin:8px 0 6px}
.world-copy p{margin:0;color:var(--muted);font-size:15px}
.tag{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:3px 12px}
.tag.blue{background:var(--sky-soft);color:#0b6fa6}
.tag.yellow{background:#fff3c4;color:#8a5a00}
.tag.green{background:#e2f6e4;color:#23803a}
.map-teaser{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:0;margin-top:26px;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:inherit;transition:transform .2s}
.map-teaser:hover{transform:translateY(-4px)}
.map-teaser img{width:100%;height:100%;max-height:360px;object-fit:cover}
.map-teaser-copy{padding:28px 32px}
.map-teaser-copy h3{font-size:26px;margin:8px 0}
.map-teaser-copy p{color:var(--muted);margin:0 0 20px}

/* ---------- product cards (shop) ---------- */
.product-card{display:flex;flex-direction:column;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);border:2px solid #fff;transition:transform .15s,border-color .15s;text-decoration:none;color:inherit}
.product-card:hover{transform:translateY(-3px);border-color:var(--sky-2)}
.product-thumb{position:relative;height:120px;display:grid;place-items:center;background:linear-gradient(135deg,#ffe58a 0%,#ffc94a 45%,#64c8f6 100%);overflow:hidden}
.product-thumb span{font-family:var(--display);font-weight:900;font-size:40px;color:#fff;text-shadow:0 3px 0 rgba(12,42,85,.25);letter-spacing:.05em}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-thumb img.item-art{width:auto;height:96px;object-fit:contain;border-radius:6px;transform:rotate(-6deg);filter:drop-shadow(0 6px 8px rgba(12,42,85,.35));transition:transform .2s}
.product-card:hover .item-art{transform:rotate(0) scale(1.06)}
.product-card.soon .product-thumb{background:linear-gradient(135deg,#e8eef5 0%,#d5e3ef 100%)}
.product-card.soon .item-art{filter:drop-shadow(0 6px 8px rgba(12,42,85,.25)) saturate(.85)}
.product-card.soon .price{color:#8a9bb0}
.soon-badge{position:absolute;right:10px;top:10px;font-size:12px;font-weight:800;background:var(--navy);color:#fff;border-radius:999px;padding:2px 10px}
.small-thumb img.item-art{height:60px;transform:rotate(-4deg)}
.product-thumb em{position:absolute;left:10px;top:10px;font-style:normal;font-size:12px;font-weight:800;background:rgba(255,255,255,.9);color:var(--navy-2);border-radius:999px;padding:2px 10px}
.small-thumb{width:72px;height:72px;border-radius:16px;flex:0 0 auto}
.small-thumb span{font-size:24px}
.product-body{display:flex;flex-direction:column;flex:1;padding:16px 18px 18px}
.product-body h3{font-size:18px;margin-bottom:4px}
.name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.name-row h3{flex:1;min-width:0}
.product-body p{margin:0 0 12px;color:var(--muted);font-size:14px;flex:1}
.price{display:inline-flex;align-items:baseline;gap:4px;font-family:var(--display);font-weight:800;font-size:24px;color:#d48800;line-height:1}
.price small{font-size:13px;color:#a06c00}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-foot .button{min-width:96px}

/* ---------- shop page ---------- */
.shop-hero{background:
  radial-gradient(circle at 10% 30%,rgba(255,255,255,.5) 0 70px,transparent 71px),
  radial-gradient(circle at 85% 80%,rgba(255,255,255,.35) 0 110px,transparent 111px),
  linear-gradient(180deg,#9ddcfb 0%,#d6f0fd 100%);padding:44px clamp(16px,4vw,32px)}
.shop-hero-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:center}
.shop-hero-copy h1{font-size:clamp(32px,4vw,48px);font-weight:900;margin-bottom:8px}
.shop-hero-copy p:last-child{margin:0;color:var(--navy-2);font-size:17px}
.wallet{background:#fff;border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.wallet h2{font-size:22px;margin-bottom:4px}
.wallet-foot{margin:12px 0 0;text-align:center;font-size:14px;color:var(--muted)}
.wallet-foot a{font-weight:800}
.wallet-row{display:flex;align-items:center;gap:12px}
.big-avatar{width:44px;height:44px;font-size:20px}
.wallet-name{flex:1;min-width:0}
.wallet-name small{display:block;font-size:12px;color:var(--muted);font-weight:700}
.wallet-name strong{display:block;font-size:18px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet label{margin:0}
.shop-points{display:flex;align-items:baseline;gap:8px;background:linear-gradient(135deg,#fff6cf,#ffe58a);border-radius:18px;padding:14px 18px;margin:14px 0;color:var(--sun-ink)}
.shop-points span{font-size:14px;font-weight:700;margin-right:auto}
.shop-points strong{font-family:var(--display);font-size:38px;line-height:1;color:var(--navy)}
.shop-points em{font-style:normal;font-family:var(--display);font-weight:800;color:#a06c00}
.shop-body{max-width:1200px;margin:0 auto;padding:30px clamp(16px,4vw,32px) 80px}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.cat-tabs{display:flex;gap:8px;flex-wrap:wrap}
.cat-tab{border:2px solid var(--line);background:#fff;border-radius:999px;padding:7px 16px;font:inherit;font-weight:800;font-size:14px;color:var(--navy-2);cursor:pointer}
.cat-tab:hover{border-color:var(--sky-2)}
.cat-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.shop-tools{display:flex;gap:10px;margin-left:auto}
.shop-tools input,.shop-tools select{margin:0;width:auto;background:#fff;padding:9px 14px}
.shop-tools input{width:220px}
.shop-message{min-height:24px;margin:10px 0;font-weight:700;color:var(--navy-2)}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}
.product-grid .empty{grid-column:1/-1;text-align:center;padding:40px 0;font-size:15px}
.shop-info{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;margin-top:40px}
.info-card{background:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}
.info-card h3{font-size:20px;margin:6px 0 10px}
.info-card p{margin:0;color:var(--muted)}
.info-steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:10px}
.info-steps li{counter-increment:s;display:flex;align-items:center;gap:12px;color:var(--ink)}
.info-steps li:before{content:counter(s);width:30px;height:30px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:var(--sky);color:#fff;font-family:var(--display);font-weight:800}
.topup-card{border:2px dashed #b9daf0;box-shadow:none;background:#fbfdff}

/* ---------- map page ---------- */
.map-page{max-width:1400px;margin:0 auto;padding:26px clamp(16px,3vw,32px) 40px}
.map-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.map-head h1{font-size:clamp(28px,3.4vw,40px);font-weight:900}
.map-hint{margin:4px 0 0;color:var(--muted)}
.hint-touch{display:none}
@media (hover:none){.hint-mouse{display:none}.hint-touch{display:inline}}
.map-viewer{position:relative;height:calc(100vh - var(--header) - 170px);min-height:420px;background:#dfeef8;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.map-viewer.dragging{cursor:grabbing}
.map-viewer:fullscreen{border-radius:0;height:100vh}
.map-viewer img{position:absolute;left:0;top:0;width:4879px;height:3500px;max-width:none;transform-origin:0 0;will-change:transform;pointer-events:none}
.map-controls{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;gap:8px;z-index:2}
.map-controls button{width:44px;height:44px;border-radius:14px;border:0;background:#fff;color:var(--navy);font-size:22px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(12,42,85,.2)}
.map-controls button:hover{background:var(--sky-soft)}
.map-status{position:absolute;left:14px;bottom:14px;margin:0;z-index:2;background:rgba(12,42,85,.8);color:#fff;font-size:13px;font-weight:700;border-radius:999px;padding:6px 14px;transition:opacity .4s}
.map-status.done{opacity:0}

/* ---------- download ---------- */
.download{max-width:1100px;margin:0 auto;padding:10px clamp(16px,4vw,32px) 90px}
.download-card{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 55%,#1d6fb3 100%);border-radius:32px;padding:clamp(26px,4vw,48px);box-shadow:var(--shadow);color:#e4f1ff;position:relative;overflow:hidden}
.download-card:after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,210,58,.16)}
.download-copy{position:relative;z-index:1;flex:1 1 420px}
.download-copy .eyebrow{color:var(--sun)}
.download h2{color:#fff}
.download-copy p{margin:0;font-size:17px}
.download-copy strong{color:var(--sun)}
.download-card .button{position:relative;z-index:1}

/* ---------- account ---------- */
.account{position:relative;overflow:hidden;padding:100px clamp(16px,4vw,32px);background:var(--navy)}
.account-bg,.account-bg img{position:absolute;inset:0;width:100%;height:100%}
.account-bg img{object-fit:cover;object-position:40% 60%}
.account:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(6,20,45,.88) 0%,rgba(6,20,45,.7) 45%,rgba(6,20,45,.25) 100%)}
.account-inner{position:relative;z-index:2;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 430px;gap:clamp(30px,6vw,80px);align-items:center}
.account-copy{color:#dbe8f7}
.account-copy .eyebrow{color:var(--sun)}
.account h2{color:#fff}
.account-copy p{font-size:16px;margin:0}
.mini-steps{counter-reset:s;list-style:none;padding:0;margin:26px 0 0;display:grid;gap:10px}
.mini-steps li{counter-increment:s;display:flex;align-items:center;gap:12px;font-weight:700;color:#fff}
.mini-steps li:before{content:counter(s);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--sun);color:var(--navy);font-family:var(--display);font-weight:800}
.auth-card{background:#fff;border-radius:28px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.35)}

/* ---------- forms ---------- */
label{display:block;font-size:14px;font-weight:700;color:var(--navy-2);margin:0 0 14px}
input,select{display:block;width:100%;margin-top:6px;padding:12px 14px;font:inherit;font-weight:400;color:var(--ink);background:#f6fbff;border:2px solid var(--line);border-radius:14px;transition:border-color .15s,background .15s}
input:focus,select:focus{border-color:var(--sky);background:#fff;outline:none}
.form-note{font-size:13px;color:var(--muted);margin:0 0 14px}
#auth-message{margin:14px 0 0}
.game-credentials{margin-top:14px;padding:12px 14px;border-left:4px solid var(--leaf);background:#ecf9ee;border-radius:10px;color:var(--ink);font-size:13px}

/* ---------- footer ---------- */
footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:26px clamp(16px,4vw,48px);background:#081d3d;color:#9fb6d6;font-size:14px}
footer img{height:36px;width:auto}
footer a{color:var(--sun);text-decoration:none;font-weight:700}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .top{gap:12px}
  .top nav a{padding:8px 9px;font-size:14px}
  .chip-name{max-width:80px}
}
@media (max-width:980px){
  .world-grid{grid-template-columns:1fr 1fr}
  .world-card:last-child{grid-column:1/-1}
  .world-card:last-child img{height:280px}
  .account-inner,.shop-hero-inner,.map-teaser{grid-template-columns:1fr}
  .map-teaser img{max-height:300px}
}
@media (max-width:860px){
  :root{--header:108px}
  html{scroll-padding-top:120px}
  .top{height:auto;flex-wrap:wrap;gap:8px 12px;padding:10px 16px}
  .brand img{height:38px}
  .account-slot{margin-left:auto}
  .top nav{order:3;width:100%;margin:0;overflow-x:auto;gap:4px;scrollbar-width:none}
  .top nav::-webkit-scrollbar{display:none}
  .top nav a{flex:0 0 auto;background:var(--sky-soft);font-size:13px;padding:6px 12px}
}
@media (max-width:760px){
  .hero{min-height:0;align-items:flex-end}
  .hero-bg{position:relative;height:260px}
  .hero-bg img{object-position:40% 35%}
  .hero{flex-direction:column;background:var(--cream)}
  .hero-inner{padding:0 16px 90px;margin-top:-40px}
  .hero-card{padding:22px 20px;border-radius:26px;max-width:none;background:#fff}
  .hero h1{font-size:28px}
  .lead{font-size:15px}
  .actions .button{flex:1 1 auto}
  .big{font-size:16px;padding:13px 20px}
  .wave{height:60px}
  .start{margin-top:-50px}
  .start-steps{grid-template-columns:1fr;gap:10px}
  .start-steps a{padding:14px 16px}
  .step-no{width:42px;height:42px;font-size:22px}
  .world{padding:64px 16px 56px}
  .world-grid{grid-template-columns:1fr}
  .world-card img,.world-card:last-child img{height:200px}
  .map-teaser-copy{padding:22px 20px}
  .download{padding:0 16px 64px}
  .download-card{border-radius:26px}
  .download-card .button{width:100%}
  .account{padding:64px 16px}
  .account:before{background:linear-gradient(180deg,rgba(6,20,45,.82) 0%,rgba(6,20,45,.9) 100%)}
  .auth-card{padding:22px 18px}
  .chip-name{display:none}
  .shop-hero{padding:28px 16px}
  .shop-body{padding:22px 16px 56px}
  .cat-tabs{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px}
  .cat-tabs::-webkit-scrollbar{display:none}
  .cat-tab{flex:0 0 auto}
  .shop-hero-copy h1{font-size:30px}
  .shop-hero-copy p:last-child{font-size:15px}
  .shop-tools{width:100%;margin:0}
  .shop-tools input{flex:1;width:auto;min-width:0}
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .product-thumb{height:96px}
  .product-thumb span{font-size:30px}
  .product-thumb img.item-art{height:78px}
  .product-body{padding:12px 12px 14px}
  .product-body h3{font-size:16px}
  .product-foot{flex-direction:column;align-items:stretch}
  .product-foot .button{width:100%;min-width:0}
  .shop-info{grid-template-columns:1fr}
  .login-dialog{padding:26px 20px 20px}
  .map-page{padding:18px 12px 28px}
  .map-viewer{height:min(62vh,calc(100vh - var(--header) - 150px));min-height:340px}
  .map-controls button{width:40px;height:40px}
  footer{justify-content:center;text-align:center}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important;animation:none!important}}
/* v2r4: sponsor note + original in-game pixel icons */
.sponsor-soon{margin:0 0 14px;padding:10px 14px;border:2px dashed var(--line);border-radius:14px;text-align:center;font-weight:800;font-size:14px;color:var(--muted);background:#fff}
.product-thumb img.item-art.pixel{width:96px;height:84px;border-radius:0;transform:none;image-rendering:pixelated;image-rendering:crisp-edges}
.product-card:hover .item-art.pixel{transform:scale(1.08)}
.small-thumb img.item-art.pixel{width:48px;height:42px;transform:none}
@media (max-width:760px){.product-thumb img.item-art.pixel{width:72px;height:63px}}

/* ===== R6V2: Kabi自取店(商城領取) claim + 我的訂單 + GM 後台 ===== */
.button.danger{background:linear-gradient(180deg,#ff7a86 0%,var(--berry) 100%);color:#fff;box-shadow:0 5px 0 #b4232f}
a.button.primary{color:var(--navy)}
.claim-callout{margin:14px 0 6px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#fff6cf,#ffe58a);color:var(--sun-ink);font-size:16px;text-align:center}
.claim-callout strong{color:var(--navy)}
.soon-badge.gm-only{background:#5d6f86}
.gm-bar{margin:6px 0 10px;padding:12px 16px;border-radius:16px;background:var(--navy);color:#dbe8f7;font-size:14px;font-weight:700}
.gm-bar a{color:var(--sun)}
.tiny-thumb{width:44px;height:40px;border-radius:10px;flex:0 0 auto}
.tiny-thumb img.item-art.pixel{width:40px;height:35px}
.tiny-thumb img.item-art{height:34px;transform:none}

/* order status badges */
.order-status{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:3px 10px;white-space:nowrap}
.order-status.wait{background:#fff3c4;color:#8a5a00}
.order-status.done{background:#e2f6e4;color:#23803a}
.order-status.bad{background:#fde4e6;color:#b4232f}

/* 我的訂單 */
.orders-page{max-width:900px;margin:0 auto;padding:30px clamp(16px,4vw,32px) 70px}
.orders-head h1{font-size:clamp(28px,3.4vw,40px);font-weight:900}
.orders-head{margin-bottom:18px}
.claim-guide{display:flex;gap:20px;align-items:center;background:#fff;border-radius:var(--radius);padding:18px 22px;box-shadow:var(--shadow-sm);margin-bottom:16px}
.claim-guide-count{flex:0 0 auto;display:grid;place-items:center;width:110px;height:110px;border-radius:50%;background:linear-gradient(135deg,#fff6cf,#ffe58a);color:var(--sun-ink);text-align:center;line-height:1.1}
.claim-guide-count b{font-family:var(--display);font-size:44px;color:var(--navy)}
.claim-guide-count span{font-size:13px;font-weight:800}
.orders-toolbar{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-bottom:12px}
.orders-toolbar select{width:auto;margin:0;background:#fff}
.orders-list{display:grid;gap:12px}
.orders-list .empty{text-align:center;padding:30px 0}
.order-card{display:flex;gap:16px;align-items:flex-start;background:#fff;border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow-sm);border-left:6px solid var(--sun-2)}
.order-card.claimed{border-left-color:var(--leaf)}
.order-card.failed,.order-card.refunded{border-left-color:var(--berry)}
.order-main{flex:1;min-width:0}
.order-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.order-top strong{font-size:18px;color:var(--navy)}
.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;margin:8px 0 0}
.order-facts div{display:flex;gap:8px;font-size:14px}
.order-facts dt{color:var(--muted);flex:0 0 auto}
.order-facts dd{margin:0;font-weight:700;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.order-hint{margin:10px 0 0;padding:8px 12px;border-radius:10px;background:#fff8dc;font-size:14px;color:var(--sun-ink)}
.order-no{margin:6px 0 0;font-size:12px;color:#8a9bb0;overflow-wrap:anywhere}

/* GM 後台 */
.gm-page{max-width:1100px;margin:0 auto;padding:30px clamp(16px,4vw,32px) 70px}
.gm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.gm-head h1{font-size:clamp(28px,3.4vw,40px);font-weight:900}
.gm-session{margin:0;font-size:13px;font-weight:800;color:#23803a;background:#e2f6e4;border-radius:999px;padding:6px 14px}
.gm-card{background:#fff;border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm);margin-bottom:16px}
.gm-card h2{font-size:20px;margin-bottom:6px}
.gm-gate{max-width:480px}
.gm-unlock{display:flex;gap:10px}
.gm-unlock input{margin:0}
.gm-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.gm-tab{border:2px solid var(--line);background:#fff;border-radius:999px;padding:8px 16px;font:inherit;font-weight:800;font-size:14px;color:var(--navy-2);cursor:pointer}
.gm-tab:hover{border-color:var(--sky-2)}
.gm-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.gm-message{min-height:22px;margin:4px 0 10px;font-weight:700;color:var(--navy-2)}
.gm-panel-head,.gm-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gm-subhead{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.gm-subhead h3{font-size:17px}
.gm-list{display:grid;gap:10px;margin-top:10px}
.gm-list .empty,.gm-orders .empty,.gm-products .empty{text-align:center;padding:20px 0}
.gm-item{display:grid;grid-template-columns:1fr;gap:6px 14px;align-items:center;padding:12px 16px;border:2px solid var(--line);border-radius:16px}
.gm-item.warn{border-color:#f6c3c8;background:#fff7f8}
.gm-item-main{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.gm-item-main strong{font-size:15px;color:var(--navy)}
.gm-item-meta{font-size:13px;color:var(--muted)}
.gm-pill{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:2px 10px;background:var(--sky-soft);color:#0b6fa6;white-space:nowrap}
.gm-pill.gift{background:#f1e6ff;color:#6b2fb3}
.gm-delta{font-family:var(--display);font-weight:800;font-size:18px}
.gm-delta.plus,.buy-summary .good{color:#23803a}
.gm-delta.minus{color:#b4232f}
.gm-form{max-width:560px}
.gm-inline{display:flex;gap:8px;align-items:center;margin-top:6px}
.gm-inline input,.gm-inline select{margin:0}
.gm-panel-head .gm-inline{margin:0}
.gm-panel-head .gm-inline select{width:auto}
.gm-lookup-result{min-height:20px;margin:-6px 0 12px;font-size:14px}
.gm-lookup-result.ok{color:#23803a}
.gm-lookup-result.bad,.gm-lookup-result .bad,.gm-characters .bad{color:#b4232f}
.gm-kind{display:flex;gap:18px;margin-bottom:14px}
.gm-kind label{display:flex;align-items:center;gap:6px;margin:0;font-size:15px;cursor:pointer}
.gm-kind input{width:18px;height:18px;margin:0;accent-color:var(--navy)}
.gm-fieldset{border:2px solid var(--line);border-radius:16px;padding:10px 14px 14px;margin:0 0 14px}
.gm-fieldset legend{font-size:14px;font-weight:700;color:var(--navy-2);padding:0 6px}
.gm-characters{display:grid;gap:8px}
.gm-choice{display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;border:2px solid var(--line);border-radius:12px;cursor:pointer;font-weight:400}
.gm-choice input{width:18px;height:18px;margin:0;accent-color:var(--navy)}
.gm-choice b{display:block;color:var(--navy)}
.gm-choice small{display:block;color:var(--muted)}
.gm-choice:has(input:checked){border-color:var(--sky);background:#f2fbff}
.gm-choice.full{opacity:.55;cursor:not-allowed}
.gm-item-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.gm-pick{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;padding:10px 8px;border:2px solid var(--line);border-radius:14px;cursor:pointer;text-align:center;font-weight:700;font-size:13px}
.gm-pick input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.gm-pick:hover{border-color:var(--sky-2)}
.gm-pick.active{border-color:var(--navy);background:#eef6ff;box-shadow:inset 0 0 0 1px var(--navy)}
.gm-pick:focus-within{outline:3px solid var(--sky);outline-offset:2px}
.gm-pick-name small{display:block;font-weight:400;color:var(--muted)}
.gm-pick .small-thumb{width:64px;height:58px}
.gm-switch{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;margin:0;cursor:pointer;font-size:13px;font-weight:800;color:#23803a;user-select:none;position:relative}
.gm-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.gm-track{position:relative;width:44px;height:24px;border-radius:999px;background:var(--leaf);transition:background .15s}
.gm-track:after{content:"";position:absolute;top:3px;left:23px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.gm-switch input:not(:checked) ~ .gm-track{background:#b8c4d2}
.gm-switch input:not(:checked) ~ .gm-track:after{left:3px}
.gm-switch input:not(:checked) ~ .gm-text{color:var(--muted)}
.gm-switch input:focus-visible ~ .gm-track{outline:3px solid var(--sky);outline-offset:2px}
.gm-products{display:grid;gap:10px;margin-top:10px}
.gm-product{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px 16px;align-items:center;padding:10px 14px;border:2px solid var(--line);border-radius:16px}
.gm-product.off{background:#f6f8fb}
.gm-product.off .product-thumb{filter:grayscale(.7)}
.gm-product-main strong{display:block;color:var(--navy);font-size:16px}
.gm-product-main small{display:block;color:var(--muted);font-size:12px}
.gm-price{display:flex;align-items:center;gap:6px;margin:0}
.gm-price input{width:96px;margin:0;padding:8px 10px;text-align:right}
.gm-price span{font-weight:800;color:#a06c00;font-size:13px}
.gm-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}
.gm-filters label{margin:0}
.gm-orders{margin-top:6px;overflow:hidden}
.gm-table{display:grid;border:2px solid var(--line);border-radius:16px;overflow:hidden}
.gm-tr{display:grid;grid-template-columns:120px .9fr 1.1fr 1.6fr 150px 110px;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid var(--line);font-size:14px}
.gm-tr:first-child{border-top:0}
.gm-th{background:#f6fbff;font-weight:800;color:var(--navy-2);font-size:13px}
.gm-tr > span{min-width:0;overflow-wrap:anywhere}
.gm-itemcell{display:flex;align-items:center;gap:8px}
.gm-tr .gm-pill{white-space:normal}
.gm-claimed-at{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.gm-retype{margin:14px 0 0}
.gm-retype span{color:#b4232f}
#gm-orders-more{margin-top:12px}
@media (max-width:860px){
  .gm-filters{grid-template-columns:1fr 1fr}
  .gm-filters label:first-child{grid-column:1/-1}
  .gm-th{display:none}
  .gm-tr{grid-template-columns:1fr;gap:4px;padding:12px 14px}
  .gm-tr > span[data-label]:before{content:attr(data-label) "：";color:var(--muted);font-size:12px;font-weight:700;margin-right:4px}
  .gm-tr > span[data-label="物品"]{display:flex;align-items:center;gap:4px}
  .gm-product{grid-template-columns:auto 1fr;}
  .gm-product .gm-switch{grid-column:1/2}
  .gm-product .gm-price{grid-column:2/3;justify-content:flex-end}
}
@media (max-width:760px){
  .gm-page,.orders-page{padding:20px 16px 56px}
  .gm-card{padding:18px 16px}
  .gm-unlock{flex-direction:column}
  .gm-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .gm-tabs::-webkit-scrollbar{display:none}
  .gm-tab{flex:0 0 auto}
  .claim-guide{flex-direction:column;align-items:stretch;text-align:left}
  .claim-guide-count{width:auto;height:auto;border-radius:16px;padding:10px;grid-auto-flow:column;gap:8px;justify-content:center;align-items:baseline}
  .claim-guide-count b{font-size:32px}
  .order-card{padding:14px}
  .order-facts{grid-template-columns:1fr}
  .gm-item-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gm-price input{width:80px}
}
