/* 指尖幻影：共享色板、布局和组件。游戏素材来源见 DESIGN.md。 */
:root {
  --game-ink:#49362c; --game-muted:#796454; --game-line:#d9bd8c;
  --game-paper:#fff7e6; --game-inset:#f2e5c9; --game-gold:#f4bd51;
  --game-wood:#49352d; --game-blue:#28758b; --game-red:#ac433a;
  --game-shadow:0 3px 0 #b9966460,0 8px 22px #64492909;
}
html { min-width:320px; scroll-behavior:smooth; }
body.game-theme {
  margin:0; color:var(--game-ink); background:#e9dbbc;
  font-family:"PingFang SC","Microsoft YaHei","WenQuanYi Micro Hei",system-ui,sans-serif;
  font-size:14px; line-height:1.65; -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(ellipse at 0 0,#fff9eccc,transparent 65%),repeating-linear-gradient(135deg,#80624204 0,#80624204 2px,transparent 2px,transparent 12px);
}
.game-theme *, .game-theme ::before, .game-theme ::after { box-sizing:border-box; border-color:var(--game-line); }
.game-theme [x-cloak] { display:none!important; }
.game-theme ::selection { color:#442915; background:#f4cd72; }
.game-theme :focus-visible { outline:3px solid #2584a6; outline-offset:3px; }
.game-theme button,.game-theme input,.game-theme select,.game-theme textarea { font:inherit; }
.game-theme button { cursor:pointer; touch-action:manipulation; transition:background .16s,box-shadow .16s,transform .16s; }
.game-theme button:disabled { cursor:not-allowed; filter:saturate(.35); opacity:.55; }
.game-theme input:not([type=checkbox]):not([type=radio]),.game-theme select,.game-theme textarea {
  min-width:0; max-width:100%; min-height:44px; border:1px solid #c8ae85; border-radius:9px;
  color:var(--game-ink); background:#fffcf3; box-shadow:inset 0 2px 3px #a57b3020; font-size:16px;
}
.game-theme input::placeholder,.game-theme textarea::placeholder { color:#967d66; font-weight:400; }
.game-theme input:focus,.game-theme select:focus,.game-theme textarea:focus { border-color:#3b8ca1; box-shadow:0 0 0 3px #2984a11c; }
.game-theme input[type=checkbox],.game-theme input[type=radio] { accent-color:#aa711f; width:18px; height:18px; }
.game-theme input[type=date]::-webkit-date-and-time-value { text-align:left; }
.game-theme label { color:var(--game-muted); }
.game-theme h1,.game-theme h2,.game-theme h3 { line-height:1.4; letter-spacing:.025em; }
.game-theme h2 { font-weight:800; }
.game-theme h3 { font-weight:700; }
.game-theme img { max-width:100%; }
.game-theme .safe-bottom { padding-bottom:env(safe-area-inset-bottom,0px); }
.game-theme .line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.game-theme .no-scrollbar { scrollbar-width:none; }
.game-theme .no-scrollbar::-webkit-scrollbar { display:none; }
.game-theme ::-webkit-scrollbar { height:5px; width:5px; }
.game-theme ::-webkit-scrollbar-thumb { background:#b89d72; border-radius:6px; }
.game-theme .rounded-2xl { border-radius:14px; }
.game-theme .rounded-xl { border-radius:10px; }
.game-theme .shadow-sm { box-shadow:var(--game-shadow); }
.game-theme div.game-bg-white.shadow-sm { border:1px solid #d1b383; box-shadow:inset 0 1px #fffdf6,var(--game-shadow); }
.game-theme button[class*="game-bg-"]:not(.game-nav button) { min-height:38px; border:1px solid #d1b383; box-shadow:inset 0 1px #ffffff70,0 2px 0 #8d673935; }
.game-theme button:is(.game-bg-orange-500,.game-bg-orange-600,.game-bg-amber-500,.game-bg-amber-600),.game-theme .game-primary {
  color:#523212; font-weight:800; border:2px solid #9e6228; border-radius:10px;
  background:linear-gradient(#ffdb79 0%,#f8bd4f 52%,#efa134 100%);
  box-shadow:inset 0 2px #fff0b6,0 3px 0 #97612e,0 5px 10px #8f5f2520;
  text-shadow:0 1px #ffeaa7; min-height:46px; letter-spacing:.08em;
}
.game-theme button:is(.game-bg-blue-600,.game-bg-blue-500,.game-bg-indigo-600) {
  color:#fff9e9; background:linear-gradient(#4797a9,#28677e); border-color:#254d5f;
  box-shadow:inset 0 1px #9fd3d2,0 3px 0 #254a55; font-weight:700;
}
.game-theme button:is(.game-bg-green-600,.game-bg-green-500) { color:#fffbe8; border-color:#466743; background:linear-gradient(#78a76b,#4c7a4e); box-shadow:inset 0 1px #bbd7a8,0 3px 0 #345236; }
.game-theme button:is(.game-bg-red-500,.game-bg-red-600) { color:#fff4e6; border-color:#7e3329; background:linear-gradient(#d16b53,#aa443a); box-shadow:inset 0 1px #eca388,0 3px 0 #753b30; }
.game-theme button:not(:disabled):active { transform:translateY(1px); }
.game-theme .game-primary:hover { filter:brightness(1.045); }
.game-shell { max-width:1200px; margin:0 auto; min-height:100dvh; position:relative; }
.game-header {
  display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:88px;
  padding:12px 28px; position:relative; z-index:20;
  background:linear-gradient(100deg,#42312b,#63503a 60%,#3c3730); color:#ffedc5;
  border:1px solid #32271f; border-bottom:4px solid #ba873c;
  box-shadow:inset 0 1px #aa886a,0 3px 12px #52321b22; border-radius:0 0 16px 16px;
}
.game-brand { display:flex; align-items:center; gap:20px; flex-shrink:0; }
.game-brand img { width:145px; height:66px; object-fit:contain; filter:drop-shadow(0 3px 1px #201a18aa); }
.game-brand h1 { font-size:17px; font-weight:700; border-left:1px solid #b49b6880; padding-left:20px; white-space:nowrap; }
.game-header > div:last-child { min-width:0; }
.game-header button { min-height:36px; white-space:nowrap; }
.game-header :is(.game-text-gray-500,.game-text-blue-600) { color:#f1d79c; }
.game-header span.game-bg-amber-50 { background:#30271d; border:1px solid #b98e41; color:#ffda78; }
.game-main { padding:28px 24px 112px 222px!important; min-width:0; }
.game-main > section,.game-main > div { min-width:0; }
.game-main section > h2,.game-main > div > h2 { font-size:20px; padding:3px 0 3px 13px; border-left:4px solid #b77830; margin-bottom:18px; }
.game-hero {
  position:relative; min-height:150px; padding:26px 30px; margin-bottom:24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:linear-gradient(110deg,#fcf1d6,#f2d89d); border:1px solid #c59b58; border-radius:14px;
  box-shadow:inset 0 0 0 4px #fffbec80,var(--game-shadow); overflow:hidden;
}
.game-hero::after { content:"✦"; position:absolute; right:160px; top:18px; font-size:24px; color:#d2a64d; transform:rotate(15deg); }
.game-hero h2 { font-size:26px; color:#5d3b24; margin:8px 0; font-weight:850; }
.game-hero p { color:#886740; font-size:13px; }
.game-eyebrow { display:block; font-size:11px; font-weight:800; letter-spacing:.2em; color:#976828; }
.hero-reward { width:120px; height:110px; object-fit:contain; filter:drop-shadow(0 8px 6px #ad78393b); }
.hero-avatar { width:76px; height:76px; border-radius:20px; border:2px solid #c69b54; box-shadow:0 4px 0 #9d74353b; }
.game-nav { position:fixed; z-index:25; top:118px; bottom:auto; left:max(20px,calc((100vw - 1200px)/2 + 20px)); width:178px; border:1px solid #37261f; border-radius:13px; background:linear-gradient(130deg,#5d4735,#42342b); padding:12px 9px 10px; box-shadow:inset 0 0 0 3px #bb945739,0 5px 14px #553e2920; }
.game-nav::before { content:"指尖幻影"; display:block; text-align:center; color:#dfc393; font-size:11px; letter-spacing:.25em; padding:8px 0 18px; }
.game-nav > div { display:flex; flex-direction:column; height:auto; gap:8px; }
.game-nav button { display:flex; flex-direction:row; justify-content:flex-start; align-items:center; gap:13px; width:100%; min-width:0; padding:13px 16px; min-height:52px; border-radius:8px; color:#e8cfaa; border:1px solid transparent; }
.game-nav button .text-xs { font-size:14px; font-weight:600; }
.game-nav button.game-nav-active { background:linear-gradient(#ffe3a2,#eeb352); border-color:#a57835; color:#58371e; box-shadow:inset 0 1px #fff8dd,0 3px 0 #2c211b; }
.game-nav button:not(.game-nav-active):hover { background:#91734740; }
.nav-symbol { display:inline-block; width:24px; height:24px; flex-shrink:0; background:currentColor; mask:var(--nav-icon) center/contain no-repeat; -webkit-mask:var(--nav-icon) center/contain no-repeat; }
.game-tabs { background:#ddc8a6; border:1px solid #bb9b6d; border-radius:12px; gap:5px; overflow-x:auto; overscroll-behavior-inline:contain; box-shadow:inset 0 2px 3px #70542b14; }
.game-tabs button { white-space:nowrap; flex-shrink:0; min-width:64px; min-height:40px; }
.game-tabs button.game-bg-blue-600 { background:linear-gradient(#fff7dc,#f4d99c); color:#654423; border-color:#ad8040; box-shadow:inset 0 1px white,0 2px 1px #a47e4840; }
.game-theme table { font-variant-numeric:tabular-nums; border-collapse:collapse; }
.game-theme thead { background:#efe1c3; color:#85653b; }
.game-theme th { padding:12px 9px; font-weight:600; white-space:nowrap; }
.game-theme td { padding:13px 9px; border-color:#e4cfaa; }
.game-theme tbody tr:nth-child(even) { background:#e8ce9b13; }
.game-theme tbody tr:hover { background:#e5bd6320; }
.game-card-grid { gap:16px; }
.game-item-art { background:radial-gradient(ellipse,#fffcdf,#ebd49d); border-bottom:1px solid #d7b67b; height:150px; }
.item-illustration { width:100px; height:100px; object-fit:contain; filter:drop-shadow(0 5px 4px #82632c35); }
.item-illustration-large { width:145px; height:145px; }
.game-item-art.h-44 { height:210px; }
.game-empty { padding:46px 20px; text-align:center; border:1px dashed #c6ab7e; border-radius:14px; background:#fff5dd77; }
.game-empty img { margin:0 auto 14px; width:72px; height:72px; object-fit:contain; opacity:.7; }
.game-empty h3 { font-size:16px; color:#735334; margin-bottom:8px; }
.game-empty p { font-size:13px; color:var(--game-muted); }
.game-theme .game-modal { background:#271f1bc4; backdrop-filter:blur(4px); padding:24px; align-items:center; }
.game-theme .game-modal > div { width:100%; max-width:660px; max-height:calc(100dvh - 48px); border:2px solid #a07c49; border-radius:16px; box-shadow:0 12px 60px #21170b66,inset 0 0 0 4px #e9ca88; }
.game-modal > div > .sticky:first-child { background:linear-gradient(#efdcaf,#e0c08a); border-bottom:2px solid #c19c60; padding:16px 20px; }
.game-modal > div > .sticky:first-child h3 { font-size:17px; color:#5e3e28; }
.game-modal > div > .sticky:first-child button { background:#a74736; color:#fff0cb; border:1px solid #703521; border-radius:50%; width:30px; height:30px; padding:0; box-shadow:inset 0 1px #e4946e,0 2px 0 #793d2c; }
.game-auth { display:grid; grid-template-columns:1.05fr 1fr; max-width:1000px; min-height:590px; margin:56px auto; border:2px solid #755338; border-radius:24px; background:var(--game-paper); overflow:hidden; box-shadow:0 5px 0 #ab864c,0 22px 60px #6f4b2b25; }
.game-auth-art { position:relative; min-height:590px; background:#dbb275 url('game/arena.jpg') center 55%/cover no-repeat; border-right:4px solid #a87b43; }
.game-auth-art::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 65%,#3d2816b8); pointer-events:none; }
.auth-logo { width:220px; position:absolute; top:22px; left:50%; transform:translateX(-50%); filter:drop-shadow(0 3px 2px #61412855); }
.art-caption { position:absolute; left:30px; right:25px; bottom:32px; z-index:1; color:#fff4d2; text-shadow:0 2px 2px #5d3b25; }
.art-caption span { font-size:22px; font-weight:800; }
.art-caption p { margin-top:7px; font-size:12px; color:#ffe7b8; }
.game-auth-form { align-self:center; padding:44px 42px; }
.game-auth-form :is(h1,h2) { font-size:27px; font-weight:800; color:#56381f; margin:12px 0; }
.auth-description { font-size:13px; color:var(--game-muted); margin-bottom:30px; }
.game-field { display:block; }
.game-field > span { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }
.game-auth-form input { min-height:50px!important; }
.game-auth-form .game-primary { margin-top:8px; min-height:50px; }
.auth-footnote { display:flex; align-items:center; justify-content:center; gap:8px; color:#957858; font-size:11px; margin-top:32px; padding-top:24px; border-top:1px solid #e1cda7; }
.auth-footnote img { border-radius:7px; }
.game-registration { min-height:100dvh; display:grid; place-content:center; padding:30px; }
.game-registration .game-auth { margin:0 auto; width:min(1000px,calc(100vw - 60px)); }
.game-success { width:min(410px,calc(100vw - 40px)); text-align:center; padding:58px 24px; border:16px solid transparent; border-image:url('game/panel.png') 18 fill / 16px; filter:drop-shadow(0 6px 12px #66513525); }
.game-success h1 { font-size:27px; font-weight:800; color:#604426; }
.success-seal { display:grid; place-content:center; width:64px; height:64px; border:3px solid #739258; border-radius:50%; margin:0 auto 22px; color:#426843; font-size:34px; background:#e4edc3; box-shadow:0 0 0 6px #b2c38a44; }
.game-invite-message { padding:28px; border:1px solid #bd9a67; border-radius:12px; background:#fff5dc; color:#60462d; }
/* Toasts and confirmations share the same game panels, including delivery confirmation. */
.ui-toast-wrap { position:fixed; top:max(20px,env(safe-area-inset-top)); inset-inline:0; z-index:9999; display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; padding:0 16px; }
.ui-toast { max-width:min(90%,500px); padding:13px 22px; border:2px solid #ba9457; border-radius:10px; background:#4d4234; color:#fff2cf; font-size:14px; box-shadow:0 4px 0 #39271933,0 8px 24px #47301733; text-align:center; overflow-wrap:anywhere; animation:game-enter .2s ease; }
.ui-toast.success { background:#466948; border-color:#94b17b; }.ui-toast.error { background:#963f34; border-color:#d59870; }
.ui-mask { position:fixed; inset:0; z-index:9998; background:#271f1bc4; backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:24px; }
.ui-dialog { background:var(--game-paper); border:2px solid #ac844d; border-radius:15px; max-width:390px; width:100%; overflow:hidden; box-shadow:0 10px 50px #24140966,inset 0 0 0 4px #e4ca96; animation:game-enter .18s ease; }
.ui-dialog-body { padding:30px 24px; font-size:15px; line-height:1.7; color:var(--game-ink); white-space:pre-wrap; text-align:center; overflow-wrap:anywhere; }
.ui-dialog-title { font-weight:800; font-size:19px; margin-bottom:12px; }
.ui-dialog-btns { display:flex; gap:10px; padding:14px; border-top:1px solid var(--game-line); background:#f0e1bf; }
.ui-dialog-btns button { flex:1; border:1px solid #b79a66; border-radius:8px; min-height:44px; font-size:14px; background:#fff6de; font-weight:700; color:#785b36; box-shadow:0 2px 0 #9f7d4229; }
.ui-dialog-btns .ui-btn-ok { background:linear-gradient(#ffe09a,#f2b54c); color:#65401c; border-color:#ad7938; }
.ui-dialog-btns .ui-btn-ok.danger { color:#fff1d7; background:#a74638; border-color:#753627; }
.ui-dialog-btns .ui-btn-switch { color:#286d81; }
.ui-delivery-body { padding:26px 20px; text-align:center; }
.ui-delivery-title { font-size:19px; font-weight:800; margin-bottom:15px; }
.ui-delivery-action { font-size:14px; overflow-wrap:anywhere; }
.ui-delivery-dest { margin-top:12px; padding:12px; background:#efe3c8; border-radius:9px; font-size:13px; overflow-wrap:anywhere; }
.ui-delivery-dest strong { color:#996721; }
.ui-scroll-hint { position:fixed; z-index:9990; display:inline-flex; align-items:center; gap:3px; padding:5px 9px; border:1px solid #b9975b; border-radius:8px; background:#55402def; color:#fff1ce; font-size:12px; line-height:1; white-space:nowrap; box-shadow:0 2px 8px #4f321a40; pointer-events:none; opacity:0; transition:opacity .2s ease; }
.ui-scroll-hint.show { opacity:1; }
.ui-scroll-hint svg { width:13px; height:13px; display:block; animation:game-hint-pulse 1.4s ease-in-out infinite; }
@keyframes game-hint-pulse { 0%,100%{opacity:1}50%{opacity:.45} }
@keyframes game-enter { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }
@media (min-width:1100px) { .game-shop .game-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.game-main { padding-top:32px!important; } }
@media (max-width:1000px) and (min-width:761px) { .game-main { padding-left:195px!important; }.game-nav { width:157px; left:18px; }.game-brand img { width:120px; }.game-auth { margin:35px 24px; }.game-auth-form{padding:35px 28px;} }
@media (max-width:760px) {
  .game-shell { max-width:760px; }
  .game-header { min-height:74px; padding:8px 16px; border-radius:0; border-bottom-width:3px; position:sticky; top:0; }
  .game-brand { gap:10px; }.game-brand img { width:100px; height:48px; }.game-brand h1 { font-size:13px; padding-left:10px; }
  .game-header > div:last-child { gap:8px; font-size:12px; }.game-header button { padding-inline:8px; }
  .game-shop .game-header .game-brand h1 { display:none; }
  .game-header span.game-bg-amber-50 { padding-inline:8px; }
  .game-main { padding:20px 16px calc(112px + env(safe-area-inset-bottom))!important; }
  .game-hero { padding:22px 20px; min-height:138px; margin-bottom:20px; gap:8px; }.game-hero h2 { font-size:20px; max-width:230px; }.game-hero p { font-size:12px; max-width:235px; }.game-hero::after{right:94px;font-size:17px;}.hero-reward{width:82px;height:82px;}.hero-avatar{width:58px;height:58px;border-radius:15px;}
  .game-nav { top:auto; bottom:0; left:0; right:0; width:100%; max-width:760px; margin:auto; padding:5px 8px calc(5px + env(safe-area-inset-bottom)); border-radius:16px 16px 0 0; border:2px solid #b58c4b; border-bottom:0; box-shadow:0 -4px 16px #4d392522,inset 0 2px #d1b48144; }
  .game-nav::before{display:none;}.game-nav > div { flex-direction:row; gap:4px; min-height:62px; }.game-nav button { flex:1; flex-direction:column; justify-content:center; gap:5px; padding:7px 2px; min-height:60px; }.game-nav button .text-xs{font-size:11px;}.nav-symbol{width:23px;height:23px;}
  .game-tabs { gap:3px; }.game-tabs button { font-size:13px; min-width:54px; padding-inline:10px; }
  .game-card-grid { gap:12px; }.game-item-art{height:130px;}.item-illustration{width:86px;height:86px;}
  .game-theme .game-modal { padding:12px; align-items:center; }.game-theme .game-modal > div { max-height:calc(100dvh - 24px); border-radius:14px; }
  .game-auth { grid-template-columns:1fr; margin:24px 16px 36px; border-radius:18px; min-height:0; }
  .game-auth-art { min-height:225px; background-position:center 54%; border-right:0; border-bottom:3px solid #b3894a; }
  .auth-logo { width:158px; top:12px; left:24px; transform:none; }
  .art-caption { left:24px; bottom:17px; }.art-caption span { font-size:18px; }.art-caption p{display:none;}
  .game-auth-form { padding:30px 26px; }.game-auth-form :is(h1,h2) { font-size:25px; }.auth-description { margin-bottom:23px; }.auth-footnote{margin-top:24px;padding-top:20px;}
  .game-registration { padding:20px 0; align-content:center; }.game-registration .game-auth { width:calc(100vw - 32px); margin:0 auto; }.game-registration .game-auth-art{min-height:225px;}
  .game-theme table { min-width:370px; }.game-theme td,.game-theme th{padding:11px 8px;}
}
@media (max-width:390px) {
  .game-header { padding:8px 10px; gap:5px; }.game-brand img{width:82px;}.game-brand h1{padding-left:8px;font-size:12px;}.game-brand{gap:8px;}
  .game-admin .game-header > div:last-child { gap:5px; font-size:11px; }.game-admin .game-header > div:last-child > span { max-width:60px; overflow:hidden; text-overflow:ellipsis; }
  .game-main { padding-inline:12px!important; }.game-hero{padding:18px 16px;}.game-hero h2{font-size:18px;}.hero-reward{width:65px;}.hero-avatar{width:48px;height:48px;}.game-auth-form{padding:27px 22px;}.game-card-grid{gap:10px;}
}
@media (pointer:fine) { .game-theme .date-ph { display:none!important; } }
@media (prefers-reduced-motion:reduce) { html{scroll-behavior:auto;}.game-theme *{animation:none!important;transition:none!important;} }

/* Palette classes replace the previous page-specific utility colors. */
.game-theme .game-active-bg-amber-100:active{background-color:#fce1aa;}
.game-theme .game-active-bg-amber-700:active{background-color:#92511f;}
.game-theme .game-active-bg-blue-100:active{background-color:#d6e9e3;}
.game-theme .game-active-bg-blue-700:active{background-color:#285665;}
.game-theme .game-active-bg-gray-100:active{background-color:#efe4cb;}
.game-theme .game-active-bg-gray-200:active{background-color:#dfd0b2;}
.game-theme .game-active-bg-gray-50:active{background-color:#faf1dc;}
.game-theme .game-active-bg-green-100:active{background-color:#dfE8c7;}
.game-theme .game-active-bg-indigo-600:active{background-color:#28677d;}
.game-theme .game-active-bg-orange-600:active{background-color:#bd7525;}
.game-theme .game-active-bg-red-100:active{background-color:#f1d4c6;}
.game-theme .game-active-bg-white-30:active{background-color:#fff8e94c;}
.game-theme .game-active-from-orange-500:active{--tw-gradient-from:#e8a438;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-active-from-pink-600:active{--tw-gradient-from:#a14535;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-active-text-blue-600:active{color:#28677d;}
.game-theme .game-active-text-orange-500:active{color:#e8a438;}
.game-theme .game-active-to-orange-700:active{--tw-gradient-to:#92511f;}
.game-theme .game-active-to-rose-700:active{--tw-gradient-to:#8e382d;}
.game-theme .game-bg-amber-50{background-color:#fff0d3;}
.game-theme .game-bg-amber-600{background-color:#bd7525;}
.game-theme .game-bg-black-40{background-color:#251c1666;}
.game-theme .game-bg-black-45{background-color:#251c1673;}
.game-theme .game-bg-black-50{background-color:#251c1680;}
.game-theme .game-bg-blue-50{background-color:#e7f2ed;}
.game-theme .game-bg-blue-500{background-color:#367b90;}
.game-theme .game-bg-blue-600{background-color:#28677d;}
.game-theme .game-bg-gray-100{background-color:#efe4cb;}
.game-theme .game-bg-gray-200{background-color:#dfd0b2;}
.game-theme .game-bg-gray-300{background-color:#c4ae8c;}
.game-theme .game-bg-gray-50{background-color:#faf1dc;}
.game-theme .game-bg-green-100{background-color:#dfE8c7;}
.game-theme .game-bg-green-50{background-color:#eff1dd;}
.game-theme .game-bg-green-500{background-color:#64834e;}
.game-theme .game-bg-indigo-100{background-color:#d6e9e3;}
.game-theme .game-bg-indigo-50{background-color:#e7f2ed;}
.game-theme .game-bg-indigo-500{background-color:#367b90;}
.game-theme .game-bg-orange-100{background-color:#fce1aa;}
.game-theme .game-bg-orange-400{background-color:#edb144;}
.game-theme .game-bg-orange-50{background-color:#fff0d3;}
.game-theme .game-bg-orange-500{background-color:#e8a438;}
.game-theme .game-bg-pink-50{background-color:#faede2;}
.game-theme .game-bg-purple-50{background-color:#f0e9ef;}
.game-theme .game-bg-purple-500{background-color:#815f83;}
.game-theme .game-bg-red-100{background-color:#f1d4c6;}
.game-theme .game-bg-red-50{background-color:#faede2;}
.game-theme .game-bg-red-500{background-color:#af5140;}
.game-theme .game-bg-teal-100{background-color:#d6e9e3;}
.game-theme .game-bg-white{background-color:#fff8e9;}
.game-theme .game-bg-white-20{background-color:#fff8e933;}
.game-theme .game-bg-white-80{background-color:#fff8e9cc;}
.game-theme .game-bg-white-95{background-color:#fff8e9f2;}
.game-theme .game-bg-yellow-400{background-color:#edb144;}
.game-theme .game-bg-yellow-50{background-color:#fff0d3;}
.game-theme .game-border-amber-200{border-color:#f7d080;}
.game-theme .game-border-blue-300{border-color:#76adb7;}
.game-theme .game-border-gray-100{border-color:#efe4cb;}
.game-theme .game-border-gray-200{border-color:#dfd0b2;}
.game-theme .game-border-green-200{border-color:#bbd0a6;}
.game-theme .game-border-green-300{border-color:#a5c08b;}
.game-theme .game-border-indigo-500{border-color:#367b90;}
.game-theme .game-border-orange-200{border-color:#f7d080;}
.game-theme .game-border-orange-300{border-color:#efbc5c;}
.game-theme .game-border-orange-400{border-color:#edb144;}
.game-theme .game-border-orange-500{border-color:#e8a438;}
.game-theme .game-from-amber-400{--tw-gradient-from:#edb144;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-from-amber-50{--tw-gradient-from:#fff0d3;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-from-blue-50{--tw-gradient-from:#e7f2ed;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-from-orange-400{--tw-gradient-from:#edb144;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-from-pink-500{--tw-gradient-from:#af5140;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-from-red-50{--tw-gradient-from:#faede2;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);}
.game-theme .game-ring-orange-300{--tw-ring-color:#efbc5c;}
.game-theme .game-text-amber-500{color:#9f6120;}
.game-theme .game-text-amber-600{color:#92511f;}
.game-theme .game-text-amber-700{color:#92511f;}
.game-theme .game-text-blue-500{color:#367b90;}
.game-theme .game-text-blue-600{color:#28677d;}
.game-theme .game-text-gray-300{color:#c4ae8c;}
.game-theme .game-text-gray-400{color:#7e6751;}
.game-theme .game-text-gray-500{color:#76614e;}
.game-theme .game-text-gray-600{color:#644f3e;}
.game-theme .game-text-gray-700{color:#544130;}
.game-theme .game-text-gray-800{color:#443326;}
.game-theme .game-text-green-500{color:#64834e;}
.game-theme .game-text-green-600{color:#4d7147;}
.game-theme .game-text-green-700{color:#3c5d3b;}
.game-theme .game-text-indigo-400{color:#52899b;}
.game-theme .game-text-indigo-500{color:#367b90;}
.game-theme .game-text-indigo-600{color:#28677d;}
.game-theme .game-text-indigo-700{color:#285665;}
.game-theme .game-text-orange-400{color:#9f6120;}
.game-theme .game-text-orange-500{color:#9f6120;}
.game-theme .game-text-orange-600{color:#92511f;}
.game-theme .game-text-orange-700{color:#92511f;}
.game-theme .game-text-pink-500{color:#af5140;}
.game-theme .game-text-pink-600{color:#a14535;}
.game-theme .game-text-purple-600{color:#704b72;}
.game-theme .game-text-red-500{color:#af5140;}
.game-theme .game-text-red-600{color:#a14535;}
.game-theme .game-text-red-700{color:#8e382d;}
.game-theme .game-text-rose-500{color:#af5140;}
.game-theme .game-text-rose-700{color:#8e382d;}
.game-theme .game-text-teal-600{color:#28677d;}
.game-theme .game-text-white{color:#fff8e9;}
.game-theme .game-text-yellow-700{color:#92511f;}
.game-theme .game-to-indigo-100{--tw-gradient-to:#d6e9e3;}
.game-theme .game-to-orange-100{--tw-gradient-to:#fce1aa;}
.game-theme .game-to-orange-50{--tw-gradient-to:#fff0d3;}
.game-theme .game-to-orange-500{--tw-gradient-to:#e8a438;}
.game-theme .game-to-orange-600{--tw-gradient-to:#bd7525;}
.game-theme .game-to-pink-500{--tw-gradient-to:#af5140;}
.game-theme .game-to-rose-600{--tw-gradient-to:#a14535;}
.game-theme .game-to-yellow-100{--tw-gradient-to:#fce1aa;}
.nav-symbol-shop{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209h18l-2-5H5L3%209Zm1%200v11h16V9M9%2020v-7h6v7M3%209c0%204%205%204%205%200%200%204%208%204%208%200%200%204%205%204%205%200%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-crown{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%206%205%204%204-6%204%206%205-4-2%2013H5L3%206Zm3%209h12%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-gift{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010h18v5H3zM5%2015v6h14v-6M12%2010v11M12%2010c-12%200-9-11-4-6l4%206Zm0%200c12%200%209-11%204-6l-4%206Z%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-coin{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M15%208h-4a2%202%200%200%200%200%204h2a2%202%200%200%201%200%204H9m3-10v12%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-profile{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-overview{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021h18M5%2017v-5h3v5M11%2017V7h3v10M17%2017V3h3v14%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-people{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%2020v-2a7%207%200%200%201%2014%200v2M16%205a3%203%200%200%201%200%206m3%209v-2a7%207%200%200%200-3-6%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-settings{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%205v10l-9%205-9-5V7l9-5Zm-9%205%209%205%209-5M12%2012v10M8%204l9%205%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-orders{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12v18l-3-2-3%202-3-2-3%202V3Zm3%205h6M9%2012h6%22%2F%3E%3C%2Fsvg%3E")}

/* Scalable game symbols and final component contrast rules. */
.nav-symbol-search{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%226%22%2F%3E%3Cpath%20d%3D%22m15%2015%206%206%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-spark{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m13%202-8%2012h6l-1%208%209-13h-6l1-7Z%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-check{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m7%2012%203%203%207-7%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-world{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%2212%22%20rx%3D%224%22%20ry%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-lock{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2211%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2010V6a4%204%200%200%201%208%200v4m-4%205v2%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-gem{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%203-5%206%2010%2013L22%209l-5-6H7ZM2%209h20M7%203l5%2019%205-19M7%203l5%206%205-6%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-flame{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M13%202c2%206%207%207%207%2013a8%208%200%200%201-16%200c0-3%202-5%205-8v6c5-3%204-7%204-11Z%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-pin{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%203%208%200-1%206%204%205H5l4-5-1-6Zm4%2011v8%22%2F%3E%3C%2Fsvg%3E")}
.nav-symbol-calendar{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6m10-6v6M3%2011h18M7%2015h3m4%200h3M7%2018h3%22%2F%3E%3C%2Fsvg%3E")}

.game-theme .game-inline-icon { display:inline-block; vertical-align:-.2em; width:1.25em; height:1.25em; object-fit:contain; flex-shrink:0; margin-inline:1px; }
.game-privilege-art{height:110px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;background:url('game/lottery-banner.png') center/100% 100% no-repeat}
.game-privilege-art img{display:block;width:82%;height:90px;max-width:220px;object-fit:contain}
.game-privilege-detail{height:176px;margin-bottom:0}.game-privilege-detail img{width:80%;height:144px;max-width:300px}
.game-privilege-inline{display:inline-block;width:44px;height:34px;object-fit:contain;flex-shrink:0}
.game-privilege-nav{display:block;width:30px;height:24px;object-fit:contain;flex-shrink:0}
@media(max-width:360px){.game-privilege-art:not(.game-privilege-detail){height:90px}.game-privilege-art:not(.game-privilege-detail) img{height:76px}.game-privilege-inline{width:36px;height:30px}}
.game-theme .game-glyph { width:1.15em; height:1.15em; vertical-align:-.15em; }
.game-theme .game-prize-icon { width:36px; height:36px; object-fit:contain; margin-inline:auto; }
.game-theme .game-prize-icon.text-4xl { width:76px; height:76px; }
.game-theme .game-header :is(.game-text-gray-500,.game-text-blue-600) { color:#efd6a2; }
.game-theme .game-nav button { color:#e1c69c; }
.game-theme .game-nav button.game-nav-active { color:#56381d; }
.game-theme .game-main .-mx-4 { margin-inline:0; }
.game-theme .game-header .game-bg-amber-50 { background:#30271d; border:1px solid #b98e41; color:#ffdc86; }
.game-theme .game-text-white:is(.game-bg-orange-500,.game-bg-amber-500,.game-from-amber-400,.game-from-orange-400) { color:#523212; }

/* 商城 017：游戏原图导航、身份木框、输入框；不影响后台表单。 */
.game-shop .game-nav-art { display:block; width:32px; height:28px; flex:none; object-fit:contain; }
.game-player-info { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 24px 0 222px; }
.game-info-frame { min-width:0; min-height:108px; border:12px solid transparent; border-image:url('game/lottery-banner.png') 40 fill stretch; padding:2px 8px; display:flex; flex-direction:column; justify-content:center; }
.game-info-value { display:flex; align-items:center; gap:8px; color:#8d551f; font-size:26px; line-height:1.25; overflow-wrap:anywhere; }
.game-info-name { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.game-info-caption { display:block; color:#81613e; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.game-shop input.game-input { min-height:54px; border:14px solid transparent; border-image:url('game/input-frame.png') 28 fill stretch; border-radius:0; padding:0 12px; background:transparent; color:#ffedc8; box-shadow:none; }
.game-shop input.game-input::placeholder { color:#bda987; }
.game-shop input.game-input:focus { border-image:url('game/input-frame.png') 28 fill stretch; outline:2px solid #b98a46; outline-offset:2px; box-shadow:none; }
.game-shop .game-search-field input { padding-right:30px; }
.game-shop .game-search-field > button { right:22px; color:#ffedc8; }
.game-shop .game-product-art .item-illustration { width:88px; height:88px; transform:translateY(6px); }
@media (max-width:1000px) and (min-width:761px) { .game-player-info { margin-left:195px; } }
@media (max-width:760px) {
  .game-player-info { margin:14px 12px 0; }
  .game-info-frame { padding:2px 4px; min-height:98px; }
  .game-info-value { font-size:24px; }
  .game-info-name { font-size:14px; }
  .game-shop .game-product-art .item-illustration { width:76px; height:76px; }
}

/* H5 在独立窗口及横屏时也保护系统安全区；游戏外层已预留的 iframe 中 env 为 0。 */
.game-shop .game-header { padding-top:calc(8px + env(safe-area-inset-top,0px)); padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px)); }
.game-shop .game-modal { padding-top:max(12px,env(safe-area-inset-top,0px)); padding-bottom:max(12px,env(safe-area-inset-bottom,0px)); }
.game-shop .game-modal > div { max-height:calc(100vh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); }
@media (max-width:760px) {
  .game-shop .game-main { padding-left:max(12px,env(safe-area-inset-left,0px))!important; padding-right:max(12px,env(safe-area-inset-right,0px))!important; }
  .game-player-info { margin-left:max(12px,env(safe-area-inset-left,0px)); margin-right:max(12px,env(safe-area-inset-right,0px)); }
  .game-shop .game-nav { padding-left:max(8px,env(safe-area-inset-left,0px)); padding-right:max(8px,env(safe-area-inset-right,0px)); }
}

/* 019：保持全屏，身份与余额分别复用首页横幅的木质外框。 */
.game-shop .game-shell { max-width:none; }
