:root { --ink:#27231d; --muted:#746b5e; --paper:#f5efe2; --red:#8d2824; --red-dark:#6f1f1c; --line:rgba(73,59,43,.16); }
* { box-sizing:border-box; }
html { background:#ded5c5; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; color:var(--ink); background:radial-gradient(circle at 12% 3%,rgba(255,255,255,.8),transparent 28%),linear-gradient(145deg,rgba(141,40,36,.045) 1px,transparent 1px),var(--paper); background-size:auto,22px 22px,auto; font-family:"Noto Serif SC","Songti SC",SimSun,serif; }
a { color:inherit; text-decoration:none; }
.app-shell { width:min(100%,480px); min-height:100vh; margin:0 auto; padding:max(14px,env(safe-area-inset-top)) 20px calc(86px + env(safe-area-inset-bottom)); overflow:hidden; }
.hero { position:relative; padding:4px 4px 8px; }
.hero::after { content:""; position:absolute; width:170px; height:170px; right:-70px; top:-32px; border:1px solid rgba(141,40,36,.13); border-radius:50%; box-shadow:inset 0 0 0 18px var(--paper),inset 0 0 0 19px rgba(141,40,36,.08); pointer-events:none; }
.hero-topline { display:flex; align-items:center; gap:10px; position:relative; z-index:1; }
.brand-mark,.soon-seal { display:grid; place-items:center; width:34px; height:34px; color:#f4e7d0; background:var(--red); border-radius:4px 4px 10px 4px; font-weight:700; box-shadow:0 5px 16px rgba(111,31,28,.18); }
.date-chip { margin-left:auto; color:var(--muted); font-size:11px; letter-spacing:.12em; }
.hero h1 { margin:0; font-size:25px; line-height:1; letter-spacing:.1em; font-weight:700; }
.primary-action { display:flex; align-items:center; justify-content:space-between; min-height:76px; margin-top:24px; padding:14px 18px 14px 20px; color:#fff8eb; background:linear-gradient(120deg,var(--red-dark),var(--red)); border-radius:4px 20px 4px 20px; box-shadow:0 12px 28px rgba(111,31,28,.2); }
.primary-action small { display:block; margin-bottom:5px; opacity:.7; letter-spacing:.22em; }
.primary-action strong { font-size:19px; letter-spacing:.12em; }
.action-arrow { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(255,255,255,.36); border-radius:50%; font-size:20px; }
.tools-section,.scene-section { padding:24px 0 0; }
.hero + .tools-section { padding-top:10px; }
.tools-section { position:relative; z-index:1; }
.category-tabs { position:relative; z-index:2; padding-top:10px; }
.category-tabs > .eyebrow { display:block; margin-bottom:7px; }
.category-tabs [role="tablist"] { display:flex; align-items:center; justify-content:flex-start; gap:18px; overflow-x:auto; scrollbar-width:none; }
.category-tabs [role="tablist"]::-webkit-scrollbar { display:none; }
.category-tabs a { position:relative; flex:0 0 auto; padding:0 0 8px; color:var(--muted); font-size:22px; font-weight:700; line-height:1.2; letter-spacing:.06em; }
.category-tabs a::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px; background:transparent; }
.category-tabs a.active { color:var(--ink); }
.category-tabs a.active::after { background:var(--red); }
.category-panel.tools-section { padding-top:7px; }
.category-panel[hidden] { display:none; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:14px; }
.section-heading h2 { margin:2px 0 0; font-size:24px; letter-spacing:.12em; }
.eyebrow { color:var(--red); font:700 9px/1.2 Arial,sans-serif; letter-spacing:.24em; }
.section-note { color:var(--muted); font-size:11px; letter-spacing:.08em; }
.section-shortcuts { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.section-shortcuts a { padding:7px 9px; color:var(--red); border:1px solid rgba(141,40,36,.2); border-radius:14px; background:rgba(255,252,245,.72); font-size:12px; line-height:1; white-space:nowrap; }
.section-shortcuts a:active { color:#fff8eb; background:var(--red); }
.quick-section { scroll-margin-top:12px; }
.tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.personality-group + .personality-group,
.tool-group + .tool-group { margin-top:18px; }
.personality-group-title { display:flex; align-items:baseline; justify-content:space-between; margin:0 2px 10px; padding-bottom:7px; border-bottom:1px solid var(--line); }
.personality-group-title strong,
.tool-group-title strong { color:var(--ink); font-size:18px; letter-spacing:.08em; }
.personality-group-title span,
.tool-group-title span { color:var(--muted); font-size:11px; }
.tool-group-title { display:grid; grid-template-columns:minmax(24px,1fr) auto minmax(24px,1fr); align-items:center; column-gap:9px; margin:0 0 8px; text-align:center; }
.tool-group-title::before,
.tool-group-title::after { height:1px; background:linear-gradient(90deg,transparent,rgba(141,40,36,.38)); content:""; }
.tool-group-title::after { background:linear-gradient(90deg,rgba(141,40,36,.38),transparent); }
.tool-group-title strong { grid-column:2; padding:0 3px; color:var(--red); font-size:15px; letter-spacing:.14em; white-space:nowrap; }
.tool-group-title span { grid-column:1/-1; margin-top:4px; color:var(--muted); font-size:11px; text-align:center; }
.tool-card { position:relative; display:flex; align-items:center; min-height:64px; padding:7px 11px; border:1px solid var(--line); border-radius:14px 4px 14px 4px; background:rgba(255,252,245,.62); box-shadow:0 4px 13px rgba(83,66,45,.04); }
.tool-card.featured { grid-column:1/-1; min-height:68px; border-color:rgba(141,40,36,.26); background:linear-gradient(105deg,rgba(141,40,36,.09),rgba(255,252,245,.76)); }
.tool-icon { flex:0 0 auto; display:grid; place-items:center; width:36px; height:36px; margin-right:9px; border:1px solid rgba(141,40,36,.24); border-radius:50%; color:var(--red); font-size:17px; }
.tool-copy { min-width:0; }
.tool-copy strong { display:block; font-size:14px; letter-spacing:.05em; }
.tool-copy small { display:block; overflow:hidden; margin-top:3px; color:var(--muted); font-size:9px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.available { position:absolute; right:10px; top:8px; padding:3px 8px; color:var(--red); background:rgba(141,40,36,.09); border-radius:20px; font:700 12px/1.2 Arial,sans-serif; }
.section-heading.compact { align-items:center; }
.section-heading.compact h2 { font-size:19px; }
.scene-row { display:flex; gap:8px; overflow-x:auto; padding:2px 1px 8px; scrollbar-width:none; }
.scene-row::-webkit-scrollbar { display:none; }
.scene-row a { flex:0 0 auto; padding:10px 15px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.35); font-size:13px; }
.disclaimer { margin:28px 5px 0; color:#948a7d; font-size:10px; line-height:1.7; text-align:center; }
.bottom-nav { position:fixed; z-index:20; left:50%; bottom:0; display:grid; grid-template-columns:repeat(3,1fr); width:min(100%,480px); padding:8px 12px calc(8px + env(safe-area-inset-bottom)); transform:translateX(-50%); border-top:1px solid var(--line); background:rgba(248,243,233,.96); box-shadow:0 -8px 24px rgba(66,52,36,.08); backdrop-filter:blur(12px); }
.bottom-nav.four-items { grid-template-columns:repeat(4,1fr); }
.bottom-nav a { display:flex; min-height:48px; align-items:center; justify-content:center; gap:8px; color:var(--muted); border-radius:12px 4px 12px 4px; }
.bottom-nav a span { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; font-size:13px; }
.bottom-nav a strong { display:grid; gap:1px; font-size:12px; line-height:1.05; letter-spacing:.06em; }
.bottom-nav a strong small { font:inherit; }
.bottom-nav a.active { color:var(--red); background:rgba(141,40,36,.07); }
.bottom-nav a.active span { color:#fff8eb; border-color:var(--red); background:var(--red); }
.shop-heading { position:relative; z-index:1; display:flex; align-items:end; justify-content:space-between; margin:8px 0 12px; }
.shop-heading h1 { margin:2px 0 0; font-size:27px; letter-spacing:.1em; }
.shop-heading p { margin:0 8px 0 14px; color:var(--muted); font-size:12px; white-space:nowrap; }
.shop-search { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:5px; margin-bottom:12px; padding:5px 6px 5px 10px; border:1px solid var(--line); border-radius:18px 5px 18px 5px; background:rgba(255,252,245,.78); }
.shop-search > span { color:var(--muted); font-size:20px; line-height:1; }
.shop-search input { min-width:0; height:32px; padding:0; color:var(--ink); border:0; outline:0; background:transparent; font:13px inherit; }
.shop-search button { height:32px; padding:0 13px; color:#fff8eb; border:0; border-radius:13px 4px 13px 4px; background:var(--red); font:600 12px inherit; cursor:pointer; }
.shop-catalog-layout { display:grid; grid-template-columns:82px minmax(0,1fr); gap:10px; align-items:start; }
.shop-categories { position:sticky; top:10px; display:grid; gap:5px; }
.shop-categories button { min-height:42px; padding:7px 5px; color:var(--muted); border:0; border-left:2px solid transparent; border-radius:0 10px 10px 0; background:rgba(255,252,245,.42); font:600 12px/1.25 inherit; cursor:pointer; }
.shop-categories button.active { color:var(--red); border-left-color:var(--red); background:rgba(141,40,36,.09); }
.shop-products-panel { min-width:0; }
.shop-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.shop-product { overflow:hidden; border:1px solid var(--line); border-radius:16px 5px 16px 5px; background:rgba(255,252,245,.72); }
.shop-product img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:rgba(141,40,36,.05); }
.shop-product-image { display:block; width:100%; aspect-ratio:1; background:linear-gradient(145deg,rgba(141,40,36,.1),rgba(255,252,245,.55)); }
.shop-product-mark { display:grid; place-items:center; color:var(--red); font-size:38px; letter-spacing:.08em; }
.shop-product-copy { display:block; padding:9px; }
.shop-product-copy b { display:block; overflow:hidden; font-size:13px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.shop-product-copy small { display:block; overflow:hidden; margin-top:3px; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.shop-product-copy strong { display:block; margin-top:7px; color:var(--red); font:700 15px Arial,sans-serif; }
.shop-product-preview .shop-product-copy strong { font:600 12px/1.2 inherit; letter-spacing:.08em; }
.shop-empty { padding:54px 22px; text-align:center; border:1px solid var(--line); border-radius:18px 5px 18px 5px; background:rgba(255,252,245,.62); }
.shop-filter-empty { grid-column:1/-1; }
.shop-empty strong { display:block; margin-bottom:10px; font-size:20px; }
.shop-empty p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.soon-page { display:grid; min-height:100vh; place-items:center; padding:20px; }
.soon-card { width:min(100%,420px); padding:26px; text-align:center; border:1px solid var(--line); background:rgba(255,252,245,.72); border-radius:28px 6px 28px 6px; }
.back-link { display:block; margin-bottom:36px; color:var(--muted); font-size:13px; text-align:left; }
.soon-seal { width:52px; height:52px; margin:0 auto 20px; font-size:24px; }
.soon-card h1 { margin:8px 0 12px; font-size:36px; letter-spacing:.12em; }
.soon-card>p:not(.eyebrow) { color:var(--muted); line-height:1.8; }
.primary-action.centered { justify-content:center; min-height:58px; }
.account-placeholder { margin-top:18px; padding:34px 22px; text-align:center; border:1px solid var(--line); border-radius:20px 5px 20px 5px; background:rgba(255,252,245,.62); }
.account-placeholder h2 { margin:0 0 10px; font-size:22px; }
.account-placeholder p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
@media (min-width:700px) { body { padding:26px 0; } .app-shell { min-height:calc(100vh - 52px); border:1px solid rgba(73,59,43,.1); border-radius:24px; box-shadow:0 22px 70px rgba(66,52,36,.13); } }
@media (max-width:520px) {
  .category-tabs [role="tablist"] {
    display:grid;
    grid-template-columns:repeat(4,max-content);
    justify-content:space-between;
    gap:0;
    overflow:visible;
  }
  .category-tabs a {
    font-size:clamp(16px,4.5vw,18px);
    letter-spacing:.02em;
  }
  .tool-card:not(.featured) {
    display:flex;
    min-height:58px;
    padding:6px 8px;
  }
  .tool-card:not(.featured) .tool-icon {
    width:32px;
    height:32px;
    margin-right:8px;
    font-size:15px;
  }
  .tool-card:not(.featured) .tool-copy { min-width:0; padding-right:34px; }
  .tool-card:not(.featured) .tool-copy strong { overflow:hidden; font-size:12px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .tool-card:not(.featured) .tool-copy small { overflow:hidden; margin-top:2px; font-size:8px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
  .tool-card:not(.featured) .available {
    position:absolute;
    top:7px;
    right:7px;
    margin:0;
    padding:2px 6px;
    font-size:10px;
  }
  .tool-card.featured .tool-copy { padding-right:58px; }
}
@media (max-width:350px) { .app-shell { padding-left:14px; padding-right:14px; } .tool-copy small { white-space:normal; line-height:1.35; } .section-note { display:none; } }
