/* Phantom product UI. Shared geometry and brand colors for both appearances. */
.ph-intro-block { display: block; max-width: 1000px; padding: 48px 0 56px; }
.ph-intro-text { font-size: 17px; line-height: 1.75; color: rgba(255,253,248,.76); text-wrap: pretty; }
.ph-intro-text + .ph-intro-text { margin-top: 24px; }
.ph-subtitle { max-width: 760px; text-wrap: pretty; line-height: 1.65; }
.ph-card-body { text-wrap: pretty; }
.walkthrough-guide { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; list-style: none; max-width: 940px; gap: 26px; padding: 0; margin: 24px auto 0; }
.walkthrough-guide > li { display: flex; gap: 10px; align-items: center; max-width: 260px; }
.walkthrough-guide svg { width: 32px; height: 36px; flex: 0 0 32px; color: var(--purple-primary); }
.walkthrough-guide strong { display: block; margin: 0; font: 400 13px/1.45 var(--font-body); color: #d6d0e7; }

#phone-bezel { --surface: #fffdf8; --surface-raised: #f1eef9; --ink: #1c1c1c; --muted: #777280; --line: #e6e1ef; --accent: #6e59b7; --positive: #167b52; font-family: var(--font-body); }
#phone-bezel[data-mode='dark'] { --surface: #1c1c1c; --surface-raised: #29272f; --ink: #fffdf8; --muted: #b0aab9; --line: #3b3645; --accent: #ab9ff2; --positive: #69d8a1; }
.phone-inner { --surface: #fffdf8; --surface-raised: #f1eef9; --ink: #1c1c1c; --muted: #777280; --line: #e6e1ef; --accent: #6e59b7; --positive: #167b52; background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.phone-inner.dark-inner { --surface: #1c1c1c; --surface-raised: #29272f; --ink: #fffdf8; --muted: #b0aab9; --line: #3b3645; --accent: #ab9ff2; --positive: #69d8a1; }
#phone-bezel button, #phone-bezel input { font-family: var(--font-body); }
.ui-icon { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.status-bar { height: 44px; padding: 0 24px 8px; align-items: flex-end; }
.time { font: 600 13px/1 var(--font-body); color: var(--ink); }
.status-symbols { display: flex; color: var(--ink); }
.status-symbols svg { width: 47px; height: 15px; }
button.ghost-corner { width: 44px; height: 44px; top: 53px; right: 20px; padding: 10px; border: 0; border-radius: 16px; background: #9886e5; box-shadow: none; cursor: pointer; }
.ghost-corner img { width: 100%; height: 100%; }
.search-wrap { padding: 9px 76px 13px 20px; }
button.search-bar { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--surface-raised); border-radius: 16px; padding: 0 14px; gap: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.search-bar .ui-icon { width: 18px; height: 18px; }
.pages-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.app-page { position: absolute; inset: 0; width: 100%; background: var(--surface); }
.app-page:not([data-page='home']) { visibility: hidden; opacity: 0; }
.home-content { display: flex; flex-direction: column; }
.balance-section { padding: 8px 24px 20px; border: 0; flex: 0 0 auto; }
.balance-icons-row { gap: 8px; margin: 0 0 10px; height: 32px; }
.wallet-chip { width: 24px; height: 24px; border-radius: 8px; background: #ab9ff2; }
.wallet-chip img { width: 18px; height: 18px; }
.account-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.privacy-btn { width: 44px; height: 44px; margin-left: 2px; color: var(--muted); }
.privacy-btn .ui-icon { width: 21px; height: 21px; }
.privacy-btn::before, .privacy-btn[aria-pressed='true']::after { display: none; }
.privacy-slash { visibility: hidden; }
[aria-pressed='true'] .privacy-slash { visibility: visible; }
.balance-amt { font: 500 48px/1.1 var(--font-body); letter-spacing: -2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.balance-change { color: var(--positive); font-size: 12px; font-weight: 600; margin-top: 10px; }
.balance-change span { font-weight: 400; }
button.section-row, button.tokens-row { min-height: 62px; width: calc(100% - 40px); margin: 0 20px 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); color: var(--ink); cursor: pointer; font: 500 15px var(--font-body); text-align: left; }
.section-row[aria-expanded='true'] { border-color: var(--accent); }
.row-leading, .row-trailing { display: flex; align-items: center; gap: 12px; }
.row-leading > .ui-icon { width: 28px; height: 28px; color: var(--accent); }
.row-lbl { color: var(--ink); font: 600 16px/1.2 var(--font-body); }
.row-trailing { font-size: 13px; gap: 10px; }
.expand-arrow { color: var(--muted); opacity: 1; font-size: inherit; }
.expand-arrow .ui-icon { width: 16px; height: 16px; }
.asset-cluster { display: flex; width: 28px; }
.asset-cluster .coin { width: 22px; height: 22px; font-size: 15px; border: 2px solid var(--surface-raised); }
.asset-cluster .coin + .coin { margin-left: -11px; margin-top: 8px; }
.card-grid { padding: 8px 20px 0; gap: 10px; min-height: 160px; grid-template-rows: 1fr 1fr; }
button.card { border: 1px solid var(--line); background: transparent; cursor: pointer; border-radius: 18px; gap: 8px; padding: 12px 6px; color: var(--ink); }
.card .feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-raised); color: var(--accent); }
.card .feature-icon .ui-icon { width: 23px; height: 23px; }
.card span { font: 500 12px/1.25 var(--font-body); color: inherit; }
.home-note { flex: 0 0 68px; display: flex; align-items: center; padding-left: 24px; font-size: 11px; color: var(--muted); }
.bottom-nav { height: 88px; padding: 9px 14px 22px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
button.nav-item { min-height: 48px; gap: 4px; justify-content: center; border: 0; border-radius: 16px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.nav-item .ui-icon { width: 22px; height: 22px; }
.nav-item span { font: 500 11px/1.2 var(--font-body); color: inherit; }
.nav-item[aria-selected='true'] { color: var(--accent); background: var(--surface-raised); }
.nav-item[aria-selected='true'] span { font-weight: 700; }
.bottom-nav::after { content: ''; position: absolute; bottom: 8px; height: 4px; width: 110px; left: calc(50% - 55px); border-radius: 4px; background: var(--ink); opacity: .8; }
button.fab { right: 20px; bottom: 102px; width: 44px; height: 44px; border-radius: 15px; padding: 0; background: #ab9ff2; color: #1c1c1c; box-shadow: 0 3px 10px #1c1c1c18; }
.fab .ui-icon { width: 25px; height: 25px; }
#phone-bezel[data-panel]:not([data-panel='']) .fab { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#phone-bezel button:focus-visible, #phone-bezel summary:focus-visible, #phone-bezel input:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
#swipe-cue { position: absolute; top: 44px; right: 0; bottom: 88px; width: 36px; z-index: 23; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; color: var(--accent); opacity: 0; visibility: hidden; background: linear-gradient(90deg,transparent,#ab9ff21c); box-shadow: inset -2px 0 12px #ab9ff238; }
#swipe-cue svg { width: 25px; height: 58px; margin-right: 3px; opacity: .22; }
#swipe-cue.is-hinting { animation: swipe-invitation 3.4s ease-in-out 3; }
@keyframes swipe-invitation { 0%,100% { box-shadow: inset -2px 0 12px #ab9ff22a; } 50% { box-shadow: inset -4px 0 23px #ab9ff26b; } }

.preview-page { padding: 14px 20px 76px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; }
.page-heading > .ui-icon { width: 30px; height: 30px; color: var(--accent); }
.eyebrow { display: block; font: 500 10px/1.5 var(--font-body); letter-spacing: .6px; color: var(--muted); }
.page-heading h2 { font-size: 30px; letter-spacing: -1px; font-weight: 600; margin: 3px 0 0; }
.preview-page h3, .wallet-panel h3 { margin: 22px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.preview-page .page-heading + h3 { margin-top: 0; margin-bottom: 5px; }
.section-sub { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.subtle { color: var(--muted); }
.market-spotlight { border: 1px solid var(--line); background: var(--surface-raised); border-radius: 22px; padding: 0 14px; }
.market-spotlight p { padding: 12px 0; margin: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sparkline { color: var(--positive); display: block; width: 100%; height: 62px; margin-bottom: 10px; }
.asset-row { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.asset-row:last-of-type { border-bottom: 0; }
.asset-row strong { display: block; font-weight: 600; }
.asset-name { flex: 1; min-width: 0; }
.asset-name strong { font-size: 13px; }
.asset-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.asset-value { text-align: right; font-variant-numeric: tabular-nums; }
.asset-row .positive, .positive { color: var(--positive); }
.coin { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; font: 600 22px/1 var(--font-body); }
.coin-sol { background: #1c1c1c; color: #ab9ff2; }
.coin-sol svg { width: 55%; height: 55%; }
.coin-btc { background: #f39324; color: #fffdf8; }
.coin-eth { background: #e2dffe; color: #3c315b; }
.coin-usdc { background: #4a87f2; color: #fffdf8; }
.coin-ember { background: #fff1c2; color: #b24612; font-size: 15px; }
.coin-fly { background: #d9e7e8; color: #24454b; font-size: 15px; }
.coin-manlet { background: #e2dffe; color: #3c315b; font-size: 15px; }
.preview-chips { display: flex; gap: 7px; margin-bottom: 8px; }
.preview-chips span { font-size: 11px; padding: 9px 14px; border-radius: 20px; background: var(--surface-raised); color: var(--muted); }
.preview-chips .selected { color: #1c1c1c; background: #ab9ff2; }

.event-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.event-card h3 { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 19px; }
.team-badge { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; font-size: 11px; color: white; }
.team-badge.red { background: #d34553; }.team-badge.blue { background: #306eb8; }
.event-card .section-sub { margin: 18px 0 14px; font-size: 11px; }
.odds-bar { height: 6px; display: flex; gap: 4px; }
.odds-bar i { border-radius: 6px; width: 41%; background: #d34553; }.odds-bar i:nth-child(2) { width: 26%; background: var(--muted); }.odds-bar i:nth-child(3) { width: 33%; background: #4a87f2; }
.odds-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9px; color: var(--muted); }.odds-labels b { display: block; font-size: 12px; color: var(--ink); margin-top: 4px; }
.upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.upcoming-grid > div { padding: 14px; background: var(--surface-raised); border-radius: 18px; }
.upcoming-grid strong, .upcoming-grid small { display: block; }.upcoming-grid strong { font-size: 13px; line-height: 1.5; }.upcoming-grid small { font-size: 10px; color: var(--muted); margin-top: 6px; }
.event-symbol { font-size: 25px; display: block; margin-bottom: 10px; }
.price-card { display: flex; align-items: center; gap: 9px; padding: 14px; border-radius: 18px; background: var(--surface-raised); font-size: 11px; }.price-card > div { flex: 1; }.price-card small { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); }
.discovery-links { display: flex; gap: 8px; }.discovery-links span { display: flex; flex: 1; align-items: center; gap: 6px; padding: 12px 7px; border-radius: 13px; background: var(--surface-raised); font-size: 11px; }.discovery-links .ui-icon { width: 20px; height: 20px; color: var(--accent); }
.inset-list { padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; }
.learn-feature { position: relative; padding: 22px; background: #e2dffe; color: #3c315b; border-radius: 22px; }.learn-feature .eyebrow { color: #6e59b7; }.learn-feature h4 { margin: 10px 0; font-size: 24px; line-height: 1.1; letter-spacing: -.7px; font-weight: 600; }.learn-feature p { max-width: 200px; font-size: 12px; line-height: 1.5; margin: 0; }.learn-feature > .ui-icon { position: absolute; right: 20px; top: 24px; }

#tokens-overlay.wallet-panel, #cash-overlay.wallet-panel { position: absolute; left: 20px; right: 20px; bottom: 96px; z-index: 24; border: 1px solid var(--line); border-radius: 0 0 20px 20px; background: var(--surface); color: var(--ink); padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; pointer-events: auto; box-shadow: 0 18px 24px #1c1c1c16; scrollbar-width: thin; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }.panel-heading button, #close-profile { display: grid; place-items: center; border: 0; background: var(--surface-raised); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }.panel-heading .ui-icon, #close-profile .ui-icon { width: 18px; height: 18px; }
.panel-subtitle { font-size: 14px; margin: 12px 0 0; }.panel-subtitle span { font-size: 10px; color: var(--muted); }
.cash-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }.cash-summary strong { font-size: 30px; font-weight: 500; letter-spacing: -1px; }.cash-summary small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.cash-card { width: 100px; height: 62px; border-radius: 10px; padding: 10px; background: #e2dffe; border: 1px solid #ab9ff2; display: flex; flex-direction: column; justify-content: space-between; }.cash-card img { width: 23px; height: 20px; }.cash-card span { font-size: 8px; color: #3c315b; text-align: right; }
.wallet-panel h3 { font-size: 15px; margin: 16px 0 5px; }
.funding-row { border-bottom: 1px solid var(--line); }.funding-row:last-child { border-bottom: 0; }
summary { cursor: pointer; list-style: none; }summary::-webkit-details-marker { display: none; }
.funding-row summary { display: flex; align-items: center; gap: 10px; min-height: 66px; }.funding-row summary > span:nth-child(2) { flex: 1; }.funding-row summary > .ui-icon { width: 14px; height: 14px; color: var(--muted); }.funding-row strong, .funding-row small { display: block; }.funding-row strong { font-size: 12px; font-weight: 600; }.funding-row small { font-size: 10px; line-height: 1.4; color: var(--muted); margin-top: 4px; }.row-icon-box { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-raised); color: var(--accent); flex-shrink: 0; }.row-icon-box .ui-icon { width: 18px; height: 18px; }.funding-row p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
#profile-panel { position: absolute; inset: 0; z-index: 29; opacity: 0; visibility: hidden; color: var(--ink); }.drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #08050e80; cursor: pointer; }.profile-drawer { position: absolute; inset: 0 0 0 38px; padding: 50px 22px 30px; background: var(--surface); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 24px 0 0 24px; box-shadow: -8px 0 30px #0003; }.profile-top { display: flex; align-items: center; justify-content: space-between; }.profile-top > img { width: 48px; height: 48px; padding: 10px; background: #9886e5; border-radius: 17px; }.profile-drawer h2 { font-size: 22px; letter-spacing: -.6px; margin: 20px 0 5px; }.profile-caption { font-size: 12px; color: var(--accent); margin: 0 0 24px; }.profile-account { display: flex; gap: 12px; align-items: center; padding: 15px; background: var(--surface-raised); border-radius: 16px; margin-bottom: 20px; font-size: 13px; }.profile-account small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.profile-drawer summary { display: flex; gap: 14px; align-items: center; min-height: 54px; font-size: 15px; font-weight: 500; }.profile-drawer summary > .ui-icon:first-child { width: 21px; height: 21px; color: var(--muted); }.profile-drawer summary > .ui-icon:last-child { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }.profile-drawer details[open] > summary > .ui-icon:last-child { transform: rotate(90deg); }.profile-drawer details p { font-size: 12px; line-height: 1.6; color: var(--muted); padding: 0 0 12px 35px; margin: 0; }.profile-drawer a { color: var(--accent); }.profile-bottom { margin-top: auto; padding-top: 28px; }.setting-control { width: 100%; border: 0; border-radius: 10px; background: var(--surface-raised); color: var(--ink); min-height: 44px; margin-bottom: 8px; padding: 10px 12px; display: flex; justify-content: space-between; cursor: pointer; font-size: 12px; }.setting-control span { color: var(--accent); }.watchlist-item { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px; }.watchlist-item span:last-child { color: var(--muted); margin-left: auto; }
.detail-panel { position: absolute; inset: 110px 0 0; padding: 20px; z-index: 28; background: var(--surface); color: var(--ink); opacity: 0; visibility: hidden; overflow-y: auto; overscroll-behavior: contain; }.detail-panel p { font-size: 13px; line-height: 1.7; color: var(--muted); }.detail-panel input { width: 100%; height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin: 20px 0 8px; background: var(--surface-raised); color: var(--ink); font-size: 14px; }.search-result { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }.search-result small { color: var(--muted); margin-left: auto; }.empty-collection { margin: 36px auto; text-align: center; }.empty-collection .ui-icon { width: 48px; height: 48px; color: var(--accent); }.empty-collection h3 { font-size: 19px; }
#closing-direction { min-height: 420px; padding: 70px 28px 100px; display: grid; place-items: center; background: var(--purple-deep); }
.closing-copy { max-width: 880px; opacity: 0; transform: translateY(18px); transition: opacity .65s, transform .65s; text-align: center; }.closing-copy > img { width: 52px; height: 44px; margin-bottom: 24px; }.closing-copy h2 { margin: 0; font: 500 clamp(25px,3.2vw,42px)/1.35 var(--font-display); letter-spacing: -.9px; color: #fffdf8; text-wrap: balance; }.is-visible .closing-copy { opacity: 1; transform: none; }
/* Restore the handwritten annotations, with restrained sizing on both layouts. */
.bubble-body { font: 600 max(22px, calc(15px / var(--phone-scale)))/1.25 var(--font) !important; padding: 11px 14px; border: 2px solid var(--purple-dark); border-radius: 14px; text-wrap: pretty; }
.bubble { filter: none; }
.bubble-tail, .bubble-tail-left { width: 12px; height: 12px; top: 50%; background: var(--white); transform: translateY(-50%) rotate(45deg); }
.bubble-tail { right: -5px; border: 0; border-right: 2px solid var(--purple-dark); border-top: 2px solid var(--purple-dark); }
.bubble-tail-left { left: -5px; border: 0; border-left: 2px solid var(--purple-dark); border-bottom: 2px solid var(--purple-dark); }
.bubble-tail::before, .bubble-tail::after, .bubble-tail-left::before, .bubble-tail-left::after { display: none; }
.cta-note:empty { display: none !important; }
#phantom-game-link { position: absolute; right: 24px; bottom: 24px; z-index: 25; width: auto; max-width: calc(100% - 48px); margin: 0; padding: 10px 18px; font: 600 18px/1.25 var(--font); opacity: 0; visibility: hidden; }
#scroll-container[data-mode='light'] #phantom-game-link { color: var(--purple-dark); background: #fffdf8; }

.bubble-eye-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; }
/* Keep the explainer bubbles attached to the same composition as the phone. */
#bubble-1 { top: 48px; }
#bubble-2 { top: 126px; }
#bubble-3 { top: 268px; }
#bubble-4 { top: 425px; }
@media (max-width: 860px) {
 .ph-intro-block { padding: 32px 0 40px; }.ph-intro-text { font-size: 16px; line-height: 1.75; }
 .walkthrough-guide { flex-direction: column; align-items: center; gap: 14px; max-width: 300px; }.walkthrough-guide > li { width: 260px; gap: 12px; }
 #sticky-stage { height: 100dvh; padding: 0; }
 #phone-bezel { border-radius: var(--phone-r) !important; box-shadow: 0 12px 40px #0003 !important; }
 .notch { display: block !important; }
 #mobile-caption { display: none !important; }
 .bubble, .bubble-right { display: block !important; position: absolute !important; left: auto !important; right: 395px !important; bottom: auto !important; width: 195px !important; max-width: none !important; margin: 0 !important; filter: none !important; }
 .bubble-right { left: 395px !important; right: auto !important; }
 #bubble-1 { top: 48px !important; } #bubble-2 { top: 126px !important; }
 #bubble-3 { top: 268px !important; } #bubble-4 { top: 425px !important; }
 .bubble-body { padding: calc(7px / var(--phone-scale)) !important; border-width: 2px !important; border-radius: 14px !important; overflow-wrap: normal; }
 .bubble-tail, .bubble-tail-left { display: block !important; }
 .bubble-eye-icon { width: 1em !important; height: 1em !important; }
 #theme-toggle { top: 5px !important; right: 110px !important; }
 #closing-direction { min-height: 410px; padding: 40px 24px 65px; }.closing-copy h2 { font-size: clamp(23px,6.3vw,31px); }
}
@media (prefers-reduced-motion: reduce) { .closing-copy, button.nav-item { transition: none; } }
