:root {
  --ink: #f8f6ff;
  --muted: #b9b2cb;
  --muted-2: #827a99;
  --surface: rgba(37, 25, 78, 0.76);
  --surface-strong: #24174e;
  --line: rgba(255, 255, 255, 0.11);
  --purple: #735ce5;
  --purple-light: #ad9cff;
  --gold: #e8be72;
  --pink: #e88fb7;
  --green: #7bdaaa;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 28px 70px rgba(3, 0, 19, 0.34);
  --header-height: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(88, 56, 190, 0.26), transparent 30%),
    radial-gradient(circle at 100% 28%, rgba(87, 71, 181, 0.18), transparent 26%),
    #100a26;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 21%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 16%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 72%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 87% 83%, #fff 0 1px, transparent 1.5px);
  background-size: 190px 190px, 240px 240px, 310px 310px, 380px 380px;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.bi { line-height: 1; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { top: 30vh; left: -180px; background: #7557ef; }
.ambient-two { right: -200px; bottom: 15vh; background: #f1a8d8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 10, 38, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-top: max(8px, env(safe-area-inset-top));
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
}

.menu-button .bi { font-size: 22px; }
.close-button .bi { font-size: 17px; }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand-copy { display: flex; align-items: baseline; gap: 8px; }
.brand-copy strong { font-size: 17px; letter-spacing: .04em; }
.brand-copy small { color: var(--muted-2); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.line-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(123, 218, 170, .34);
  border-radius: 999px;
  color: #dff9eb;
  background: rgba(28, 174, 94, .1);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.line-dot { width: 7px; height: 7px; border-radius: 50%; background: #38d477; box-shadow: 0 0 10px rgba(56,212,119,.8); }

.category-nav { border-top: 1px solid rgba(255,255,255,.055); }
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 8px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto;
  padding: 5px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
}
.category-chip:hover { color: #fff; border-color: rgba(173,156,255,.45); }
.category-chip.is-active {
  color: #fff;
  border-color: rgba(173,156,255,.8);
  background: linear-gradient(135deg, rgba(115,92,229,.9), rgba(92,72,184,.82));
  box-shadow: 0 8px 24px rgba(83,57,190,.28);
}
.category-link { display: inline-flex; align-items: center; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px;
  padding-block: 50px 50px;
}
.hero-copy { max-width: 600px; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 26px; height: 1px; background: var(--purple-light); }
.hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .025em;
}
.hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #fff 8%, #cabfff 52%, #efc683 98%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}
.hero-lead {
  max-width: 540px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px 13px 22px;
  border: 1px solid rgba(232,190,114,.42);
  border-radius: 999px;
  color: #fff4df;
  background: rgba(232,190,114,.08);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.primary-action:hover { transform: translateY(-2px); background: rgba(232,190,114,.14); }
.primary-action span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #1a102f; background: var(--gold); }

.hero-orbit { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-logo-wrap {
  position: relative;
  width: 65vw;
  height: 65vw;
  max-width: 270px;
  max-height: 270px;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.23), rgba(255,255,255,.02));
  box-shadow: 0 35px 80px rgba(3,0,22,.48), 0 0 80px rgba(105,77,220,.2);
}
.hero-logo-wrap img { width: 100%; height: 100%; min-width: 0; display: block; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
.orbit { position: absolute; border: 1px solid rgba(173,156,255,.22); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 360px; height: 270px; animation: orbit-one-spin 28s linear infinite; }
.orbit-two { width: 430px; height: 330px; transform: rotate(24deg); border-color: rgba(232,190,114,.16); animation: orbit-two-spin 42s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-light); box-shadow: 0 0 14px var(--purple-light); top: 21%; right: 7%; }
.orbit-label { position: absolute; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(16,10,38,.72); font-size: 10px; letter-spacing: .12em; }
.label-one { top: 15%; left: 4%; animation: label-float-one 6.5s ease-in-out infinite alternate; }
.label-two { right: 2%; bottom: 28%; animation: label-float-two 8s ease-in-out -2s infinite alternate; }
.label-three { bottom: 8%; left: 20%; animation: label-float-three 7.2s ease-in-out -4s infinite alternate; }
.spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 5px rgba(255,255,255,.35); }
.spark-one { top: 10%; right: 13%; }
.spark-two { left: 9%; bottom: 18%; }

@keyframes orbit-one-spin {
  from { transform: rotate(-18deg); }
  to { transform: rotate(342deg); }
}

@keyframes orbit-two-spin {
  from { transform: rotate(24deg); }
  to { transform: rotate(-336deg); }
}

@keyframes label-float-one {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4px, -5px, 0); }
}

@keyframes label-float-two {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-5px, 3px, 0); }
}

@keyframes label-float-three {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(3px, 4px, 0); }
}

.featured { padding-block: 8px 60px; }
.featured-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(232,190,114,.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(62,43,106,.84), rgba(35,24,75,.7));
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.featured-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: 4%; border-radius: 50%; background: rgba(232,190,114,.08); filter: blur(35px); }
.featured-icon { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; background: #ead7a5; }
.featured-icon img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { position: relative; z-index: 1; }
.featured-copy strong { display: block; margin: 3px 0 4px; font-size: 19px; }
.featured-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.featured-kicker { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.featured-arrow { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }

.tools-section { padding-block: 42px 70px; scroll-margin-top: 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-heading h2, .coming-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.section-kicker { margin-bottom: 8px; }
.tool-count { margin: 0; color: var(--muted-2); font-size: 13px; }
.tool-count strong { color: var(--gold); font-size: 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.js .tool-grid.catalog-pending { visibility: hidden; opacity: 0; }
.tool-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(42,29,86,.92), rgba(29,20,61,.88));
  box-shadow: 0 18px 42px rgba(3,0,20,.2);
  text-decoration: none;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.tool-card:hover { transform: translateY(-5px); border-color: rgba(173,156,255,.4); box-shadow: 0 25px 58px rgba(3,0,20,.35); }
.tool-card[hidden] { display: none; }
.tool-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #1c133e;
}
.tool-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.075); border-radius: inherit; pointer-events: none; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; }
.art-hand img { object-position: center 37%; }
.art-mercury img { border-radius: 0; }
.art-lunch img { object-position: center 28%; }
.tool-copy { min-width: 0; padding: 16px 6px 4px; }
.tool-type { margin: 0 0 6px; color: var(--purple-light); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.tool-copy h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.35; }
.tool-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-arrow { position: absolute; right: 16px; bottom: 15px; color: var(--gold); opacity: .6; }
.card-badge { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 4px 7px; border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; box-shadow: 0 6px 14px rgba(0,0,0,.22); width: 22px; height: 22px; }
.card-badge.hot { background: #bb487d; }
.card-badge.updated { background: #5f55c7; }

.art-plum { background: radial-gradient(circle at 75% 15%, rgba(255,182,211,.22), transparent 28%), linear-gradient(145deg, #29194d, #17113a); }
.plum-branch { position: absolute; width: 82%; height: 3px; background: #d6a56d; transform: rotate(-25deg); border-radius: 99px; }
.plum-branch::after { content: ""; position: absolute; width: 44%; height: 2px; background: #d6a56d; right: 12%; top: -18px; transform: rotate(-37deg); transform-origin: right; }
.plum-flower { position: absolute; color: #f29bc0; text-shadow: 0 0 14px rgba(242,155,192,.6); font-size: 34px; }
.flower-one { left: 21%; bottom: 25%; }
.flower-two { top: 22%; right: 25%; font-size: 28px; }
.flower-three { top: 38%; left: 45%; font-size: 21px; }
.plum-mark { position: absolute; right: 14%; bottom: 12%; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #f7d6a5; font-family: serif; font-size: 21px; }

.art-coins { background: radial-gradient(circle at 50% 50%, rgba(74,71,205,.24), transparent 44%), linear-gradient(145deg, #19133b, #2b1b5a); }
.coin { position: absolute; width: 82px; height: 82px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.coin-a { left: 16%; top: 19%; transform: rotate(-13deg); }
.coin-b { right: 14%; bottom: 13%; transform: rotate(14deg); }
.hex-lines { position: absolute; right: 10%; top: 12%; color: rgba(255,255,255,.28); font-size: 13px; line-height: .75; letter-spacing: -2px; }

.art-ruler { background: linear-gradient(145deg, #271743, #4c2341); }
.ruler-body { width: 90%; height: 58px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; border-radius: 9px; color: #3d2714; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(62,38,15,.17) 10px 11px), linear-gradient(#f0d296, #d8ae61); box-shadow: 0 14px 24px rgba(0,0,0,.25); transform: rotate(-7deg); }
.ruler-body span { height: 100%; display: grid; place-items: center; border-right: 1px solid rgba(87,52,14,.25); font-family: serif; font-size: 18px; font-weight: 700; }
.ruler-body span:nth-child(1), .ruler-body span:nth-child(4) { color: #9e2e2e; }

.art-game { background: radial-gradient(circle at 20% 15%, rgba(255,202,75,.22), transparent 24%), linear-gradient(145deg, #202b5e, #131936); }
.game-code { position: absolute; left: 13%; top: 19%; color: #fff; font-size: 46px; font-weight: 900; letter-spacing: -.08em; transform: rotate(-7deg); }
.game-code.is-muted { left: auto; right: 13%; top: auto; bottom: 19%; color: #f0b629; transform: rotate(8deg); }
.game-dots { position: absolute; bottom: 13%; left: 14%; color: rgba(255,255,255,.32); font-size: 8px; letter-spacing: 4px; }

.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state span { color: var(--gold); font-size: 32px; }

.updates-section { padding-block: 24px 82px; scroll-margin-top: 120px; }
.updates-heading { align-items: center; }
.updates-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { color: #ffe0a3; }
.updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.update-card { min-height: 225px; display: flex; flex-direction: column; padding: 22px; color: #fff; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.update-card:hover { transform: translateY(-4px); border-color: rgba(173,156,255,.45); background: rgba(255,255,255,.055); }
.update-card-featured { background: linear-gradient(145deg, rgba(91,67,170,.24), rgba(255,255,255,.03)); }
.update-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 9px; }
.update-meta span { padding: 5px 9px; color: var(--purple-light); background: rgba(173,156,255,.09); border-radius: 999px; font-weight: 800; }
.update-card h2, .update-card h3 { margin: 25px 0 10px; font-size: 18px; line-height: 1.45; }
.update-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.update-more { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 24px; color: var(--gold); font-size: 10px; font-weight: 750; }

.page-main { min-height: 68vh; }
.page-hero { padding-block: 72px 44px; }
.page-hero-inner { max-width: 780px; }
.page-hero h1 { margin: 0; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(40px, 7vw, 68px); line-height: 1.14; }
.page-hero .page-lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.page-content { padding-bottom: 92px; }
.page-content .updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-content .update-card { min-height: 250px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 52px; align-items: start; }
.article-card { padding: clamp(24px, 5vw, 52px); color: #e7e2ef; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-card h2 { margin: 38px 0 12px; color: #fff; font-size: 22px; }
.article-card h2:first-child { margin-top: 0; }
.article-card p, .article-card li { color: var(--muted); font-size: 14px; line-height: 2; }
.article-card ul { padding-left: 1.3em; }
.article-note { margin: 0 0 28px; padding: 14px 16px; color: #e8dcbf; background: rgba(232,190,114,.08); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; font-size: 12px; line-height: 1.8; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; color: var(--muted-2); font-size: 11px; }
.article-aside { position: sticky; top: 130px; display: grid; gap: 10px; padding: 20px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-aside strong { margin-bottom: 5px; font-size: 13px; }
.article-aside a { color: var(--muted); font-size: 12px; line-height: 1.5; text-decoration: none; }
.article-aside a:hover { color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--purple-light); font-size: 12px; text-decoration: none; }
.error-page { min-height: 70vh; display: grid; place-items: center; padding-block: 70px; text-align: center; }
.error-code { display: block; color: transparent; background: linear-gradient(120deg, #fff, var(--purple-light), var(--gold)); background-clip: text; font-family: "Noto Serif TC", serif; font-size: clamp(92px, 20vw, 190px); font-weight: 800; line-height: .9; }
.error-page h1 { margin: 24px 0 10px; font-size: 30px; }
.error-page p { max-width: 520px; margin: 0 auto 28px; color: var(--muted); line-height: 1.8; }

.coming-soon { padding-block: 20px 90px; }
.coming-heading { max-width: 580px; margin-bottom: 28px; }
.coming-heading > p:last-child { margin: 14px 0 0; color: var(--muted); }
.idea-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.idea-card { min-height: 130px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border: 1px dashed rgba(173,156,255,.24); border-radius: var(--radius-lg); background: rgba(255,255,255,.025); }
.idea-number { align-self: start; color: var(--muted-2); font-size: 10px; letter-spacing: .12em; }
.idea-card h3 { margin: 0 0 6px; font-size: 16px; }
.idea-card p { margin: 0; color: var(--muted); font-size: 12px; }
.idea-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(232,190,114,.09); font-size: 19px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(7,4,18,.35); }
.footer-inner { padding-block: 34px max(34px, env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { margin: 2px 0 0; color: var(--muted-2); font-size: 11px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0; }
.footer-inner nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-inner nav a:hover { color: #fff; }
.copyright { margin: 0; color: #625c75; font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3,1,11,.66); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s ease; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: #17102e;
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 70px rgba(0,0,0,.45);
  transform: translateX(-104%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.drawer-brand div { display: flex; flex-direction: column; }
.drawer-brand small { color: var(--muted-2); font-size: 10px; letter-spacing: .14em; }
.close-button { font-size: 24px; line-height: 1; }
.drawer nav { flex: 1; padding: 18px 0; overflow-y: auto; }
.drawer nav a { display: flex; align-items: center; gap: 13px; padding: 12px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.drawer nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.drawer nav a span { width: 24px; color: var(--purple-light); text-align: center; }
.drawer nav hr { margin: 12px 8px; border: 0; border-top: 1px solid var(--line); }
.drawer-line { padding: 13px; border-radius: 14px; color: #0b321d; background: #7bdaaa; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100;
  width: min(420px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(173,156,255,.28);
  border-radius: 16px;
  background: rgba(26,17,55,.96);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: .3s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #291d42; background: var(--gold); }
.toast strong { font-size: 13px; }
.toast p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr .8fr; min-height: 480px; padding-top: 50px; }
  .orbit-two { width: 350px; height: 270px; }
  .orbit-one { width: 300px; height: 225px; }
  .tool-grid { grid-template-columns: repeat(3,1fr); }
  .idea-list { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-aside { position: static; }
}

@media (max-width: 700px) {
  :root { --header-height: 60px; }
  .shell { width: min(100% - 28px, 620px); }
  .topbar { gap: 10px; }
  .icon-button { width: 36px; height: 36px; border-radius: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand-copy { display: block; line-height: 1.05; }
  .brand-copy strong { display: block; font-size: 15px; }
  .brand-copy small { font-size: 8px; }
  .line-button { padding: 8px 10px; font-size: 10px; }
  .category-scroll { width: 100%; padding-inline: 14px; }

  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-block: 24px 24px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(42px, 14vw, 63px); }
  .hero-lead { margin: 20px auto 24px; font-size: 14px; line-height: 1.8; }
  .hero-orbit { min-height: 280px; order: -1; }
  .hero-logo-wrap { width: 176px; height: 176px; max-width: 176px; max-height: 176px; padding: 8px; }
  .orbit-one { width: 238px; height: 178px; }
  .orbit-two { width: 280px; height: 210px; }
  .orbit-label { font-size: 8px; }
  .label-one { left: 0; }
  .label-two { right: 0; }
  .primary-action { font-size: 13px; }

  .featured { padding-bottom: 44px; }
  .featured-card { grid-template-columns: auto 1fr; gap: 14px; padding: 13px; }
  .featured-icon { width: 66px; height: 66px; border-radius: 17px; }
  .featured-copy strong { font-size: 15px; }
  .featured-copy p { display: none; }
  .featured-arrow { display: none; }

  .tools-section { padding-block: 30px 54px; }
  .section-heading { align-items: center; margin-bottom: 20px; }
  .section-heading h2, .coming-heading h2 { font-size: 27px; }
  .tool-count strong { font-size: 22px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .tool-card { padding: 8px 8px 13px; border-radius: 18px; }
  .tool-art { aspect-ratio: 1.12 / 1; border-radius: 13px; }
  .tool-copy { padding: 12px 4px 10px; }
  .tool-copy h3 { font-size: 14px; }
  .tool-copy > p:last-child { font-size: 10.5px; }
  .tool-type { font-size: 8px; }
  .card-arrow { right: 12px; bottom: 10px; font-size: 12px; }
  .card-badge { top: 5px; right: 5px; }
  .coin { width: 58px; height: 58px; }
  .game-code { font-size: 34px; }
  .plum-flower { font-size: 27px; }
  .plum-mark { width: 36px; height: 36px; font-size: 17px; }
  .ruler-body { height: 45px; }
  .ruler-body span { font-size: 14px; }

  .coming-soon { padding-block: 8px 64px; }
  .coming-heading { text-align: left; }
  .idea-card { min-height: 108px; padding: 16px; }
  .idea-icon { width: 36px; height: 36px; }
  .updates-section { padding-block: 8px 60px; }
  .updates-grid, .page-content .updates-grid { grid-template-columns: 1fr; }
  .update-card { min-height: 190px; padding: 18px; }
  .updates-heading { align-items: end; }
  .updates-heading h2 { font-size: 27px; }
  .page-hero { padding-block: 48px 30px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero .page-lead { font-size: 13px; }
  .page-content { padding-bottom: 62px; }
  .article-card { padding: 22px 18px; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 20px); }
  .line-button { font-size: 0; width: 33px; height: 33px; justify-content: center; padding: 0; }
  .line-dot { width: 9px; height: 9px; }
  .tool-copy h3 { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .orbit-one, .orbit-two, .orbit-label { animation: none !important; }
}

:focus-visible { outline: 3px solid rgba(232,190,114,.85); outline-offset: 3px; }
