/* Small, local-only visual layer shared by the player pages and admin tools. */
:root {
  --bg:#F6F5EF; --sidebar:#F0F1E9; --card:#FFFDF8; --sage:#E8EDDF;
  --active:#E0E8D8; --forest:#365C48; --gold:#B08C45; --text:#293D32;
  --muted:#67746A; --line:#DCE1D5; --shadow:0 4px 22px #233D2C05;
  font-size:15px; line-height:1.75;
}
body { background:radial-gradient(ellipse at 90% 0,#E8EDDF70,transparent 42%),var(--bg); }
.shell { grid-template-columns:230px minmax(0,1fr); }
aside { background:var(--sidebar); padding:30px 18px 24px; overflow-y:auto; scrollbar-width:thin; }
.brand { gap:10px; font-size:21px; padding:0 10px; }
.brand-mark { display:grid;place-items:center;width:40px;height:44px;border-radius:16px 16px 7px 7px;background:var(--forest);color:#F1E5BF;font-size:27px; }
.brand small { font-size:9px; letter-spacing:.18em; }
.nav-label { margin-top:38px; font-size:11px; }
nav { gap:7px; }
.nav-item { padding:13px 16px; min-height:48px; gap:14px; border-radius:12px; }
.nav-item svg { width:20px;height:20px;flex-shrink:0;opacity:.85; }
.nav-item:hover { background:#E6EBDF; }
.nav-item.active { background:var(--forest);color:#FFFCF5;border-color:var(--forest);box-shadow:0 4px 9px #365C4812; }
.nav-item.active:after { content:'';width:5px;height:5px;border-radius:50%;background:#E9D79F;margin-left:auto; }
.aside-bottom { padding-top:30px; }
.aside-bottom p { font-size:16px; }
.rule-mini,.tiny-label { font-size:11px; }
header { min-height:76px;padding:16px 38px;background:#FFFDF880; }
.breadcrumb { font-size:13px;gap:14px; }
.header-brand { font-size:11px; }
.coin-pill { font-variant-numeric:tabular-nums;background:#ECF0E5;border:0;padding:7px 15px; }
main { max-width:1500px;padding:32px 38px 56px; }
h1 { font-weight:650;letter-spacing:.025em; }
.page-title { margin-bottom:26px; }
.page-title .muted { font-size:14px; }
.eyebrow { font-size:10px;letter-spacing:.19em; }
.button { border-radius:10px;min-height:44px;padding:10px 19px;font-weight:600;transition:background .15s,box-shadow .15s,transform .15s; }
.button:hover:not(:disabled) { filter:none;background:#294B3A;box-shadow:0 4px 12px #365C481A; }
.button:active:not(:disabled) { transform:translateY(1px); }
.button.ghost { background:#FFFDF8; }
.button.ghost:hover:not(:disabled) { background:#EDF1E7;border-color:#A9BAA9; }
.button.small { font-size:13px;min-height:40px; }
.link-button { min-height:40px;font-size:13px; }
.button svg { width:17px;height:17px; }
.shop-hero { position:relative;display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;overflow:hidden;border:1px solid #DBDFCF;background:linear-gradient(112deg,#F0F0E2,#E9EEDC 85%);border-radius:22px;margin-bottom:24px;min-height:262px; }
.hero-copy { position:relative;z-index:1;padding:24px 34px; }
.hero-kicker { display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.16em;font-weight:650;color:#56725D;margin-bottom:14px; }
.hero-kicker svg { width:15px;height:15px; }
.shop-hero h1 { font-size:clamp(26px,2.25vw,36px);font-family:Georgia,'Noto Serif TC','PMingLiU',serif;line-height:1.4;letter-spacing:.045em;margin:0 0 10px; }
.shop-hero h1 span { display:block;color:#65795D; }
.shop-hero p { max-width:480px;color:#667360;font-size:13px;margin:0; }
.hero-footnote { display:flex;align-items:center;gap:16px;margin-top:14px;font-size:11px;color:#60735F; }
.hero-footnote:before { content:'';width:26px;height:1px;background:#A7B297; }
.town-illustration { width:100%;height:auto;align-self:end; }
.overview { grid-template-columns:1fr 1.12fr;gap:20px;margin-bottom:26px; }
.balance-card { min-height:226px;border:0;border-radius:18px;background:linear-gradient(125deg,#365C48,#4D7157);padding:26px 30px;color:#F8F7ED; }
.balance-card:before { content:'';position:absolute;right:-48px;top:-84px;width:260px;height:260px;border:1px solid #E2E9C825;border-radius:50%; }
.balance-card:after { content:'✦';font-size:100px;right:28px;bottom:24px;color:#D9DFC31F; }
.balance-label,.balance-bottom { color:#E2E9D8; }
.balance-label { font-size:13px;letter-spacing:.03em; }
.balance-card .balance-amount { color:#FFF9E8;font-size:50px;font-weight:550;font-variant-numeric:tabular-nums;margin:10px 0 18px; }
.balance-card .balance-amount small { color:#C2D1B9;letter-spacing:.14em;font-size:10px; }
.balance-bottom { display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px; }
.balance-bottom .link-button { color:#F0E2B8;text-decoration:none;padding:0; }
.earn-card { border-radius:18px;padding:20px 26px; }
.earn-heading .link-button { min-height:28px; }
.earn-card h3 { font-size:16px; }
.earn-row { padding:10px 0;gap:14px; }
.earn-row strong { font-size:13px; }
.earn-row .muted,.tier-label { font-size:12px; }
.earn-icon { background:#EDF0E3;color:#687F5B;border-radius:50%;width:38px;height:38px; }
.earn-row:last-child .earn-icon { background:#F3EADB;color:#9A7D47; }
.earn-value { font-size:14px;color:#7B693B; }
.tier-label { margin:4px 0;color:#6B7D62; }
.collection-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:34px; }
.collection-heading h2 { margin:0;font-size:21px;letter-spacing:.04em; }
.collection-heading>span { font-size:11px;letter-spacing:.16em;color:var(--muted); }
.shop-toolbar { margin:16px 0 18px;gap:16px; }
.tabs { gap:5px; }
.tab { border-radius:9px;font-size:13px;min-height:42px;padding:8px 15px; }
.tab.active { background:#E5ECDD;border-color:#C9D7C0;color:#365C48; }
.search-wrap { position:relative;width:265px;flex-shrink:0; }
.search-wrap svg { position:absolute;left:13px;top:14px;width:17px;height:17px;color:var(--muted);pointer-events:none; }
.search-wrap .search { width:100%;padding-left:39px; }
.results-caption { display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;min-height:24px;font-size:12px;color:var(--muted); }
input,select,textarea { min-height:46px;border-radius:10px;background:#FFFEFB;transition:border-color .15s,box-shadow .15s; }
input:hover,select:hover,textarea:hover { border-color:#AEBEAB; }
input:focus,select:focus,textarea:focus { border-color:#688C70; }
input[type=file] { background:#F5F7EF;border-style:dashed; }
input[type=file]::file-selector-button { font:inherit;border:0;border-radius:6px;background:#E1E9D9;color:#365C48;padding:7px 12px;margin-right:12px;cursor:pointer; }
input[type=checkbox] { min-height:0; }
.field { font-size:13px;gap:8px; }
.form-grid { gap:20px; }
.grid { gap:18px; }
.product { border-radius:16px;display:flex;flex-direction:column;box-shadow:var(--shadow); }
.product:hover { transform:translateY(-3px);box-shadow:0 10px 25px #2944300D;border-color:#BDCCB7; }
.product-art { height:158px;background-image:radial-gradient(circle at 50% 45%,#FFF9 0,transparent 65%); }
.product-art:after { content:'';position:absolute;inset:29px auto auto 50%;transform:translateX(-50%);width:98px;height:98px;border:1px solid #FFFFFF80;border-radius:50%;pointer-events:none; }
.product-art:has(img):after { display:none; }
.product-art svg { width:50px;height:50px;filter:drop-shadow(0 4px 5px #4B604013); }
.category { left:12px;top:12px;font-size:11px;border-radius:6px;background:#FFFDFADE;padding:3px 9px; }
.product-body { display:flex;flex-direction:column;flex:1;padding:20px; }
.product-body h3 { font-size:16px;margin-bottom:6px; }
.product-body p { font-size:12px;line-height:1.8;min-height:44px;margin-bottom:0; }
.stock { margin:16px 0;font-size:11px;padding-top:12px;border-top:1px solid #E4E8DD; }
.product-bottom { margin-top:auto;align-items:center;flex-wrap:wrap;gap:8px; }
.price { font-size:26px;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums; }
.price small { font-size:11px;letter-spacing:0; }
.product-bottom .button { font-size:12px;padding:8px 12px; }
.catalog-more { margin:24px 0;display:flex;flex-direction:column;align-items:center;gap:8px; }
.catalog-more small { color:var(--muted); }
.empty { padding:48px 24px;background:#FCFCF6; }
.empty-icon { display:grid;place-items:center;margin:0 auto 12px;color:#8B9F82; }
.empty-icon svg { width:32px;height:32px; }
.panel,.stat,.earn-card,.table-wrap { box-shadow:var(--shadow); }
.panel { border-radius:16px;padding:28px; }
#content>.panel+.panel,#admin-panel>.panel+.panel,#balance-results>.panel+.panel { margin-top:20px; }
.stat { padding:20px 24px;border-radius:14px;background:linear-gradient(135deg,#FFFDF9,#F3F6ED); }
.stat strong { font-size:32px;line-height:1.5;font-variant-numeric:tabular-nums; }
.stat .muted { font-size:12px; }
.admin-tabs { background:#EAEEE2;padding:8px;border:1px solid #D7E0CE;border-radius:13px;gap:4px; }
.admin-tabs .tab { padding:9px 14px; }
.admin-tabs .tab.active { background:var(--card);border-color:#D7DECD;box-shadow:0 2px 4px #365C4809; }
.table-wrap { border-radius:14px;overscroll-behavior-x:contain; }
table { font-size:13px; }
th { background:#ECF0E5;color:#50624D;font-size:12px; }
td,th { padding:16px 20px; }
td small { font-size:11px; }
tbody tr:hover { background:#F4F7EE; }
.notice { border-radius:12px;font-size:13px;border-color:#D8E2CE;background:#ECF2E5; }
.hint { font-size:12px;line-height:1.9; }
.badge { font-size:12px;padding:4px 11px; }
.review-images img { background:#EFF3E7;border-radius:10px; }
.review-tabs .tab { text-align:left;border:1px solid var(--line);background:#FFFDF8; }
.review-tabs .tab.active { background:#E3ECD9;border-color:#ACC09D; }
.review-description { margin-top:20px; }
#stream-form>.field { margin-bottom:20px; }
#balance-history>.panel { margin-top:14px; }
.warehouse-card h2 { line-height:1.6; }
dialog { border-radius:20px;padding:32px;box-shadow:0 24px 100px #243A3440; }
dialog::backdrop { background:#1C312B66;backdrop-filter:blur(4px); }
#toast { border-radius:12px;background:#FFFDF9;box-shadow:0 12px 40px #233D2C26;font-size:14px; }
footer { font-size:11px;padding:22px 38px; }
#page-progress { position:fixed;top:0;left:0;right:0;height:3px;z-index:200;background:#DCE5D4;overflow:hidden;pointer-events:none; }
#page-progress:after { content:'';display:block;height:100%;width:35%;background:#67865B;animation:progress-slide 1.25s ease-in-out infinite; }
.page-loading { min-height:420px;padding:16px 0; }
.loading-caption { display:flex;gap:9px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:30px; }
.loading-dot { width:7px;height:7px;border-radius:50%;background:#7B9770; }
.skeleton { border-radius:14px;background:linear-gradient(100deg,#E8EDE2 30%,#F1F4EC 50%,#E8EDE2 70%);background-size:240% 100%;animation:skeleton-sweep 1.7s ease-in-out infinite; }
.skeleton-title { width:min(380px,85%);height:34px;margin:14px 0; }
.skeleton-line { width:min(580px,100%);height:16px;margin:18px 0 32px; }
.skeleton-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.skeleton-card { height:240px; }
.skip-link { position:fixed;left:12px;top:-80px;z-index:300;background:var(--forest);color:white;border-radius:8px;padding:10px 20px; }
.skip-link:focus { top:12px; }
main:focus { outline:none; }
@keyframes progress-slide { from { transform:translateX(-100%); } to { transform:translateX(385%); } }
@keyframes skeleton-sweep { from { background-position:100% 0; } to { background-position:-100% 0; } }
@media(min-width:1700px) { .product-art { height:188px; }.shop-hero { grid-template-columns:1fr 380px; }.hero-copy { padding:36px 42px; } }
@media(max-width:1250px) { .shell { grid-template-columns:210px minmax(0,1fr); }main { padding:28px; }.shop-hero { grid-template-columns:1fr 255px; }.hero-copy { padding:26px; }.shop-hero h1 { font-size:28px; }.overview { gap:16px; }.balance-card { padding:24px; }.earn-card { padding:22px; } }
@media(min-width:951px) and (max-width:1100px) { .overview { grid-template-columns:1fr; }.balance-card { min-height:200px; } }
@media(max-width:950px) { .overview { grid-template-columns:1fr; }.shop-hero { grid-template-columns:1fr; }.town-illustration { position:absolute;width:220px;right:-45px;bottom:0;opacity:.2; }.hero-copy { padding:30px; }.shop-hero { min-height:242px; }.shop-toolbar { flex-wrap:wrap; }.search-wrap { width:100%; }.balance-card { min-height:205px; } }
@media(max-width:680px) {
  :root { font-size:14px; }
  .shell { display:block; }
  aside { height:auto;padding:18px 16px 10px;position:sticky;top:0;z-index:20;background:#F0F1E9;border-bottom:1px solid var(--line);overflow:visible; }
  .brand { padding:0 2px;font-size:20px; }.brand-mark { width:32px;height:35px;border-radius:12px 12px 6px 6px;font-size:23px; }
  .nav-label,.aside-bottom { display:none; }
  nav { margin-top:14px;padding-bottom:5px;gap:6px;scrollbar-width:thin; }
  .nav-item { padding:10px 13px;gap:8px;min-height:44px;border-radius:10px; }.nav-item>span { font-size:13px; }.nav-item svg { width:17px;height:17px; }.nav-item.active:after { display:none; }
  header { padding:12px 18px;min-height:65px;gap:10px; }.breadcrumb { font-size:11px;gap:7px; }.header-actions .button.small { min-height:40px;font-size:12px;padding:7px 10px; }.coin-pill { font-size:12px;padding:5px 10px; }
  main { padding:20px 16px 36px;scroll-margin-top:145px; }.page-title { margin-bottom:22px; }.page-title .muted { font-size:13px; }h1 { font-size:25px; }
  .shop-hero { border-radius:18px;min-height:240px;margin-bottom:16px; }.hero-copy { padding:25px; }.shop-hero h1 { font-size:28px; }.shop-hero p { font-size:12px;max-width:290px; }.hero-footnote { margin-top:17px;font-size:10px; }
  .town-illustration { width:210px;right:-44px;bottom:-1px; }
  .overview { gap:14px;margin-bottom:22px; }.balance-card { min-height:200px;padding:24px; }.balance-card .balance-amount { font-size:46px; }.balance-label { font-size:13px; }.earn-card { padding:20px 23px; }.earn-row { padding:13px 0; }
  .collection-heading { margin-top:28px; }.collection-heading h2 { font-size:20px; }.collection-heading>span { font-size:9px; }.shop-toolbar { gap:12px; }.shop-toolbar .tabs { width:100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px; }.shop-toolbar .tab { flex-shrink:0; }
  .search,input,select,textarea { font-size:16px; }.search { min-height:46px; }.search-wrap svg { top:15px; }
  .grid { gap:13px; }.product-art { height:128px; }.product-art:after { width:80px;height:80px;top:23px; }.product-art svg { width:42px;height:42px; }.product-body { padding:16px; }.product-body h3 { font-size:15px; }.product-body p { font-size:12px; }.stock { font-size:11px;margin:12px 0; }.price { font-size:24px; }.product-bottom .button { width:100%;min-height:42px;font-size:13px; }
  .panel { padding:22px 19px; }.form-grid { gap:17px; }.field { font-size:13px; }.stat { padding:14px 12px; }.stat .muted { font-size:11px; }.stat strong { font-size:26px; }
  .admin-tabs { flex-wrap:nowrap;overflow-x:auto;padding:7px; }.admin-tabs .tab { flex-shrink:0; }
  .table-wrap { border-radius:10px; }td,th { padding:14px; }.notice { padding:14px 16px;font-size:12px; }
  dialog { padding:24px 20px;width:calc(100vw - 24px);max-height:85dvh; }dialog .form-actions { flex-wrap:wrap; }dialog .form-actions .button { white-space:normal; }
  .review-tabs { gap:8px; }.review-tabs .tab { padding:12px; }
  .skeleton-grid { grid-template-columns:1fr 1fr;gap:14px; }.skeleton-card { height:210px; }.skeleton-card:last-child { display:none; }
  .toolbar { flex-wrap:wrap; }.form-grid>* { min-width:0; }.feature-grid,.access-layout { min-width:0; }
  #toast { bottom:18px;padding:12px 18px;max-width:calc(100vw - 28px); }
  footer { padding:20px 18px; }
}
@media(max-width:380px) { .grid:not(.warehouse-grid):not(.character-grid) { grid-template-columns:1fr; }.shop-hero h1 { font-size:25px; }.hero-copy { padding:22px; }.breadcrumb>span,.breadcrumb strong { display:none; }.stat-row { grid-template-columns:1fr; }.stat { display:flex;justify-content:space-between;align-items:center; }.stat strong { font-size:24px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }.product:hover { transform:none; } }

/* Linked game accounts */
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
.account-grid .panel{min-width:0;margin:0}
.account-grid .form-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px}
.account-grid form .field{margin-bottom:12px}
@media(max-width:700px){.account-grid{grid-template-columns:1fr}.account-grid .form-actions .button{flex:1}}

.maintenance-list{padding-left:20px}.maintenance-list li{padding:12px 0;overflow-wrap:anywhere}.maintenance-list small{display:block;color:var(--muted)}
