:root { color-scheme: light; --sky: #a5d9f2; --ink: #182640; --line: #203452; --muted: #47576b; --gold: #ffd461; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; min-height: 100dvh; color: var(--ink); background: linear-gradient(135deg, #eef9ff 0 30%, #d9f1fc 30% 62%, var(--sky) 62% 100%); background-attachment: fixed; font: 16px/1.5 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #1378b0; outline-offset: 4px; }
[hidden] { display: none !important; }
.topbar { position: fixed; inset: 0 0 auto; height: 66px; background: #fff; border-bottom: 3px solid #1b2c49; z-index: 40; }
.topbar-inner { height: 100%; max-width: 1220px; margin: 0 auto; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header-left, .header-right { display: flex; align-items: center; gap: 10px; }
.header-left { flex: 0 0 auto; }
.header-right { min-width: 0; }
.topbar button, .topbar .sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.topbar svg { width: 16px; height: 16px; }
.topbar .help-trigger { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; background: #fffdf6; }
.help-trigger span { font-size: 1.4rem; line-height: 1; }
.topbar button:hover, .topbar .sign-in:hover { background: #d2effb; }
.home-back-announcement { position: fixed; z-index: 45; top: 76px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 36px)); pointer-events: none; }
#back-notice { margin: 0; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff2c6; text-align: center; font-size: .9rem; font-weight: 800; }
.site-shell { max-width: 1160px; margin: 0 auto; padding: 96px 22px 0; }
.site-title { text-align: center; margin-bottom: 38px; }
.eyebrow { margin: 0 0 6px; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #29516a; }
.site-title h1 { margin: 0; font: 900 clamp(3rem, 7.2vw, 5.4rem)/1.15 'Arial Black', 'Helvetica Neue', Arial, sans-serif; letter-spacing: .01em; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.section-links { display: inline-flex; gap: 10px; margin-top: 18px; }
.section-links a { display: flex; gap: 24px; justify-content: space-between; min-width: 116px; padding: 8px 15px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; font-weight: 800; }
.section-links a:first-child { background: #ffe79b; }
.section-links a:hover { background: #fff3c8; }
.collections { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.collections::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: #86b8d2; }
.collection { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font: 800 2.7rem/1.1 Georgia, serif; letter-spacing: -.035em; }
.section-heading .eyebrow { font-size: .66rem; }
.section-count { flex-shrink: 0; padding: 5px 11px; border: 2px solid var(--line); border-radius: 9px; background: #fff0bc; font-size: .76rem; font-weight: 800; }
.menu-stack { display: grid; gap: 12px; }
.menu-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 230px; padding: 19px 17px; border: 3px solid #162d4a; border-radius: 17px; background: #fff; transition: background .15s, border-color .15s; }
.menu-card:hover { background: #f3fbff; border-color: #1676a5; }
.menu-icon { display: grid; place-items: center; flex: 0 0 auto; width: 67px; height: 67px; border: 2px solid #183552; border-radius: 13px; background: #fff0bc; }
.menu-icon svg { width: 55px; height: 55px; stroke-width: 2.5; }
.battle-icon { background: #bae8fb; }
.card-copy { display: block; width: 100%; flex: 1; min-width: 0; padding-right: 28px; }
.category { display: block; margin-bottom: 5px; color: #476178; font-size: .59rem; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.menu-card h3 { width: 100%; text-align: center; margin: 0; font: 800 1.37rem/1.2 Georgia, serif; letter-spacing: -.025em; }
.description { display: block; margin-top: 7px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.menu-arrow { position: absolute; right: 17px; bottom: 19px; flex: 0 0 21px; width: 21px; height: 21px; color: #187db0; }
.account-note { display: flex; gap: 13px; padding: 18px; margin-top: 24px; border: 2px solid #b98b29; border-radius: 16px; background: #fff2c6; }
.account-note > svg { flex: 0 0 29px; width: 29px; height: 34px; margin-top: 2px; }
.account-note strong { font-size: .94rem; }
.account-note p { margin: 5px 0 8px; color: #4b5361; font-size: .83rem; line-height: 1.5; }
.account-note a { color: #075c8a; font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0 27px; margin-top: 38px; border-top: 2px solid #86b8d2; color: #365269; font-size: .75rem; }
.footer-brand { color: var(--ink); font-size: 1rem; font-weight: 900; }
footer a:last-child { font-weight: 800; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 50; padding: 12px 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--gold); font-weight: 800; }
.skip:focus { top: 12px; }
dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 26px; border: 3px solid var(--line); border-radius: 18px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #18264080; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-heading h2 { margin: 3px 0 10px; font: 800 1.65rem/1.2 Georgia, serif; }
.dialog-heading button { flex: 0 0 36px; min-height: 36px; border: 2px solid var(--line); border-radius: 8px; background: #fff0bc; font-size: 1.5rem; line-height: 1; }
dialog p { color: var(--muted); font-size: .92rem; }
.help-section { padding-top: 15px; border-top: 1px solid #c8deea; }
.help-section h3 { margin: 0; font: 800 1.1rem Georgia, serif; }
.help-section p { margin-top: 6px; }
.dialog-link { display: block; padding: 11px 14px; border: 2px solid var(--line); border-radius: 9px; background: #fff0bc; font-weight: 800; text-align: center; }
.profile-control { position: relative; min-width: 0; }
.topbar .profile-trigger { padding: 3px 9px 3px 5px; gap: 7px; max-width: 230px; }
.profile-name { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff0bc; font-size: .85rem; font-weight: 900; }
.profile-menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(270px, calc(100vw - 20px)); padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.profile-menu-heading { padding: 9px 10px 12px; margin-bottom: 5px; border-bottom: 1px solid #c8deea; overflow-wrap: anywhere; }
.profile-menu-heading strong { display: block; font-size: 1rem; }
.profile-menu-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }
.topbar .profile-menu button, .profile-menu a { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 6px; font-size: .88rem; font-weight: 700; text-align: left; }
.profile-menu a:hover { background: #d2effb; }
.topbar .profile-menu button:disabled { cursor: wait; opacity: .6; }
#profile-menu-error { margin: 6px 10px; color: #a82e37; font-size: .8rem; }
.profile-identity { display: flex; align-items: center; gap: 14px; margin: 18px 0; overflow-wrap: anywhere; }
.profile-identity .profile-avatar { flex-basis: 54px; width: 54px; height: 54px; font-size: 1.5rem; }
@media (max-width: 560px) { .profile-name { max-width: 70px; } .topbar .profile-trigger { padding: 3px 5px; gap: 4px; } .profile-trigger > svg { width: 12px; } }
@media (max-width: 850px) {
  .collections { gap: 22px; }
  .menu-card { gap: 12px; padding: 16px 13px; }
  .menu-icon { width: 52px; height: 52px; border-radius: 11px; }
  .menu-icon svg { width: 44px; height: 44px; }
  .menu-card h3 { font-size: 1.2rem; }
  .menu-arrow { flex-basis: 17px; width: 17px; }
}
@media (max-width: 700px) {
  .collections { gap: 20px; }
  .section-heading { align-items: start; min-height: 76px; gap: 8px; }
  .section-heading .eyebrow { max-width: 15ch; font-size: .6rem; min-height: 2.8em; }
  .section-heading h2 { font-size: 2rem; }
  .section-count { margin-top: 34px; padding: 3px 6px; font-size: .65rem; }
  .menu-stack { gap: 10px; }
  .menu-card { flex-direction: column; align-items: center; min-height: 205px; padding: 14px 12px; gap: 12px; border-width: 2px; border-radius: 13px; }
  .menu-icon { flex: 0 0 auto; width: 52px; height: 52px; }
  .menu-icon svg { width: 44px; height: 44px; }
  .card-copy { padding-right: 0; }
  .menu-card h3 { display: grid; place-items: center; font-size: 1.17rem; min-height: 2.4em; overflow-wrap: anywhere; }
  .description { font-size: .8rem; }
  .category, .menu-arrow { display: none; }
  footer { flex-wrap: wrap; gap: 9px 14px; }
  footer > span { order: 3; width: 100%; }
  footer a:last-child { margin-left: auto; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 81px; }
  .topbar { height: 61px; }
  .topbar-inner { padding: 0 10px; gap: 8px; }
  .header-left, .header-right { gap: 5px; }
  .topbar button { padding: 0 8px; font-size: .86rem; }
  .topbar .sign-in { padding: 0 8px; font-size: .8rem; }
  .site-shell { padding: 84px 12px 0; }
  .site-title { margin-bottom: 28px; }
  .site-title h1 { font-size: clamp(2.85rem, 12vw, 4.2rem); -webkit-text-stroke-width: 2.5px; }
  .section-links a { min-width: 107px; font-size: .85rem; }
  .collections { gap: 16px; }
  .section-heading { min-height: 65px; margin-bottom: 10px; gap: 4px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-count { margin-top: 4px; font-size: .6rem; padding: 3px 5px; }
  .menu-card { min-height: 207px; padding: 13px 10px; gap: 10px; }
  .menu-card h3 { font-size: 1.08rem; }
  .description { font-size: .77rem; }
  .account-note { padding: 16px; }
  footer { margin-top: 30px; }
}
@media (max-width: 380px) {
  .profile-name { display: none; }
  .section-heading { flex-wrap: wrap; align-content: start; min-height: 70px; }
  .section-count { margin-top: 0; }
  .menu-card { min-height: 220px; padding: 12px 9px; }
  .menu-card h3 { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu-card { transition: none; } }
