:root {
  color-scheme: dark;
  --plum-deep: #150e1b;
  --plum: #261a2e;
  --plum-light: #3b2747;
  --teal: #123236;
  --walnut-deep: #2e1a10;
  --brass-dark: #7a5626;
  --brass: #c99a4e;
  --brass-light: #ffe3a3;
  --candle: #ffcc6b;
  --ivory: #f7e8d0;
  --ivory-dim: rgba(247, 232, 208, 0.74);
  --line: rgba(201, 154, 78, 0.35);
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ivory);
  background-color: var(--plum-deep);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(242, 128, 178, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 30%, rgba(77, 204, 204, 0.12), transparent 26rem),
    radial-gradient(circle at 50% 55%, rgba(255, 204, 107, 0.08), transparent 34rem),
    linear-gradient(180deg, #2a1c3a 0%, var(--plum) 35%, #1f1724 70%, var(--teal) 100%);
  background-attachment: fixed;
}

/* Soft drifting bokeh, echoing the game's background. Purely decorative. */
.bokeh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.35;
  animation: drift 26s ease-in-out infinite alternate;
}
.bokeh span:nth-child(1) { width: 70px; height: 70px; left: 8%; top: 18%; background: rgba(255, 204, 107, 0.45); }
.bokeh span:nth-child(2) { width: 46px; height: 46px; left: 78%; top: 12%; background: rgba(242, 128, 178, 0.45); animation-duration: 31s; }
.bokeh span:nth-child(3) { width: 90px; height: 90px; left: 84%; top: 62%; background: rgba(77, 204, 204, 0.35); animation-duration: 37s; }
.bokeh span:nth-child(4) { width: 38px; height: 38px; left: 18%; top: 74%; background: rgba(77, 204, 204, 0.4); animation-duration: 29s; }
.bokeh span:nth-child(5) { width: 56px; height: 56px; left: 52%; top: 86%; background: rgba(255, 204, 107, 0.35); animation-duration: 34s; }
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, -40px); }
}
@media (prefers-reduced-motion: reduce) {
  .bokeh span { animation: none; }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
}

a { color: var(--brass-light); text-decoration-color: rgba(255, 227, 163, 0.45); text-underline-offset: 3px; }
a:hover { color: #fff3d6; }
a:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ivory);
  text-decoration: none;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brass-light), var(--brass) 55%, var(--brass-dark));
  box-shadow: 0 0 12px rgba(255, 204, 107, 0.6);
}
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--ivory-dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-light); }

/* Type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
.gilded {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--brass-light) 55%, var(--brass) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 21px; color: var(--ivory); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ivory-dim); max-width: 34ch; }
.muted { color: var(--ivory-dim); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 72px;
}
.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 23%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 204, 107, 0.18);
  margin-bottom: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--walnut-deep);
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 60%, var(--brass-dark));
  border: 1px solid rgba(255, 227, 163, 0.8);
  box-shadow: 0 0 22px rgba(255, 204, 107, 0.35);
}
.phone {
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #3a2a1e, #1a120c);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 204, 107, 0.12);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 35px; }

/* Cards */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(59, 39, 71, 0.82), rgba(21, 14, 27, 0.88));
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.card p { color: var(--ivory-dim); margin: 0; font-size: 16px; }
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--brass-light);
  background: radial-gradient(circle at 35% 30%, #9d6339, #593420 60%, #2e1a10);
  border: 2px solid var(--brass);
}

.wide-shot {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.wide-shot img { display: block; width: 100%; height: auto; }

/* Document pages (privacy, support) */
.doc {
  max-width: 760px;
  margin: 24px auto 64px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(59, 39, 71, 0.9), rgba(21, 14, 27, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.doc h2 { font-size: 24px; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--ivory-dim); font-size: 15px; }
.callout {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(46, 26, 16, 0.6);
  border: 1px solid var(--line);
}
.faq dt { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-top: 1.2em; }
.faq dd { margin: 0.3em 0 0; color: var(--ivory-dim); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ivory-dim);
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ivory-dim); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: 1fr; }
  .phone { width: min(280px, 80%); }
}
@media (max-width: 480px) {
  .nav { gap: 14px; }
  .brand { font-size: 20px; }
}
