/* Shared styles for Bowling Essentials games */
:root {
  --navy: #0e1a2b;
  --navy-2: #16263d;
  --navy-3: #22385a;
  --amber: #f5a524;
  --amber-2: #ffcf6b;
  --cream: #f7f1e3;
  --text: #e9eef6;
  --muted: #9fb0c8;
  --good: #3ccf7a;
  --bad: #ff6b5e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #0e1a2b; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, var(--navy-3), var(--navy) 70%) fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--amber-2); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 18px 16px 48px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 20px;
}
.brandmark { font-weight: 800; letter-spacing: .02em; font-size: 15px; color: var(--cream); text-decoration: none; }
.brandmark span { color: var(--amber); }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 6px; line-height: 1.1; }
h2 { font-size: 22px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card {
  background: linear-gradient(180deg, var(--navy-2), #122036);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; background: var(--amber); color: #1b1200;
  transition: transform .08s ease, filter .15s ease; text-decoration: none; display: inline-block;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(245,165,36,.15); color: var(--amber-2); border: 1px solid rgba(245,165,36,.35); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Bowling ball art (see shared/ball-art.js) */
.ball-art {
  position: relative; border-radius: 50%; flex: none;
  box-shadow: inset -6px -8px 14px rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.35);
  background-size: cover; background-position: center;
}
.ball-art .hole { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #000 55%, #2a2a2a); }

/* "still in development" notice (added for bowlingessentialsllc.com) */
.dev-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid #f5a524; background: rgba(245,165,36,.12); font-size: .95rem; line-height: 1.45; }
.dev-note a { color: inherit; font-weight: 700; }
.dev-note .dev-links { display: block; margin-top: 6px; }
/* common bits for the newer games */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 10px; }
.seg button.on { background: var(--amber); color: #1b1200; }
.seg button:focus-visible, .btn:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.how summary { cursor: pointer; font-weight: 800; }
.how ul, .how ol { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.6; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.stat-row b { color: var(--text); font-size: 18px; }
.msg { min-height: 1.4em; font-weight: 700; color: var(--amber-2); margin: 8px 0; }
.msg.good { color: var(--good); } .msg.bad { color: var(--bad); }
