:root {
  color-scheme: light;
  --bg: #f5f4ee;
  --paper: #fffef9;
  --ink: #17211b;
  --muted: #69736d;
  --line: #d9ded8;
  --accent: #176b45;
  --accent-dark: #115a39;
  --accent-soft: #e4efe8;
  --shadow: 0 18px 60px rgba(26, 48, 35, 0.09);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--bg); }
button, input { font: inherit; }
button { color: inherit; }

.ambient { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(5px); pointer-events: none; }
.ambient-one { top: -240px; left: -120px; background: radial-gradient(circle, rgba(99,154,119,.14), transparent 70%); }
.ambient-two { right: -210px; bottom: -250px; background: radial-gradient(circle, rgba(205,173,94,.12), transparent 70%); }

.shell { width: min(1120px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; border-radius: 11px; background: var(--ink); }
.brand-mark i { width: 4px; border-radius: 3px; background: #f4f0d9; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }
.quiet-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.46); cursor: pointer; transition: 150ms ease; }
.quiet-button:hover { color: var(--ink); background: var(--paper); transform: translateY(-1px); }

.hero { width: min(820px, 100%); margin: auto; padding: 52px 0 90px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .12em; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #52a476; box-shadow: 0 0 0 5px rgba(82,164,118,.13); }
h1 { margin: 20px 0 10px; text-align: center; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 550; line-height: 1.12; letter-spacing: -.045em; }
.subtitle { margin: 0 0 42px; color: var(--muted); text-align: center; font-size: 16px; }

.search-box { min-height: 74px; padding: 9px 10px 9px 22px; display: flex; align-items: center; gap: 14px; border: 1px solid #cdd4ce; border-radius: 21px; background: var(--paper); box-shadow: var(--shadow); transition: 160ms ease; }
.search-box:focus-within { border-color: #6f9f82; box-shadow: 0 20px 70px rgba(26,70,43,.13), 0 0 0 4px rgba(62,128,86,.08); }
.search-box svg { width: 24px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; }
.search-box input::placeholder { color: #929b96; }
.search-box kbd { padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; color: #8a938e; background: #f7f7f2; font-size: 11px; }
.search-box button { min-width: 134px; height: 54px; padding: 0 20px; border: 0; border-radius: 15px; color: white; background: var(--accent); cursor: pointer; font-weight: 650; transition: 160ms ease; }
.search-box button:hover { background: var(--accent-dark); transform: translateY(-1px); }

.selection-heading { margin: 30px 3px 13px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.text-button { padding: 5px 7px; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.platform-card { position: relative; min-height: 66px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.52); cursor: pointer; user-select: none; transition: 150ms ease; }
.platform-card:hover { transform: translateY(-2px); background: var(--paper); }
.platform-card.selected { border-color: #7ea58b; background: #f8fcf8; box-shadow: inset 0 0 0 1px rgba(23,107,69,.18); }
.platform-logo { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--platform-color); font-weight: 760; font-size: 14px; }
.platform-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 620; }
.platform-check { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #c6cdc8; border-radius: 50%; color: transparent; background: white; font-size: 10px; }
.platform-card.selected .platform-check { color: white; border-color: var(--accent); background: var(--accent); }

.launch-panel { margin-top: 34px; padding: 22px; border: 1px solid #cdd8d0; border-radius: 19px; background: rgba(255,255,255,.68); box-shadow: 0 12px 45px rgba(26,48,35,.07); }
.launch-panel[hidden] { display: none; }
.launch-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.launch-label { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.launch-heading h2 { max-width: 570px; margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 550 23px Georgia, "Noto Serif SC", serif; }
.open-all { flex: 0 0 auto; padding: 10px 15px; border: 0; border-radius: 11px; color: white; background: var(--accent); cursor: pointer; font-size: 12px; font-weight: 650; }
.launch-links { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.launch-link { min-height: 50px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); text-decoration: none; font-size: 12px; font-weight: 620; transition: 140ms ease; }
.launch-link:hover { border-color: #8ca999; transform: translateY(-1px); }
.launch-link .platform-logo { width: 29px; height: 29px; border-radius: 9px; font-size: 11px; }
.launch-link svg { width: 14px; margin-left: auto; fill: none; stroke: #849088; stroke-width: 1.7; }
.launch-tip { margin: 13px 2px 0; color: #89928d; font-size: 10px; }

.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: #59635d; background: rgba(255,255,255,.45); cursor: pointer; font-size: 12px; }
.recent-chip:hover { color: var(--ink); background: var(--paper); }

footer { min-height: 68px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(181,190,183,.55); color: #7b857f; font-size: 11px; }
footer span { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #47a671; box-shadow: 0 0 0 4px rgba(71,166,113,.11); }

dialog { width: min(450px, calc(100% - 32px)); padding: 34px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(17,35,24,.22); }
dialog::backdrop { background: rgba(23,33,27,.28); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; }
.dialog-close:hover { background: #f0f1ec; }
.dialog-mark { width: 40px; height: 40px; margin-bottom: 20px; }
dialog h2 { margin: 0 0 12px; font: 550 27px Georgia, "Noto Serif SC", serif; }
dialog p { margin: 0; color: #5e6962; font-size: 13px; line-height: 1.8; }
dialog .dialog-note { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: #87908a; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; padding: 11px 16px; border-radius: 11px; color: white; background: #1c2b22; box-shadow: 0 10px 30px rgba(0,0,0,.16); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: 180ms ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 600px); }
  .topbar { height: 72px; }
  .hero { padding: 30px 0 56px; }
  h1 { font-size: 39px; }
  .subtitle { margin-bottom: 30px; font-size: 14px; }
  .search-box { min-height: 64px; padding-left: 17px; }
  .search-box kbd { display: none; }
  .search-box button { min-width: auto; height: 46px; padding: 0 16px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .launch-links { grid-template-columns: 1fr 1fr; }
  footer span:last-child { display: none; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 22px); }
  .topbar { height: 64px; }
  .hero { padding-top: 22px; }
  h1 { font-size: 34px; }
  .eyebrow { font-size: 11px; }
  .search-box { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 13px; border-radius: 18px; }
  .search-box button { grid-column: 1 / -1; width: 100%; }
  .selection-heading { align-items: flex-start; }
  .selection-heading > div { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .platform-grid { gap: 8px; }
  .platform-card { min-height: 60px; padding: 9px; }
  .platform-logo { width: 32px; height: 32px; }
  .launch-heading { align-items: flex-end; }
  .launch-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
