:root {
  color-scheme: light;
  --bg: #e6e6e6;
  --ink: #1d2433;
  --muted: #5c6578;
  --card: #ffffff;
  --line: rgba(34, 36, 38, 0.1);
  --blue: #4e70b6;
  --shadow: 0 2px 2px rgba(78, 113, 182, 0.38);
  --header: linear-gradient(90deg, #e4e4e4, #e5f1f5, #e2e2e2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

button, input { font: inherit; }

.Header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background-image: var(--header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.Logo {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  cursor: pointer;
}

.iconBtn, .langBtn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  cursor: pointer;
}

.iconBtn svg { width: 22px; height: 22px; display: block; margin: 0 auto; }

.langBtn { font-weight: 800; font-size: 13px; }

#root {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 14px 12px 40px;
}

.notify {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7e8;
  color: #7a4b00;
  font-size: 14px;
  line-height: 1.4;
}

.hero {
  margin: 4px 0 8px;
  text-align: center;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.recommend {
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
}

.clean { margin-top: 8px; }
.priceNote { margin: 8px 0; color: var(--muted); font-size: 14px; }
.clean .ghost { width: 100%; }

.feed { display: grid; gap: 12px; }

.card, .play, .result {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card { cursor: pointer; text-align: left; border: 0; padding: 0; width: 100%; color: inherit; }

.cover {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  color: white;
}

.cover span { font-size: 64px; line-height: 1; }

.flag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.title, .play h1, .result h1 {
  margin: 0;
  color: var(--blue);
  line-height: 1.25;
}

.card .title { padding: 12px 14px 4px; font-size: 18px; }

.blurb, .body, .detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card .blurb { padding: 0 14px 14px; font-size: 14px; }

.feature .cover { min-height: 180px; }
.feature .cover span { font-size: 84px; }

.play, .result { padding: 18px 16px 16px; }

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.body { margin-top: 10px; color: var(--ink); font-size: 18px; }

.choices, .bar, .reactions { display: grid; gap: 8px; margin-top: 16px; }

.choice, .primary, .ghost, .react {
  border: 0;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
}

.choice {
  text-align: left;
  background: #f4f7fb;
  color: var(--ink);
  border: 1px solid #d5deee;
}

.choice:hover, .choice:focus-visible { border-color: var(--blue); }

.primary {
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.play > .primary,
.play > .ghost {
  width: 100%;
  margin-top: 16px;
}

.ghost {
  background: white;
  color: var(--blue);
  border: 1px solid #d5deee;
  font-weight: 700;
}

.nameForm { display: grid; gap: 10px; margin-top: 16px; }

.nameForm input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #d5deee;
  background: white;
}

.explain {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f7f9;
}

.explain.correct { background: #e8f8ee; }
.explain.wrong { background: #fff0ee; }

.explain strong { display: block; margin-bottom: 6px; }

.answer { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 84px;
  height: 84px;
  padding: 0 10px;
  border-radius: 22px;
  color: white;
  font-size: 28px;
  font-weight: 800;
}

.subhead { margin: 12px 0 0; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.result h1 { margin-top: 4px; font-size: 28px; }

.detail { margin-top: 10px; color: var(--ink); }

.challenge {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.bar { grid-template-columns: 1fr 1fr; }

.reactions { grid-template-columns: repeat(5, 1fr); }

.react {
  background: #f7f7f7;
  color: var(--ink);
  padding: 8px 4px;
  font-size: 12px;
}

.react b { display: block; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: #1d2433;
  color: white;
  font-size: 14px;
}

.loading {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.site-footer, .doc {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.site-footer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer nav, .doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}

.site-footer a, .doc a { color: var(--blue); }

.doc h1 { color: var(--blue); font-size: 28px; line-height: 1.25; margin: 8px 0 12px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc .lead { font-size: 18px; color: var(--ink); }

.page-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background-image: var(--header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header .Logo {
  text-decoration: none;
  font-size: 28px;
}

.page-header nav { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.page-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
