:root { color-scheme: dark; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; color: #f3f6fa; background: #070a12; --muted: #a6b8c8; --accent: #a6e1de; --line: #ffffff1b; --room-accent: #a6e1de; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-padding-top: 6rem; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 35%, #12424a38, transparent 55%), linear-gradient(150deg, #05070b, #0a1422 55%, #0b202a); }
body[data-app="me"] { --room-accent: #c5b6f4; }
body[data-app="hearth"] { --room-accent: #e4c39c; }
body.drawer-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img, svg { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: #07141c; }
main:focus, h1:focus { outline: none; }
.wrap { width: min(calc(100% - 3rem), 68.75rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; top: 1rem; left: 1rem; padding: .9rem 1.2rem; border-radius: .8rem; color: #08151d; background: #f3f6fa; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 76px; padding: .65rem max(1.5rem, calc((100% - 68.75rem) / 2), env(safe-area-inset-right)) .65rem max(1.5rem, calc((100% - 68.75rem) / 2), env(safe-area-inset-left)); border-bottom: 1px solid #ffffff0e; background: #080f18eb; backdrop-filter: blur(16px); }
.header-left { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: .8rem; color: #c2d3df; background: transparent; }
.icon-button svg { width: 24px; height: 24px; }
.icon-button:hover, .account-toggle:hover { background: #ffffff0b; border-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.wordmark img { border-radius: 50%; }
.wordmark span { font-size: 1.25rem; font-weight: 750; letter-spacing: -.045em; }
.header-account { position: relative; min-width: 0; }
.account-toggle { display: flex; align-items: center; gap: .65rem; max-width: min(21rem, 42vw); min-height: 48px; padding: .2rem .65rem .2rem .2rem; border: 1px solid transparent; border-radius: 2rem; color: #e0ebf3; background: transparent; }
.avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #9bc7ce30; border-radius: 50%; color: #bee3e2; background: #6ea6aa12; font-weight: 650; }
.account-toggle-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.chevron { flex: 0 0 18px; width: 18px; height: 18px; transition: transform 150ms; }
.account-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + .6rem); width: min(280px, calc(100vw - 2rem)); padding: .65rem; border: 1px solid #ffffff24; border-radius: 1rem; background: #121e2c; box-shadow: 0 16px 50px #0008; }
.dropdown-label { padding: .6rem .75rem .8rem; color: #8eaabc; font-size: .7rem; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; min-height: 44px; padding: .75rem; border: 0; border-radius: .5rem; color: #dce8f1; background: none; font-size: .875rem; text-align: left; }
.account-dropdown a:hover, .account-dropdown button:hover:not(:disabled) { background: #ffffff0a; }
.account-dropdown a > span { display: block; margin-top: .3rem; color: #8eaabc; font-size: .72rem; }
.account-dropdown > button { margin-top: .5rem; border-top: 1px solid var(--line); border-radius: 0 0 .5rem .5rem; color: #c3d4e2; }
.navigation-drawer { position: fixed; inset: 0 auto 0 0; width: min(340px, calc(100vw - 32px)); max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom)); border: 0; border-right: 1px solid #ffffff22; color: #f3f6fa; background: linear-gradient(165deg, #111d2b, #0b1b27); box-shadow: 15px 0 80px #0005; }
.navigation-drawer[open] { display: flex; flex-direction: column; animation: drawer-in 180ms ease-out; }
.navigation-drawer::backdrop { background: #02060db3; backdrop-filter: blur(3px); animation: backdrop-in 180ms ease-out; }
.navigation-drawer.closing { animation: drawer-out 180ms ease-in forwards; }
.navigation-drawer.closing::backdrop { animation: backdrop-out 180ms ease-in forwards; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer-heading h2 { font-size: 1.4rem; letter-spacing: -.045em; }
.drawer-kicker { margin: .25rem 0 2rem; color: #87a6b8; font-size: .8rem; }
.drawer-links { display: grid; gap: .45rem; }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: .8rem 1rem; border: 1px solid transparent; border-radius: .8rem; font-size: 1rem; font-weight: 550; }
.drawer-links a span { color: #6e91a6; font-size: .9rem; }
.drawer-links a:hover { background: #ffffff06; }
.drawer-links a[aria-current="page"] { border-color: #92c5ce26; background: #78b1bc14; color: #bae4e4; }
.drawer-footer { display: grid; gap: 1rem; margin-top: auto; padding-top: 2rem; }
.drawer-footer a { display: flex; align-items: center; min-height: 44px; padding: .7rem 1rem; border-top: 1px solid var(--line); color: #bbd1df; font-size: .9rem; }
.drawer-footer span { padding-left: 1rem; color: #7490a4; font-size: .7rem; }
.view { min-height: calc(100svh - 174px); padding-bottom: 4rem; }
.eyebrow { color: var(--room-accent); font-size: .69rem; font-weight: 700; line-height: 1.6; letter-spacing: .11em; text-transform: uppercase; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 760; overflow-wrap: anywhere; }
h1 span { color: #bdd5e1; }
h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.035em; }
h3 { font-size: 1.1rem; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.panel { border: 1px solid #ffffff20; border-radius: 1.35rem; background: linear-gradient(145deg, #172331de, #0e1a28de); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 48px; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: .8rem; font-size: .875rem; line-height: 1.5; font-weight: 650; text-align: center; transition: background-color 150ms ease, border-color 150ms ease; }
.button > span:last-child:not(:first-child) { margin-left: auto; }
.primary { color: #0c2430; background: #b5e4df; border-color: #b5e4df; }
.primary:hover:not(:disabled) { background: #d0f0e9; border-color: #d0f0e9; }
.secondary { color: #e1eaf1; background: #ffffff08; border-color: #ffffff2b; }
.secondary:hover:not(:disabled), .quiet:hover:not(:disabled) { background: #ffffff12; border-color: #a6cdd452; }
.quiet { color: #bcd0de; background: transparent; border-color: #ffffff20; }
.text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 0; color: #aedcde; font-size: .85rem; line-height: 1.6; background: none; border: none; }
.text-button:hover:not(:disabled), .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.home-view { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); align-items: center; gap: 3rem; padding-block: 6rem; }
.home-copy h1 { margin-top: 1rem; }
.home-copy .lead { max-width: 29rem; margin-top: 1.5rem; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.home-footnote { margin-top: 3.25rem; color: #7895a9; font-size: .78rem; line-height: 1.7; }
.home-moon { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.home-moon img { position: relative; width: 80%; height: auto; border-radius: 50%; box-shadow: 0 0 100px #8299a90d; }
.moon-orbit { position: absolute; inset: 0; border: 1px solid #8faebe13; border-radius: 50%; }
.moon-orbit::after { content: ""; position: absolute; inset: -12%; border: 1px solid #8faebe08; border-radius: 50%; }
.page-heading { padding-block: 3.5rem 2.5rem; }
.page-heading h1 { margin-top: .7rem; }
.page-heading .lead { margin-top: 1rem; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.game-card { display: flex; flex-direction: column; padding: 2rem; }
.me-card { --room-accent: #c6b6f2; }
.hearth-card { --room-accent: #e0c09b; }
.game-mark { width: 52px; height: 52px; margin-bottom: 1.75rem; color: var(--room-accent); }
.game-mark svg { width: 100%; height: 100%; }
.game-card .eyebrow { font-size: .63rem; letter-spacing: .08em; }
.game-card h2 { margin-top: .65rem; font-size: 1.8rem; }
.game-card > p:not(.eyebrow) { margin-block: 1rem 1.75rem; color: #a6bacb; font-size: .9rem; line-height: 1.85; }
.development-badge { align-self: flex-start; margin-top: auto; padding: .4rem .65rem; border: 1px solid #ffffff19; border-radius: 2rem; color: #92aaba; font-size: .72rem; }
.reading-view { max-width: 46rem; margin-inline: auto; }
.empty-state, .information-panel { padding: 2rem; }
.empty-state p, .information-panel p, .personal-panel p { max-width: 35rem; margin-top: .75rem; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.empty-mark { display: inline-block; margin-bottom: 1.2rem; color: #819eb2; font-size: 2rem; }
.empty-state .text-link { margin-top: 1rem; }
.information-panel .button { margin-top: 1.5rem; }
.information-divider { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.2rem; margin-block: 1.25rem 0; border: 1px solid #a6e1de3b; border-radius: 1rem; color: #c5e4e5; background: #1a3b465c; }
.notice strong { display: block; font-size: .9rem; line-height: 1.5; }
.notice p { margin-top: .3rem; font-size: .82rem; line-height: 1.65; color: #a8c5d2; }
.notice[data-tone="error"] { border-color: #d19a8550; background: #442c315e; }
.notice[data-tone="error"] strong { color: #f1cbb9; }
.notice[data-tone="error"] p { color: #d2b9b2; }
.notice .button { flex-shrink: 0; }
.sign-in-panel { max-width: 29rem; padding: 2rem; }
.sign-in-panel h2 { margin-top: .6rem; font-size: 1.6rem; }
.sign-in-panel > p:not(.eyebrow) { margin-top: .9rem; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.sign-in-panel > .button { display: flex; width: 100%; margin-top: .75rem; }
.sign-in-panel > .primary { margin-top: 1.5rem; }
.sign-in-panel .text-button { margin-top: .4rem; }
.sign-in-panel .recovery-note { margin-top: .4rem !important; font-size: .76rem !important; color: #8fa6ba !important; }
.personal-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; }
.personal-panel > div { min-width: 0; }
.personal-panel h2 { margin-top: .6rem; font-size: 1.7rem; overflow-wrap: anywhere; }
.personal-panel p { max-width: 31rem; }
.personal-panel .button { flex-shrink: 0; }
.security-panel { margin-top: 1.25rem; }
.development-section { margin-top: 3rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.section-heading h2 { margin-top: .4rem; font-size: 1.3rem; }
.section-heading > p, .section-description { color: #8da8ba; font-size: .8rem; line-height: 1.7; }
.section-description { margin-top: .8rem; max-width: 42rem; }
.development-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.development-links a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .75rem; color: #b2cbd9; font-size: .85rem; }
.development-links a:hover { background: #ffffff08; }
.counter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2rem; }
.counter-panel { padding: 2rem; }
.counter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.save-state { color: #99c7ba; font-size: .7rem; padding: .3rem .6rem; border: 1px solid #a6d5bf26; border-radius: 2rem; white-space: nowrap; }
.save-state[data-state="pending"], .save-state[data-state="saving"] { color: #e1c69d; border-color: #c7a97c40; }
.counter-panel h2 { margin-top: 1.5rem; font-size: 1.6rem; }
.counter-value { margin-top: 1.3rem; font-size: clamp(3rem, 9vw, 5rem); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.055em; overflow-wrap: anywhere; color: var(--room-accent); }
.counter-caption { margin-top: .2rem; color: #8ba7bc; font-size: .8rem; }
.counter-panel > .button { display: flex; width: 100%; margin-top: 1.75rem; }
.counter-panel > .text-button { margin-top: .5rem; }
.counter-status { min-height: 2.8rem; margin-top: .5rem; color: #8eabbf; font-size: .76rem; line-height: 1.7; }
.room-guide { color: #9db4c5; font-size: .875rem; line-height: 1.8; }
.room-guide h3 { color: #d9e7ef; }
.room-guide ol { padding-left: 1.2rem; margin-block: 1rem; }
.room-guide li { padding-left: .4rem; margin-top: .6rem; }
.room-guide strong { color: #c5dedb; font-weight: 600; }
.session-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.session-panel h2 { font-size: 1rem; }
.session-panel p { max-width: 28rem; margin-top: .45rem; color: #8fa9bb; font-size: .8rem; line-height: 1.65; }
.session-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.session-actions .button { font-size: .78rem; }
.inbox-note { padding-top: 1.25rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.inbox-note p { color: #7895a9; font-size: .74rem; line-height: 1.7; }
.loading, .unavailable { max-width: 40rem; padding: 2rem; }
.loading p, .unavailable p { margin-top: .8rem; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.unavailable .button { margin-top: 1.4rem; }
.spinner { display: block; width: 28px; height: 28px; margin-bottom: 1.3rem; border: 2px solid #a6d5d528; border-top-color: #a6d5d5; border-radius: 50%; animation: spin 1s linear infinite; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; border-top: 1px solid #ffffff10; color: #7994a7; font-size: .72rem; }
.site-footer p { color: #a3bacb; font-weight: 600; }
.noscript { padding-block: 1rem; color: #e0bea9; font-size: .85rem; line-height: 1.7; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes drawer-out { to { transform: translateX(-100%); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { to { opacity: 0; } }
@media (max-width: 760px) {
  .home-view { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
  .home-moon { width: min(55vw, 240px); justify-self: center; }
  .home-copy { max-width: 34rem; }
  .home-footnote { margin-top: 2rem; }
  .game-grid, .counter-layout { grid-template-columns: 1fr; }
  .personal-panel, .session-panel { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .notice { align-items: flex-start; flex-direction: column; gap: .75rem; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 68px; padding-right: max(1rem, env(safe-area-inset-right)); padding-left: max(1rem, env(safe-area-inset-left)); }
  .header-left { gap: .35rem; }
  .wordmark { gap: .4rem; }
  .wordmark img { width: 30px; height: 30px; }
  .wordmark span { font-size: 1.1rem; }
  .account-toggle { gap: .25rem; padding-right: .3rem; max-width: 116px; }
  .account-toggle-name { max-width: 36px; font-size: .75rem; }
  .avatar { flex-basis: 32px; height: 32px; font-size: .8rem; }
  .header-sign-in { min-height: 44px; padding: .55rem .75rem; font-size: .8rem; }
  .page-heading { padding-block: 2.5rem 2rem; }
  .home-actions { gap: .75rem 1.5rem; }
  .game-card, .personal-panel, .counter-panel, .sign-in-panel, .empty-state, .information-panel, .loading, .unavailable { padding: 1.5rem; }
  .personal-panel .button { width: 100%; font-size: .8rem; gap: .6rem; }
  .development-links { flex-direction: column; }
  .session-actions { width: 100%; }
  .session-actions .button { flex: 1 1 100%; }
  .site-footer { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
