@font-face { font-family: 'Big Shoulders Display'; src: url('/fonts/BigShoulders.woff') format('woff'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/Bricolage.woff') format('woff'); font-weight: 200 800; font-display: swap; }
html, body { margin: 0; background: #0A0F25; color: #F4F1E8; font-family: 'Bricolage Grotesque', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
button, input, select { font-family: inherit; }
#app { min-height: 100vh; }
.ag-phone-host { background: #0A0F25; min-height: 100vh; }
@media (min-width: 561px) and (max-width: 999px) { .ag-phone-host { background: radial-gradient(circle at 50% 0%, #1E2C70 0%, #0A0F25 60%); } }

/* boot + empty states */
.ag-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; box-sizing: border-box; text-align: center; background: radial-gradient(130% 60% at 50% -10%, #1E2C70 0%, rgba(30,44,112,0) 62%), #0A0F25; }
.ag-word { font-weight: 800; letter-spacing: -0.01em; font-size: 24px; }
.ag-mark { width: 64px; height: 64px; }
.ag-pulse { animation: agpulse 1.4s ease-in-out infinite; }
@keyframes agpulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .ag-pulse { animation: none; } }
.ag-h { font-family: 'Big Shoulders Display', sans-serif; font-size: 42px; line-height: 0.95; font-weight: 800; margin: 4px 0 0; }
.ag-p { max-width: 420px; color: #CDD2EC; font-size: 15px; line-height: 1.5; margin: 0; }
.ag-small { font-size: 12.5px; color: #8790BC; line-height: 1.5; }
.ag-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.ag-btn { box-sizing: border-box; height: 50px; padding: 0 20px; border-radius: 16px; border: 0; background: #F3C24F; color: #1B1505; font-weight: 750; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ag-btn.ghost { background: rgba(26,36,80,0.6); border: 1px solid rgba(166,180,255,0.26); color: #F4F1E8; }
.ag-btn:focus-visible, .ag-x:focus-visible { outline: 2px solid #F3C24F; outline-offset: 2px; }

/* account sheet */
.ag-scrim { position: fixed; inset: 0; background: rgba(5,8,20,0.7); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
@media (min-width: 700px) { .ag-scrim { align-items: center; } }
.ag-sheet { width: 100%; max-width: 440px; box-sizing: border-box; background: #121A3C; border: 1px solid rgba(166,180,255,0.18); border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 700px) { .ag-sheet { border-radius: 24px; } }
.ag-sheet-top { display: flex; align-items: center; justify-content: space-between; }
.ag-sheet-top .ag-word { font-size: 18px; }
.ag-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #F4F1E8; font-size: 22px; cursor: pointer; }
.ag-acct { background: #0E1534; border: 1px solid rgba(166,180,255,0.14); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ag-acct b { font-size: 16px; word-break: break-all; }
.ag-badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(243,194,79,0.14); color: #F3C24F; }
.ag-badge.off { background: rgba(226,120,140,0.16); color: #E2788C; }
.ag-list { display: flex; flex-direction: column; gap: 8px; }
.ag-list .ag-btn { width: 100%; }
.ag-foot { font-size: 12px; color: #8790BC; line-height: 1.5; text-align: center; }
.ag-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1A2450; border: 1px solid rgba(166,180,255,0.26); color: #F4F1E8; padding: 12px 16px; border-radius: 14px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-sizing: border-box; }
.ag-err { color: #FF6B78; }
