/* Shared styles for the Lost Marbles website. Same felt-and-brass look as the game. */
@font-face { font-family: 'Lilita One'; src: url('fonts/lilita-one-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --felt: #1d1a3d;
  --felt-deep: #110f27;
  --felt-edge: #2e2963;
  --card: #262257;
  --cream: #fff3da;
  --muted: #b3add9;
  --brass: #ffc857;
  --brass-deep: #d8941b;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--felt-deep); }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.6;
  background: radial-gradient(120% 70% at 50% 0%, var(--felt-edge) 0%, var(--felt) 45%, var(--felt-deep) 100%) no-repeat, var(--felt-deep);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--brass); text-underline-offset: 3px; }
a:focus-visible, .store:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 720px; margin: 0 auto; padding-block: 40px 56px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 11vw, 72px); text-shadow: 0 5px 0 #0d0b22; }
h1 span { color: var(--brass); }
h2 { font-size: 28px; margin-top: 40px; }
p { margin: 12px 0 0; max-width: 65ch; }
.muted { color: var(--muted); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hero img { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.hero .tag { font-size: 20px; color: var(--muted); margin: 0; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 10px 20px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); line-height: 1.15; min-width: 170px; }
.store small { font-size: 12px; opacity: .8; font-weight: 700; }
.store b { font-size: 20px; font-weight: 800; }
.store.soon { opacity: .75; cursor: default; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 36px; padding: 0; list-style: none; }
.features li { background: var(--card); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.features b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--brass); }

.doc h1 { font-size: clamp(38px, 9vw, 56px); }
.doc h2 { font-size: 24px; margin-top: 32px; }
.doc ul { padding-left: 22px; max-width: 65ch; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 15px; }
.doc .table { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.doc th { color: var(--brass); font-weight: 800; }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
