:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-soft: #eee8ff;
  --purple-border: #e9e2ff;
  --blue: #159dd1;
  --blue-soft: #e8f8ff;
  --orange: #f59e0b;
  --orange-soft: #fff0d9;
  --cream: #fff8f1;
  --brown: #754529;
  --muted: #7a6b63;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(77, 47, 28, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--brown);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--purple-border);
  background: rgba(255,248,241,.95);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(100%, 1280px);
  min-height: 72px;
  margin: auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(74,38,16,.14);
  outline: 2px solid white;
}
.brand-copy { display: flex; flex-direction: column; line-height: .92; letter-spacing: -.02em; }
.brand-copy strong { font-size: 18px; font-weight: 900; }
.brand-copy span { margin-top: 5px; color: var(--purple); font-size: 15px; font-weight: 900; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.nav-button {
  border: 0;
  background: transparent;
  padding: 10px 9px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-button:hover { background: var(--purple-soft); }
.nav-button.active { color: white; background: var(--purple); }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: white; box-shadow: 0 3px 12px rgba(40,20,10,.08); font-size: 23px; cursor: pointer; }
.mobile-nav { display: none; }

.page-shell { width: min(100%, 1280px); margin: auto; padding: 30px 32px 56px; outline: none; }
.page-kicker { color: var(--purple); font-size: 14px; font-weight: 800; }
.page-title { margin: 6px 0 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.page-subtitle { max-width: 800px; margin: 10px 0 28px; color: #78716c; font-size: 16px; line-height: 1.7; }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 42px; align-items: center; padding: 26px 0; }
.eyebrow { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 14px; font-weight: 800; }
.hero h1 { margin: 16px 0 0; font-size: clamp(45px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 span { color: var(--purple); }
.hero p { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-art { border: 4px solid white; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); background: white; }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; cursor: pointer; }
.button-primary { background: var(--purple); color: white; box-shadow: 0 7px 18px rgba(124,58,237,.22); }
.button-primary:hover { background: var(--purple-dark); }
.button-dark { background: var(--brown); color: white; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.card { border: 1px solid var(--purple-border); border-radius: var(--radius); background: white; box-shadow: 0 3px 12px rgba(75,45,25,.04); }
.feature-card { padding: 22px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; }
.feature-card:nth-child(3n+1) .feature-icon { color: var(--purple); background: var(--purple-soft); }
.feature-card:nth-child(3n+2) .feature-icon { color: var(--blue); background: var(--blue-soft); }
.feature-card:nth-child(3n+3) .feature-icon { color: var(--orange); background: var(--orange-soft); }
.feature-card h2 { margin: 15px 0 0; font-size: 17px; }
.feature-card p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.banner { margin-top: 20px; border: 4px solid white; border-radius: 28px; overflow: hidden; background: white; box-shadow: 0 3px 12px rgba(75,45,25,.05); }
.banner img { width: 100%; max-height: 360px; object-fit: cover; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.content-card { padding: 24px; }
.content-card h2, .content-card h3 { margin: 10px 0 0; }
.content-card p { margin: 8px 0 0; color: #6b625d; }
.link { display: inline-flex; margin-top: 18px; color: var(--purple); font-weight: 800; text-decoration: none; }
.safe-note { margin-top: 16px; }

.search-wrap { position: relative; margin-bottom: 20px; }
.search-wrap span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #a8a29e; }
.search-wrap input { width: 100%; padding: 14px 16px 14px 47px; border: 1px solid #ddd2ff; border-radius: 17px; background: white; color: var(--brown); outline: none; }
.search-wrap input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.level-card { width: 100%; padding: 18px; border: 1px solid var(--purple-border); border-radius: 18px; background: white; cursor: pointer; text-align: left; }
.level-card:hover { border-color: #a855f7; box-shadow: 0 5px 16px rgba(124,58,237,.08); }
.level-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { padding: 4px 9px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 12px; }
.level-card p { margin: 8px 0 0; color: #78716c; font-size: 14px; }
.level-link { margin-top: 8px; color: var(--purple); font-size: 12px; font-weight: 800; }

.detail-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }
.video-card { overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-body { padding: 20px; }
.card-body p { color: #78716c; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stat { padding: 12px; border-radius: 16px; background: #fafaf9; }
.stat small { color: #a8a29e; }
.strategy-box, .warning-box, .verified-box { margin-top: 16px; padding: 16px; border-radius: 18px; }
.strategy-box { border: 1px solid var(--purple-border); background: #f5f1ff; }
.warning-box { border: 1px solid #fde68a; background: #fffbeb; }
.verified-box { border: 1px solid #a7f3d0; background: #ecfdf5; }
.coordinates { margin-top: 8px; color: #065f46; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 900; word-break: break-word; }
.detail-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.step { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--purple-border); border-radius: 18px; background: #fffdfa; }
.step-number { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; font-size: 13px; font-weight: 900; }
.step h3 { margin: 0; font-size: 16px; }
.step p { margin: 4px 0 0; color: #6b625d; font-size: 14px; }
.tags { display: none; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.tags span { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--purple-border); border-radius: 999px; background: white; font-size: 13px; font-weight: 700; }
.discussion-list { display: grid; gap: 16px; }
.discussion-card { padding: 20px; }
.meta { color: #a8a29e; font-size: 12px; }
.hot { margin-right: 8px; padding: 3px 8px; border-radius: 999px; color: #dc2626; background: #fef2f2; }
.empty { padding: 32px; text-align: center; }
.site-footer { border-top: 1px solid var(--purple-border); }
.site-footer > div { width: min(100%,1280px); margin: auto; padding: 30px 32px; color: #78716c; font-size: 14px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; place-items: center; }
  .mobile-nav.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 24px; border-top: 1px solid var(--purple-border); }
  .mobile-nav .nav-button { background: white; text-align: left; }
  .mobile-nav .nav-button.active { background: var(--purple); }
}
@media (max-width: 850px) {
  .page-shell { padding: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .header-inner { min-height: 68px; padding: 9px 16px; }
  .brand img { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy span { font-size: 14px; }
  .page-shell { padding: 20px 16px 44px; }
  .hero { gap: 22px; padding-top: 6px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 15px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .button { padding-inline: 12px; font-size: 14px; }
  .feature-grid { gap: 10px; }
  .feature-card { padding: 16px; }
  .feature-card p { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tags { display: flex; }
  .site-footer > div { padding: 26px 16px; }
}


/* Original home-page artwork and copyright notice */
.original-art{min-height:300px;padding:clamp(22px,4vw,48px);background:radial-gradient(circle at 18% 18%,rgba(56,189,248,.24),transparent 24%),radial-gradient(circle at 82% 25%,rgba(245,158,11,.23),transparent 25%),linear-gradient(135deg,#f3edff,#fff7ed 52%,#eaf9ff);display:grid;place-items:center;position:relative}.puzzle-board{width:min(430px,88%);aspect-ratio:1;padding:9px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;border:5px solid #754529;border-radius:25px;background:#fff;transform:rotate(-2deg);box-shadow:0 20px 45px rgba(85,50,35,.16)}.cell{border-radius:13px;border:2px solid rgba(117,69,41,.15);display:grid;place-items:center}.lilac{background:#d9c7ff}.blue{background:#bcecff}.peach{background:#ffd7a8}.mint{background:#caf4db}.cell.cat:after{content:"";width:42%;aspect-ratio:1;border-radius:50%;background:#754529;box-shadow:-10px -9px 0 -6px #754529,10px -9px 0 -6px #754529}.original-art-label{position:absolute;right:18px;bottom:14px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.88);color:#7a6b63;font-size:11px;font-weight:800}.copyright-panel{margin-top:22px;padding:22px;display:flex;gap:16px;align-items:flex-start}.copyright-panel h2{margin:0;font-size:18px}.copyright-panel p{margin:7px 0 0;color:#6b625d;font-size:14px;line-height:1.65}.copyright-icon{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--purple-soft);color:var(--purple);font-weight:900;font-size:20px}.copyright-small{font-size:12px!important;color:#8a817c!important}@media(max-width:620px){.original-art{min-height:260px;padding:24px}.puzzle-board{width:min(310px,88%)}.copyright-panel{padding:18px;gap:12px}.copyright-icon{width:36px;height:36px}}
