 :root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #163b3a; background: #f2ffff; }
* { box-sizing: border-box; } body { min-height: 100vh; margin: 0; background: linear-gradient(135deg, #d7f7f7, #f7ffff 55%, #fff); }
.page-shell { width: min(100% - 2rem, 67rem); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.intro { display: grid; gap: 2rem; }.brand { color: #176f70; font-size: 1.35rem; font-weight: 800; letter-spacing: -.08em; text-decoration: none; }.brand span { color: #33cccc; }
.eyebrow { margin: 0 0 .7rem; color: #178d8d; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }.intro h1 { max-width: 34rem; margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.065em; line-height: .98; }.intro-copy { max-width: 28rem; color: #557574; font-size: 1.05rem; line-height: 1.6; }.prototype-note { color: #6b8988; font-size: .82rem; }
.auth-card { min-height: 31rem; padding: 2rem; border: 1px solid #d8efee; border-radius: 1.5rem; background: #fff; box-shadow: 0 1.5rem 4rem #0abab52e; }.tabs { display: flex; gap: 1.4rem; margin-bottom: 2.1rem; border-bottom: 1px solid #deefee; }
button { font: inherit; cursor: pointer; }.tab { margin-bottom: -1px; padding: 0 0 .8rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #728585; font-weight: 700; }.tab.active { border-color: #0abab5; color: #087a76; }
form { display: grid; gap: 1rem; } h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.045em; } form > p { margin: -.5rem 0 .7rem; color: #728585; font-size: .92rem; } label { display: grid; gap: .42rem; color: #315b5a; font-size: .84rem; font-weight: 700; } input { width: 100%; padding: .78rem .9rem; border: 1px solid #cae5e4; border-radius: .65rem; color: #163b3a; font: inherit; outline: none; } input:focus { border-color: #0abab5; box-shadow: 0 0 0 3px #c8f2f0; }
.password-control { position: relative; display: block; }.password-control input { padding-right: 4.6rem; }.password-control button { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); border: 0; background: transparent; color: #087a76; font-size: .78rem; font-weight: 800; }
.primary, .secondary { padding: .85rem 1rem; border: 0; border-radius: .65rem; font-weight: 800; }.primary { background: #33cccc; color: #073c3b; }.primary:hover { background: #22baba; }.secondary { border: 1px solid #bce2e0; background: #fff; color: #087a76; }.message { min-height: 1.25rem; margin: 0; color: #be123c; font-size: .82rem; }.message.success { color: #15803d; }.hidden { display: none !important; }
.member-view { min-height: 25rem; place-content: center; text-align: center; }.avatar { display: grid; width: 4rem; aspect-ratio: 1; margin: 0 auto 1.4rem; place-items: center; border-radius: 50%; background: #d8f5f3; color: #078f8b; font-size: 2rem; font-weight: 800; }.member-view p:not(.eyebrow) { margin: .5rem 0 2rem; color: #728585; }
.app-view { width: min(100vw - 2rem, 74rem); min-height: min(44rem, 90vh); display: grid; grid-template-columns: 15rem 1fr; overflow: hidden; border: 1px solid #b8e7e7; border-radius: 1.5rem; background: #faffff; box-shadow: 0 1.5rem 4rem #15999928; }.sidebar { display: flex; flex-direction: column; gap: 2.5rem; padding: 1.8rem 1rem; background: #e4fafa; }.sidebar nav { display: grid; gap: .4rem; }.nav-item { display: flex; gap: .75rem; align-items: center; padding: .8rem .9rem; border: 0; border-radius: .7rem; background: transparent; color: #416b6b; text-align: left; font-weight: 700; }.nav-item:hover, .nav-item.active { background: #c5f2f2; color: #126d6d; }.profile-wrap { position: relative; margin-top: auto; }.profile-button { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; width: 100%; align-items: center; padding: .65rem; border: 0; border-radius: .75rem; background: #fff; color: #315b5a; text-align: left; }.profile-avatar { display: grid; width: 2.2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #33cccc; color: #073c3b; font-weight: 900; }.profile-button small { display: block; margin-top: .1rem; color: #789493; }.profile-menu { position: absolute; right: 0; bottom: 3.4rem; z-index: 2; width: 13rem; padding: .4rem; border: 1px solid #b8e7e7; border-radius: .75rem; background: #fff; box-shadow: 0 .8rem 2rem #126d6d25; }.profile-menu button { display: flex; justify-content: space-between; width: 100%; padding: .65rem; border: 0; border-radius: .45rem; background: transparent; color: #315b5a; text-align: left; }.profile-menu button:hover { background: #e4fafa; }.profile-menu span { color: #789493; }.dashboard { padding: clamp(1.5rem, 5vw, 4rem); overflow: auto; }.page-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }.muted { color: #6d8a89; }.hero-card { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; padding: 2rem; border-radius: 1.25rem; background: #33cccc; color: #0a4443; }.hero-card h3 { max-width: 20rem; margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }.hero-card p:not(.eyebrow) { max-width: 22rem; }.hero-card .primary { background: #fff; }.book-mark { display: grid; min-width: 7rem; place-items: center; border-radius: 1rem; background: #e4ffff; font-size: 3rem; }.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.stat-grid article { padding: 1rem; border: 1px solid #d5eeee; border-radius: .9rem; background: #fff; }.stat-grid span { color: #178d8d; font-size: 1.8rem; font-weight: 800; }.stat-grid p { margin: .25rem 0 0; color: #6d8a89; font-size: .8rem; }
.signed-in .page-shell { width: 100%; min-height: 100vh; display: block; padding: 0; }
.signed-in .intro { display: none; }
.signed-in .auth-card { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.signed-in .app-view { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.checking-session .auth-card { visibility: hidden; }
.leaderboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }.leaderboard-heading .secondary { white-space: nowrap; }.leaderboard-tabs { display: flex; gap: .45rem; margin: 1.7rem 0; padding: .3rem; width: fit-content; border-radius: .75rem; background: #e8f8f8; }.board-tab { padding: .5rem .75rem; border: 0; border-radius: .55rem; background: transparent; color: #527574; font-size: .82rem; font-weight: 800; }.board-tab.active { background: #fff; color: #167879; box-shadow: 0 .15rem .5rem #168b8b17; }.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .75rem; padding: 1.5rem 1rem 0; border: 1px solid #d5eeee; border-radius: 1.2rem 1.2rem 0 0; background: linear-gradient(180deg, #efffff, #d7f8f8); text-align: center; }.podium article { display: grid; justify-items: center; gap: .35rem; min-height: 8.2rem; padding: 1rem .45rem; border-radius: .9rem .9rem 0 0; background: #fff; }.podium .first { min-height: 10.2rem; background: #33cccc; }.podium small, .rank-row small { color: #5d8886; font-size: .75rem; }.medal { display: grid; width: 1.6rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #e9f5f5; color: #187879; font-size: .72rem; font-weight: 900; }.first .medal { background: #fff5b7; color: #7e6410; }.reader-avatar { display: grid; width: 2.6rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #33cccc; color: #073c3b; font-weight: 900; }.reader-avatar.small { width: 2rem; font-size: .75rem; }.reader-avatar.lilac { background: #e4ddff; color: #5f4b9b; }.reader-avatar.peach { background: #ffdfcd; color: #9c5431; }.reader-avatar.gold { background: #fff1aa; color: #8b6710; }.reader-avatar.aqua { background: #c9f3eb; color: #237363; }.rank-list { overflow: hidden; border: 1px solid #d5eeee; border-top: 0; border-radius: 0 0 1.2rem 1.2rem; background: #fff; }.rank-row { display: grid; grid-template-columns: 1.6rem 2rem 1fr auto; align-items: center; gap: .7rem; padding: .8rem 1rem; border-top: 1px solid #e7f3f3; color: #527574; font-size: .85rem; }.rank-row:first-child { border-top: 0; }.rank-row strong { color: #315b5a; }.rank-row.you { border: 1px solid #33cccc; background: #edffff; }.rank-row.you small { color: #178d8d; font-weight: 700; }
@media (max-width: 720px) { .page-shell { min-height: auto; padding: 2rem 0; grid-template-columns: 1fr; gap: 2.5rem; }.intro { gap: 1.2rem; }.auth-card { padding: 1.5rem; }.intro h1 { font-size: clamp(2.6rem, 14vw, 4rem); } }
@media (max-width: 720px) { .app-view { grid-template-columns: 1fr; }.sidebar { flex-direction: row; gap: .5rem; align-items: center; padding: 1rem; }.sidebar nav { display: flex; overflow-x: auto; }.nav-item { white-space: nowrap; }.sidebar > .brand, .profile-wrap { display: none; }.dashboard { min-height: 35rem; }.stat-grid { grid-template-columns: 1fr; } }
