:root {
  --bg: #f3efe4;
  --panel: #fffdf8;
  --soft: #eee3ce;
  --ink: #121212;
  --muted: #70675c;
  --line: #ddcbaa;
  --gold: #d7b450;
  --gold-dark: #8a6420;
  --alert: #8a4b20;
  --shadow: 0 18px 48px rgba(38, 28, 13, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: #e7ddca;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a { -webkit-tap-highlight-color: transparent; }

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 18px 28px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .92) 0, rgba(18, 18, 18, .84) 244px, rgba(243, 239, 228, 0) 244px),
    var(--bg);
}

.hero {
  position: relative;
  min-height: 244px;
  padding: 16px;
  overflow: hidden;
  color: #fffdf8;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.topbar img { width: 74px; height: auto; filter: invert(1); }

.topbar span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 253, 248, .28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 63%;
  padding-top: 34px;
}

.kicker, .label {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 850;
}

.hero .kicker { color: var(--gold); }

h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 40px; line-height: 1; }
h2 { font-size: 21px; line-height: 1.18; }

.hero-copy p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 253, 248, .72);
  font-size: 13px;
  line-height: 1.45;
}

.hero-sticker {
  position: absolute;
  right: -24px;
  bottom: -8px;
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .2));
}

.command-panel, .section, .sticker-band {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow);
}

.command-panel {
  padding: 18px;
}

.command-grid {
  display: grid;
  grid-template-columns: 1.1fr .95fr .95fr;
  gap: 10px;
  margin-top: 16px;
}

.command, .tool, .row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.command {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.command.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  color: var(--gold-dark);
}

.dark .icon {
  background: var(--gold);
  color: var(--ink);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

strong { display: block; font-size: 15px; line-height: 1.18; }

small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.dark small { color: rgba(255, 253, 248, .7); }

.sticker-band {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f7edd6;
}

.sticker-band img, .section-head img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.sticker-band span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  margin-top: 14px;
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.tool.wide { grid-column: 1 / -1; }

footer {
  padding: 18px 10px 2px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 370px) {
  .command-grid { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .phone-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
  }
}
