:root {
  --page: #17120f;
  --surface: #241b16;
  --surface-2: #31241b;
  --surface-3: #463223;
  --line: rgba(255, 234, 204, 0.10);
  --line-strong: rgba(255, 222, 176, 0.22);
  --ink: #fff4e7;
  --ink-2: #d7c3aa;
  --ink-3: #ad967e;
  --accent: #f08a24;
  --accent-2: #ffc54b;
  --accent-soft: rgba(240, 138, 36, 0.16);
  --on-accent: #261408;
  --up: #68b979;
  --down: #e56252;
  --warning: #e9aa42;
  --shadow: 0 18px 60px rgba(21, 11, 5, 0.30);
  --r: 18px;
  --r-sm: 12px;
  --r-lg: 30px;
  --admin-page: #eee7dc;
  --admin-bg: #fbf8f2;
  --admin-panel: #f3ede4;
  --admin-ink: #241a13;
  --admin-ink-2: #5c4d42;
  --admin-ink-3: #7d6b5e;
  --admin-border: rgba(49, 31, 19, 0.08);
  --stage-glow: #4a2d1b;
  --device: #0f0c0a;
  --device-edge: #35271e;
  --chrome: #201610;
  --chrome-2: #211711;
  --avatar-top: #efaa43;
  --avatar-bottom: #944119;
  --positive-ink: #8fd39d;
  --guide-top: #3c291d;
  --guide-bottom: #241914;
  --rail: #201712;
  --rail-ink: #cbb7a3;
  --rail-ink-strong: #f7eadc;
  --rail-nav: #bda994;
  --rail-avatar: #4a3325;
  --rail-avatar-ink: #ffe5c1;
  --rail-user: #f3e4d5;
  --rail-muted: #9d8874;
  --feature: #2d211a;
  --feature-ink: #fff1e3;
  --admin-accent-ink: #b85e12;
  --status-up: #477a50;
  --status-warn: #a15d12;
  --status-down: #b1473a;
  --toast-bg: #fff0d8;
  --toast-ink: #321e10;
  --modal-bg: #2a1e17;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -20%, var(--stage-glow), var(--page) 42%); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(240, 138, 36, 0.42); outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.hidden { display: none !important; }

.review-bar { min-height: 88px; padding: 16px 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(25, 18, 14, 0.92); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.review-bar h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.review-kicker { margin: 0; color: var(--accent-2); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.review-tip { justify-self: end; margin: 0; color: var(--ink-3); font-size: 12px; }
.view-switch { padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; display: flex; }
.switch-button { min-height: 42px; padding: 0 20px; border: 0; color: var(--ink-2); background: transparent; border-radius: 10px; font-weight: 700; }
.switch-button.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(240, 138, 36, 0.24); }

.prototype-stage { min-height: calc(100vh - 88px); padding: 36px; display: flex; align-items: center; justify-content: center; gap: 44px; }
.phone-shell { width: 464px; height: 980px; padding: 12px; border-radius: 64px; background: var(--device); border: 1px solid rgba(255, 226, 184, .15); box-shadow: 0 50px 120px rgba(0, 0, 0, .46), inset 0 0 0 2px var(--device-edge); position: relative; }
.phone-speaker { position: absolute; z-index: 12; width: 126px; height: 34px; border-radius: 999px; top: 18px; left: 50%; transform: translateX(-50%); background: #030303; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 1px 2px rgba(0,0,0,.55); }
.mini-app { width: 440px; height: 956px; border-radius: 52px; overflow: hidden; background: var(--page); display: grid; grid-template-rows: 52px 48px 1fr 82px; position: relative; }
.status-bar { z-index: 10; padding: 13px 23px 0; display: flex; align-items: flex-start; justify-content: space-between; font-size: 14px; font-weight: 800; letter-spacing: -.01em; background: var(--chrome); }
.status-time { display: inline-flex; align-items: center; gap: 4px; min-width: 105px; }
.status-time svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.status-network { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 105px; }
.status-network b { font-size: 14px; letter-spacing: -.03em; }
.cellular-bars { height: 14px; display: inline-flex; align-items: flex-end; gap: 2px; }
.cellular-bars i { width: 3px; border-radius: 2px; background: currentColor; }
.cellular-bars i:nth-child(1) { height: 5px; }
.cellular-bars i:nth-child(2) { height: 8px; }
.cellular-bars i:nth-child(3) { height: 11px; }
.cellular-bars i:nth-child(4) { height: 14px; }
.battery { width: 27px; height: 14px; padding: 1px; border: 1.6px solid currentColor; border-radius: 4px; position: relative; display: grid; place-items: center; font-size: 8px; line-height: 1; }
.battery::after { content: ""; position: absolute; right: -3px; width: 2px; height: 6px; border-radius: 0 2px 2px 0; background: currentColor; opacity: .65; }
.battery::before { content: ""; position: absolute; inset: 2px; right: 12px; border-radius: 1px; background: currentColor; opacity: .22; }
.battery span { position: relative; z-index: 1; }
.mini-program-bar { z-index: 9; min-width: 0; padding: 0 12px 4px 20px; display: grid; grid-template-columns: 92px 1fr 92px; align-items: center; background: var(--chrome); }
.mini-program-bar > strong { justify-self: center; font-size: 17px; white-space: nowrap; }
.mini-back { justify-self: start; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); display: grid; place-items: center; }
.mini-back.is-hidden { visibility: hidden; pointer-events: none; }
.mini-back span { margin-top: -4px; font-size: 38px; line-height: 1; font-weight: 250; }
.mini-back:active { background: rgba(255,255,255,.08); transform: scale(.94); }
.mini-program-capsule { justify-self: end; width: 88px; height: 36px; padding: 0 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; backdrop-filter: blur(16px); }
.mini-program-capsule button { min-width: 0; min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 3px; transition: transform .14s ease, opacity .14s ease; }
.mini-program-capsule button:active { transform: scale(.9); opacity: .72; }
.mini-program-capsule button i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.capsule-divider { width: 1px; height: 20px; background: rgba(255,255,255,.17); }
.capsule-circle { width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.capsule-circle::after { content: ""; position: absolute; width: 5px; height: 5px; inset: 4px; border-radius: 50%; background: currentColor; }
.mobile-page { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.mobile-page::-webkit-scrollbar { display: none; }
.mini-app.article-mode { grid-template-rows: 52px 48px 1fr 0; }
.mini-app.article-mode .bottom-nav { display: none; }
.mini-app.auth-mode { grid-template-rows: 52px 48px 1fr 0; }
.mini-app.auth-mode .bottom-nav { display: none; }
.bottom-nav {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 3px 5px;
  overflow: hidden;
  border-top: 3px solid #b95818;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(180deg, #4a3730, #2c201a 78%);
  box-shadow: inset 0 1px 0 rgba(255,196,92,.34), 0 -8px 24px rgba(13,7,4,.34);
}
.nav-item {
  position: relative;
  min-width: 0;
  min-height: 70px;
  padding: 0 2px 2px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(31,19,13,.28);
  border-radius: 0;
  background: transparent;
  color: #d9b78e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 2px rgba(22,11,6,.8);
}
.nav-item:last-child { border-right: 0; }
.nav-icon {
  width: 56px;
  height: 56px;
  margin: 3px 0 -12px;
  display: block;
  object-fit: contain;
  filter: saturate(.68) brightness(.78);
  opacity: .88;
  transform: scale(1);
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
}
.nav-label { position: relative; z-index: 1; line-height: 1.15; letter-spacing: .01em; }
.nav-item.active {
  color: #fff3cb;
  background: linear-gradient(180deg, #ff9d13, #e36409 84%);
  box-shadow: inset 1px 0 rgba(255,199,82,.38), inset -1px 0 rgba(116,46,4,.34), 0 0 18px rgba(230,100,9,.24);
}
.nav-item.active::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #35e3dc; box-shadow: 0 1px 5px rgba(53,227,220,.54); }
.nav-item.active .nav-icon { filter: none; opacity: 1; transform: translateY(-1px) scale(1.06); }

.prototype-notes { width: 310px; align-self: center; }
.note-chip { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 11px; font-weight: 750; }
.prototype-notes h2 { font-size: 32px; margin: 16px 0 8px; letter-spacing: -.03em; }
.prototype-notes > p { color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.path-card { margin-top: 24px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.path-card strong { color: var(--accent-2); font-size: 13px; }
.path-card ol { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 13px; line-height: 2; }

.mobile-header { min-height: 96px; padding: 18px 18px 12px; background: var(--chrome); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mobile-header h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.04em; }
.mobile-header p { margin: 4px 0 0; color: var(--ink-3); font-size: 11px; }
.avatar { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, var(--avatar-top), var(--avatar-bottom)); display: grid; place-items: center; color: var(--ink); font-weight: 800; border: 1px solid var(--line-strong); position: relative; flex: 0 0 auto; }
.avatar-button { padding: 0; }
.avatar img, .mine-profile-avatar img, .drawer-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.avatar::after { content: "官"; position: absolute; right: -6px; bottom: -5px; padding: 2px 4px; border-radius: 5px; background: var(--accent-2); color: var(--on-accent); font-size: 8px; }
.mobile-body { padding: 0 14px 24px; }
.home-command-header { overflow: hidden; background: radial-gradient(circle at 92% -10%, rgba(240,138,36,.2), transparent 38%), linear-gradient(180deg, #2d2018, #201610); }
.home-profile-row { min-height: 78px; padding: 12px 14px 10px; display: grid; grid-template-columns: 48px 1fr auto 42px; align-items: center; gap: 9px; }
.home-profile-avatar { width: 48px; height: 48px; padding: 0; overflow: hidden; border: 2px solid rgba(255,197,75,.72); border-radius: 50%; background: var(--surface); box-shadow: 0 5px 14px rgba(0,0,0,.32); }
.home-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-profile-copy { min-width: 0; }
.home-profile-copy strong, .home-profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-profile-copy strong { font-size: 15px; }
.home-profile-copy small { margin-top: 4px; color: var(--ink-3); font-size: 8px; }
.home-checkin-action { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,197,75,.42); border-radius: 999px; background: rgba(240,138,36,.11); color: var(--accent-2); font-size: 9px; font-weight: 800; }
.home-search-action { width: 42px; height: 42px; padding: 9px; border: 1px solid rgba(255,197,75,.5); border-radius: 14px; background: linear-gradient(180deg, #f7a734, #d96b15); color: #fff8e6; box-shadow: 0 6px 16px rgba(171,73,11,.28); }
.home-search-action svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.home-command-header .home-diamond-zone { margin: 0; border-bottom-color: rgba(255,234,204,.16); box-shadow: none; }
.home-content-sheet { min-height: 560px; margin-top: -1px; padding: 13px 13px 26px; position: relative; z-index: 2; border-radius: 18px 18px 0 0; background: var(--page); }
.home-feature-banner { width: 100%; height: 142px; padding: 0; position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #1e1512; color: #fff; text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.home-feature-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,10,8,.92) 0%, rgba(18,10,8,.54) 52%, rgba(18,10,8,.08)); }
.home-feature-banner > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 4%; filter: saturate(.88) contrast(1.06); }
.home-feature-banner > .badge { position: absolute; z-index: 2; left: 13px; top: 13px; }
.home-feature-banner > div { width: 70%; position: absolute; z-index: 2; left: 13px; bottom: 18px; }
.home-feature-banner small, .home-feature-banner strong, .home-feature-banner p { display: block; }
.home-feature-banner small { color: var(--accent-2); font-size: 8px; font-weight: 800; }
.home-feature-banner strong { margin-top: 3px; font-size: 20px; letter-spacing: -.03em; }
.home-feature-banner p { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 9px; }
.home-feature-banner > i { position: absolute; z-index: 2; right: 12px; bottom: 12px; color: #ffe1ad; font-size: 8px; font-style: normal; }
.home-section-heading { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-section-heading > div { display: flex; align-items: center; gap: 6px; }
.home-section-heading > div > i { width: 3px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.home-section-heading h3 { margin: 0; font-size: 15px; }
.home-section-heading span { color: var(--accent-2); font-size: 8px; }
.home-section-heading > button { min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--accent-2); font-size: 8px; }
.home-event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-event-grid > button { min-width: 0; padding: 0 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.home-event-grid img { width: 100%; height: 82px; display: block; object-fit: cover; object-position: center 35%; filter: saturate(.74) contrast(1.05); }
.home-event-grid span { display: inline-flex; min-height: 19px; margin: -10px 8px 5px; padding: 0 6px; position: relative; align-items: center; border-radius: 5px; background: var(--accent); color: var(--on-accent); font-size: 7px; font-weight: 850; }
.home-event-grid strong, .home-event-grid small { display: block; margin: 0 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-event-grid strong { font-size: 10px; }
.home-event-grid small { margin-top: 4px; color: var(--ink-3); font-size: 7px; }
.home-news-list { padding: 7px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.home-news-list > button { width: 100%; min-height: 39px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 60px 1fr 22px; align-items: center; gap: 7px; color: var(--ink); text-align: left; }
.home-news-list > button:last-child { border-bottom: 0; }
.home-news-list span { min-height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(240,138,36,.12); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); font-size: 7px; }
.home-news-list strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-news-list i { width: 19px; height: 19px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); font-size: 7px; font-style: normal; font-weight: 900; }
.home-portal-page { min-height: 100%; padding-bottom: 18px; background: radial-gradient(circle at 78% 0, rgba(235,133,35,.22), transparent 29%), linear-gradient(180deg, #2b1b13 0, #17100d 42%, #100c0a 100%); }
.home-portal-head { padding: 9px 13px 14px; border-bottom: 1px solid rgba(255,187,87,.3); background: linear-gradient(108deg, rgba(43,25,16,.94), rgba(80,40,18,.84)), url('assets/role-hero.png') center 46% / cover; }
.home-identity-line { min-height: 50px; display: grid; grid-template-columns: 43px 1fr auto 38px; align-items: center; gap: 8px; }
.home-portal-avatar { width: 43px; height: 43px; padding: 0; overflow: hidden; border: 2px solid #eca140; border-radius: 50%; background: #241711; box-shadow: 0 5px 14px rgba(0,0,0,.34); }
.home-portal-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-identity-line > div { min-width: 0; }
.home-identity-line small, .home-identity-line strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-identity-line small { color: #aa907b; font-size: 7px; }
.home-identity-line strong { margin-top: 2px; color: #fff1da; font-size: 14px; }
.home-subscribe { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,192,83,.58); border-radius: 999px; background: rgba(28,16,10,.72); color: #ffc15c; font-size: 8px; font-weight: 850; }
.home-message-entry { width: 38px; height: 38px; padding: 0; position: relative; border: 1px solid rgba(255,206,129,.28); border-radius: 11px; background: rgba(25,15,10,.72); color: #efaa4a; font-size: 16px; }
.home-message-entry i { min-width: 17px; height: 14px; padding: 0 3px; position: absolute; right: -5px; top: -5px; display: grid; place-items: center; border: 2px solid #3a2114; border-radius: 999px; background: #e5521b; color: #fff4dc; font-size: 6px; font-style: normal; }
.home-portal-search { width: 100%; height: 40px; margin-top: 9px; padding: 0 11px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; border: 1px solid rgba(255,212,147,.32); border-radius: 12px; background: rgba(18,11,8,.88); color: #9e8775; text-align: left; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.home-portal-search svg { width: 18px; height: 18px; fill: none; stroke: #db913e; stroke-width: 1.8; stroke-linecap: round; }
.home-portal-search span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-portal-search b { padding: 3px 6px; border-radius: 4px; background: rgba(234,129,31,.15); color: #ee9e44; font-size: 7px; }
.home-portal-main { padding: 11px 9px 24px; }
.home-carousel { height: 196px; position: relative; overflow: hidden; border: 1px solid #8b562e; border-radius: 12px; background: #1c120e; box-shadow: 0 9px 20px rgba(0,0,0,.28), inset 0 0 0 3px rgba(255,197,94,.08); }
.home-carousel::before, .home-carousel::after { content: ""; width: 29px; height: 29px; position: absolute; z-index: 4; pointer-events: none; border-color: #efa23e; }
.home-carousel::before { left: 5px; top: 5px; border-left: 2px solid; border-top: 2px solid; }
.home-carousel::after { right: 5px; bottom: 5px; border-right: 2px solid; border-bottom: 2px solid; }
.home-carousel-visual { width: 100%; height: 100%; padding: 0; position: relative; overflow: hidden; border: 0; background: #1a110d; color: #fff; text-align: left; }
.home-carousel-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,10,7,.9) 0, rgba(19,10,7,.54) 54%, rgba(19,10,7,.04) 80%), linear-gradient(180deg, transparent 58%, rgba(15,8,5,.55)); }
.home-carousel-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; filter: saturate(.91) contrast(1.07); }
.home-carousel-visual > span { max-width: 67%; position: absolute; z-index: 2; left: 18px; top: 45px; display: block; }
.home-carousel-visual small, .home-carousel-visual strong, .home-carousel-visual p, .home-carousel-visual em { display: block; }
.home-carousel-visual small { color: #f4a341; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.home-carousel-visual strong { margin-top: 4px; color: #fff0da; font-size: 23px; line-height: 1.05; text-shadow: 0 3px 8px rgba(0,0,0,.65); }
.home-carousel-visual p { margin: 8px 0 0; color: rgba(255,239,218,.76); font-size: 8px; line-height: 1.45; }
.home-carousel-visual em { margin-top: 15px; color: #ffc15c; font-size: 8px; font-style: normal; font-weight: 850; }
.home-carousel-arrow { width: 28px; height: 42px; padding: 0; position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); border: 0; background: rgba(18,10,7,.55); color: rgba(255,231,190,.84); font-size: 23px; }
.home-carousel-arrow.prev { left: 0; border-radius: 0 8px 8px 0; }
.home-carousel-arrow.next { right: 0; border-radius: 8px 0 0 8px; }
.home-carousel-dots { position: absolute; z-index: 5; left: 50%; bottom: 9px; transform: translateX(-50%); display: flex; gap: 5px; }
.home-carousel-dots button { width: 7px; height: 4px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,240,217,.46); transition: width .18s ease, background .18s ease; }
.home-carousel-dots button.active { width: 23px; background: #f3a039; }
.home-service-panel { min-height: 88px; margin-top: 10px; padding: 9px 7px 8px; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; border: 1px solid #664329; border-radius: 11px; background: linear-gradient(180deg, #39271e, #271b16); box-shadow: inset 0 1px 0 rgba(255,222,169,.09), 0 7px 15px rgba(0,0,0,.2); }
.home-service-panel::before, .home-service-panel::after { content: ""; width: 10px; height: 18px; position: absolute; top: 50%; transform: translateY(-50%); background: #17100d; }
.home-service-panel::before { left: -2px; clip-path: polygon(0 0,100% 50%,0 100%); }
.home-service-panel::after { right: -2px; clip-path: polygon(100% 0,0 50%,100% 100%); }
.home-service-panel button { min-width: 0; padding: 0 1px 2px; position: relative; border: 0; border-radius: 9px; background: transparent; color: #ead7bf; transition: transform .16s ease, background-color .16s ease; }
.home-service-icon { width: 48px; height: 48px; margin: 0 auto 2px; position: relative; display: grid; place-items: center; }
.home-service-icon::after { content: ""; width: 34px; height: 7px; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(231,139,48,.34), transparent 70%); filter: blur(2px); }
.home-service-icon img { width: 48px; height: 48px; position: relative; z-index: 1; display: block; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.38)); }
.home-service-panel strong { display: block; overflow: hidden; font-size: 7.5px; font-weight: 850; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; }
.home-service-panel button:active { transform: translateY(1px) scale(.96); background: rgba(231,140,47,.08); }
.home-service-panel button:focus-visible { outline: 2px solid #ffb345; outline-offset: 1px; }
.home-feed-panel { margin-top: 10px; overflow: hidden; border: 1px solid #553a2b; border-radius: 12px; background: #221814; box-shadow: inset 0 1px 0 rgba(255,229,183,.05); }
.home-feed-tabs { height: 45px; padding: 0 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; align-items: center; border-bottom: 1px solid #4a3227; background: linear-gradient(180deg, #302119, #271a15); }
.home-feed-tabs button { height: 29px; padding: 0 3px; position: relative; border: 0; border-radius: 7px; background: transparent; color: #a8907c; font-size: 8px; }
.home-feed-tabs button.active { background: linear-gradient(180deg, #f2a03a, #dc711c); color: #2a1509; font-weight: 900; }
.home-feed-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #dc711c; }
.home-feed-list { padding: 0 9px; }
.home-feed-item { width: 100%; min-height: 76px; padding: 8px 0; display: grid; grid-template-columns: 90px 1fr auto; grid-template-rows: 1fr auto; align-items: center; gap: 0 9px; border: 0; border-bottom: 1px dashed rgba(217,175,129,.18); background: transparent; color: #f1deca; text-align: left; }
.home-feed-item:last-child { border-bottom: 0; }
.home-feed-item > img { width: 90px; height: 58px; grid-row: 1 / 3; display: block; object-fit: cover; object-position: center 28%; border: 1px solid #503426; border-radius: 7px; background: #17100d; }
.home-feed-item > span { min-width: 0; align-self: end; }
.home-feed-item small { display: block; color: #e88b32; font-size: 7px; font-weight: 850; }
.home-feed-item strong { margin-top: 3px; display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-feed-item i { grid-column: 3; grid-row: 1; align-self: start; padding: 3px 5px; border-radius: 4px; background: #b85222; color: #fff1dc; font-size: 6px; font-style: normal; font-weight: 900; }
.home-feed-item time { grid-column: 3; grid-row: 2; align-self: end; color: #806d5f; font-size: 7px; }
.home-feed-item:active { background: rgba(232,130,34,.07); }
.hero-card { min-height: 186px; margin: 0 -14px 16px; padding: 18px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background-size: cover; background-position: center 38%; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 10, 6, .06), rgba(18, 10, 6, .88)); }
.hero-copy { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-copy h3 { margin: 0 0 4px; font-size: 20px; }
.hero-copy p { margin: 0; color: var(--ink-2); font-size: 11px; }
.home-diamond-zone {
  min-height: 82px;
  margin: -16px -14px 0;
  padding: 12px 8px 11px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,197,75,.10), transparent 32%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(21,11,5,.24);
}
.home-diamond-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(30deg, transparent 12%, rgba(255,197,75,.09) 13%, transparent 14%),
    linear-gradient(150deg, transparent 72%, rgba(255,244,231,.06) 73%, transparent 74%);
  background-size: 48px 40px;
}
.diamond-entry {
  min-width: 0;
  min-height: 58px;
  padding: 0 2px;
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(21,11,5,.72);
  transition: background .18s ease, transform .18s ease;
}
.diamond-entry:hover { background: var(--accent-soft); color: var(--ink); }
.diamond-entry:active { transform: translateY(1px) scale(.97); }
.diamond-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  filter: drop-shadow(0 2px 3px rgba(84,38,9,.64));
}
.diamond-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button, .secondary-button { border: 0; min-height: 44px; border-radius: var(--r-sm); padding: 0 15px; font-weight: 800; white-space: nowrap; }
.primary-button { color: var(--on-accent); background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 24px rgba(240, 138, 36, .26); }
.secondary-button { color: var(--ink); background: var(--surface-3); border: 1px solid var(--line); }
.checkin-card { margin-top: -28px; position: relative; z-index: 2; padding: 15px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.card-top, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top strong, .section-title h3 { margin: 0; font-size: 15px; }
.card-top small, .section-title button { color: var(--accent-2); }
.section-title { margin: 20px 2px 10px; }
.section-title button { border: 0; background: transparent; min-height: 44px; font-size: 11px; }
.daily-must-title { min-height: 44px; margin-top: 15px; margin-left: 0; }
.daily-must-banner { width: 178px; height: 40px; padding: 0 22px 0 12px; display: flex; align-items: center; gap: 7px; background: url('assets/daily-must-banner.png') center / 100% 100% no-repeat; }
.daily-must-banner svg { width: 25px; height: 29px; flex: 0 0 auto; overflow: visible; fill: #ffe845; stroke: #ff8b00; stroke-width: .6; filter: drop-shadow(0 2px 1px rgba(110,35,0,.65)); }
.daily-must-title .daily-must-banner h3 { color: #fff; font-size: 15px; font-weight: 950; letter-spacing: .05em; white-space: nowrap; text-shadow: 0 2px 0 #7b250b, 0 0 5px rgba(86,23,0,.85); }
.daily-must-title > button { min-height: 36px; padding: 0 2px 0 8px; font-size: 9px; }
.day-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 14px; }
.day { height: 43px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); font-size: 10px; }
.day.done { color: var(--accent-2); background: var(--accent-soft); }
.day.today { color: var(--on-accent); background: var(--accent); font-weight: 800; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-button { min-height: 82px; padding: 6px 4px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 750; }
.quick-button span { display: block; color: var(--accent-2); font-size: 23px; margin-bottom: 5px; }
.quick-icon { width: 46px; height: 46px; margin: -2px 0 1px; display: block; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.24)); }
.feed-card, .guide-card, .event-card, .profile-card, .code-card, .panel-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.feed-card h4, .guide-card h4, .event-card h4 { margin: 8px 0 5px; font-size: 14px; line-height: 1.4; }
.feed-card p, .guide-card p, .event-card p { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.6; }
.meta-row { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-2); font-size: 9px; font-weight: 800; }
.badge.green { color: var(--positive-ink); background: rgba(104, 185, 121, .14); }
.feed-image { width: 100%; height: 108px; object-fit: cover; border-radius: 12px; margin: 10px 0; filter: saturate(.82) contrast(1.04); }
.news-feature-card { border-color: rgba(55,204,194,.18); }
.news-feature-image { height: 166px; object-position: center top; filter: saturate(.92) contrast(1.03); }
.action-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 11px; padding-top: 10px; }
.action-row button { border: 0; background: transparent; color: var(--ink-3); min-height: 32px; font-size: 10px; }
.social-row { gap: 4px; padding-top: 7px; }
.social-row .social-action { flex: 1; min-width: 0; min-height: 42px; padding: 0 5px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: color .16s ease, background .16s ease, transform .12s ease; }
.social-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-action.active { color: var(--accent-2); background: var(--accent-soft); font-weight: 800; }
.social-action.active svg { fill: rgba(240, 138, 36, .18); }
.social-action:active { transform: scale(.94); }
.community-page { min-height: 100%; padding-bottom: 18px; background: radial-gradient(circle at 16% 0, rgba(235,139,44,.13), transparent 24%), linear-gradient(180deg, #2c1e17 0, #17110e 35%, #110d0b 100%); }
.community-command-header { min-height: 132px; padding: 10px 12px 13px; border-bottom: 1px solid rgba(240,151,57,.25); background: linear-gradient(105deg, rgba(39,25,18,.92), rgba(62,36,20,.78)), url('assets/role-hero.png') center 46% / cover; }
.community-profile-row { min-height: 51px; display: grid; grid-template-columns: 43px 1fr 34px; align-items: center; gap: 8px; }
.community-profile-avatar { width: 43px; height: 43px; padding: 0; overflow: hidden; border: 2px solid #e99a3a; border-radius: 50%; background: #241711; box-shadow: 0 4px 12px rgba(0,0,0,.38); }
.community-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.community-profile-row small, .community-profile-row h1 { display: block; }
.community-profile-row small { color: #b49a82; font-size: 7px; }
.community-profile-row h1 { margin: 2px 0 0; color: #fff0dc; font-size: 17px; line-height: 1; }
.community-profile-row > button:last-child { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,211,139,.22); border-radius: 10px; background: rgba(31,20,15,.75); color: #f3aa44; font-size: 14px; }
.community-search { width: 100%; height: 41px; margin-top: 12px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,228,184,.15); border-radius: 11px; background: rgba(21,15,12,.82); color: #8f7c6c; text-align: left; }
.community-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #b59e88; stroke-width: 1.8; stroke-linecap: round; }
.community-search span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.community-content { padding: 12px 8px 24px; }
.community-channel-grid { padding: 9px 4px 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.community-channel-grid button { min-width: 0; padding: 0; border: 0; background: transparent; color: #d7c1a9; }
.community-channel-grid button > span { width: 45px; height: 45px; margin: 0 auto 5px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid #67462f; border-radius: 12px; background: radial-gradient(circle at 50% 32%, #5a3b28, #201713 72%); box-shadow: inset 0 1px 0 rgba(255,222,171,.08), 0 5px 9px rgba(0,0,0,.2); }
.community-channel-grid button > span::after { content: ""; position: absolute; inset: auto 4px 3px; height: 2px; border-radius: 99px; background: #e68728; opacity: .7; }
.community-channel-grid img { width: 88%; height: 88%; display: block; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.38)); }
.community-channel-grid strong { display: block; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.community-channel-grid button:active > span { transform: scale(.95); }
.community-hot-topic { width: 100%; padding: 0; overflow: hidden; display: block; border: 1px solid #92582a; border-radius: 12px; background: #291b15; color: #f8e7d2; text-align: left; box-shadow: 0 7px 16px rgba(0,0,0,.2); }
.community-topic-title { min-height: 34px; padding: 0 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; background: linear-gradient(90deg, #dd6b17, #7a3517 72%, #312018); }
.community-topic-title small { padding: 2px 5px; border-radius: 3px; background: #2b180c; color: #ffc75e; font-size: 6px; font-weight: 900; }
.community-topic-title strong { font-size: 12px; letter-spacing: .04em; }
.community-topic-title i { color: #ffe0a5; font-size: 7px; font-style: normal; }
.community-topic-body { min-height: 83px; padding: 10px 68px 10px 11px; position: relative; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 92% 45%, rgba(239,127,30,.25), transparent 26%), linear-gradient(135deg, #3b291e, #211713); }
.community-topic-body b { color: #f2a13d; font-size: 17px; line-height: 1; }
.community-topic-body strong { margin-top: 6px; font-size: 11px; line-height: 1.35; }
.community-topic-body small { margin-top: 5px; color: #a68e79; font-size: 7px; }
.community-topic-body em { padding: 5px 7px; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-6deg); border: 1px solid #f1a13d; border-radius: 7px; background: #d55c19; color: #fff3d5; font-size: 8px; font-style: normal; font-weight: 900; box-shadow: 0 3px 0 #6e2b10; }
.community-feed-tabs { min-height: 48px; margin-top: 12px; display: grid; grid-template-columns: .75fr 1.12fr 1.12fr 1.12fr; align-items: center; gap: 5px; }
.community-feed-tabs button { height: 32px; padding: 0 5px; border: 1px solid #4e3527; border-radius: 8px; background: #211713; color: #927d6b; font-size: 8px; white-space: nowrap; }
.community-feed-tabs button.active { border-color: #de8026; background: linear-gradient(180deg, #ef9833, #d66c18); color: #2b1608; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,235,190,.45); }
.community-feed { display: grid; gap: 10px; }
.community-post { padding: 12px; border: 1px solid #4d3528; border-radius: 13px; background: linear-gradient(150deg, #2a1d17, #201713); box-shadow: inset 0 1px 0 rgba(255,231,192,.045); }
.community-post.pinned { border-color: #6d4327; }
.community-post > header { display: grid; grid-template-columns: 39px 1fr auto auto; align-items: center; gap: 7px; }
.community-post > header > img { width: 39px; height: 39px; display: block; border: 1px solid #a36630; border-radius: 50%; background: #1d1410; object-fit: cover; }
.community-post > header strong, .community-post > header small { display: block; }
.community-post > header strong { color: #f3dfc9; font-size: 10px; }
.community-post > header small { margin-top: 3px; color: #7f6d5e; font-size: 7px; }
.community-post > header i { margin-left: 3px; padding: 2px 4px; border-radius: 3px; background: #d96e1d; color: #2b1608; font-size: 6px; font-style: normal; }
.community-post > header i.elite { background: #7b9c55; color: #eefbdc; }
.community-post > header > span { padding: 4px 6px; border-radius: 5px; background: rgba(240,138,36,.16); color: #f3a444; font-size: 7px; font-weight: 850; }
.community-post > header > button { padding: 4px; border: 0; background: transparent; color: #725f51; font-size: 9px; }
.community-post > header > button.follow-compact { min-width: 47px; height: 25px; padding: 0 7px; border: 1px solid #7a4e2d; border-radius: 7px; background: #352218; color: #ef9a3b; font-size: 7px; }
.community-post h2 { margin: 10px 0 5px; color: #fff0dd; font-size: 12px; line-height: 1.45; }
.community-post p { margin: 0; color: #b09a85; font-size: 8px; line-height: 1.55; }
.community-post-cover { width: 100%; height: 120px; margin-top: 9px; padding: 0; position: relative; overflow: hidden; border: 0; border-radius: 9px; background: #17100d; }
.community-post-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 12%; }
.community-post-cover span { position: absolute; left: 7px; top: 7px; padding: 3px 6px; border-radius: 4px; background: rgba(29,17,12,.86); color: #f3ad4b; font-size: 7px; font-weight: 850; }
.community-post-gallery { margin-top: 9px; display: grid; grid-template-columns: 1.65fr 1fr; gap: 5px; }
.community-post-gallery button { height: 96px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #17100d; }
.community-post-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.community-post .social-row { margin-top: 7px; border-top: 1px solid rgba(255,229,190,.08); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; background: var(--chrome); }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); min-height: 34px; padding: 0 12px; border-radius: 999px; white-space: nowrap; font-size: 11px; }
.tab.active { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 800; }
.search-box { margin: 0 0 12px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ink-3); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.guide-card { margin: 0; min-height: 128px; display: flex; flex-direction: column; }
.guide-card.wide { grid-column: 1 / -1; min-height: 112px; background: linear-gradient(120deg, var(--guide-top), var(--guide-bottom)); }
.guide-card button { margin-top: auto; align-self: flex-start; border: 0; background: transparent; color: var(--accent-2); min-height: 36px; padding: 0; font-size: 10px; }
.guide-center-page { min-height: 100%; padding-bottom: 18px; background: radial-gradient(circle at 84% 2%, rgba(226,113,22,.18), transparent 26%), linear-gradient(180deg, #2e211a 0, #1a1310 38%, #130f0d 100%); }
.guide-command-header { min-height: 174px; padding: 10px 14px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid rgba(255,194,92,.22); background: linear-gradient(90deg, rgba(25,16,12,.82), rgba(32,20,13,.5)), url('assets/role-hero.png') center 43% / cover; }
.guide-command-header::after { content: ""; position: absolute; inset: auto 0 0; height: 72px; background: linear-gradient(180deg, transparent, #211711); }
.guide-command-header > * { position: relative; z-index: 1; }
.guide-profile-row { min-height: 56px; display: grid; grid-template-columns: 46px 1fr auto 38px; align-items: center; gap: 9px; }
.guide-profile-avatar { width: 46px; height: 46px; padding: 0; overflow: hidden; border: 2px solid #e69a3d; border-radius: 50%; background: #231812; box-shadow: 0 5px 14px rgba(0,0,0,.34); }
.guide-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guide-profile-row > div { min-width: 0; }
.guide-profile-row strong, .guide-profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-profile-row strong { color: #fff5e5; font-size: 13px; }
.guide-profile-row small { margin-top: 3px; color: #c1aa92; font-size: 8px; }
.guide-signin { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,193,80,.52); border-radius: 999px; background: rgba(40,24,14,.72); color: #ffc05b; font-size: 9px; font-weight: 800; }
.guide-search { width: 38px; height: 38px; padding: 8px; border: 1px solid rgba(255,193,80,.52); border-radius: 12px; background: linear-gradient(180deg, #f4a030, #d66714); color: #fff6e5; }
.guide-search svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.guide-hero-copy small { color: #f0a547; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.guide-hero-copy h1 { margin: 3px 0 1px; color: #fff3df; font-size: 27px; line-height: 1; text-shadow: 0 3px 10px rgba(0,0,0,.55); }
.guide-hero-copy p { margin: 5px 0 0; color: #c9b19b; font-size: 9px; }
.guide-center-body { margin-top: -10px; padding: 0 12px 22px; position: relative; z-index: 2; }
.guide-hub-section { margin-top: 22px; }
.guide-tools-section { margin-top: 0; }
.guide-section-title { min-height: 38px; display: flex; align-items: center; gap: 6px; }
.guide-section-title > span { color: #e98b2b; font-size: 16px; font-weight: 900; }
.guide-section-title h2 { margin: 0; color: #fff2df; font-size: 16px; }
.guide-section-title small { margin-left: auto; color: #8e7967; font-size: 8px; }
.guide-tool-grid { padding: 10px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border: 1px solid #543b2a; border-radius: 10px; background: linear-gradient(180deg, rgba(60,41,30,.97), rgba(39,28,23,.98)); box-shadow: inset 0 1px 0 rgba(255,214,145,.12), 0 8px 18px rgba(0,0,0,.2); }
.guide-tool-grid button { min-width: 0; padding: 3px 1px 6px; border: 0; background: transparent; color: #f6e7d2; }
.guide-tool-grid img { width: 54px; height: 54px; margin: 0 auto 2px; display: block; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.38)); }
.guide-tool-grid strong, .guide-tool-grid small { display: block; }
.guide-tool-grid strong { font-size: 10px; }
.guide-tool-grid small { margin-top: 2px; color: #967f6c; font-size: 7px; }
.guide-beginner-grid { padding: 9px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 1px solid #493427; border-radius: 10px; background: rgba(48,34,27,.76); }
.guide-beginner-grid button { min-height: 48px; padding: 5px; position: relative; overflow: hidden; border: 1px solid #765134; border-radius: 6px; background: linear-gradient(145deg, #59402f, #37261e); color: #f1dbc1; font-size: 9px; line-height: 1.35; box-shadow: inset 0 1px 0 rgba(255,222,164,.14); }
.guide-beginner-grid button::after { content: ""; position: absolute; right: -8px; bottom: -10px; width: 28px; height: 28px; transform: rotate(45deg); border: 1px solid rgba(232,139,43,.18); }
.guide-build-grid { padding: 9px 7px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 5px; border: 1px solid #493427; border-radius: 10px; background: rgba(48,34,27,.76); }
.guide-build-grid button { min-width: 0; padding: 0 1px 5px; overflow: hidden; border: 0; border-radius: 7px; background: linear-gradient(180deg, #422f25, #241a16); color: #f5e7d4; }
.guide-build-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; object-position: top center; border-bottom: 1px solid rgba(235,144,48,.35); background: #17110f; }
.guide-build-grid strong, .guide-build-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-build-grid strong { margin-top: 5px; color: #ffc061; font-size: 9px; }
.guide-build-grid small { margin-top: 2px; color: #938071; font-size: 7px; }
.guide-feature-row { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-feature-row button { height: 104px; padding: 0; position: relative; overflow: hidden; border: 1px solid #5c402c; border-radius: 9px; background: #241914; color: #fff; text-align: left; }
.guide-feature-row img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.06); }
.guide-feature-row button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,11,8,.05), rgba(19,11,8,.9)); }
.guide-feature-row span { position: absolute; z-index: 2; left: 9px; right: 8px; bottom: 8px; }
.guide-feature-row small, .guide-feature-row strong, .guide-feature-row i { display: block; }
.guide-feature-row small { color: #ffc05c; font-size: 7px; font-weight: 800; }
.guide-feature-row strong { margin-top: 2px; font-size: 11px; }
.guide-feature-row i { margin-top: 3px; color: #c5ad98; font-size: 7px; font-style: normal; }
.guide-search-page { min-height: 100%; background: radial-gradient(circle at 82% 0, rgba(238,135,35,.2), transparent 30%), linear-gradient(180deg, #2c1d15 0, #17100d 40%, #100c0a 100%); }
.guide-search-page-head { padding: 20px 16px 16px; border-bottom: 1px solid rgba(255,190,91,.22); background: linear-gradient(110deg, rgba(39,24,16,.95), rgba(77,39,17,.84)), url('assets/role-hero.png') center 42% / cover; }
.guide-search-page-head > small { color: #ee9b3b; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.guide-search-page-head h1 { margin: 4px 0 2px; color: #fff1dc; font-size: 25px; line-height: 1.1; }
.guide-search-page-head > p { margin: 0 0 15px; color: #bea58f; font-size: 9px; }
.guide-search-input { height: 46px; padding: 0 12px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; border: 1px solid rgba(255,201,114,.36); border-radius: 13px; background: rgba(17,11,8,.9); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.guide-search-input svg { width: 20px; height: 20px; fill: none; stroke: #e9973a; stroke-width: 1.8; stroke-linecap: round; }
.guide-search-input input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff3df; font: inherit; font-size: 11px; }
.guide-search-input input::placeholder { color: #7d6a5b; }
.guide-search-input button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #3e2b21; color: #cdb59f; font-size: 16px; }
.guide-search-filters { padding: 12px 13px 10px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; background: #1b1310; border-bottom: 1px solid #3f2c22; }
.guide-search-filters::-webkit-scrollbar { display: none; }
.guide-search-filters button { min-width: max-content; height: 31px; padding: 0 12px; border: 1px solid #503728; border-radius: 999px; background: #2a1d17; color: #ad9480; font-size: 9px; }
.guide-search-filters button.active { border-color: #f4a13b; background: linear-gradient(180deg, #f6a63f, #dd731c); color: #2b1508; font-weight: 900; box-shadow: 0 4px 12px rgba(198,87,13,.25); }
.guide-search-content { padding: 13px 13px 26px; }
.guide-search-summary { min-height: 30px; display: flex; align-items: center; justify-content: space-between; }
.guide-search-summary strong { color: #fff0da; font-size: 14px; }
.guide-search-summary span { color: #8f7866; font-size: 8px; }
.guide-search-results { display: grid; gap: 9px; }
.guide-search-result { width: 100%; min-height: 94px; padding: 8px; display: grid; grid-template-columns: 82px 1fr 12px; align-items: center; gap: 9px; overflow: hidden; border: 1px solid #50372a; border-radius: 11px; background: linear-gradient(145deg, #36251d, #261a15); color: #f6ead9; text-align: left; box-shadow: inset 0 1px 0 rgba(255,220,161,.07), 0 6px 14px rgba(0,0,0,.18); }
.guide-search-result-image { width: 82px; height: 78px; position: relative; overflow: hidden; display: block; border-radius: 8px; background: #17100d; }
.guide-search-result-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guide-search-result-image i { position: absolute; left: 4px; bottom: 4px; padding: 3px 5px; border-radius: 4px; background: rgba(26,14,8,.82); color: #ffc064; font-size: 7px; font-style: normal; }
.guide-search-result-copy { min-width: 0; display: block; }
.guide-search-result-copy small { display: block; color: #e79335; font-size: 7px; font-weight: 850; }
.guide-search-result-copy strong { margin-top: 3px; display: -webkit-box; overflow: hidden; color: #fff1dc; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guide-search-result-copy p { margin: 4px 0 0; overflow: hidden; color: #aa9180; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.guide-search-result-copy em { margin-top: 6px; display: block; color: #806b5d; font-size: 7px; font-style: normal; }
.guide-search-result > b { color: #d58d43; font-size: 18px; }
.guide-search-empty { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8b7666; text-align: center; }
.guide-search-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #553a2a; border-radius: 50%; background: #2b1d17; color: #d68a3e; font-size: 25px; }
.guide-search-empty h2 { margin: 13px 0 4px; color: #e9d7c1; font-size: 15px; }
.guide-search-empty p { margin: 0; font-size: 9px; }
.guide-search-empty button { min-height: 34px; margin-top: 15px; padding: 0 15px; border: 1px solid #e58c31; border-radius: 999px; background: rgba(224,113,24,.12); color: #f0a24b; font-size: 9px; }
.calendar-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.calendar-day { min-height: 54px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font-size: 9px; }
.calendar-day.active { background: var(--accent); color: var(--on-accent); }
.calendar-day i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.compact-event-calendar { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(145deg, #39261b, #241812); box-shadow: inset 0 1px 0 rgba(255,220,164,.08), var(--shadow); }
.event-calendar-title { min-height: 64px; padding: 12px 14px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,206,130,.13); }
.event-calendar-title small { display: block; color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.event-calendar-title h3 { margin: 2px 0 0; font-size: 20px; }
.event-calendar-title > span, .event-live { color: var(--ink-3); font-size: 10px; }
.event-calendar-title > span i, .event-live i { width: 6px; height: 6px; margin-right: 3px; display: inline-block; border-radius: 50%; background: #73c987; box-shadow: 0 0 7px rgba(115,201,135,.48); }
.event-week { display: grid; grid-template-columns: repeat(7, 1fr); background: #4b3324; }
.event-week span { min-width: 0; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #d8b88e; border-right: 1px solid rgba(23,13,8,.42); }
.event-week span:last-child { border-right: 0; }
.event-week b { font-size: 14px; line-height: 1; }
.event-week small { margin-top: 4px; font-size: 8px; }
.event-week span.active { color: #fff4cc; background: linear-gradient(180deg, #ff9f24, #e66c0a); box-shadow: inset 0 3px 0 #ffe059; }
.event-timeline { min-height: 54px; padding: 8px 7px; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 38px; gap: 5px 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(14.285% - 1px), rgba(255,221,172,.10) calc(14.285% - 1px), rgba(255,221,172,.10) 14.285%); }
.event-track { grid-column: 3 / 8; min-width: 0; height: 38px; padding: 0 10px 0 6px; border: 1px solid rgba(255,192,99,.25); border-radius: 8px 12px 12px 8px; background: linear-gradient(90deg, #2a5f83, #bc5c3b); color: #fff3cf; display: flex; align-items: center; gap: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); text-align: left; }
.event-track span { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center; background: #f0a12d; color: #4c2410; font-size: 11px; font-weight: 900; box-shadow: inset 0 0 0 2px rgba(255,237,181,.38); }
.event-track strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.event-track small { margin-left: auto; white-space: nowrap; color: rgba(255,243,207,.74); font-size: 8px; }
.event-track.daily { background: linear-gradient(90deg, #75532c, #b56f3f); }
.event-track.legion { background: linear-gradient(90deg, #245e87, #a94638); }
.current-event-list { display: grid; gap: 11px; }
.current-event-banner { width: 100%; padding: 0; overflow: hidden; border: 1px solid #66462f; border-radius: 11px; background: #2b1e18; color: #fff; text-align: left; box-shadow: 0 7px 16px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,220,157,.08); }
.current-event-visual { height: 116px; position: relative; overflow: hidden; display: block; background: #17110e; }
.current-event-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.86) contrast(1.07); }
.current-event-banner:nth-child(1) .current-event-visual > img { object-position: center 42%; }
.current-event-banner:nth-child(2) .current-event-visual > img { object-position: center 17%; }
.current-event-banner:nth-child(3) .current-event-visual > img { object-position: center 42%; }
.current-event-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,7,.9) 0, rgba(20,10,7,.62) 45%, rgba(20,10,7,.04) 78%), linear-gradient(180deg, transparent 55%, rgba(17,8,6,.54)); }
.current-event-copy { position: absolute; left: 13px; top: 17px; max-width: 64%; }
.current-event-copy small, .current-event-copy strong, .current-event-copy em { display: block; }
.current-event-copy small { color: #ffc15c; font-size: 8px; font-weight: 850; letter-spacing: .06em; }
.current-event-copy strong { margin-top: 3px; color: #fff4de; font-size: 24px; line-height: 1; letter-spacing: -.03em; text-shadow: 0 3px 8px rgba(0,0,0,.65); }
.current-event-copy em { margin-top: 7px; color: rgba(255,238,214,.8); font-size: 8px; font-style: normal; }
.current-event-rewards { position: absolute; right: 9px; bottom: 8px; display: flex; gap: 4px; }
.current-event-rewards img { width: 31px; height: 31px; padding: 2px; border: 1px solid rgba(255,195,85,.72); border-radius: 5px; background: rgba(32,16,10,.76); object-fit: contain; box-shadow: 0 3px 8px rgba(0,0,0,.38); }
.current-event-status { min-height: 32px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(180deg, #39271e, #2b1d17); }
.current-event-status b { min-height: 22px; padding: 0 10px; display: inline-flex; align-items: center; position: relative; background: linear-gradient(90deg, #f5a13a, #df6e18); color: #2b1609; font-size: 9px; font-weight: 900; }
.current-event-status b::after { content: ""; position: absolute; right: -8px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 8px solid #df6e18; }
.current-event-status small { color: #ac9582; font-size: 8px; }
.current-event-status i { width: 6px; height: 6px; margin-right: 4px; display: inline-block; border-radius: 50%; background: #73c987; box-shadow: 0 0 6px rgba(115,201,135,.5); }
.current-event-list + .code-reminder-row { margin-top: 12px; }
.game-codex-page { min-height: 100%; padding-bottom: 24px; background: radial-gradient(circle at 84% 0, rgba(234,126,29,.18), transparent 28%), linear-gradient(180deg, #2b1e17, #17110e 34%, #110d0b); }
.codex-hero { height: 112px; padding: 16px 15px 15px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: linear-gradient(90deg, rgba(23,13,9,.92), rgba(31,18,11,.3)), url('assets/role-hero.png') center 42% / cover; }
.codex-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 52px; background: linear-gradient(180deg, transparent, rgba(27,18,14,.88)); }
.codex-hero > * { position: relative; z-index: 1; }
.codex-hero small { color: #f3a443; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.codex-hero h1 { margin: 3px 0 0; color: #fff3dc; font-size: 25px; line-height: 1; text-shadow: 0 3px 9px rgba(0,0,0,.6); }
.codex-hero p { margin: 6px 0 0; color: #c3a991; font-size: 8px; }
.codex-hero > button { width: 39px; height: 39px; padding: 9px; border: 1px solid rgba(255,196,91,.6); border-radius: 12px; background: linear-gradient(180deg, #f4a02f, #d56714); color: #fff8e8; }
.codex-hero svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.codex-category-tabs { min-height: 44px; padding: 4px 7px; position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; border-top: 1px solid #6b482d; border-bottom: 1px solid #543824; background: rgba(33,22,17,.97); box-shadow: 0 8px 16px rgba(0,0,0,.24); backdrop-filter: blur(8px); }
.codex-category-tabs button { position: relative; border: 0; border-radius: 5px; background: transparent; color: #b49b84; font-size: 9px; font-weight: 800; }
.codex-category-tabs button.active { background: linear-gradient(180deg, #f1a137, #d56b17); color: #2b1609; box-shadow: inset 0 1px 0 #ffd980; }
.codex-category-tabs button.active::after { content: ""; position: absolute; right: 4px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: #fff1b8; box-shadow: 0 0 5px #fff1b8; }
.codex-category-summary { min-height: 48px; padding: 8px 12px 5px; display: flex; align-items: center; justify-content: space-between; color: #e8d6c2; }
.codex-category-summary small, .codex-category-summary strong { display: block; }
.codex-category-summary small { color: #887361; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.codex-category-summary strong { margin-top: 2px; font-size: 13px; }
.codex-category-summary > span { padding: 5px 8px; border: 1px solid #5c3b27; border-radius: 999px; background: #211611; color: #a9917d; font-size: 8px; }
.codex-category-summary b { color: #f0a03b; font-size: 11px; }
.codex-collection-list { padding: 4px 8px 28px; display: grid; gap: 10px; }
.codex-collection-card { overflow: hidden; border: 1px solid #60412e; border-radius: 12px; background: linear-gradient(155deg, rgba(58,39,30,.98), rgba(34,24,20,.98)); box-shadow: inset 0 1px 0 rgba(255,224,174,.08), 0 8px 17px rgba(0,0,0,.24); }
.codex-collection-card > header { min-height: 49px; padding: 7px 8px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 7px; border-bottom: 1px dashed rgba(186,139,98,.25); background: linear-gradient(90deg, rgba(106,65,35,.28), transparent); }
.collection-emblem { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e08a2f; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffcf62, #ce5f17 66%, #592511); color: #321606; font-size: 14px; font-weight: 950; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 9px rgba(230,121,27,.25); }
.collection-emblem.tone-1 { background: radial-gradient(circle at 35% 30%, #9be4ff, #397fbb 66%, #162b4a); border-color: #72c8ef; }
.collection-emblem.tone-2 { background: radial-gradient(circle at 35% 30%, #d8b5ff, #7445a6 66%, #261a40); border-color: #af7fe4; }
.collection-emblem.tone-3 { background: radial-gradient(circle at 35% 30%, #fff1a0, #c79324 66%, #49320c); border-color: #f1c34a; }
.codex-collection-card > header small, .codex-collection-card > header h2 { display: block; }
.codex-collection-card > header small { color: #b08b67; font-size: 6px; font-weight: 850; letter-spacing: .08em; }
.codex-collection-card > header h2 { margin: 1px 0 0; color: #f8e5cd; font-size: 13px; }
.codex-collection-card > header > b { color: #b69b83; font-size: 8px; font-weight: 750; white-space: nowrap; }
.codex-collection-card > header em { color: #f4a338; font-size: 13px; font-style: normal; }
.codex-collection-strip { padding: 8px 7px 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.codex-collection-item { min-width: 0; padding: 0; border: 0; background: transparent; color: #f2dfca; }
.codex-collection-item > span { width: 100%; aspect-ratio: .82; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid #a66a31; border-radius: 5px 5px 2px 2px; background: radial-gradient(circle at 50% 35%, #815031, #2a1d18 72%); box-shadow: inset 0 0 0 1px rgba(255,203,107,.12); }
.codex-collection-item img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.codex-collection-item > span > i { position: absolute; left: 2px; top: 2px; color: #ffd984; font-size: 5px; font-style: normal; font-weight: 950; text-shadow: 0 1px 2px #35170a; }
.codex-collection-item > span > em { width: 100%; min-height: 13px; position: absolute; left: 0; bottom: 0; display: grid; place-items: center; background: rgba(14,12,11,.88); color: #cfc5bb; font-size: 6px; font-style: normal; }
.codex-collection-item > strong, .codex-collection-item > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codex-collection-item > strong { margin-top: 3px; font-size: 6px; font-weight: 800; }
.codex-collection-item > small { margin-top: 1px; color: #e9a93a; font-size: 5px; letter-spacing: -.12em; }
.codex-collection-item.locked > span { border-color: #5c5049; filter: grayscale(.85); opacity: .5; }
.codex-collection-item.locked > strong, .codex-collection-item.locked > small { color: #6d6057; }
.codex-collection-item:active > span { transform: scale(.95); }
.codex-collection-card > footer { min-height: 39px; padding: 5px 8px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed rgba(186,139,98,.22); }
.codex-collection-card > footer > div { display: flex; align-items: center; gap: 4px; }
.codex-collection-card > footer span { min-height: 18px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 4px; background: #a64e31; color: #ffe5d6; font-size: 7px; font-weight: 850; }
.codex-collection-card > footer span.tag-1 { background: #d9942f; color: #2b1708; }
.codex-collection-card > footer > div button { width: 18px; height: 18px; padding: 0; border: 1px solid #7b6452; border-radius: 50%; background: #5e5045; color: #e6d6c5; font: 800 9px/1 serif; }
.codex-collection-card > footer > button { min-width: 65px; height: 27px; padding: 0 10px; border: 1px solid #c98032; border-radius: 7px; background: linear-gradient(180deg, #f2a43c, #d66c18); color: #321807; font-size: 8px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,241,195,.45); }
.message-center-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 90% 0, rgba(232,126,28,.12), transparent 24%), linear-gradient(180deg, #2a1d17, #17110e 32%, #110d0b); }
.message-channel-head { min-height: 92px; padding: 15px 14px 13px; display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 10px; border-bottom: 1px solid #4c3426; background: linear-gradient(145deg, rgba(65,43,31,.96), rgba(32,23,19,.98)); }
.message-channel-avatar { width: 52px; height: 52px; position: relative; overflow: visible; border: 2px solid #dc8a31; border-radius: 13px; background: #211611; }
.message-channel-avatar img { width: 100%; height: 100%; display: block; border-radius: 11px; object-fit: cover; }
.message-channel-avatar i { width: 9px; height: 9px; position: absolute; right: -3px; bottom: -3px; border: 2px solid #3e2b21; border-radius: 50%; background: #55ca70; box-shadow: 0 0 7px rgba(85,202,112,.55); }
.message-channel-head small, .message-channel-head h1, .message-channel-head p { display: block; }
.message-channel-head small { color: #e9983c; font-size: 8px; font-weight: 850; }
.message-channel-head h1 { margin: 2px 0 0; color: #fff3df; font-size: 19px; }
.message-channel-head p { margin: 4px 0 0; color: #9e8875; font-size: 8px; }
.message-channel-head > button { width: 36px; height: 36px; padding: 0; border: 1px solid #5b402e; border-radius: 10px; background: #241914; color: #c7ad95; font-size: 12px; letter-spacing: 1px; }
.message-type-tabs { min-height: 43px; padding: 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #3d2a20; background: #19120f; }
.message-type-tabs button { position: relative; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #8e7967; font-size: 9px; }
.message-type-tabs button.active { border-color: #ec8b2c; color: #ffd08b; font-weight: 850; }
.message-type-tabs i { min-width: 15px; height: 15px; margin-left: 3px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #d8541b; color: #fff; font-size: 7px; font-style: normal; }
.message-new-bubble { width: calc(100% - 24px); min-height: 54px; margin: 11px 12px 0; padding: 7px 10px; position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; border: 1px solid #c67529; border-radius: 12px; background: linear-gradient(100deg, #f19a31, #d56116); color: #2b1609; text-align: left; box-shadow: 0 8px 18px rgba(135,54,10,.3), inset 0 1px 0 rgba(255,235,186,.45); }
.message-new-bubble::before { content: ""; position: absolute; left: 21px; bottom: -7px; width: 12px; height: 12px; transform: rotate(45deg); border-right: 1px solid #c67529; border-bottom: 1px solid #c67529; background: #d86819; }
.message-new-bubble img { width: 38px; height: 38px; border: 2px solid rgba(255,244,216,.76); border-radius: 9px; object-fit: cover; }
.message-new-bubble b, .message-new-bubble small { display: block; }
.message-new-bubble b { font-size: 12px; }
.message-new-bubble small { margin-top: 3px; color: rgba(43,22,9,.72); font-size: 8px; }
.message-new-bubble > i { color: rgba(43,22,9,.6); font-size: 15px; font-style: normal; }
.official-message-feed { min-height: 0; padding: 14px 11px 18px; flex: 1; overflow-y: auto; }
.official-message-feed > time { margin: 7px 0 10px; display: block; color: #76675b; font-size: 8px; text-align: center; }
.official-message-card { width: 100%; margin-bottom: 13px; padding: 0; overflow: hidden; border: 1px solid #51382a; border-radius: 12px; background: #2b1e18; color: #f5e6d2; text-align: left; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.official-message-card.unread { border-color: #9a5e29; box-shadow: 0 8px 18px rgba(0,0,0,.22), 0 0 0 1px rgba(233,135,39,.08); }
.official-message-cover { height: 148px; position: relative; overflow: hidden; display: block; background: #17110e; }
.official-message-card.compact .official-message-cover { height: 112px; }
.official-message-cover img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.86) contrast(1.06); }
.official-message-card:first-of-type .official-message-cover img { object-position: center top; }
.official-message-card:nth-of-type(2) .official-message-cover img { object-position: center 41%; }
.official-message-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 46px; background: linear-gradient(180deg, transparent, rgba(15,8,6,.66)); }
.official-message-cover > i, .official-message-cover > em { min-height: 22px; padding: 0 8px; position: absolute; z-index: 2; left: 8px; top: 8px; display: inline-flex; align-items: center; border-radius: 5px; background: #e96f1c; color: #fff4df; font-size: 8px; font-style: normal; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.28); }
.official-message-cover > i::before { content: ""; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #fff4b8; box-shadow: 0 0 6px #fff4b8; }
.official-message-cover > em { background: rgba(42,25,16,.86); color: #ffc36a; }
.official-message-copy { padding: 11px 12px 10px; display: block; }
.official-message-copy small, .official-message-copy strong, .official-message-copy p { display: block; }
.official-message-copy small { color: #d48638; font-size: 8px; }
.official-message-copy strong { margin-top: 5px; font-size: 14px; line-height: 1.4; }
.official-message-copy p { margin: 6px 0 0; color: #a28c7a; font-size: 9px; line-height: 1.55; }
.official-message-action { min-height: 35px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #4b3427; color: #d9b693; font-size: 8px; }
.official-message-action b { color: #f1a246; font-size: 13px; }
.player-chat-row, .official-chat-row { margin: 12px 0; display: flex; align-items: flex-start; gap: 8px; }
.player-chat-row { justify-content: flex-end; }
.player-chat-row > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d58431; border-radius: 9px; background: linear-gradient(145deg, #f09a2e, #c95e14); color: #2b1609; font-size: 10px; font-weight: 900; }
.player-chat-row p, .official-chat-row p { max-width: 74%; margin: 0; padding: 9px 11px; position: relative; border-radius: 10px; font-size: 9px; line-height: 1.55; }
.player-chat-row p { background: linear-gradient(145deg, #ed8d29, #d86617); color: #2a1509; }
.player-chat-row p::after { content: ""; position: absolute; right: -5px; top: 11px; width: 10px; height: 10px; transform: rotate(45deg); background: #d96818; }
.official-chat-row img { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #a36935; border-radius: 9px; object-fit: cover; }
.official-chat-row p { border: 1px solid #51382a; background: #2b1e18; color: #dbc5ae; }
.official-chat-row p::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; transform: rotate(45deg); border-left: 1px solid #51382a; border-bottom: 1px solid #51382a; background: #2b1e18; }
.official-chat-composer { flex: 0 0 auto; z-index: 7; border-top: 1px solid #51372a; background: rgba(25,18,15,.98); box-shadow: 0 -8px 22px rgba(0,0,0,.32); backdrop-filter: blur(10px); }
.official-chat-input-row { min-height: 52px; padding: 7px; display: grid; grid-template-columns: 1fr 34px 34px auto; align-items: center; gap: 5px; }
.official-chat-input-row input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #4d372a; border-radius: 9px; outline: 0; background: #2a201b; color: #f4e4d1; font-size: 10px; }
.official-chat-input-row input::placeholder { color: #76675c; }
.official-chat-input-row input:focus { border-color: #d98330; box-shadow: 0 0 0 2px rgba(217,131,48,.12); }
.official-chat-input-row > button { height: 34px; padding: 0; border: 1px solid #4d372a; border-radius: 9px; background: #2c201a; color: #d7b898; font-size: 18px; }
.official-chat-input-row .send-official-message { min-width: 44px; padding: 0 8px; border-color: #d67923; background: linear-gradient(180deg, #ed942d, #cd5d13); color: #2b1609; font-size: 9px; font-weight: 900; }
.code-reminder-row { min-height: 72px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; }
.code-reminder-row > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 7px; }
.code-reminder-row strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.code-reminder-row small { grid-column: 2; color: var(--ink-3); font-size: 9px; }
.code-reminder-row button { min-width: 52px; min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--accent-2); font-size: 10px; font-weight: 800; }
.news-reader { min-height: 100%; background: #0a0e10; color: #f2f3f3; }
.news-reader-head { padding: 18px 18px 14px; background: radial-gradient(circle at 90% 0, rgba(53,227,220,.07), transparent 34%), linear-gradient(180deg, #101619, #0a0e10); border-bottom: 1px solid rgba(255,255,255,.08); }
.news-reader-kicker { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; border: 1px solid rgba(82,227,197,.25); border-radius: 6px; background: rgba(32,209,171,.08); color: #55dfc4; font-size: 9px; font-weight: 800; }
.news-reader-head h1 { margin: 10px 0 12px; font-size: 23px; line-height: 1.32; letter-spacing: -.03em; }
.news-reader-meta { display: flex; align-items: center; gap: 8px; color: rgba(231,238,239,.56); font-size: 9px; }
.news-reader-meta span + span::before { content: "·"; margin-right: 8px; }
.news-like-brief { margin-left: auto; min-height: 34px; padding: 0 7px; border: 0; border-radius: 9px; background: transparent; color: rgba(231,238,239,.62); display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.news-like-brief svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-like-brief.active { color: #55dfc4; background: rgba(32,209,171,.08); }
.news-reader-lead { padding: 18px; background: #0a0e10; }
.news-reader-lead strong { color: #56e4c8; font-size: 13px; }
.news-reader-lead p { margin: 8px 0 0; color: rgba(232,237,238,.72); font-size: 11px; line-height: 1.75; }
.news-long-image { width: 100%; height: auto; display: block; background: #102221; }
.news-reader-footer { padding: 20px 18px 26px; background: #0a0e10; }
.news-reader-footer > p { margin: 0; color: rgba(232,237,238,.55); font-size: 10px; line-height: 1.65; }
.news-reader .social-row { border-color: rgba(255,255,255,.09); }
.news-reader .social-action { color: rgba(232,237,238,.62); }
.news-reader .social-action.active { color: #55dfc4; background: rgba(32,209,171,.08); }
.profile-card { display: flex; align-items: center; gap: 12px; }
.profile-card .avatar { width: 54px; height: 54px; }
.profile-card h3 { margin: 0 0 4px; font-size: 16px; }
.profile-card p { margin: 0; color: var(--ink-3); font-size: 10px; }
.role-select { margin-left: auto; color: var(--accent-2); border: 1px solid var(--line); background: var(--surface-2); min-height: 38px; border-radius: 10px; padding: 0 8px; font-size: 10px; }
.menu-list { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.menu-row { width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row span { color: var(--accent-2); margin-right: 10px; }

.admin-stage { padding: 26px; align-items: stretch; }
.admin-shell { width: min(1500px, 100%); min-height: calc(100vh - 140px); margin: 0 auto; display: grid; grid-template-columns: 230px 1fr; background: var(--admin-bg); color: var(--admin-ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 46px 100px -50px rgba(15, 7, 2, .7); }
.admin-sidebar { padding: 24px 16px 18px; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; }
.admin-brand { height: 56px; padding: 0 10px; display: flex; align-items: center; gap: 10px; }
.admin-brand span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 9px; font-weight: 900; }
.admin-brand strong { color: var(--rail-ink-strong); font-size: 15px; }
.admin-sidebar nav { margin-top: 22px; display: grid; gap: 6px; }
.admin-nav { min-height: 46px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: var(--rail-nav); text-align: left; font-size: 13px; }
.admin-nav.active { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.admin-user { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 10px; }
.admin-user > span, .admin-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--rail-avatar); color: var(--rail-avatar-ink); font-weight: 800; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { color: var(--rail-user); font-size: 12px; }
.admin-user small { margin-top: 2px; font-size: 10px; color: var(--rail-muted); }
.admin-main { min-width: 0; display: grid; grid-template-rows: 72px 1fr; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--admin-border); background: rgba(251, 248, 242, .96); }
.admin-topbar small, .admin-topbar strong { display: block; }
.admin-topbar small { color: var(--admin-ink-3); font-size: 10px; }
.admin-topbar strong { margin-top: 3px; font-size: 18px; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--admin-border); background: var(--admin-bg); color: var(--admin-ink-2); }
.admin-avatar { width: 40px; height: 40px; color: var(--on-accent); background: var(--accent); font-size: 11px; }
.admin-content { min-width: 0; padding: 24px 28px 36px; background: var(--admin-page); overflow: auto; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.admin-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.admin-heading p { margin: 6px 0 0; color: var(--admin-ink-3); font-size: 12px; }
.admin-primary, .admin-secondary { min-height: 42px; border-radius: 11px; padding: 0 15px; font-weight: 750; }
.admin-primary { border: 0; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(240, 138, 36, .22); }
.admin-secondary { border: 1px solid var(--admin-border); background: var(--admin-bg); color: var(--admin-ink-2); }
.metric-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.metric-card, .admin-card { background: var(--admin-bg); border: 1px solid var(--admin-border); border-radius: var(--r); box-shadow: 0 1px 3px rgba(62, 40, 22, .05); }
.metric-card { min-height: 128px; padding: 18px; }
.metric-card.feature { background: var(--feature); color: var(--feature-ink); }
.metric-label { display: flex; justify-content: space-between; color: var(--admin-ink-3); font-size: 11px; }
.metric-card.feature .metric-label { color: var(--rail-ink); }
.metric-value { margin-top: 22px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric-foot { margin-top: 5px; color: var(--admin-ink-3); font-size: 10px; }
.metric-card.feature .metric-foot { color: var(--rail-ink); }
.admin-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 16px; }
.admin-card { padding: 18px; }
.admin-card h3 { margin: 0 0 4px; font-size: 15px; }
.admin-card > p { margin: 0 0 16px; color: var(--admin-ink-3); font-size: 11px; }
.task-list { display: grid; gap: 8px; }
.task-row { min-height: 52px; padding: 9px 10px; border-radius: 12px; background: var(--admin-panel); display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.task-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(240, 138, 36, .12); color: var(--admin-accent-ink); }
.task-row strong, .task-row small { display: block; }
.task-row strong { font-size: 12px; }
.task-row small { color: var(--admin-ink-3); font-size: 10px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; font-size: 10px; font-weight: 700; background: rgba(79, 133, 88, .12); color: var(--status-up); }
.status.warn { color: var(--status-warn); background: rgba(233, 170, 66, .16); }
.status.danger { color: var(--status-down); background: rgba(229, 98, 82, .12); }
.table-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-search { min-height: 42px; flex: 1; border: 1px solid var(--admin-border); border-radius: 11px; background: var(--admin-bg); padding: 0 12px; color: var(--admin-ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { height: 38px; color: var(--admin-ink-3); font-size: 10px; font-weight: 650; text-align: left; background: var(--admin-panel); }
.data-table th:first-child, .data-table td:first-child { padding-left: 12px; }
.data-table th:last-child, .data-table td:last-child { text-align: right; padding-right: 12px; }
.data-table td { height: 48px; border-bottom: 1px solid var(--admin-border); color: var(--admin-ink-2); }
.data-table td strong { color: var(--admin-ink); }
.data-table tr:last-child td { border-bottom: 0; }
.link-button { border: 0; background: transparent; color: var(--admin-accent-ink); min-height: 34px; font-weight: 700; }
.review-split { display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
.review-list { display: grid; gap: 8px; }
.review-item { padding: 13px; border-radius: 12px; border: 1px solid var(--admin-border); background: var(--admin-bg); text-align: left; color: var(--admin-ink); }
.review-item.active { border-color: rgba(240, 138, 36, .45); background: rgba(240, 138, 36, .08); }
.review-item strong, .review-item small { display: block; }
.review-item strong { font-size: 12px; }
.review-item small { margin-top: 5px; color: var(--admin-ink-3); font-size: 10px; }
.review-detail { min-height: 440px; }
.review-detail img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 10px 0 14px; }
.review-detail p { color: var(--admin-ink-2); line-height: 1.7; font-size: 13px; }
.review-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.config-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.form-section { margin-bottom: 14px; }
.form-section label { display: block; margin-bottom: 7px; color: var(--admin-ink-2); font-size: 12px; font-weight: 650; }
.form-section input, .form-section select, .form-section textarea { width: 100%; border: 1px solid var(--admin-border); border-radius: 11px; background: var(--admin-bg); color: var(--admin-ink); padding: 11px 12px; }
.form-section textarea { min-height: 100px; resize: vertical; }
.form-section small { display: block; margin-top: 6px; color: var(--admin-ink-3); font-size: 10px; }
.check-card { position: sticky; top: 0; }
.check-row { min-height: 44px; border-bottom: 1px solid var(--admin-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.check-row:last-child { border-bottom: 0; }
.check-row.pass span:first-child { color: var(--status-up); }
.commit-bar { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--admin-border); display: flex; justify-content: flex-end; gap: 10px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: 0 16px 50px rgba(0, 0, 0, .3); font-size: 13px; font-weight: 750; transition: .22s cubic-bezier(.16, 1, .3, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(13, 8, 5, .72); display: grid; place-items: center; padding: 20px; }
.modal { width: min(430px, 100%); max-height: 80vh; overflow: auto; position: relative; background: var(--modal-bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 24px; padding: 24px; box-shadow: 0 30px 100px rgba(0, 0, 0, .5); }
.modal h2 { margin: 0 30px 8px 0; font-size: 22px; }
.modal p { color: var(--ink-2); line-height: 1.7; font-size: 13px; }
.modal-close { position: absolute; right: 15px; top: 15px; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 10px; font-size: 20px; }
.modal-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }
.mobile-modal-backdrop { inset: auto; place-items: end center; padding: 10px; overflow: hidden; border-radius: 52px; backdrop-filter: blur(5px); }
.mobile-modal-backdrop .modal { width: 100%; max-height: 76%; padding: 26px 20px 30px; border-radius: 24px 24px 42px 42px; animation: sheet-in .2s cubic-bezier(.2,.8,.2,1); }
.mobile-modal-backdrop .modal::before { content: ""; position: absolute; width: 38px; height: 4px; top: 9px; left: 50%; transform: translateX(-50%); border-radius: 4px; background: var(--line-strong); }
.mobile-modal-backdrop.benefit-modal-backdrop { place-items: center; padding: 14px; background: rgba(7,5,3,.78); }
.benefit-modal-backdrop .modal { width: 100%; max-height: 88%; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: transparent; box-shadow: 0 28px 80px rgba(0,0,0,.62); animation: benefit-pop .22s cubic-bezier(.2,.8,.2,1); }
.benefit-modal-backdrop .modal::before { display: none; }
.benefit-modal-backdrop .modal-close { z-index: 5; top: 12px; right: 12px; width: 42px; height: 42px; border: 2px solid rgba(255,244,214,.92); border-radius: 50%; background: rgba(77,43,24,.82); color: #fff7e7; font-size: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.benefit-popup { overflow: hidden; border: 2px solid #de7515; border-radius: 24px; background: #fff8e9; color: #4b392b; }
.benefit-hero { min-height: 126px; padding: 21px 118px 17px 20px; position: relative; overflow: hidden; display: flex; align-items: center; background: linear-gradient(105deg, rgba(126,44,12,.94), rgba(239,91,12,.82)), url('assets/game-battle.png') center 35% / cover; color: #fff5d8; }
.benefit-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 20px; background: linear-gradient(180deg, transparent, rgba(255,248,233,.22)); }
.benefit-hero > div { position: relative; z-index: 2; }
.benefit-hero small { color: #ffd479; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.benefit-hero h2 { margin: 3px 0 2px; color: #fff4cf; font-size: 31px; line-height: 1.05; letter-spacing: -.05em; text-shadow: 0 3px 0 #7d2d0b, 0 5px 12px rgba(62,17,3,.36); }
.benefit-hero p { margin: 5px 0 0; color: rgba(255,247,221,.8); font-size: 10px; }
.benefit-hero img { position: absolute; right: 24px; bottom: 13px; width: 92px; height: 92px; border: 3px solid rgba(255,224,142,.55); border-radius: 24px; object-fit: cover; transform: rotate(5deg); box-shadow: 0 10px 20px rgba(67,18,3,.32); }
.benefit-panel { margin-top: -8px; padding: 15px 15px 12px; position: relative; z-index: 2; border-radius: 22px 22px 20px 20px; background: #fffaf0; box-shadow: 0 -5px 14px rgba(91,44,14,.13); }
.benefit-summary { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.benefit-summary span b { color: #ee6d0d; font-size: 16px; }
.benefit-summary button { max-width: 55%; min-height: 36px; padding: 0 4px; overflow: hidden; border: 0; background: transparent; color: #e85e0b; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.benefit-reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.benefit-reward { min-width: 0; min-height: 108px; position: relative; overflow: hidden; border: 1px solid #ead7b8; border-radius: 12px; background: #f3f1ee; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.benefit-reward.wide { grid-column: span 2; }
.benefit-reward.current { border: 2px solid #f0a018; background: #fff6e5; }
.benefit-reward.done { filter: saturate(.72); }
.benefit-reward > small { width: 100%; min-height: 25px; display: grid; place-items: center; color: #8b8176; font-size: 9px; }
.benefit-reward.current > small { color: #e26b0d; font-weight: 850; }
.benefit-reward-icon { width: 39px; height: 39px; margin-top: 3px; display: grid; place-items: center; border-radius: 13px 5px 13px 5px; background: linear-gradient(145deg, #ffe46e, #ef8c16); color: #59320c; font-size: 16px; font-weight: 950; box-shadow: inset 0 0 0 2px rgba(255,250,205,.55), 0 3px 7px rgba(105,58,12,.18); }
.benefit-reward:nth-child(3n) .benefit-reward-icon { background: linear-gradient(145deg, #55d8e3, #4677d7); color: white; }
.benefit-reward b { margin-top: -9px; margin-left: 34px; color: #604733; font-size: 8px; }
.benefit-reward strong { width: 100%; min-height: 27px; margin-top: auto; padding: 5px 2px; display: grid; place-items: center; background: #ee9519; color: white; font-size: 9px; font-weight: 800; text-align: center; }
.benefit-reward.done strong { background: #9c6e28; }
.benefit-reward > i { position: absolute; left: 50%; top: 41px; width: 32px; height: 24px; display: grid; place-items: center; color: #65bb22; font-size: 30px; font-style: normal; font-weight: 950; transform: rotate(-9deg); text-shadow: 0 2px white; }
.benefit-claim { width: 100%; min-height: 54px; margin-top: 15px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #ffba35, #ff710b); color: white; font-size: 19px; font-weight: 900; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 8px 18px rgba(239,105,7,.22); }
.benefit-claim:active { transform: scale(.98); }
.benefit-claim:disabled { background: #c8bfb1; color: #f5f1eb; box-shadow: none; cursor: default; }
.benefit-reminder { min-height: 54px; padding: 8px 6px 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.benefit-reminder > span { display: flex; align-items: baseline; gap: 7px; }
.benefit-reminder strong { color: #7c7065; font-size: 11px; }
.benefit-reminder small { color: #9a9087; font-size: 10px; }
.switch-control { width: 48px; height: 28px; padding: 3px; border: 0; border-radius: 999px; background: #c8c2ba; transition: background .16s ease; }
.switch-control i { width: 22px; height: 22px; display: block; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .18s ease; }
.switch-control.on { background: #18bfae; }
.switch-control.on i { transform: translateX(20px); }
.modal-eyebrow { margin-bottom: 5px; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.share-option { min-height: 88px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink-2); display: grid; place-items: center; align-content: center; gap: 8px; font-size: 11px; transition: transform .12s ease, border-color .16s ease, background .16s ease; }
.share-option:active { transform: scale(.96); }
.share-option-icon { width: 38px; height: 38px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--accent-2); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.share-option-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.share-option-icon.link-icon { background: var(--accent-soft); }
.primary-button, .secondary-button, .tab, .menu-row { transition: transform .12s ease, filter .16s ease, background .16s ease; }
.primary-button:active, .secondary-button:active, .tab:active, .menu-row:active { transform: scale(.97); }
@keyframes sheet-in { from { transform: translateY(26px); opacity: .35; } to { transform: translateY(0); opacity: 1; } }
@keyframes benefit-pop { from { transform: scale(.92) translateY(12px); opacity: .35; } to { transform: scale(1) translateY(0); opacity: 1; } }

@media (max-width: 980px) {
  .review-bar { grid-template-columns: 1fr auto; }
  .review-tip { display: none; }
  .prototype-stage { align-items: flex-start; padding: 24px 16px; }
  .prototype-notes { display: none; }
  .admin-stage { padding: 16px; }
  .admin-shell { grid-template-columns: 72px 1fr; }
  .admin-brand strong, .admin-nav { font-size: 0; }
  .admin-brand { justify-content: center; padding: 0; }
  .admin-nav { text-align: center; padding: 0; font-size: 17px; }
  .admin-user div { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid, .config-grid { grid-template-columns: 1fr; }
  .check-card { position: static; }
}

@media (max-width: 620px) {
  .review-bar { position: static; padding: 12px 14px; gap: 10px; }
  .review-bar h1 { font-size: 16px; }
  .review-kicker { font-size: 9px; }
  .switch-button { padding: 0 12px; min-height: 38px; }
  .prototype-stage { min-height: auto; padding: 12px 0 24px; }
  .phone-shell { width: min(440px, 100vw); height: 956px; padding: 0; border: 0; border-radius: 0; }
  .phone-speaker { display: none; }
  .mini-app { width: min(440px, 100vw); border-radius: 0; }
  .admin-stage { padding: 0; }
  .admin-shell { min-height: calc(100vh - 78px); border-radius: 0; grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-topbar, .admin-content { padding-left: 14px; padding-right: 14px; }
  .metric-grid, .review-split { grid-template-columns: 1fr; }
  .admin-heading { flex-direction: column; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Low-fidelity review mode: structure only, not a visual-direction proposal. */
.wireframe-mode {
  --page: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --chrome: #e8e8e4;
  --chrome-2: #ededeb;
  --ink: #252523;
  --ink-2: #5d5d59;
  --ink-3: #777772;
  --accent: #c66f16;
  --accent-2: #9c5310;
  --accent-soft: rgba(198, 111, 22, .12);
  --line: rgba(37, 37, 35, .18);
  --line-strong: rgba(37, 37, 35, .32);
  --device: #2b2b29;
  --device-edge: #3d3d3a;
  --shadow: none;
  background: #efefec;
}
.wireframe-mode .review-bar,
.wireframe-mode .prototype-notes,
.wireframe-mode .phone-speaker { display: none; }
.wireframe-mode .prototype-stage { min-height: auto; padding: 0; background: #efefec; }
.wireframe-mode .phone-shell { box-shadow: none; }
.wireframe-mode .hero-card,
.wireframe-mode .feed-image,
.wireframe-mode [style*="background-image"] {
  background-image: none !important;
  background-color: #595955 !important;
  filter: grayscale(1);
}
.wireframe-mode img { filter: grayscale(1); opacity: .5; }
.wireframe-mode .primary-button,
.wireframe-mode .badge,
.wireframe-mode .nav-item.active { box-shadow: none; }

.compact-checkin { margin-top: 16px; }

.auth-page { min-height: 100%; padding-bottom: 28px; background: radial-gradient(circle at 50% 0, #3b291c 0, #1a1310 42%, #110d0b 100%); color: #fff3df; }
.auth-banner { min-height: 174px; padding: 14px 20px 30px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background-position: center 45%; background-size: cover; color: #fff; }
.auth-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,10,9,.22), rgba(24,14,9,.58) 58%, #1a1310 100%); }
.auth-banner > * { position: relative; z-index: 1; }
.auth-banner > button { align-self: flex-start; min-height: 30px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 12px; }
.auth-banner small { color: #ffc34c; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.auth-banner h1 { margin: 4px 0; font-size: 24px; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.auth-banner p { margin: 0; color: rgba(255,244,225,.74); font-size: 10px; }
.auth-panel { width: calc(100% - 28px); margin: -12px auto 0; padding: 18px 16px 24px; position: relative; z-index: 2; border: 1px solid #6d4b2b; border-radius: 13px; background: linear-gradient(145deg, rgba(55,38,28,.98), rgba(32,23,19,.98)); box-shadow: inset 0 1px 0 rgba(255,211,132,.2), 0 14px 32px rgba(0,0,0,.38); }
.auth-panel::before, .auth-panel::after { content: ""; position: absolute; top: 7px; width: 18px; height: 18px; border-top: 2px solid #d8892f; }
.auth-panel::before { left: 8px; border-left: 2px solid #d8892f; }
.auth-panel::after { right: 8px; border-right: 2px solid #d8892f; }
.auth-heading { margin-top: 20px; }
.auth-heading small { color: #ef9b37; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.auth-heading h2 { margin: 5px 0 6px; color: #fff4e4; font-size: 22px; }
.auth-heading p { margin: 0; color: #bca997; font-size: 10px; line-height: 1.5; }
.auth-channel-tabs { padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid #563d2a; border-radius: 8px; background: #17100d; }
.auth-channel-tabs button { min-height: 42px; border: 0; border-radius: 5px; background: transparent; color: #a9917d; font-size: 12px; font-weight: 750; }
.auth-channel-tabs button.active { background: linear-gradient(180deg, #f6a22e, #d86613); color: #24140a; box-shadow: inset 0 1px 0 #ffd67a, 0 3px 8px rgba(0,0,0,.28); }
.wechat-access-card { margin-top: 18px; padding: 10px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border: 1px solid #58402f; border-radius: 9px; background: rgba(20,14,12,.58); }
.wechat-access-card img { width: 42px; height: 42px; border: 1px solid #c2792b; border-radius: 8px; object-fit: cover; }
.wechat-access-card strong, .wechat-access-card small { display: block; }
.wechat-access-card strong { font-size: 12px; }
.wechat-access-card small { margin-top: 3px; color: #a99583; font-size: 9px; }
.wechat-access-card b { padding: 4px 7px; border-radius: 4px; background: rgba(49,187,85,.14); color: #6edf87; font-size: 9px; }
.wechat-login, .bind-confirm, .app-login-submit { width: 100%; min-height: 48px; margin-top: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: linear-gradient(180deg, #42ce67, #28a948); color: #fff; font-size: 14px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 7px 14px rgba(0,0,0,.25); }
.wechat-mark { margin-right: 8px; letter-spacing: -4px; }
.agreement-check { width: 100%; margin-top: 16px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; gap: 7px; color: #a99787; font-size: 9px; }
.agreement-check i { width: 16px; height: 16px; border: 1px solid #77614d; border-radius: 3px; display: grid; place-items: center; color: transparent; font-style: normal; }
.agreement-check.checked i { border-color: #39bd58; background: #39bd58; color: #fff; }
.agreement-check span { color: #aa9a8d; }
.auth-tip { margin: 18px 0 0; color: #8f7d6e; font-size: 9px; line-height: 1.6; text-align: center; }
.app-login-modes { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #5b412d; }
.app-login-modes button { min-height: 38px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #9f8a77; font-size: 11px; font-weight: 750; }
.app-login-modes button.active { border-color: #ff9a25; color: #ffc15c; }
.app-login-form { margin-top: 16px; display: grid; gap: 10px; }
.t5-auth-field { min-height: 48px; padding: 0 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; border: 1px solid #60452f; border-radius: 9px; background: #17100d; box-shadow: inset 0 2px 8px rgba(0,0,0,.38); }
.t5-auth-field:focus-within { border-color: #dc8a2e; box-shadow: 0 0 0 2px rgba(220,138,46,.13), inset 0 2px 8px rgba(0,0,0,.38); }
.t5-auth-field i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #745134; transform: rotate(45deg); color: #d89543; font-size: 8px; font-style: normal; }
.t5-auth-field i::first-letter { transform: rotate(-45deg); }
.t5-auth-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff2dd; font-size: 12px; }
.t5-auth-field input::placeholder { color: #756659; }
.t5-auth-field button { min-height: 30px; padding: 0 4px 0 10px; border: 0; border-left: 1px solid #59402e; background: transparent; color: #ffad3d; font-size: 10px; font-weight: 750; }
.app-login-submit { margin-top: 4px; border-color: #f0a03f; background: linear-gradient(180deg, #ffad36, #d96412); color: #2b170b; }
.bind-panel { padding-top: 24px; }
.auth-select { margin-top: 18px; display: block; }
.auth-select span { display: block; margin-bottom: 7px; color: #b5a18e; font-size: 9px; }
.auth-select select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #60452f; border-radius: 7px; outline: 0; background: #17100d; color: #fff0dc; font-size: 11px; }
.bind-role-preview { margin-top: 20px; padding: 10px; border: 1px solid #60452f; border-radius: 9px; background: #17100d; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.bind-role-preview img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.bind-role-preview strong, .bind-role-preview small { display: block; }
.bind-role-preview small { margin-top: 4px; color: #9b8775; font-size: 9px; }
.bind-role-preview b { color: #f0a23f; font-size: 8px; }
.bind-confirm { margin-top: 24px; background: linear-gradient(90deg, #ed941f, #e56b14); box-shadow: 0 8px 18px rgba(204,96,15,.18); }
.auth-text-button { width: 100%; min-height: 42px; margin-top: 10px; border: 0; background: transparent; color: #d49a59; font-size: 10px; }
.wechat-auth-backdrop .modal-shell { padding: 0; overflow: hidden; border-color: #584231; background: #f7f7f7; color: #191919; }
.wechat-auth-sheet { padding: 20px 18px 0; }
.wechat-auth-app { padding-bottom: 16px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; border-bottom: 1px solid #e7e7e7; }
.wechat-auth-app img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.wechat-auth-app strong, .wechat-auth-app small { display: block; }
.wechat-auth-app strong { font-size: 13px; }
.wechat-auth-app small { margin-top: 3px; color: #888; font-size: 9px; }
.wechat-auth-sheet h2 { margin: 20px 0 16px; font-size: 17px; }
.wechat-permission { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; }
.wechat-permission > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #ededed; color: #777; }
.wechat-permission strong, .wechat-permission small { display: block; }
.wechat-permission strong { font-size: 12px; }
.wechat-permission small, .wechat-auth-sheet > p { color: #888; font-size: 9px; line-height: 1.5; }
.wechat-auth-sheet > p { margin: 18px 0; }
.wechat-auth-actions { margin: 0 -18px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ddd; }
.wechat-auth-actions button { min-height: 50px; border: 0; background: #fff; color: #555; font-size: 13px; }
.wechat-auth-actions button + button { border-left: 1px solid #ddd; color: #07c160; font-weight: 800; }

.mine-page { min-height: 100%; background: var(--page); }
.role-page { padding-bottom: 12px; }
.role-hero {
  min-height: 238px;
  padding: 14px 16px 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center 42%;
  background-size: cover;
  color: #fff;
}
.role-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,13,15,.18) 0%, rgba(20,14,12,.22) 42%, rgba(23,18,15,.82) 78%, var(--page) 100%);
}
.role-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 78px;
  background: linear-gradient(180deg, transparent, var(--page));
}
.role-hero > * { position: relative; z-index: 1; }
.role-page-title { min-height: 30px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,.72); }
.role-identity { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; }
.role-avatar { width: 54px; height: 54px; overflow: hidden; border: 2px solid var(--accent-2); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.42); }
.role-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.role-identity h1 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.02em; }
.role-identity h1 span { color: #ee80bd; font-size: 16px; }
.role-identity p { margin: 0; color: rgba(255,255,255,.9); font-size: 10px; }
.role-identity small { display: block; margin-top: 4px; color: rgba(255,255,255,.64); font-size: 8px; }
.role-identity button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(255,222,176,.42); border-radius: 9px; background: rgba(35,22,16,.62); color: var(--accent-2); font-size: 9px; font-weight: 750; }
.role-summary-card { margin: -22px 13px 0; padding: 13px 12px 11px; position: relative; z-index: 2; border: 1px solid var(--line-strong); border-radius: 15px; background: linear-gradient(180deg, rgba(57,42,33,.98), rgba(35,26,21,.98)); box-shadow: 0 14px 32px rgba(10,6,4,.34); }
.role-summary-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.role-summary-title small, .role-section-heading small { color: var(--accent-2); font-size: 8px; font-weight: 750; }
.role-summary-title h2, .role-section-heading h3 { margin: 2px 0 0; font-size: 14px; }
.role-summary-title button, .role-section-heading button { min-height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--accent-2); font-size: 9px; }
.role-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.role-metric-grid > div { min-width: 0; padding: 10px 4px 3px; border-right: 1px solid var(--line); text-align: center; }
.role-metric-grid > div:last-child { border-right: 0; }
.role-metric-grid span { display: block; min-height: 14px; color: var(--ink-3); font-size: 8px; }
.role-metric-grid strong { display: block; margin-top: 3px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.role-metric-grid small { display: block; margin-top: 2px; overflow: hidden; color: var(--accent-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.role-tabs { min-height: 48px; margin-top: 12px; position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(28,21,17,.96); backdrop-filter: blur(10px); }
.role-tabs button { position: relative; border: 0; background: transparent; color: var(--ink-3); font-size: 10px; }
.role-tabs button.active { color: var(--ink); font-weight: 800; }
.role-tabs button.active::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: 0 -2px 8px rgba(240,138,36,.3); }
.role-tab-content { padding: 12px 13px 24px; }
.role-tab-content:has(.mine-overview-container) { padding-top: 10px; }
.mine-user-card { padding-bottom: 10px; }
.mine-user-card .role-summary-title { margin-bottom: 7px; }
.mine-user-card .role-metric-grid > div { padding-top: 8px; }
.mine-overview-container {
  padding: 10px;
  border: 1px solid #65462f;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,184,76,.055) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(315deg, rgba(255,184,76,.035) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(180deg, #2e211b, #211815);
  box-shadow: inset 0 1px 0 rgba(255,221,171,.1), 0 13px 30px rgba(7,4,3,.25);
}
.mine-overview-head { min-height: 42px; padding: 0 3px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mine-overview-head small, .mine-overview-head h2 { display: block; }
.mine-overview-head small { color: #d99542; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.mine-overview-head h2 { margin: 2px 0 0; font-size: 15px; }
.mine-overview-head > span { padding: 5px 8px; border: 1px solid rgba(120,219,144,.18); border-radius: 999px; background: rgba(69,133,80,.11); color: #9bb79e; font-size: 7px; }
.mine-overview-head > span i { width: 5px; height: 5px; margin-right: 3px; display: inline-block; border-radius: 50%; background: #76c88a; box-shadow: 0 0 7px rgba(118,200,138,.7); }
.mine-business-module { overflow: hidden; border: 1px solid #5c402f; border-radius: 12px; background: linear-gradient(150deg, rgba(61,43,34,.98), rgba(38,27,23,.98)); }
.mine-business-module + .mine-business-module { margin-top: 9px; }
.mine-module-title { width: 100%; min-height: 43px; padding: 7px 9px; border: 0; border-bottom: 1px solid rgba(151,102,68,.3); background: linear-gradient(90deg, rgba(126,78,40,.25), transparent); color: var(--ink); display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 7px; text-align: left; }
.mine-module-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #bf7730; border-radius: 7px; background: radial-gradient(circle at 35% 30%, #f6bf58, #9c4a19 68%, #3c1e12); color: #311608; font-size: 11px; font-weight: 950; box-shadow: inset 0 1px 0 rgba(255,246,195,.42); }
.mine-module-title > span:nth-child(2) small, .mine-module-title > span:nth-child(2) strong { display: block; }
.mine-module-title > span:nth-child(2) small { color: #a87b58; font-size: 5px; font-weight: 850; letter-spacing: .14em; }
.mine-module-title > span:nth-child(2) strong { margin-top: 1px; font-size: 11px; }
.mine-module-title > b { color: #d9a565; font-size: 7px; font-weight: 750; }
.mine-collection-board { min-height: 103px; padding: 10px; display: grid; grid-template-columns: 91px 1fr; align-items: stretch; gap: 9px; }
.mine-collection-seal { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #c36d25; border-radius: 11px; background: radial-gradient(circle at 50% 36%, #f3b63f, #c45b16 62%, #662510); color: #301307; box-shadow: inset 0 0 0 3px rgba(255,224,123,.13), 0 7px 15px rgba(0,0,0,.22); }
.mine-collection-seal::before { content: ""; width: 58px; height: 58px; position: absolute; top: -23px; right: -16px; border: 8px solid rgba(255,243,178,.14); border-radius: 50%; }
.mine-collection-seal span { position: relative; font-size: 7px; font-weight: 900; }
.mine-collection-seal strong { position: relative; margin-top: 2px; font-size: 27px; line-height: 1; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; }
.mine-collection-seal small { position: relative; margin-top: 2px; font-size: 8px; font-weight: 900; }
.mine-collection-seal i { width: 65px; height: 4px; margin-top: 7px; position: relative; overflow: hidden; border-radius: 999px; background: rgba(53,18,4,.25); }
.mine-collection-seal i::after { content: ""; width: var(--progress); height: 100%; display: block; border-radius: inherit; background: #fff0a8; }
.mine-data-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mine-data-items button { min-width: 0; padding: 8px 3px 6px; border: 1px solid rgba(228,165,81,.18); border-radius: 9px; background: linear-gradient(180deg, rgba(255,209,132,.1), rgba(26,19,16,.12)); color: var(--ink); text-align: center; }
.mine-data-items span, .mine-data-items strong, .mine-data-items small { display: block; }
.mine-data-items span { color: #d3a06c; font-size: 7px; }
.mine-data-items strong { margin-top: 8px; color: #ffd071; font-size: 19px; }
.mine-data-items small { margin-top: 3px; color: #8f7968; font-size: 6px; }
.mine-tournament-board { min-height: 113px; padding: 10px; display: grid; grid-template-columns: 1fr 1.45fr 1fr; align-items: stretch; gap: 6px; background: radial-gradient(circle at 50% 42%, rgba(226,141,50,.12), transparent 55%); }
.mine-tournament-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed rgba(192,137,88,.25); border-radius: 9px; text-align: center; }
.mine-tournament-stat span { color: #c19b78; font-size: 7px; }
.mine-tournament-stat strong { margin-top: 5px; color: #ffbf45; font-size: 21px; }
.mine-tournament-stat small { margin-top: 3px; color: #857468; font-size: 6px; }
.mine-rank-medal { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #9c6938; border-radius: 10px 10px 20px 20px; background: linear-gradient(180deg, #514037, #2b211d); box-shadow: inset 0 0 0 3px rgba(255,214,127,.04); }
.mine-rank-medal i { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #e6a544; border-radius: 50%; background: radial-gradient(circle, #edbb57, #7f451f 68%, #2e1b14); color: #2b160b; font-size: 17px; font-style: normal; font-weight: 950; }
.mine-rank-medal strong { margin-top: 5px; color: #f4d6a6; font-size: 8px; }
.mine-rank-medal small { margin-top: 3px; color: #b09072; font-size: 6px; }
.mine-progress-module .mine-rank-medal { width: 100%; padding: 6px 2px; color: var(--ink); }
.mine-progress-module .mine-rank-medal i { font-size: 11px; }
.mine-equipment-board { padding: 10px 8px 11px; }
.mine-equipment-module .equipment-snapshot-card { height: 79px; }
.mine-equipment-module .equipment-snapshot-icon { height: 46px; }
.mine-visit-grid { padding: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mine-visit-grid button { min-height: 57px; padding: 8px; border: 1px solid rgba(214,155,83,.18); border-radius: 9px; background: rgba(22,16,14,.28); color: var(--ink); display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 7px; text-align: left; }
.mine-visit-grid button > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(222,150,63,.15); color: #e4a344; font-size: 15px; font-style: normal; }
.mine-visit-grid button span strong, .mine-visit-grid button span small { display: block; }
.mine-visit-grid button span strong { color: #ffc45b; font-size: 17px; line-height: 1; }
.mine-visit-grid button span small { margin-top: 3px; color: #cab29e; font-size: 7px; white-space: nowrap; }
.mine-visit-grid button > b { padding: 3px 5px; border-radius: 999px; background: rgba(226,124,43,.14); color: #d99c62; font-size: 5px; white-space: nowrap; }
.mine-business-module button:active { transform: scale(.985); }
.mine-business-module button:focus-visible { outline: 2px solid #ffb343; outline-offset: -2px; }
.role-progress-card { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(115deg, var(--surface-3), var(--surface)); }
.role-progress-card > div:first-child { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; }
.role-progress-card span { color: var(--accent-2); font-size: 9px; }
.role-progress-card strong { font-size: 17px; }
.role-progress-card small { color: var(--ink-2); font-size: 9px; }
.role-progress-card button { border: 0; background: transparent; color: var(--accent-2); font-size: 9px; }
.role-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.role-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.role-section-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role-section-heading > span { color: var(--ink-3); font-size: 8px; }
.role-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.role-equipment-card { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #3b2c25, #281e1a); color: var(--ink); text-align: left; }
.role-gear-head { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.role-gear-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,150,62,.45); border-radius: 8px; background: radial-gradient(circle, #74524a, #321d20 68%); color: var(--accent-2); font-size: 18px; box-shadow: inset 0 0 12px rgba(240,138,36,.18); }
.role-gear-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.role-gear-head strong, .role-gear-head small { display: block; }
.role-gear-head strong { font-size: 11px; }
.role-gear-head small { margin-top: 3px; color: var(--ink-3); font-size: 7px; }
.role-equipment-card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.role-equipment-card li { min-height: 27px; padding: 4px 0; position: relative; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.role-equipment-card li i { color: #efdf72; font-style: normal; font-size: 12px; }
.role-equipment-card li img { width: 12px; height: 17px; position: absolute; left: 0; top: 50%; display: block; transform: translateY(-50%); object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)); }
.role-equipment-card li span { width: 100%; padding: 0 12px; color: var(--ink-2); font-size: 7px; line-height: 1.25; text-align: center; }
.equipment-snapshot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.equipment-snapshot-card { min-width: 0; height: 84px; padding: 3px 3px 4px; position: relative; overflow: hidden; border: 1px solid #e89020; border-radius: 5px; background: linear-gradient(145deg, #9d5d0e, #4a270d 72%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,229,155,.15), 0 3px 7px rgba(0,0,0,.14); }
.equipment-snapshot-card.frame-red { border-color: #ec4d2e; background: linear-gradient(145deg, #7b2822, #35191b 72%); }
.equipment-snapshot-card.frame-purple { border-color: #d54ce6; background: linear-gradient(145deg, #6a2776, #2e1739 72%); }
.equipment-snapshot-card.frame-cyan { border-color: #2aa9d1; background: linear-gradient(145deg, #265a78, #172c3c 72%); }
.equipment-snapshot-card.frame-green { border-color: #97a842; background: linear-gradient(145deg, #59682d, #28301d 72%); }
.equipment-snapshot-card.frame-brown { border-color: #987052; background: linear-gradient(145deg, #604630, #2c241e 72%); }
.equipment-snapshot-card::before { content: ""; position: absolute; top: -9px; left: -9px; width: 23px; height: 23px; transform: rotate(45deg); background: rgba(255,216,173,.18); }
.equipment-tier { position: absolute; z-index: 3; top: 3px; left: 3px; color: #fff2d7; font-size: 5px; font-weight: 900; text-shadow: 0 1px 2px #000; }
.equipment-snapshot-icon { height: 51px; padding: 5px 1px 0; display: grid; place-items: center; }
.equipment-snapshot-icon img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.equipment-card-meta { height: 13px; margin: -1px -2px 0; padding: 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 1px; background: url('assets/equipment-z/zmzg_zb_namebg.png') center / 100% 100% no-repeat; }
.equipment-card-meta strong { overflow: hidden; font-size: 5px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-card-meta small { flex: 0 0 auto; color: #fff; font-size: 5px; font-weight: 850; text-shadow: 0 1px 2px #000; }
.gem-quality-row { height: 11px; margin-top: 1px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.gem-quality-row img { width: 6px; height: 9px; display: block; object-fit: contain; filter: drop-shadow(0 1px 1px #000); }
.gem-quality-row .gem-yellow { color: #ffd91f; }
.gem-quality-row .gem-red { color: #ff4a2d; }
.gem-quality-row .gem-purple { color: #e64dea; }
.gem-quality-row .gem-blue { color: #3b8cff; }
.gem-quality-row .gem-green { color: #16bf72; }
.equipment-snapshot-card:active { transform: translateY(1px); }
.role-collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-collection-card { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.role-collection-mosaic { height: 58px; margin-bottom: 8px; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 4px; }
.role-collection-mosaic span, .role-collection-mosaic i { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: linear-gradient(145deg, #7861c1, #322d55); color: #ffe681; font-style: normal; font-size: 20px; }
.role-collection-mosaic.real img { width: 100%; height: 100%; min-width: 0; display: block; border: 1px solid rgba(255,176,76,.24); border-radius: 7px; background: #191315; object-fit: cover; }
.role-collection-mosaic i:nth-child(2) { background: linear-gradient(145deg, #bd7152, #552a27); }
.role-collection-mosaic i:nth-child(3) { background: linear-gradient(145deg, #4b8d8c, #253c45); }
.role-collection-card strong, .role-collection-card small { display: block; }
.role-collection-card strong { font-size: 10px; }
.role-collection-card small { margin-top: 3px; color: var(--ink-3); font-size: 8px; }
.role-collection-card small b { color: var(--accent-2); }
.collection-overview { display: grid; gap: 10px; }
.collection-showcase { width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #32241e, #211816); color: var(--ink); text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.collection-showcase-head { min-height: 43px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.collection-showcase-head > span { display: flex; align-items: baseline; gap: 7px; }
.collection-showcase-head strong { font-size: 12px; }
.collection-showcase-head small { color: var(--accent-2); font-size: 9px; font-weight: 750; }
.collection-showcase-head b { color: var(--ink-3); font-size: 21px; font-weight: 400; }
.collection-preview-strip { padding: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.collection-preview-item { min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(255,176,76,.26); border-radius: 9px; background: #191314; }
.collection-preview-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.collection-showcase:not(:first-child) .collection-preview-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-showcase:nth-child(2) .collection-preview-strip,
.collection-showcase:nth-child(3) .collection-preview-strip,
.collection-showcase:nth-child(4) .collection-preview-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.skin-gallery-page { min-height: 100%; padding: 16px 13px 28px; background: radial-gradient(circle at 88% 0, rgba(74,110,137,.22), transparent 26%), linear-gradient(180deg, #171619, #16110f 42%, #120e0d); color: var(--ink); }
.skin-gallery-intro { min-height: 55px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.skin-gallery-intro small { color: var(--ink-3); font-size: 8px; }
.skin-gallery-intro h1 { margin: 3px 0 0; font-size: 20px; }
.skin-gallery-intro h1 span { margin-left: 4px; color: var(--accent-2); font-size: 13px; }
.skin-sync-state { margin-top: 10px; color: var(--ink-3); font-size: 8px; }
.skin-search { height: 40px; margin: 2px 0 13px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.055); }
.skin-search svg { width: 17px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; }
.skin-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.skin-search input::placeholder { color: var(--ink-3); }
.skill-skin-groups { display: grid; gap: 11px; }
.skill-skin-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(150deg, rgba(54,43,39,.96), rgba(31,24,22,.98)); box-shadow: 0 9px 24px rgba(0,0,0,.16); }
.skill-skin-group-head { min-height: 67px; padding: 10px 11px; display: grid; grid-template-columns: 46px 1fr 25px; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.skill-skin-badge { width: 46px; height: 46px; padding: 2px; overflow: hidden; border: 2px solid var(--accent); border-radius: 50%; background: #231a17; box-shadow: 0 0 0 2px rgba(240,138,36,.15); }
.skill-skin-badge img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.skill-skin-group-head h2 { margin: 0; font-size: 14px; }
.skill-skin-group-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 8px; }
.skill-skin-group-head p strong { color: var(--accent-2); font-size: 10px; }
.skill-skin-group-head button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--ink-3); font-size: 10px; }
.skill-skin-strip { padding: 10px; display: grid; grid-auto-columns: 82px; grid-auto-flow: column; gap: 7px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.skill-skin-strip::-webkit-scrollbar { display: none; }
.skill-skin-card { width: 82px; height: 126px; padding: 0; position: relative; overflow: hidden; border: 1px solid rgba(255,179,79,.28); border-radius: 9px; background: #151113; color: #fff; text-align: left; }
.skill-skin-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease, filter .18s ease; }
.skill-skin-card::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(8,7,7,.94)); pointer-events: none; }
.skill-skin-card strong { position: absolute; z-index: 2; left: 6px; right: 5px; bottom: 18px; overflow: hidden; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.skin-owned-state { position: absolute; z-index: 2; top: 5px; left: 5px; padding: 2px 5px; border-radius: 6px; background: rgba(32,24,20,.84); color: #ffe0a1; font-size: 7px; }
.skill-skin-card.unowned img { filter: grayscale(1) brightness(.48); }
.skill-skin-card.unowned { border-color: rgba(255,255,255,.09); }
.skill-skin-card.unowned .skin-owned-state { color: #bbb4b0; }
.skill-skin-card:active img { transform: scale(1.04); }
.collection-stars { color: #ffd84b; font-size: 7px; line-height: 1; letter-spacing: -1px; text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; }
.skin-card-stars { position: absolute; z-index: 3; right: 5px; bottom: 6px; left: 5px; display: block; text-align: center; }
.skin-gallery-note { padding: 0 3px; }
.core-gallery-page { background: radial-gradient(circle at 18% 0, rgba(243,147,47,.13), transparent 25%), linear-gradient(180deg, #1c1918, #16110f 45%, #120e0d); }
.core-skill-group { background: linear-gradient(150deg, rgba(55,42,35,.98), rgba(28,22,20,.98)); }
.core-skill-badge { padding: 5px; background: radial-gradient(circle, #493126, #171315 72%); }
.core-skill-badge img { object-fit: contain; }
.core-skin-strip { grid-auto-columns: 74px; }
.core-skin-card { width: 74px; height: 109px; background: linear-gradient(155deg, #2b211e, #111012); }
.core-icon-stage { width: 100%; height: 76px; padding: 9px 7px 5px; display: grid; place-items: center; background: radial-gradient(circle, rgba(240,138,36,.15), transparent 68%); }
.core-skin-card .core-icon-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.core-skin-card.unowned .core-icon-stage img { filter: grayscale(1) brightness(.48); }
.core-skin-card::after { inset: 56% 0 0; }
.core-skin-card strong { bottom: 16px; font-size: 8px; text-align: center; }
.core-skin-card .skin-owned-state { top: 4px; left: 4px; }
.core-card-stars { position: absolute; z-index: 3; left: 5px; right: 5px; bottom: 5px; text-align: center; }
.weapon-gallery-page { background: radial-gradient(circle at 84% 0, rgba(86,105,143,.18), transparent 27%), linear-gradient(180deg, #1a191c, #16110f 46%, #120e0d); }
.weapon-toolbar { min-height: 42px; margin: 2px 0 12px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); }
.weapon-toolbar span { color: var(--ink-3); font-size: 9px; }
.weapon-toolbar button { min-height: 28px; padding: 0 9px; border: 1px solid rgba(240,138,36,.3); border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-size: 8px; font-weight: 750; }
.weapon-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.weapon-gallery-card { min-width: 0; min-height: 122px; padding: 5px 5px 7px; position: relative; overflow: hidden; border: 1px solid rgba(255,173,71,.24); border-radius: 11px; background: linear-gradient(150deg, #30241f, #171315); color: var(--ink); text-align: center; }
.weapon-number { position: absolute; z-index: 2; top: 5px; left: 5px; padding: 2px 4px; border-radius: 5px; background: rgba(22,17,15,.78); color: var(--accent-2); font-size: 6px; font-weight: 800; }
.weapon-icon-stage { height: 72px; padding: 8px 3px 2px; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.06); background: radial-gradient(circle, rgba(115,113,149,.18), transparent 67%); }
.weapon-icon-stage img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.46)); }
.weapon-gallery-card strong, .weapon-gallery-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weapon-gallery-card strong { margin-top: 5px; font-size: 8px; }
.weapon-card-stars { min-height: 8px; margin-top: 3px; display: block; text-align: center; }
.weapon-gallery-card small { margin-top: 2px; color: var(--accent-2); font-size: 6px; }
.weapon-gallery-card.unowned { border-color: rgba(255,255,255,.08); }
.weapon-gallery-card.unowned img { filter: grayscale(1) brightness(.46); }
.weapon-gallery-card.unowned small { color: var(--ink-3); }
.weapon-gallery-card:active { transform: translateY(1px); }
.wall-gallery-page { background: radial-gradient(circle at 16% 0, rgba(109,139,160,.18), transparent 28%), linear-gradient(180deg, #1b1b1b, #16110f 46%, #120e0d); }
.wall-toolbar strong { color: var(--accent-2); font-size: 8px; }
.wall-gallery-card { min-height: 122px; background: linear-gradient(150deg, #302822, #171315); }
.wall-icon-stage { padding: 7px 3px 1px; background: radial-gradient(circle, rgba(112,151,167,.2), transparent 69%); }
.wall-icon-stage img { object-fit: contain; }
.wall-card-stars { min-height: 8px; margin-top: 3px; display: block; text-align: center; }
.role-asset-list { display: grid; gap: 7px; }
.role-asset-list > button { width: 100%; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; text-align: left; }
.role-asset-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); font-size: 16px; }
.role-asset-list strong { display: block; font-size: 10px; }
.role-asset-list small { height: 4px; margin-top: 7px; display: block; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.role-asset-list small i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.role-asset-list b { color: var(--accent-2); font-size: 14px; }
.role-data-note { margin: 14px 2px 0; color: var(--ink-3); font-size: 8px; line-height: 1.6; }
.role-backpack { padding-bottom: 10px; }
.backpack-head { min-height: 56px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.backpack-head small { color: var(--accent-2); font-size: 8px; font-weight: 750; }
.backpack-head h3 { margin: 3px 0 0; font-size: 15px; }
.backpack-head h3 span { margin-left: 4px; color: var(--ink-3); font-size: 8px; font-weight: 600; }
.backpack-filter { display: flex; gap: 5px; }
.backpack-filter button { min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-3); font-size: 8px; font-weight: 750; }
.backpack-filter button.active { border-color: rgba(240,138,36,.38); background: var(--accent-soft); color: var(--accent-2); }
.backpack-filter i { width: 8px; height: 8px; display: inline-block; margin-right: 3px; border-radius: 2px; background: rgba(255,255,255,.16); vertical-align: -1px; }
.backpack-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.backpack-item { min-width: 0; aspect-ratio: 1; padding: 4px; position: relative; overflow: hidden; border: 1px solid #347ca2; border-radius: 7px; background: linear-gradient(145deg, #17364b, #0e202c); box-shadow: inset 0 0 14px rgba(72,178,231,.13); }
.backpack-item::before { content: ""; position: absolute; z-index: 0; top: -7px; left: -7px; width: 26px; height: 26px; transform: rotate(45deg); background: rgba(255,255,255,.08); }
.backpack-item img { width: 100%; height: 100%; display: block; position: relative; z-index: 1; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.backpack-item strong { position: absolute; z-index: 2; right: 4px; bottom: 2px; color: #fff; font-size: 9px; line-height: 1; text-shadow: 0 1px 3px #000, 1px 0 2px #000; }
.backpack-item.rarity-purple { border-color: #b44bdd; background: linear-gradient(145deg, #482055, #24112c); box-shadow: inset 0 0 14px rgba(208,86,246,.15); }
.backpack-item.rarity-orange { border-color: #e8882f; background: linear-gradient(145deg, #5b3519, #28160d); box-shadow: inset 0 0 14px rgba(249,155,60,.16); }
.backpack-item.rarity-red { border-color: #ee4e36; background: linear-gradient(145deg, #5c2018, #28100e); box-shadow: inset 0 0 14px rgba(255,79,57,.18); }
.backpack-item:active { transform: scale(.97); }
.collection-backpack-slot { margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.mode-data-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mode-data-heading small { color: var(--accent-2); font-size: 8px; font-weight: 750; }
.mode-data-heading h3 { margin: 3px 0 0; font-size: 15px; }
.mode-data-heading button { min-height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--accent-2); font-size: 9px; }
.mode-data-summary { margin-bottom: 10px; padding: 11px 5px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg, #38271f, #211916); }
.mode-data-summary > div { min-width: 0; padding: 0 7px; border-right: 1px solid var(--line); text-align: center; }
.mode-data-summary > div:last-child { border-right: 0; }
.mode-data-summary small, .mode-data-summary span { display: block; color: var(--ink-3); font-size: 7px; }
.mode-data-summary strong { display: block; margin: 4px 0 2px; color: var(--accent-2); font-size: 17px; }
.mode-progress-list { display: grid; gap: 8px; }
.mode-progress-card { width: 100%; min-height: 78px; padding: 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 65px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #30241f, #211916); color: var(--ink); text-align: left; }
.mode-progress-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(240,138,36,.4); border-radius: 10px; background: radial-gradient(circle, #70421f, #2a1b16 70%); color: #ffd879; font-size: 14px; font-weight: 900; box-shadow: inset 0 0 12px rgba(240,138,36,.12); }
.mode-progress-main { min-width: 0; }
.mode-progress-title { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; }
.mode-progress-title strong { font-size: 10px; }
.mode-progress-title small { color: var(--ink-3); font-size: 6px; }
.mode-progress-track { height: 5px; margin: 8px 0 5px; display: block; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.mode-progress-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ef8424, #ffd36a); box-shadow: 0 0 7px rgba(240,138,36,.35); }
.mode-progress-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-3); font-size: 6px; white-space: nowrap; }
.mode-progress-meta b { color: var(--ink-2); }
.mode-progress-rank { min-width: 0; padding-left: 8px; position: relative; border-left: 1px solid var(--line); text-align: right; }
.mode-progress-rank small, .mode-progress-rank strong { display: block; }
.mode-progress-rank small { color: var(--ink-3); font-size: 6px; }
.mode-progress-rank strong { margin-top: 5px; color: var(--accent-2); font-size: 9px; }
.mode-progress-rank > b { position: absolute; right: -4px; top: 14px; color: var(--ink-3); font-size: 15px; font-weight: 400; }
.mode-progress-card:active { transform: translateY(1px); }

.settings-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  align-items: stretch;
  background: rgba(9,7,6,.64);
}
.settings-drawer {
  width: 80%;
  max-width: 310px;
  height: 100%;
  overflow-y: auto;
  background: var(--page);
  color: var(--ink);
  border-radius: 0 22px 22px 0;
  box-shadow: 18px 0 50px rgba(0,0,0,.42);
}
.settings-drawer > header { min-height: 82px; padding: 20px 16px 12px; display: flex; align-items: flex-start; justify-content: space-between; background: var(--chrome); }
.settings-drawer > header small { color: var(--ink-3); font-size: 9px; }
.settings-drawer > header h2 { margin: 3px 0 0; font-size: 20px; }
.settings-drawer > header button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 20px; }
.settings-drawer-content { padding: 12px; }
.drawer-role-card { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.drawer-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--avatar-top), var(--avatar-bottom)); font-weight: 850; }
.drawer-role-card strong, .drawer-role-card small { display: block; }
.drawer-role-card small { margin-top: 3px; color: var(--ink-3); font-size: 8px; line-height: 1.4; }
.drawer-role-card button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--accent-2); font-size: 9px; }
.settings-drawer-content > h3 { margin: 18px 2px 8px; font-size: 13px; }
.drawer-menu { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.drawer-menu > button { width: 100%; min-height: 56px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; text-align: left; }
.drawer-menu > button:last-child { border-bottom: 0; }
.drawer-menu > button > span { color: var(--accent-2); font-size: 14px; text-align: center; }
.drawer-menu strong, .drawer-menu small { display: block; }
.drawer-menu strong { font-size: 11px; }
.drawer-menu small { margin-top: 3px; color: var(--ink-3); font-size: 8px; }
.drawer-menu b { color: var(--ink-3); font-size: 11px; }
.drawer-menu b.drawer-message-badge { min-height: 22px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgba(225,84,28,.16); color: #ff9a50; font-size: 8px; }
.drawer-message-badge i { width: 5px; height: 5px; border-radius: 50%; background: #ff6936; box-shadow: 0 0 6px rgba(255,105,54,.65); }

/* Unified interaction pages: full-screen for reading/tasks, sheets for choices, toast for completion. */
.detail-page { min-height: 100%; padding-bottom: 18px; background: linear-gradient(180deg, #211712, #17120f 36%); color: var(--ink); }
.detail-page:has(.detail-action-bar) { padding-bottom: 82px; }
.detail-page-head { min-height: 154px; padding: 26px 20px 20px; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,202,112,.17); background: radial-gradient(circle at 90% 10%, rgba(240,138,36,.23), transparent 36%), linear-gradient(150deg, #3a2519, #201612 72%); }
.detail-page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background: linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.22) 44% 45%, transparent 45% 100%) 0 0 / 22px 22px; }
.detail-page-head > * { position: relative; z-index: 1; }
.detail-page-head > small, .detail-page-head > div > small { color: var(--accent-2); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.detail-page-head h1 { margin: 5px 0 4px; max-width: 290px; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.detail-page-head p { margin: 0; max-width: 290px; color: var(--ink-2); font-size: 10px; line-height: 1.55; }
.detail-page-head.illustrated { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 10px; }
.detail-page-head.illustrated > img { width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.detail-page-body { padding: 16px; }
.detail-content-section { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(54,40,31,.97), rgba(34,25,20,.97)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.detail-content-section > header { min-height: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-content-section > header h2 { margin: 0; font-size: 14px; }
.detail-content-section > header button { padding: 0; border: 0; background: transparent; color: var(--accent-2); font-size: 9px; }
.detail-action-bar { min-height: 68px; padding: 10px 14px 12px; position: sticky; z-index: 8; bottom: 0; display: grid; grid-template-columns: 108px 1fr; gap: 9px; border-top: 1px solid rgba(255,210,145,.15); background: rgba(27,19,15,.94); backdrop-filter: blur(16px); box-shadow: 0 -12px 28px rgba(0,0,0,.24); }
.detail-action-bar button { min-height: 44px; border-radius: 12px; font-size: 12px; font-weight: 850; }
.detail-secondary-action { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.detail-primary-action, .wide-primary-button { border: 0; background: linear-gradient(180deg, #ffc95b, #ed7b18); color: #2b1608; box-shadow: inset 0 1px rgba(255,255,255,.42), 0 8px 18px rgba(224,104,17,.22); }

.detail-search-field { height: 46px; margin-top: 16px; padding: 0 12px; display: grid; grid-template-columns: 22px 1fr 28px; align-items: center; gap: 7px; border: 1px solid rgba(255,205,129,.22); border-radius: 13px; background: rgba(20,14,11,.78); }
.detail-search-field svg { width: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; }
.detail-search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.detail-search-field button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--ink-2); }
.detail-quick-chips { padding: 12px 16px 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.detail-quick-chips button { flex: 0 0 auto; min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 9px; }
.detail-result-summary { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.detail-result-summary strong { font-size: 13px; }
.detail-result-summary span { color: var(--ink-3); font-size: 9px; }
.detail-search-result { width: 100%; min-height: 82px; padding: 9px 0; display: grid; grid-template-columns: 76px 1fr 14px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.detail-search-result > img { width: 76px; height: 58px; border-radius: 9px; object-fit: cover; background: var(--surface); }
.detail-search-result span { min-width: 0; }
.detail-search-result small, .detail-search-result strong, .detail-search-result p { display: block; }
.detail-search-result small { color: var(--accent-2); font-size: 8px; }
.detail-search-result strong { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.detail-search-result p { margin: 3px 0 0; overflow: hidden; color: var(--ink-3); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.detail-search-result > b { color: var(--ink-3); font-weight: 400; }
.detail-empty-state { padding: 54px 20px; text-align: center; }
.detail-empty-state > span { font-size: 34px; color: var(--ink-3); }
.detail-empty-state h2 { margin: 12px 0 5px; font-size: 16px; }
.detail-empty-state p { margin: 0; color: var(--ink-3); font-size: 10px; }
.detail-empty-state button { min-height: 36px; margin-top: 16px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--accent-2); font-size: 10px; }

.tool-primary-grid { display: grid; gap: 10px; }
.tool-primary-grid > button { min-height: 108px; padding: 13px; display: grid; grid-template-columns: 70px 1fr 14px; align-items: center; gap: 10px; border: 1px solid rgba(255,202,112,.16); border-radius: 16px; background: linear-gradient(135deg, #3b2a21, #241a16); color: var(--ink); text-align: left; }
.tool-primary-grid img { width: 66px; height: 66px; object-fit: contain; }
.tool-primary-grid small, .tool-primary-grid strong, .tool-primary-grid p { display: block; }
.tool-primary-grid small { color: var(--accent-2); font-size: 8px; }
.tool-primary-grid strong { margin-top: 3px; font-size: 16px; }
.tool-primary-grid p { margin: 5px 0 0; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.tool-primary-grid > button > b { color: var(--accent-2); font-size: 18px; }
.tool-list { margin: 5px -14px -14px; }
.tool-list button, .service-detail-list button, .code-history-entry { width: 100%; min-height: 64px; padding: 10px 14px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.tool-list button > span, .code-history-entry > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(240,138,36,.3); border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-weight: 900; }
.tool-list strong, .tool-list small, .service-detail-list strong, .service-detail-list small { display: block; }
.tool-list strong, .service-detail-list strong { font-size: 11px; }
.tool-list small, .service-detail-list small { margin-top: 3px; color: var(--ink-3); font-size: 8px; }
.tool-list b, .service-detail-list b, .code-history-entry > b { color: var(--ink-3); }

/* 游戏工具：主工具突出，资料入口收敛为高密度宫格。 */
.tools-detail-page { background: linear-gradient(180deg,#2b1d15,#17110e 36%); }
.tools-hub-head { min-height: 112px; padding: 18px 20px 16px; display: grid; grid-template-columns: 1fr 72px; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,200,104,.18); background: radial-gradient(circle at 85% 20%,rgba(255,171,57,.27),transparent 35%),linear-gradient(145deg,#462b1a,#211611 75%); }
.tools-hub-head small { color: #ffc45d; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.tools-hub-head h1 { margin: 4px 0 3px; font-size: 24px; }
.tools-hub-head p { margin: 0; color: var(--ink-2); font-size: 9px; }
.tools-hub-head img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 9px 13px rgba(0,0,0,.42)); }
.tools-hub-body { padding: 13px 14px 20px; }
.tool-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.tool-feature-grid > button { min-height: 104px; padding: 11px; position: relative; overflow: hidden; display: grid; grid-template-columns: 48px 1fr 8px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#3a2a21,#241a16); color: var(--ink); text-align: left; }
.tool-feature-grid > button::after { content: ""; width: 38px; height: 38px; position: absolute; right: -13px; bottom: -15px; border: 1px solid rgba(255,194,94,.14); transform: rotate(45deg); }
.tool-feature-grid > button.season-feature { min-height: 106px; grid-column: 1 / -1; grid-template-columns: 1fr 94px 34px; border-color: rgba(255,184,66,.28); background: linear-gradient(120deg,#57321b 0,#33221a 55%,#201613 100%); }
.tool-feature-grid > button.season-feature::before { content: ""; height: 2px; position: absolute; left: 16px; right: 70px; bottom: 17px; opacity: .55; background: linear-gradient(90deg,#ffc252 0 70%,transparent 70%) 0 0 / 14px 2px; transform: rotate(-4deg); transform-origin: left center; }
.tool-feature-grid img { width: 46px; height: 46px; object-fit: contain; }
.tool-feature-grid .season-feature img { width: 92px; height: 76px; object-fit: cover; border-radius: 10px; opacity: .72; mask-image: linear-gradient(90deg,transparent,#000 24%); }
.tool-feature-grid small, .tool-feature-grid strong, .tool-feature-grid p { display: block; }
.tool-feature-grid small { color: var(--accent-2); font-size: 7px; }
.tool-feature-grid strong { margin-top: 4px; font-size: 12px; }
.tool-feature-grid .season-feature strong { font-size: 17px; }
.tool-feature-grid p { margin: 4px 0 0; color: var(--ink-3); font-size: 7px; line-height: 1.4; }
.tool-feature-grid > button > b { color: var(--accent-2); font-size: 12px; font-weight: 750; }
.tools-shortcut-section { margin-top: 14px; }
.tools-shortcut-section > header { min-height: 28px; display: flex; align-items: center; justify-content: space-between; }
.tools-shortcut-section h2 { margin: 0; font-size: 13px; }
.tools-shortcut-section header span { color: var(--ink-3); font-size: 8px; }
.tool-shortcut-grid { padding: 11px 8px 8px; display: grid; grid-template-columns: repeat(4,1fr); gap: 13px 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(48,34,27,.76); }
.tool-shortcut-grid button { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.tool-shortcut-grid button > span { width: 48px; height: 48px; margin: 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,194,90,.26); border-radius: 14px; background: linear-gradient(145deg,#70431f,#412718); box-shadow: inset 0 1px rgba(255,236,190,.16); }
.tool-shortcut-grid img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.35)); }
.tool-shortcut-grid strong { margin-top: 5px; display: block; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tools-data-note { margin: 12px 0 0; color: var(--ink-3); font-size: 7px; text-align: center; }

.calculator-head { min-height: 126px; padding: 21px 20px 18px; display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,199,101,.18); background: radial-gradient(circle at 86% 20%,rgba(255,173,55,.25),transparent 34%),linear-gradient(145deg,#452a1a,#211611 76%); }
.calculator-head small { color: var(--accent-2); font-size: 8px; font-weight: 850; }
.calculator-head h1 { margin: 4px 0; font-size: 22px; }
.calculator-head p { margin: 0; color: var(--ink-3); font-size: 8px; }
.calculator-head img { width: 72px; height: 72px; object-fit: contain; }
.calculator-body { padding: 14px; }
.calculator-inputs { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.calculator-field { min-height: 58px; padding: 8px 11px; display: grid; grid-template-columns: 1fr 154px; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.calculator-field:last-child { border-bottom: 0; }
.calculator-field > span { color: var(--ink-2); font-size: 10px; }
.calculator-field > div { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; }
.calculator-field button { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--accent-2); font-size: 17px; }
.calculator-field strong { text-align: center; font-size: 14px; }
.calculator-result { margin-top: 11px; padding: 17px 14px 12px; overflow: hidden; position: relative; border: 1px solid rgba(255,177,58,.26); border-radius: 16px; background: radial-gradient(circle at 90% 10%,rgba(255,172,45,.2),transparent 36%),linear-gradient(145deg,#4b2d1b,#281c17); text-align: center; }
.calculator-result > small { display: block; color: var(--ink-3); font-size: 8px; }
.calculator-result > strong { margin-top: 2px; display: inline-block; color: #ffbc4d; font-size: 38px; line-height: 1; }
.calculator-result > span { margin-left: 5px; color: var(--ink-2); font-size: 9px; }
.calculator-result > div { margin-top: 12px; padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed rgba(255,214,146,.18); }
.calculator-result p { margin: 0; color: var(--ink-3); font-size: 8px; }
.calculator-result p + p { border-left: 1px solid var(--line); }
.calculator-result b { color: var(--ink-2); }
.calculator-result.enough > strong { color: #8fd49c; }
.calculator-secondary-result { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calculator-secondary-result span { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.calculator-secondary-result small, .calculator-secondary-result strong { display: block; }
.calculator-secondary-result small { color: var(--ink-3); font-size: 7px; }
.calculator-secondary-result strong { margin-top: 5px; font-size: 11px; }
.calculator-rule-note { margin: 12px 4px 0; color: var(--ink-3); font-size: 7px; line-height: 1.5; text-align: center; }

.season-map-page { background: radial-gradient(circle at 50% 32%,rgba(84,114,132,.18),transparent 38%),linear-gradient(180deg,#22211e,#14110f); }
.season-map-head { min-height: 120px; padding: 19px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,198,95,.18); background: linear-gradient(135deg,rgba(75,47,29,.96),rgba(28,24,21,.96)); }
.season-map-head > div small { color: var(--accent-2); font-size: 8px; letter-spacing: .12em; }
.season-map-head h1 { margin: 5px 0 3px; font-size: 22px; }
.season-map-head p { margin: 0; color: var(--ink-3); font-size: 8px; }
.season-map-head > strong { color: #ffc253; font-size: 27px; }
.season-map-head > strong small { color: var(--ink-3); font-size: 10px; }
.season-map-body { padding: 13px 14px 20px; }
.season-progress { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.season-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#d66f18,#ffc852); }
.season-region-tabs { margin-top: 11px; padding: 3px; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(18,15,13,.74); }
.season-region-tabs button { min-height: 31px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 8px; }
.season-region-tabs button.active { background: var(--accent-soft); color: var(--accent-2); }
.season-region-tabs button:disabled { opacity: .38; }
.season-route { margin-top: 12px; padding: 15px 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 13px 9px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,rgba(51,40,33,.92),rgba(29,24,21,.92)); }
.season-route button { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.season-route button > i { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; position: relative; border: 2px solid #725038; background: #33251e; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); color: var(--ink-3); font-size: 12px; font-style: normal; }
.season-route button.done > i { border-color: #668f65; background: #29442f; color: #9ad79c; }
.season-route button.current > i { border-color: #ffc452; background: #60391c; color: #ffd483; box-shadow: 0 0 0 4px rgba(255,184,62,.09); }
.season-route button.selected > i { outline: 2px solid rgba(255,217,147,.46); outline-offset: 3px; }
.season-route button.locked { opacity: .48; }
.season-route button > span { margin-top: 10px; display: block; font-size: 8px; }
.season-route button > span small { margin-top: 2px; display: block; color: var(--ink-3); font-size: 6px; }
.season-node-detail { margin-top: 10px; padding: 11px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid rgba(255,188,77,.22); border-radius: 14px; background: rgba(81,49,27,.33); }
.season-node-detail small, .season-node-detail strong, .season-node-detail p { display: block; }
.season-node-detail small { color: var(--accent-2); font-size: 7px; }
.season-node-detail strong { margin-top: 3px; font-size: 10px; }
.season-node-detail p { margin: 3px 0 0; color: var(--ink-3); font-size: 7px; }
.season-node-detail button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--accent-2); font-size: 8px; }

.assistant-role-card { min-height: 76px; padding: 11px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.assistant-role-card > img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.assistant-role-card small, .assistant-role-card strong, .assistant-role-card p { display: block; }
.assistant-role-card small { color: var(--accent-2); font-size: 8px; }
.assistant-role-card strong { margin-top: 2px; font-size: 12px; }
.assistant-role-card p { margin: 3px 0 0; color: var(--ink-3); font-size: 7px; }
.assistant-role-card > button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--accent-2); font-size: 9px; }
.assistant-question-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.assistant-question-grid button { min-height: 94px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #34251e, #211815); color: var(--ink); text-align: left; }
.assistant-question-grid small, .assistant-question-grid strong, .assistant-question-grid span { display: block; }
.assistant-question-grid small { color: var(--accent-2); font-size: 8px; }
.assistant-question-grid strong { margin-top: 7px; font-size: 12px; }
.assistant-question-grid span { margin-top: 10px; color: var(--ink-3); font-size: 8px; }
.assistant-recommend-list { margin: 4px -14px -14px; }
.assistant-recommend-list button { width: 100%; min-height: 78px; padding: 9px 13px; display: grid; grid-template-columns: 68px 1fr 12px; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.assistant-recommend-list img { width: 68px; height: 52px; border-radius: 8px; object-fit: cover; }
.assistant-recommend-list small, .assistant-recommend-list strong, .assistant-recommend-list p { display: block; }
.assistant-recommend-list small { color: var(--accent-2); font-size: 7px; }
.assistant-recommend-list strong { margin-top: 2px; font-size: 10px; }
.assistant-recommend-list p { margin: 3px 0 0; color: var(--ink-3); font-size: 7px; }

.reading-hero, .level-detail-hero, .event-detail-hero { height: 214px; position: relative; overflow: hidden; }
.reading-hero > img, .level-detail-hero > img, .event-detail-hero > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.reading-hero-shade, .level-detail-hero > span, .event-detail-hero > span { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,10,7,.05), rgba(22,14,10,.96)); }
.reading-hero > div, .level-detail-hero > div, .event-detail-hero > div { position: absolute; left: 18px; right: 18px; bottom: 17px; }
.reading-hero small, .level-detail-hero small, .event-detail-hero small { color: var(--accent-2); font-size: 9px; font-weight: 800; }
.reading-hero h1, .level-detail-hero h1, .event-detail-hero h1 { margin: 5px 0; font-size: 23px; line-height: 1.16; letter-spacing: -.03em; }
.reading-hero p, .level-detail-hero p, .event-detail-hero p { margin: 0; color: var(--ink-2); font-size: 9px; }
.reading-summary { padding: 13px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(240,138,36,.10); }
.reading-summary strong { color: var(--accent-2); font-size: 10px; }
.reading-summary p { margin: 5px 0 0; color: var(--ink-2); font-size: 10px; line-height: 1.65; }
.build-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.build-chip-row span { padding: 5px 8px; border-radius: 7px; background: rgba(240,138,36,.14); color: #ffd589; font-size: 8px; }
.configuration-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.configuration-grid div { min-width: 0; padding: 9px 6px; border-radius: 9px; background: rgba(255,255,255,.035); text-align: center; }
.configuration-grid small, .configuration-grid strong { display: block; }
.configuration-grid small { color: var(--ink-3); font-size: 7px; }
.configuration-grid strong { margin-top: 5px; font-size: 8px; line-height: 1.35; }
.strategy-steps, .event-rule-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.strategy-steps li, .event-rule-list li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; }
.strategy-steps li > b, .event-rule-list li > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); font-size: 9px; }
.strategy-steps strong, .strategy-steps p, .event-rule-list strong, .event-rule-list small { display: block; }
.strategy-steps strong, .event-rule-list strong { font-size: 10px; }
.strategy-steps p, .event-rule-list small { margin: 3px 0 0; color: var(--ink-3); font-size: 8px; line-height: 1.5; }
.detail-bullet-list { margin: 3px 0 0; padding-left: 17px; color: var(--ink-2); font-size: 9px; line-height: 1.75; }

.level-number-field { height: 52px; padding-left: 12px; display: grid; grid-template-columns: 44px 1fr 72px; align-items: center; border: 1px solid rgba(255,200,106,.2); border-radius: 13px; overflow: hidden; background: var(--surface); }
.level-number-field > span { color: var(--ink-3); font-size: 9px; }
.level-number-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 18px; font-weight: 850; }
.level-number-field button { height: 100%; border: 0; background: linear-gradient(180deg,#ffc65a,#e97817); color: #2a1609; font-size: 11px; font-weight: 900; }
.field-help { margin: 7px 3px 0; color: var(--ink-3); font-size: 8px; }
.recent-stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.recent-stage-grid button { min-height: 72px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--ink); text-align: left; }
.recent-stage-grid strong, .recent-stage-grid small { display: block; }
.recent-stage-grid strong { color: var(--accent-2); font-size: 13px; }
.recent-stage-grid small { margin-top: 4px; color: var(--ink-3); font-size: 7px; }
.recent-stage-grid b { float: right; color: var(--ink-3); }
.level-capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.level-capability-grid span { min-height: 42px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.035); color: var(--ink-2); font-size: 8px; }
.level-match-card { padding: 12px; border: 1px solid rgba(117,190,117,.2); border-radius: 14px; background: rgba(58,113,64,.1); }
.level-match-card > span { display: flex; justify-content: space-between; align-items: center; }
.level-match-card small { color: var(--ink-3); font-size: 8px; }
.level-match-card strong { color: #8cda94; font-size: 11px; }
.level-match-card > i { height: 6px; margin: 8px 0 5px; display: block; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.level-match-card > i::before { content: ""; width: var(--match); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#65b66c,#b4e57d); }
.level-match-card em { color: var(--ink-3); font-size: 8px; font-style: normal; }
.weakness-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.weakness-grid > div { padding: 9px 6px; text-align: center; border-radius: 10px; background: rgba(255,255,255,.03); }
.weakness-grid span { width: 30px; height: 30px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: #5b2d1d; color: #ffc264; font-size: 10px; font-weight: 900; }
.weakness-grid strong, .weakness-grid small { display: block; }
.weakness-grid strong { margin-top: 6px; font-size: 8px; }
.weakness-grid small { margin-top: 3px; color: var(--ink-3); font-size: 6px; }
.skill-recommend-row, .reward-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.skill-recommend-row > span, .reward-row > span { min-width: 0; padding: 8px 5px; border-radius: 10px; background: rgba(255,255,255,.03); text-align: center; }
.skill-recommend-row img, .reward-row img { width: 44px; height: 44px; object-fit: contain; }
.skill-recommend-row strong, .reward-row strong, .reward-row small { display: block; }
.skill-recommend-row strong, .reward-row strong { margin-top: 4px; font-size: 8px; }
.reward-row small { margin-top: 2px; color: var(--accent-2); font-size: 7px; }
.wave-timeline { display: grid; gap: 8px; }
.wave-timeline > div { min-height: 46px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
.wave-timeline b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--accent-2); font-size: 9px; }
.wave-timeline strong, .wave-timeline small { display: block; }
.wave-timeline strong { font-size: 9px; }
.wave-timeline small { margin-top: 3px; color: var(--ink-3); font-size: 7px; }

.event-countdown { min-height: 62px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid rgba(240,138,36,.2); border-radius: 14px; background: var(--accent-soft); }
.event-countdown small, .event-countdown strong { display: block; }
.event-countdown small { color: var(--ink-3); font-size: 7px; }
.event-countdown strong { margin-top: 3px; color: var(--accent-2); font-size: 14px; }
.event-countdown button { min-height: 34px; padding: 0 10px; border: 1px solid rgba(255,200,100,.24); border-radius: 9px; background: #5e341a; color: #ffd68b; font-size: 8px; }

.code-status-summary, .mode-detail-score, .asset-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.code-status-summary > span, .mode-detail-score > span, .asset-stat-grid > div { padding: 11px 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; }
.code-status-summary strong, .code-status-summary small, .mode-detail-score strong, .mode-detail-score small, .asset-stat-grid strong, .asset-stat-grid small { display: block; }
.code-status-summary strong, .mode-detail-score strong, .asset-stat-grid strong { color: var(--accent-2); font-size: 16px; }
.code-status-summary small, .mode-detail-score small, .asset-stat-grid small { margin-top: 3px; color: var(--ink-3); font-size: 7px; }
.code-card-list { margin-top: 12px; display: grid; gap: 9px; }
.code-card { min-height: 82px; padding: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg,#34261e,#211815); }
.code-card small, .code-card strong, .code-card p { display: block; }
.code-card small { color: #83d28e; font-size: 8px; }
.code-card.warn small { color: #ffb354; }
.code-card.disabled { opacity: .5; }
.code-card strong { margin-top: 4px; color: var(--ink); font-size: 17px; letter-spacing: .05em; }
.code-card p { margin: 4px 0 0; color: var(--ink-3); font-size: 7px; }
.code-card button { min-width: 58px; min-height: 36px; border: 1px solid rgba(240,138,36,.3); border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); font-size: 9px; font-weight: 800; }
.code-card button:disabled { cursor: default; }
.code-history-entry { margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.code-history-entry strong, .code-history-entry small { display: block; }
.code-history-entry strong { font-size: 10px; }
.code-history-entry small { margin-top: 3px; color: var(--ink-3); font-size: 8px; }

/* 福利礼包：以连续浏览和快速复制为主，压缩装饰性留白。 */
.codes-detail-page { background: linear-gradient(180deg, #2a1d16 0, #17110e 34%); }
.codes-compact-head { min-height: 108px; padding: 18px 20px 15px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 66px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,203,112,.2); background: radial-gradient(circle at 86% 25%, rgba(255,160,45,.28), transparent 34%), linear-gradient(145deg,#472b19,#211611 76%); }
.codes-compact-head::after { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background: linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,.24) 46% 47%, transparent 47% 100%) 0 0 / 20px 20px; }
.codes-compact-head > * { position: relative; z-index: 1; }
.codes-compact-head small { color: #ffc45b; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.codes-compact-head h1 { margin: 3px 0 2px; font-size: 23px; line-height: 1.15; }
.codes-compact-head p { margin: 0; color: var(--ink-2); font-size: 9px; }
.codes-compact-head img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.42)); }
.codes-page-body { padding: 12px 14px 20px; }
.codes-notice { min-height: 52px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg,rgba(71,49,36,.96),rgba(42,30,24,.96)); }
.codes-notice strong, .codes-notice small { display: block; }
.codes-notice strong { font-size: 11px; }
.codes-notice small { margin-top: 2px; color: var(--ink-3); font-size: 8px; }
.codes-notice .switch-control { flex: 0 0 auto; transform: scale(.82); transform-origin: right center; }
.code-filter-bar { margin-top: 9px; padding: 3px; display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,14,11,.72); }
.code-filter-bar button { min-width: 0; min-height: 32px; padding: 0 4px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 8px; font-weight: 750; white-space: nowrap; }
.code-filter-bar button b { margin-left: 3px; color: inherit; font-size: 7px; }
.code-filter-bar button.active { background: linear-gradient(180deg,#ffc85a,#ee7d1b); color: #2c1709; box-shadow: 0 4px 10px rgba(224,104,17,.2); }
.code-result-meta { min-height: 31px; padding: 9px 2px 5px; display: flex; align-items: center; justify-content: space-between; }
.code-result-meta strong { font-size: 11px; }
.code-result-meta span { color: var(--ink-3); font-size: 8px; }
.code-ticket-list { display: grid; gap: 7px; }
.code-ticket { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(135deg,#38281f,#241a16); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.code-ticket > header { min-height: 28px; padding: 6px 10px 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px dashed rgba(236,193,129,.18); }
.code-ticket > header > span { color: var(--ink-2); font-size: 9px; font-weight: 750; }
.code-ticket > header > div { display: flex; align-items: center; gap: 5px; }
.code-ticket > header small { color: var(--ink-3); font-size: 7px; }
.code-ticket > header i { padding: 3px 5px; border-radius: 999px; background: rgba(83,176,106,.14); color: #8fd49c; font-size: 7px; font-style: normal; }
.code-ticket.warn > header i { background: rgba(255,151,49,.15); color: #ffb458; }
.code-ticket.disabled > header i { background: rgba(255,255,255,.07); color: var(--ink-3); }
.code-ticket-main { min-height: 51px; padding: 7px 9px 8px 11px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.code-ticket-main > span { min-width: 0; }
.code-ticket-main strong, .code-ticket-main small { display: block; }
.code-ticket-main strong { overflow: hidden; color: #fff3dc; font-size: 15px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.code-ticket-main small { margin-top: 3px; overflow: hidden; color: var(--ink-3); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.code-ticket-main button { min-width: 62px; min-height: 34px; padding: 0 10px; border: 1px solid rgba(255,190,86,.35); border-radius: 10px; background: linear-gradient(180deg,#6e3d1e,#4c2918); color: #ffd07a; font-size: 9px; font-weight: 850; }
.code-ticket.copied .code-ticket-main button { border-color: rgba(105,190,124,.3); background: rgba(70,137,82,.16); color: #8fd49c; }
.code-ticket.disabled { opacity: .55; }
.code-ticket-main button:disabled { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--ink-3); }
.code-history-entry.compact { min-height: 50px; margin-top: 9px; }
.codes-footnote { margin: 10px 0 0; color: var(--ink-3); font-size: 7px; text-align: center; }

.asset-detail-hero { min-height: 164px; padding: 20px; display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 16px; background: radial-gradient(circle at 20% 30%, rgba(240,138,36,.22), transparent 35%), linear-gradient(145deg,#3b281d,#1d1511); }
.asset-detail-image { width: 112px; height: 112px; display: grid; place-items: center; border: 1px solid rgba(255,208,126,.22); border-radius: 18px; background: rgba(10,7,5,.36); box-shadow: inset 0 0 22px rgba(240,138,36,.1); }
.asset-detail-image img { width: 96px; height: 96px; object-fit: contain; }
.asset-detail-hero small { color: var(--accent-2); font-size: 8px; }
.asset-detail-hero h1 { margin: 5px 0; font-size: 20px; }
.asset-detail-hero p { margin: 0; color: var(--ink-3); font-size: 9px; }
.asset-detail-hero > div:last-child > span { margin-top: 10px; display: flex; gap: 5px; }
.asset-detail-hero i { padding: 4px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-2); font-size: 7px; font-style: normal; }
.detail-copy { margin: 4px 0 0; color: var(--ink-2); font-size: 9px; line-height: 1.7; }
.source-list, .history-table { display: grid; gap: 7px; }
.source-list span, .history-table span { padding: 9px 10px; display: flex; justify-content: space-between; gap: 8px; border-radius: 9px; background: rgba(255,255,255,.03); }
.source-list b, .history-table b { font-size: 9px; }
.source-list small, .history-table small { color: var(--ink-3); font-size: 8px; }
.linked-guide-card { width: 100%; min-height: 68px; padding: 8px; display: grid; grid-template-columns: 70px 1fr 12px; align-items: center; gap: 9px; border: 0; border-radius: 10px; background: rgba(255,255,255,.03); color: var(--ink); text-align: left; }
.linked-guide-card img { width: 70px; height: 50px; border-radius: 8px; object-fit: cover; }
.linked-guide-card small, .linked-guide-card strong { display: block; }
.linked-guide-card small { color: var(--accent-2); font-size: 7px; }
.linked-guide-card strong { margin-top: 3px; font-size: 9px; line-height: 1.4; }

.service-detail-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.service-detail-list button { grid-template-columns: 1fr auto; border-top: 0; border-bottom: 1px solid var(--line); }
.service-detail-list button:last-child { border-bottom: 0; }
.wide-primary-button { width: 100%; min-height: 44px; margin-top: 14px; border-radius: 12px; font-size: 11px; font-weight: 850; }
.service-tip, .agreement-preview { margin: 14px 2px 0; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.025); color: var(--ink-3); font-size: 8px; line-height: 1.6; }
.mode-progress-large { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.mode-progress-large i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#e47718,#ffd064); }

button[data-action], button[data-page], button[data-mine-tab] { transition: transform .13s ease, filter .13s ease, background-color .13s ease; }
button[data-action]:active, button[data-page]:active, button[data-mine-tab]:active { transform: scale(.975); filter: brightness(.92); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
