/* AI-assisted Sprint 1 implementation; review before submission. */
/* Sprint 1: Simple responsive styling using the team's cream and purple wireframe palette. */
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #25242b; background: #f4f1e7; }
* { box-sizing: border-box; }
/* Full-width layout: header, game and footer all span the window. */
body { margin: 0; padding: 0 clamp(12px, 2vw, 32px); }
/* Shared tokens for Sprint 2 pages. */
:root { --ink: #25242b; --quiet: #625e68; --line: #d8d3c7; --card: #fffdf7; --purple: #6544df; --purple-deep: #3d2a99;
  --purple-soft: #ece6ff; --green: #237339; --green-soft: #dcf2e0; --red: #a32424; --red-soft: #fbe0de;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
a { color: var(--purple); }
/* S2-02: Header with logo, page tabs, and the profile button. */
.site-header { display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo strong { font-size: 22px; } .logo strong span { color: var(--purple); }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--purple);
  color: #fff; font-size: 18px; box-shadow: 2px 2px 0 var(--ink); }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs a { padding: 8px 14px; border-radius: 8px; color: var(--quiet); text-decoration: none; font-weight: 500; }
.tabs a:hover { background: var(--purple-soft); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--purple-soft); color: var(--purple-deep); font-weight: 600; }
.account { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.account form { margin: 0; }
.profile-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 1.5px solid var(--ink);
  border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }
.profile-button:hover, .profile-button[aria-current="page"] { background: var(--purple-soft); }
.site-header > .profile-button { margin-left: auto; padding: 8px 14px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 13px; }
.link-button { border: 0; background: none; padding: 4px; color: var(--quiet); text-decoration: underline; }
.link-button:hover { color: var(--ink); }
main { padding: 36px 0; min-height: 75vh; }
.hero { text-align: center; padding: 48px 0; } .hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; }
.eyebrow { font-size: 12px; letter-spacing: 2px; }
.panel { max-width: 560px; margin: 24px auto; background: #fffdf7; border: 1px solid #d8d3c7; border-radius: 10px; padding: 24px; }
button, .primary { border: 1px solid #504662; border-radius: 5px; padding: 10px 18px; cursor: pointer; font: inherit; }
.primary { display: inline-block; background: #6544df; color: white; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; } :focus-visible { outline: 3px solid #ad87ff; outline-offset: 3px; }
label { display: block; margin-bottom: 6px; } input, textarea { width: 100%; padding: 10px; font: inherit; }
textarea { height: 110px; margin: 10px 0; } .errorlist { color: #a32424; } .helptext { font-size: 13px; }
table { width: 100%; border-collapse: collapse; margin: 24px 0; } th, td { text-align: left; padding: 10px; border-bottom: 1px solid #ddd; }
footer { font-size: 12px; padding: 24px 0; color: #625e68; }
@media (max-width: 720px) { body { padding: 0 14px; } .site-header { flex-wrap: wrap; gap: 10px; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; } .tabs a { padding: 6px 10px; font-size: 14px; } }
