/* Morgan's Game website: one stylesheet for every page. Colors match the game (src/theme.ts). */
:root {
  --sun: #ffc43d;
  --sunset: #ff8c6e;
  --pink: #ff6b9d;
  --teal: #40c8d6;
  --purple: #8f5bd6;
  --ink: #281c1e;
  --ink-soft: #5a4a4d;
  --paper: #fffaf2;
  --card: #ffffff;
  --line: #f0e2d0;
  --radius: 22px;
  --wrap: 1080px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c2316a; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--sun); border-bottom: 4px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: 0.2px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; border: 3px solid var(--ink); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.7); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sun) 0%, var(--sunset) 100%); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 0 0 16px; font-weight: 900; letter-spacing: -1px; }
.hero h1 .pink { color: #e2367a; }
.hero h1 .teal { color: #13859a; }
.hero .lede { font-size: 21px; margin: 0 0 28px; max-width: 30ch; }
.hero-shot { border-radius: var(--radius); border: 5px solid var(--ink); box-shadow: 0 18px 40px rgba(40, 28, 30, 0.28); transform: rotate(1.5deg); }
.promise { margin-top: 18px; font-weight: 800; font-size: 16px; color: var(--ink); opacity: 0.85; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 200px;
  border: 2px solid var(--ink); transition: transform 0.15s ease;
}
.store:hover { color: #fff; transform: translateY(-2px); }
.store svg { width: 30px; height: 30px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 12px; line-height: 1.1; opacity: 0.85; font-weight: 600; }
.store strong { display: block; font-size: 20px; line-height: 1.15; font-weight: 800; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #fff1e0; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.5px; }
h3 { font-size: 22px; margin: 0 0 6px; font-weight: 900; }
.section-lede { font-size: 20px; color: var(--ink-soft); margin: 0 0 32px; max-width: 60ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--ink-soft); }
.card .emoji { font-size: 34px; line-height: 1; margin-bottom: 10px; display: block; }

.dragons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dragon { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 16px; text-align: center; }
.dragon .swatch { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 26px; }
.dragon h3 { font-size: 19px; margin: 0; }
.dragon p { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%); gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery img { border-radius: 18px; border: 3px solid var(--ink); scroll-snap-align: start; }

.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Text pages (privacy, support) */
.page-head { background: linear-gradient(180deg, var(--sun) 0%, #ffb15a 100%); padding: 44px 0 36px; border-bottom: 4px solid var(--ink); }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); margin: 0; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.page-head p { margin: 8px 0 0; font-size: 19px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose h3 { margin-top: 26px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.callout { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 20px; margin: 12px 0; }
details[open] { padding-bottom: 18px; }
summary { cursor: pointer; font-weight: 900; font-size: 19px; }
details > *:not(summary) { margin-bottom: 0; }
kbd, .key { display: inline-block; font-family: inherit; font-weight: 800; font-size: 0.85em; background: var(--ink); color: #fff; border-radius: 6px; padding: 1px 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #f6e9dc; padding: 36px 0; font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Small screens */
@media (max-width: 860px) {
  .hero { padding: 36px 0 52px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .lede { max-width: none; }
  .hero-shot { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .dragons { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-columns: 85%; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 19px; }
  .site-nav a { padding: 6px 8px; }
  .site-nav a.wide { display: none; }
  .store { width: 100%; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
