/* 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; }
.ph-opportunity { padding-top: 14px; color: #fffdf8; }
.ph-subtitle strong { font-weight: 500; color: #e2dffe; }
.walkthrough-guide { position: absolute; inset: 0; z-index: 15; pointer-events: none; opacity: 0; visibility: hidden; color: #fffdf8; font-family: var(--font-body); }
.walkthrough-guide.is-visible { opacity: 1; visibility: visible; }
.walkthrough-guide > div { position: absolute; top: 24px; display: flex; align-items: flex-start; gap: 9px; width: 180px; }
.walkthrough-guide > div:first-child { left: 18px; }
.walkthrough-guide > div:last-child { right: 18px; }
.walkthrough-guide svg { width: 29px; height: 38px; flex: 0 0 29px; color: #ab9ff2; }
.walkthrough-guide p { margin: 0; font-size: 12px; line-height: 1.45; }
.walkthrough-guide strong, .walkthrough-guide span { display: block; }
.walkthrough-guide strong { font-weight: 700; }
.walkthrough-guide span { color: #c8bfdc; }
.walkthrough-guide.is-on-light strong { color: #3c315b; }
.walkthrough-guide.is-on-light span { color: #625777; }
.walkthrough-guide.is-on-light svg { color: #3c315b; }

#phone-bezel { --surface: #fffdf8; --surface-raised: #f1eef9; --ink: #3c315b; --muted: #625777; --line: #d9d1e7; --accent: #ab9ff2; --positive: #217a56; font-family: var(--font-body); }
#phone-bezel[data-mode='dark'] { --surface: #3c315b; --surface-raised: #4d416d; --ink: #e2dffe; --muted: #c0b8ea; --line: #71658f; --accent: #ab9ff2; --positive: #b4e8bf; }
.phone-inner { --surface: #fffdf8; --surface-raised: #f1eef9; --ink: #3c315b; --muted: #625777; --line: #d9d1e7; --accent: #ab9ff2; --positive: #217a56; background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.phone-inner.dark-inner { --surface: #3c315b; --surface-raised: #4d416d; --ink: #e2dffe; --muted: #c0b8ea; --line: #71658f; --accent: #ab9ff2; --positive: #b4e8bf; }
#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: 5px; margin: 0 0 12px; height: 34px; }
.wallet-chip { width: 24px; height: 24px; border-radius: 8px; background: #ab9ff2; }
.wallet-chip img { width: 18px; height: 18px; }
.account-label { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.privacy-btn, .account-tool { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; margin: 0; padding: 0; border: 0; border-radius: 11px; background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.privacy-btn .ui-icon, .account-tool .ui-icon { width: 18px; height: 18px; }
.account-tool.is-copied { background: var(--accent); color: var(--surface); }
.account-tool.is-copied .ui-icon { display: none; }
.account-tool.is-copied::after { content: '✓'; font-size: 16px; font-weight: 700; }
.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: 700 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; }
#phone-bezel[data-changes-hidden='true'] .balance-change { visibility: hidden; }
[data-hide-changes][aria-pressed='true'] .change-slash { visibility: visible; }
.change-slash { visibility: hidden; }
.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'] { position: relative; z-index: 25; margin-bottom: 0; border-color: var(--accent); border-bottom-color: transparent; border-radius: 18px 18px 0 0; }
.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: #3c315b; box-shadow: 0 3px 10px #3c315b26; }
.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(--accent); border-top: 0; border-radius: 0 0 18px 18px; 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-accounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 16px 0 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.profile-account { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; font-size: 10px; white-space: nowrap; }
.profile-account-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #9886e5; }
.profile-account-mark img { width: 28px; height: 24px; object-fit: contain; }
.account-add .profile-account-mark { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.account-add img { opacity: .3; }
.account-add .profile-account-mark > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 27px; line-height: 1; }
.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; }
.activity-preview { overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); }
.activity-preview > div { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.activity-preview > div > span:nth-child(2) { flex: 1; min-width: 0; }
.activity-preview strong, .activity-preview small { display: block; }
.activity-preview strong { font-size: 12px; }.activity-preview small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.activity-preview b { font-size: 10px; white-space: nowrap; }
.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #ab9ff2; color: #3c315b; font-size: 16px; }
.activity-preview p { margin: 0; padding: 12px 13px; font-size: 10px; }
#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; }
.closing-summary { max-width: 66ch; margin: 20px auto 0; font: 400 clamp(15px,1.4vw,18px)/1.7 var(--font-body); color: #c8bfdc; text-wrap: pretty; }
/* Local narration, with the public proposal's handwritten note treatment. */
#walkthrough-explainer { top: 125px; width: 205px; visibility: hidden; transform: none; filter: none; }
#walkthrough-explainer .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-align: left; text-wrap: pretty; }
#walkthrough-explainer strong { display: block; font-size: 1.1em; font-weight: 700; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
#walkthrough-explainer .bubble-tail, #walkthrough-explainer .bubble-tail-left { width: 12px; height: 12px; top: 50%; background: var(--white); transform: translateY(-50%) rotate(45deg); }
#walkthrough-explainer .bubble-tail { right: -5px; border: 0; border-right: 2px solid var(--purple-dark); border-top: 2px solid var(--purple-dark); }
#walkthrough-explainer .bubble-tail-left { left: -5px; border: 0; border-left: 2px solid var(--purple-dark); border-bottom: 2px solid var(--purple-dark); }
#walkthrough-explainer .bubble-tail::before, #walkthrough-explainer .bubble-tail::after, #walkthrough-explainer .bubble-tail-left::before, #walkthrough-explainer .bubble-tail-left::after { display: none; }
#walkthrough-explainer:not(.bubble-right) .bubble-tail-left, #walkthrough-explainer.bubble-right .bubble-tail { display: none; }
#walkthrough-explainer .explainer-lines { margin-top: 10px; }
#walkthrough-explainer .explainer-lines:empty { display: none; }
#walkthrough-explainer p { margin: 0; }
#walkthrough-explainer p + p { margin-top: 7px; }
#walkthrough-explainer .explainer-action { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; column-gap: 9px; line-height: 1.45; }
#walkthrough-explainer .explainer-action + .explainer-action { margin-top: 10px; }
#walkthrough-explainer .explainer-action svg { display: block; width: 18px; height: 18px; color: var(--purple-dark); }
.cta-note:empty { display: none !important; }
#scroll-container[data-mode='light'] #cta-block .cta-head,
#scroll-container[data-mode='light'] #cta-block .cta-sub,
#scroll-container[data-mode='light'] #cta-block .cta-note,
#scroll-container[data-mode='light'] .tog-lbl,
#scroll-container[data-mode='light'] #end-label { color: var(--purple-dark); }
#scroll-container[data-mode='dark'] #cta-block .cta-head { color: var(--white); }
#scroll-container[data-mode='dark'] #cta-block .cta-sub,
#scroll-container[data-mode='dark'] #cta-block .cta-note,
#scroll-container[data-mode='dark'] #cta-block .cta-type-link,
#scroll-container[data-mode='dark'] #end-label,
#scroll-container[data-mode='dark'] .tog-lbl { color: #c8bfdc; }
#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='dark'] #phantom-game-link { color: var(--purple-dark); background: #fffdf8; }

.bubble-eye-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; }
@media (max-width: 860px) {
 .ph-intro-block { padding: 32px 0 40px; }.ph-intro-text { font-size: 16px; line-height: 1.75; }
 .walkthrough-guide > div { top: 12px; width: calc(50% - 18px); gap: 5px; }
 .walkthrough-guide > div:first-child { left: 8px; }
 .walkthrough-guide > div:last-child { right: 8px; }
 .walkthrough-guide svg { width: 20px; height: 28px; flex-basis: 20px; }
 .walkthrough-guide p { font-size: 9px; line-height: 1.2; }
 #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: 205px !important; max-width: none !important; margin: 0 !important; filter: none !important; }
 .bubble-right { left: 395px !important; right: auto !important; }
 #walkthrough-explainer .bubble-body { padding: calc(7px / var(--phone-scale)) !important; overflow-wrap: normal; }
 #walkthrough-explainer strong { font-size: 1.1em; }
 #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; } }

/* Photo-led product shelves and compact app cards invite horizontal browsing. */
.marketplace-home { margin: 0 0 8px; }
.market-shelf-group + .market-shelf-group { margin-top: 22px; }
.market-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.market-shelf-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.market-shelf-controls { display: flex; gap: 5px; }
.market-shelf-controls button { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent); font-size: 15px; cursor: pointer; }
.market-carousel { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-y pinch-zoom; cursor: grab; }
.market-carousel::-webkit-scrollbar { display: none; }
.market-carousel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.market-carousel button { flex-shrink: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); color: var(--ink); text-align: left; scroll-snap-align: start; cursor: inherit; user-select: none; }
.market-carousel img { pointer-events: none; }
.market-discovery-product { width: 232px; }
.market-discovery-product > img { display: block; width: 100%; height: 145px; object-fit: cover; }
.market-discovery-product > span, .market-discovery-app > span:last-child { display: block; padding: 12px 14px; }
.market-carousel small, .market-carousel strong, .market-carousel em { display: block; }
.market-carousel small { color: var(--muted); font-size: 9px; }
.market-carousel strong { margin: 5px 0; font-size: 16px; line-height: 1.2; letter-spacing: -.3px; }
.market-carousel em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.4; }
.market-discovery-app { width: 196px; }
.market-app-art { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 16px 14px; }
.market-app-art img { width: 86px; height: 32px; object-fit: contain; object-position: left center; }
.market-app-art small { color: #e2dffe; font-size: 9px; }
.market-app-gaming { background: #171d25; }.market-app-fomo { background: #080819; }
.market-app-fomo img { width: 36px; height: 36px; }
.market-more { margin-top: 18px; border-top: 1px solid var(--line); }
.market-more > summary { padding: 16px 0; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.market-financial-more { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.marketplace-intro h3 { max-width: 280px; margin: 7px 0 7px; font-size: 25px; line-height: 1.1; letter-spacing: -.85px; }
.marketplace-intro p { max-width: 300px; margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.marketplace-kicker, .market-view-kicker { display: block; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.05px; }
.marketplace-categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-bottom: 18px; }
.marketplace-categories button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface-raised); font-size: 9px; font-weight: 600; cursor: pointer; }
.marketplace-categories button > span { color: var(--accent); font-size: 16px; line-height: 1; }
.marketplace-feature { display: grid; grid-template-columns: 1fr 108px; align-items: stretch; width: 100%; min-height: 135px; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: #e2dffe; color: #3c315b; text-align: left; cursor: pointer; }
.marketplace-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 15px 0 15px 17px; }
.marketplace-feature-copy small { font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.marketplace-feature-copy strong { margin: 9px 0 6px; font-size: 19px; line-height: 1.1; letter-spacing: -.5px; }
.marketplace-feature-copy > span { max-width: 150px; font-size: 10px; line-height: 1.35; }
.marketplace-feature > img { width: 108px; height: 100%; min-height: 135px; object-fit: cover; object-position: center; }
.marketplace-hub { grid-template-columns: 1fr 104px; min-height: 154px; background: #3c315b; color: #fffdf8; }
.marketplace-hub .marketplace-feature-copy { padding-right: 4px; }
.marketplace-hub .marketplace-feature-copy > span { max-width: 190px; color: #e2dffe; }
.marketplace-hub-map { position: relative; display: block; min-height: 154px; overflow: hidden; background: #ab9ff2; }
.marketplace-hub-map::before, .marketplace-hub-map::after { content: ''; position: absolute; border: 1px solid #3c315b55; border-radius: 50%; }
.marketplace-hub-map::before { inset: 18px -35px; }.marketplace-hub-map::after { inset: 42px -12px; }
.marketplace-hub-map i { position: absolute; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #fffdf8; color: #3c315b; font-style: normal; font-size: 17px; }
.marketplace-hub-map i:nth-child(1) { left: 12px; top: 22px; }.marketplace-hub-map i:nth-child(2) { right: 11px; top: 60px; }.marketplace-hub-map i:nth-child(3) { left: 19px; bottom: 18px; }
.marketplace-heading, .market-view-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 9px; }
.marketplace-heading h3, .market-view-heading h3 { margin: 0; font-size: 17px; }
.marketplace-heading button, .market-view-heading button { border: 0; padding: 7px 0; background: none; color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.marketplace-shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.market-product { min-width: 0; padding: 0 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; }
.market-product img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e2dffe; }
.market-product-name, .market-product-price { display: block; padding: 0 9px; }
.market-product-name { margin: 9px 0 5px; min-height: 26px; font-size: 11px; font-weight: 600; line-height: 1.2; }
.market-product-price { color: var(--muted); font-size: 11px; }
.marketplace-discovery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.marketplace-discovery-grid button { display: flex; flex-direction: column; align-items: flex-start; min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; }
.marketplace-symbol { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 9px; background: #ab9ff2; color: #3c315b; font-size: 17px; line-height: 1; }
.marketplace-discovery-grid strong { font-size: 11px; line-height: 1.2; }
.marketplace-discovery-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.marketplace-destinations { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); }
.marketplace-destinations button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.marketplace-destinations button:last-child { border-bottom: 0; }
.marketplace-destinations .marketplace-symbol { flex: 0 0 30px; margin: 0; }
.marketplace-destinations button > span:nth-child(2) { flex: 1; min-width: 0; }
.marketplace-destinations strong, .marketplace-destinations small { display: block; }
.marketplace-destinations strong { font-size: 11px; }.marketplace-destinations small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.marketplace-destinations b { color: var(--accent); font-size: 14px; }
.marketplace-shop-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 82px; padding: 8px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-raised); color: var(--ink); text-align: left; cursor: pointer; }
.marketplace-shop-row img { width: 66px; height: 66px; flex: 0 0 66px; border-radius: 12px; object-fit: cover; }
.marketplace-shop-row > span { flex: 1; min-width: 0; }.marketplace-shop-row small, .marketplace-shop-row strong, .marketplace-shop-row em { display: block; }
.marketplace-shop-row small { color: var(--accent); font-size: 7px; font-weight: 700; letter-spacing: .6px; }.marketplace-shop-row strong { margin: 4px 0; font-size: 12px; }.marketplace-shop-row em { color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.3; }.marketplace-shop-row b { color: var(--accent); }

/* Full shop and concept screens live in the existing wallet detail panel. */
.detail-panel:has(.market-view) { padding: 16px 20px 28px; }
.market-view { padding-bottom: 20px; }
.market-view-kicker { margin: 3px 0 13px; }
.market-store-hero { position: relative; display: flex; min-height: 184px; overflow: hidden; border-radius: 20px; background: #e2dffe; color: #3c315b; }
.market-store-hero > img { position: absolute; right: 0; top: 0; height: 100%; width: 54%; object-fit: cover; object-position: center; }
.market-store-hero > div { position: relative; z-index: 1; width: 59%; padding: 18px 6px 17px 16px; background: linear-gradient(90deg,#e2dffe 78%,#e2dffe00); }
.market-store-ghost { display: block; width: 22px; height: 22px; }
.market-store-hero h3 { margin: 20px 0 6px; font-size: 20px; line-height: 1.05; letter-spacing: -.5px; }
.market-store-hero p { margin: 0; color: #3c315b; font-size: 10px; line-height: 1.4; }
.market-view-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.market-official-link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; }
.market-back { margin: 0 0 17px; padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.market-product-hero { display: block; width: 100%; max-height: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #e2dffe; margin-bottom: 18px; }
.market-product-title { margin: 4px 0 9px; font-size: 25px; line-height: 1.1; letter-spacing: -.7px; }
.market-product-total { display: block; color: var(--ink); font-size: 18px; }
.market-product-description { margin: 10px 0 17px; }
.market-product-actions { display: flex; gap: 8px; }
.market-primary, .market-secondary { width: 100%; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
.market-primary { background: #ab9ff2; color: #1c1c1c; }
.market-primary:disabled { background: var(--surface-raised); color: var(--muted); cursor: default; }
.market-primary.market-sign-button:disabled { margin-top: 22px; background: #ab9ff2; color: #1c1c1c; opacity: 1; }
.market-secondary { margin-top: 13px; background: var(--surface-raised); color: var(--accent); }
.market-save { flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--accent); font-size: 24px; cursor: pointer; }
.market-checkout-product { display: flex; align-items: center; gap: 9px; padding: 10px 0 15px; border-bottom: 1px solid var(--line); }
.market-checkout-product img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.market-checkout-product div { flex: 1; min-width: 0; }
.market-checkout-product strong, .market-checkout-product small { display: block; }
.market-checkout-product strong { font-size: 11px; }
.market-checkout-product small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.market-checkout-product b { font-size: 12px; }
.market-checkout-line { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.market-checkout-line strong { max-width: 104px; color: var(--ink); text-align: right; }
.market-checkout-total { color: var(--ink); font-weight: 700; }
.market-payment-identity { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.market-payment-identity img { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #9886e5; }
.market-browser { margin-top: 16px; }
.market-browser-bar { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--muted); font-size: 11px; }
.market-browser-bar .ui-icon { width: 14px; height: 14px; }
.market-browser-bar a { margin-left: auto; color: var(--accent); font-size: 18px; text-decoration: none; }
.market-gaming-workspace, .market-social-workspace { min-height: 360px; margin-top: 12px; padding: 24px 18px; border-radius: 16px; background: #fff; color: #202124; text-shadow: none; }
.market-social-workspace > img { display: block; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; }
.market-browser h3 { margin: 0 0 22px; font-size: 24px; line-height: 1.15; letter-spacing: -.6px; }
.market-gaming-workspace { background: #171d25; color: #fff; }
.market-gaming-workspace > img { width: 112px; height: 35px; object-fit: contain; margin-bottom: 32px; }
.market-gaming-workspace p { color: #c7d5e0; font-size: 12px; }
.market-gaming-credit { display: flex; justify-content: space-between; align-items: center; padding: 20px; margin: 22px 0; border: 1px solid #52697f; border-radius: 12px; color: #c7d5e0; }
.market-gaming-credit strong { font-size: 32px; color: #fff; }.market-gaming-credit span { font-size: 13px; }
.market-social-workspace { background: #111; color: #fff; }.market-social-tabs { display: flex; gap: 15px; margin: 36px 0; color: #ccc; font-size: 12px; }
.market-social-workspace a.market-primary { display: block; text-align: center; text-decoration: none; }
.market-concept-card { display: block; width: 100%; margin: 10px 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-raised); color: var(--ink); text-align: left; }
.market-concept-card .marketplace-symbol { margin-bottom: 13px; }
.market-concept-card strong { display: block; font-size: 13px; }
.market-concept-card p { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.market-concept-action { cursor: pointer; }
.market-pack-stage { display: grid; place-items: center; min-height: 250px; margin: 18px 0; border-radius: 19px; background: var(--surface-raised); }
.market-pack-art, .market-pack-reveal { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 148px; height: 198px; padding: 18px 10px; border: 2px solid #ab9ff2; border-radius: 15px; background: #3c315b; box-shadow: 9px 9px 0 #ab9ff2; color: #fffdf8; text-align: center; }
.market-pack-art[hidden], .market-pack-reveal[hidden] { display: none; }
.market-pack-art span, .market-pack-reveal span { font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.market-pack-art strong, .market-pack-reveal strong { font-size: 65px; line-height: 1; color: #ab9ff2; }
.market-pack-art small, .market-pack-reveal small { font-size: 9px; letter-spacing: .7px; }
.market-pack-reveal { background: #e2dffe; color: #3c315b; }
.market-pack-reveal strong { color: #3c315b; }
.market-saved-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; cursor: pointer; }
.market-saved-list img { width: 43px; height: 43px; object-fit: cover; border-radius: 9px; background: #e2dffe; }
.market-saved-list span { flex: 1; font-size: 12px; font-weight: 700; }
.market-saved-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.market-empty { margin: 25px 0; padding: 20px; border-radius: 15px; background: var(--surface-raised); font-size: 12px; }
/* View selection belongs to the wallet's own settings, and works in either view. */
#phone-bezel[data-view='wallet'] { --surface: #000; --surface-raised: #202020; --ink: #f6f4f8; --muted: #aaa6ad; --line: #383838; --accent: #ab9ff2; }
#phone-bezel[data-view='wallet'] .palette-settings { display: none; }
.view-settings { padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.view-settings > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.view-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.view-option-label { display: grid; place-items: center; flex: 1; color: var(--muted); opacity: .64; }
.view-option-label.is-selected { color: var(--ink); opacity: 1; }
.view-option-label .ui-icon, .view-option-label img { width: 22px; height: 22px; object-fit: contain; }
#view-switch { position: relative; flex: 0 0 58px; width: 58px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; }
.view-switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ab9ff2; box-shadow: 0 1px 4px #3c315b55; transition: transform .25s ease; }
#view-switch[aria-checked='true'] .view-switch-thumb { transform: translateX(26px); }
#view-switch::after { content: ''; position: absolute; inset: -5px; border: 2px solid #ab9ff280; border-radius: 24px; opacity: 0; pointer-events: none; }
#view-switch.is-guided-pulse::after { animation: view-switch-pulse 1.15s ease-out .25s 1; }
@keyframes view-switch-pulse { 0% { opacity: 0; transform: scale(.96); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { #view-switch.is-guided-pulse::after { animation: none; } }

#phone-bezel[data-palette='dark'] .marketplace-hub, #phone-bezel[data-palette='dark'] .market-pack-art { color: #e2dffe; }
#phone-bezel[data-palette='dark'] .marketplace-hub-map i { background: #e2dffe; color: #3c315b; }
#phone-bezel[data-palette='dark'] .preview-chips .selected, #phone-bezel[data-palette='dark'] .market-primary, #phone-bezel[data-palette='dark'] .marketplace-symbol { color: #3c315b; }
#phone-bezel[data-view='wallet'], #phone-bezel[data-view='wallet'][data-palette] { --surface: #000; --surface-raised: #202020; --ink: #f6f4f8; --muted: #aaa6ad; --line: #383838; --accent: #ab9ff2; }
.palette-settings { margin: 12px 0 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-raised) 55%, transparent); }
.palette-heading strong, .palette-heading small { display: block; }
.palette-heading strong { font-size: 12px; }.palette-heading small { margin: 4px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.palette-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.palette-option { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 46px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 9px; line-height: 1.25; text-align: left; cursor: pointer; }
.palette-option[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.palette-swatch { flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #1c1c1c2b; border-radius: 7px; }
.swatch-light { background: linear-gradient(135deg,#fffdf8 54%,#3c315b 54%); }.swatch-dark { background: linear-gradient(135deg,#3c315b 54%,#e2dffe 54%); }
.swatch-blue { background: linear-gradient(135deg,#4a87f2 54%,#ffd13f 54%); }.swatch-green { background: linear-gradient(135deg,#2ec08b 54%,#ff7243 54%); }
.palette-hint { margin: 9px 0 0 !important; padding: 0 !important; font-size: 9px !important; }

/* Material finish. The 375 x 812 display and all interaction geometry stay intact. */
#phone-outer::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--phone-r) + 10px);
  border: 1px solid #a7a1b3;
  background: linear-gradient(112deg, #dad5e0 0%, #6a6277 9%, #292630 25%, #8e859b 46%, #d5cfdf 49%, #625a70 54%, #24212b 76%, #a29aa9 94%, #e2dce7 100%);
  box-shadow: inset 0 0 0 2px #3c3744, inset 0 0 0 5px #0a090e,
    0 2px 3px #0008, 0 18px 28px -12px #000b, 0 46px 70px -24px #0009;
  pointer-events: none;
}
#phone-outer::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 4px solid #09090d;
  border-radius: calc(var(--phone-r) + 4px);
  box-shadow: 0 0 0 1px #cfc6e033, inset 0 0 0 1px #ffffff24;
  z-index: 35;
  pointer-events: none;
}
#phone-outer > .phone-key {
  position: absolute;
  left: -13px;
  width: 4px;
  border: 1px solid #332e3b;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #514958, #d2cadb 45%, #6c6279);
  box-shadow: inset 0 1px 1px #ffffff75, 0 2px 2px #0005;
  pointer-events: none;
}
.phone-key-action { top: 104px; height: 25px; }
.phone-key-volume-up { top: 154px; height: 49px; }
.phone-key-volume-down { top: 217px; height: 49px; }
#phone-outer > .phone-key-power {
  left: auto;
  right: -13px;
  top: 178px;
  height: 77px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #6c6279, #c6bdce 55%, #514958);
}
#phone-outer #phone-bezel {
  border-radius: var(--phone-r) !important;
  box-shadow: 0 0 0 1px #000 !important;
}
#phone-bezel .notch {
  display: block !important;
  top: 8px;
  width: 112px;
  height: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, #07070a, #0d0c11);
  box-shadow: inset 0 1px 1px #ffffff14, 0 1px 1px #ffffff0c;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
#phone-bezel .notch::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 11px;
  width: 39px;
  height: 3px;
  border-radius: 4px;
  background: #16141c;
  box-shadow: inset 0 1px 1px #000;
}
#phone-bezel .notch::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1d1b27;
  background: radial-gradient(circle at 35% 30%, #595975 0 8%, #24243d 20%, #0a0a13 65%);
  box-shadow: 0 0 0 1px #050508;
}

/* The existing Phantom palette supplies every screen surface. */
#phone-bezel, .phone-inner {
  --surface-edge: color-mix(in srgb, var(--ink) 12%, transparent);
  --surface-light: color-mix(in srgb, var(--ink) 7%, transparent);
  --surface-shadow: color-mix(in srgb, var(--surface) 55%, #08060e);
}
#phone-bezel :is(.section-row, .tokens-row, button.card, .market-spotlight, .prediction-feature, .upcoming-grid > div, .price-card, .market-carousel button, .market-product, .marketplace-shop-row, .activity-preview) {
  border-color: var(--surface-edge);
  background-image: linear-gradient(155deg, var(--surface-light), transparent 65%);
  box-shadow: inset 0 1px 0 #ffffff0b, 0 3px 8px -6px var(--surface-shadow);
}
#phone-bezel :is(.section-row, .tokens-row)[aria-expanded='true'] {
  border-color: var(--accent);
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 #ffffff12;
}
#phone-bezel :is(.privacy-btn, .account-tool, .feature-icon, .row-icon-box, .setting-control, .market-secondary, .market-save) {
  background-image: linear-gradient(150deg, #ffffff0b, #00000008);
  box-shadow: inset 0 1px 0 #ffffff12, inset 0 0 0 1px var(--surface-edge), 0 2px 3px #00000008;
}
#phone-bezel button.search-bar {
  border-color: var(--surface-edge);
  background: color-mix(in srgb, var(--surface-raised) 60%, var(--surface));
  box-shadow: inset 0 1px 3px #0000000c, 0 1px 0 #ffffff08;
}
#phone-bezel :is(button.ghost-corner, .wallet-chip, .profile-account-mark, .profile-top > img) {
  background-image: linear-gradient(145deg, #ffffff2e, transparent 55%, #35245c24);
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 0 0 1px #ffffff18, 0 3px 7px #110b2424;
}
#phone-bezel :is(button.fab, .market-primary:not(:disabled)) {
  background-image: linear-gradient(155deg, #ffffff24, transparent 58%, #30204418);
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #33234b24, 0 5px 12px #0c081d24;
}
#phone-bezel .balance-amt { letter-spacing: -2.2px; text-shadow: 0 1px 1px #0000000b; }
#phone-bezel .balance-change { font-variant-numeric: tabular-nums; }
#phone-bezel .bottom-nav {
  background: var(--surface);
  background-image: linear-gradient(180deg, var(--surface-light), transparent 80%);
  border-top-color: var(--surface-edge);
  box-shadow: 0 -6px 18px #0b07100a;
}
#phone-bezel .nav-item[aria-selected='true'] {
  box-shadow: inset 0 1px 0 #ffffff18, inset 0 0 0 1px var(--surface-edge), 0 2px 5px #0000000b;
}
#phone-bezel .profile-drawer {
  background-image: linear-gradient(120deg, var(--surface-light), transparent 55%);
  box-shadow: -1px 0 0 var(--surface-edge), -18px 0 40px #08050e40;
}
#phone-bezel :is(#cash-overlay, #tokens-overlay) {
  box-shadow: 0 20px 32px -12px #08050e55, inset 0 -1px 0 var(--surface-edge);
}
#phone-bezel .cash-card {
  background-image: linear-gradient(120deg, #ffffff55, transparent 38%, #ffffff30 51%, transparent 70%);
  box-shadow: inset 0 1px 0 #ffffff70, 0 6px 10px -5px #15101f55;
}
#phone-bezel :is(.market-product-hero, .market-store-hero) {
  box-shadow: 0 0 0 1px var(--surface-edge), 0 7px 16px -10px #100b2040;
}
#phone-bezel :is(.legacy-cash, .legacy-asset, .legacy-info-row, .legacy-predictions > div) {
  background-image: linear-gradient(145deg, #ffffff04, transparent 65%);
  box-shadow: inset 0 1px 0 #ffffff09, inset 0 0 0 1px #ffffff04;
}
#phone-bezel :is(.legacy-tab[aria-pressed='true'], .legacy-avatar) {
  box-shadow: inset 0 1px 0 #ffffff38, 0 2px 5px #0002;
}
@media (hover: hover) {
  #phone-bezel :is(button.card, .account-tool, .privacy-btn, .market-carousel button, .market-save):hover {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 3px 9px #09061218;
  }
}
#phone-bezel :is(button.card, .account-tool, .privacy-btn, button.fab, button.ghost-corner, .market-primary:not(:disabled)):active {
  box-shadow: inset 0 2px 4px #160e2b30;
}

/* Editorial polish, retaining the existing layout, typefaces, and copy. */
.ph-title { gap: 12px; }
.ph-title-main { letter-spacing: -.045em; text-shadow: 0 2px 0 #ab9ff21a; }
.ph-title-sub { line-height: 1.06; text-wrap: balance; }
.ph-label-sm { color: #b8acd3; letter-spacing: 2.6px; line-height: 1.7; }
.ph-nav-contact { color: #c0b3df; }
.ph-card {
  border: 1px solid #ab9ff226;
  border-radius: 20px;
  background: linear-gradient(145deg, #ab9ff210, #ab9ff203);
  box-shadow: inset 0 1px 0 #ffffff0a, 0 10px 25px -20px #0008;
}
.ph-card-num { color: #ab9ff2; }
.ph-card-body { color: #c6bdd7; }
.ph-divider-label { color: #b0a1cc; letter-spacing: 2px; }
.ph-divider-line { background: #ab9ff230; }
.pf-link, .pf-role { color: #b7a9ce; }
.pf-note { color: #a99bbd; }
.closing-copy > img { filter: drop-shadow(0 5px 12px #ab9ff226); }
@media (max-width: 600px) {
  .ph-title-main { font-size: clamp(58px, 14vw, 84px); }
  .ph-title-sub { font-size: clamp(28px, 7vw, 42px); }
}
