/* ==========================================================
   THORWALLET - /walletconnect: the hero and its walkthrough scene.
   The scene is one canvas in design pixels (1260 x 700 with both
   devices, 360 x 620 with one device at a time below 640 px),
   scaled to its box by CSS alone (tan(atan2()) of two lengths is
   a unitless ratio), so it paints at the right size before any
   script runs. walletconnect.js only moves layers.
   The devices are product shots: dark in both themes, and
   left-to-right inside in right-to-left languages.
   ========================================================== */

/* ---------- hero: short, so the scene starts high (at 1440 x 900 and 1366 x 768 at least 70 % of it shows at load) ---------- */
.wc-hero { padding: 86px 0 0; position: relative; overflow: clip; }
.wc-copy { max-width: 1080px; margin: 0 auto; text-align: center; }
.wc-copy .crumbs ol { justify-content: center; }
.wc-copy .crumbs { margin-bottom: 8px; }
.wc-copy .display { font-size: clamp(2.3rem, 2.4vw + 1.3rem, 3.7rem); text-wrap: balance; }
.wc-copy .display br { display: none; }
.wc-copy .display .outline-accent { display: inline-block; }
.wc-copy .lead { max-width: 46em; margin: 12px auto 0; color: var(--text-mid); text-wrap: pretty; }
.wc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 16px; }
@media (max-width: 700px) { .wc-hero { padding-top: 92px; } .wc-copy .display br { display: inline; } .wc-copy .lead { margin-top: 12px; } }
.wc-quiet { display: inline-flex; align-items: center; gap: 4px; color: var(--text-mid); font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 10px 2px; border-radius: 8px; }
.wc-quiet svg { width: 18px; height: 18px; transition: transform var(--dur-micro) var(--ease); }
.wc-quiet:hover { color: var(--text-hi); }
.wc-quiet:hover svg { transform: translateX(3px); }
[dir="rtl"] .wc-quiet svg { transform: scaleX(-1); }
[dir="rtl"] .wc-quiet:hover svg { transform: scaleX(-1) translateX(3px); }
.wc-quiet:focus-visible, .wc-step:focus-visible, .wc-play:focus-visible { outline: 2px solid var(--accent-from); outline-offset: 3px; }

/* ---------- scene ----------
   The scene is wider than the text column on big screens (up to 1500 px) and never taller than the viewport under
   the header: the box is capped by height too. --cw / --ch is the canvas in design px, --wc-chrome what has to fit
   beside the stage (the 77 px header, the rail, the caption, air). The scene is the size container (wcs): its width
   is not touched by the cap, so the one-device switch at 900 px never flips because of the cap. */
.wc-scene { --cw: 1394; --ch: 710; --wc-chrome: 200px; --wc-veil: 0.42; container: wcs / inline-size; position: relative; width: min(1500px, 100vw - 64px); max-width: none; margin-block: 10px 0; margin-inline: calc((100% - min(1500px, 100vw - 64px)) / 2); }
[data-theme="light"] .wc-scene { --wc-veil: 0.2; }
@media (max-width: 1100px) { .wc-scene { width: calc(100vw - 32px); margin-inline: calc((100% - 100vw + 32px) / 2); } }
.wc-stage { position: relative; }
.wc-stage::before { content: ""; position: absolute; inset: 4% 6% 0; pointer-events: none; background: radial-gradient(50% 55% at 38% 52%, rgba(0, 204, 255, 0.10), transparent 70%), radial-gradient(28% 40% at 86% 56%, rgba(51, 255, 153, 0.08), transparent 70%); filter: blur(10px); }
[data-theme="light"] .wc-stage::before { background: radial-gradient(50% 55% at 38% 52%, rgba(0, 150, 200, 0.10), transparent 70%), radial-gradient(28% 40% at 86% 56%, rgba(18, 178, 87, 0.08), transparent 70%); }
.wc-box { position: relative; width: min(100cqw, max(200px, (100svh - var(--wc-chrome)) * var(--cw) / var(--ch))); margin-inline: auto; aspect-ratio: var(--cw) / var(--ch); container: wcb / inline-size; }
.wc-js:not(.wc-rm) .wc-stage { cursor: pointer; }
.wc-canvas { position: absolute; top: 0; inset-inline-start: 0; width: calc(var(--cw) * 1px); height: calc(var(--ch) * 1px); transform-origin: 0 0; transform: scale(var(--k, tan(atan2(100cqw, calc(var(--cw) * 1px))))); }
[dir="rtl"] .wc-canvas { transform-origin: 100% 0; }
.wc-dev { position: absolute; }
/* two devices side by side: the window (0.88) and the phone, 24 px apart (the phone never grows into the window) */
.wc-dev-win { inset-inline-start: 0; top: 94px; width: 1038.4px; height: 616px; --ws: 0.88; }
.wc-dev-phone { inset-inline-start: 1062.4px; top: 27px; --pw: 330; z-index: 2; }
.wc-cam { position: absolute; inset: 0; border-radius: 12px; }
/* the phone, while it waits, rests a little into the page (a veil in the page colour; light: a thin white one) */
.wc-veil { position: absolute; inset: 0; border-radius: 16.1% / 7.8%; background: var(--bg-base); opacity: 0; pointer-events: none; z-index: 5; }
[data-theme="light"] .wc-veil { background: #FFFFFF; }
.wc-dev, .wc-veil, .wc-cam .wc-win, .wp-l, .wc-pulse, .wc-ring, .ww-cursor, .ww-click, .wp-tap, .ww-bd { will-change: transform, opacity; }
.wc-pulse { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 30;
  background: radial-gradient(circle, #FFFFFF 0 22%, #6FF3FF 34%, rgba(0, 204, 255, 0.45) 58%, rgba(0, 204, 255, 0) 72%); box-shadow: 0 0 22px 6px rgba(0, 204, 255, 0.35); }
.wc-ring { position: absolute; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 2px solid rgba(80, 230, 255, 0.85); opacity: 0; pointer-events: none; z-index: 29; }

/* ---------- two variants, one clock: the scene's data-variant shows one window and the phone's matching texts ---------- */
[data-v] { display: contents; }
[data-v="dapp"], [data-variant="dapp"] [data-v="terminal"] { display: none; }
[data-variant="dapp"] [data-v="dapp"] { display: contents; }
.wc-scene[data-variant="dapp"] .wc-win[data-win="terminal"], .wc-scene:not([data-variant="dapp"]) .wc-stage .wc-win[data-win="dapp"] { visibility: hidden; }

/* the switch: a segmented tab list (only with script: without it the strip shows the Terminal). Two devices: it sits
   above the window, in the band the canvas keeps free for it; one device: above the stage. The thumb takes the size
   and place of the selected tab (walletconnect.js sets --tx, --ty, --tw, --th), so long labels may wrap. */
/* Its place: centred in the band (--band, 94 design px) when that leaves 16 px under it, else 16 px above the window;
   when the band is lower than the switch plus 24 px (about 900 to 1250 px wide), the box moves down by the rest
   (--lift), so the gap to the window is never under 16 px and 8 px stay above the switch. --sh is the switch's height (52 px, set by the script). */
.wc-scene { --bw: min(100cqw, max(200px, (100svh - 200px) * 1394 / 710)); --band: calc(var(--bw) * 94 / 1394); --lift: max(0px, var(--sh, 52px) + 24px - var(--band)); }
.wc-scene.wc-js .wc-box { margin-top: var(--lift); }
.wc-switch { position: absolute; z-index: 6; top: calc(var(--lift) + min(var(--band) / 2, var(--band) - 16px - var(--sh, 52px) / 2)); inset-inline-start: calc(50% + var(--bw) * (519.2 / 1394 - 0.5)); translate: -50% -50%;
  display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: min(100%, 520px); padding: 3px; border-radius: 25px; background: var(--surface); border: 1px solid var(--hairline-strong); isolation: isolate; }
[dir="rtl"] .wc-switch { translate: 50% -50%; }
.wc-scene:not(.wc-js) .wc-switch { display: none; }
.wc-tab { position: relative; z-index: 1; flex: 1 1 auto; min-height: 44px; padding: 6px 20px; border: 0; border-radius: 22px; background: none; color: var(--text-mid); font: inherit; font-size: 0.94rem; font-weight: 600; line-height: 1.25; cursor: pointer; transition: color var(--dur-micro) var(--ease); }
.wc-tab:hover { color: var(--text-hi); }
.wc-tab[aria-selected="true"] { color: var(--text-hi); }
.wc-tab:focus-visible { outline: 2px solid var(--accent-from); outline-offset: 2px; }
.wc-switch .th { position: absolute; z-index: 0; left: 0; top: 0; width: var(--tw, calc(50% - 3px)); height: var(--th, 44px); transform: translate(var(--tx, 3px), var(--ty, 3px)); border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-line), 0 6px 18px -10px rgba(0, 0, 0, 0.6); transition: transform 280ms var(--ease), width 280ms var(--ease); }
[data-theme="light"] .wc-switch .th { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--accent-line), 0 4px 14px -8px rgba(20, 45, 75, 0.35); }
[data-theme="light"] .wc-switch { background: var(--surface-2); }
@media (max-width: 420px) { .wc-tab { padding: 6px 12px; font-size: 0.9rem; } }
/* both captions sit in one cell: the taller one sets the height, so switching never moves the page */
.wc-step .c { display: grid; }
.wc-step .c > [data-cv] { display: block; grid-area: 1 / 1; }
.wc-scene[data-variant="dapp"] .wc-step .c > [data-cv="terminal"], .wc-scene:not([data-variant="dapp"]) .wc-step .c > [data-cv="dapp"] { visibility: hidden; }

/* one device at a time below 900 px of scene: the phone in the middle, the computer seen up close (a crop that
   follows the action; walletconnect.js tests the same 900) */
@container wcs (max-width: 899px) {
  .wc-box { --cw: 360; --ch: 690; --wc-chrome: 262px; }
  .wc-scene.wc-js .wc-box { margin-top: 0; }
  .wc-switch { position: relative; top: auto; inset-inline-start: auto; translate: none; margin: 0 auto 12px; max-width: 100%; }
  [dir="rtl"] .wc-switch { translate: none; }
  .wc-dev-win { inset-inline-start: 0; top: 58px; width: 360px; height: 574px; --ws: 0.82; }
  .wc-veil { display: none; }
  .wc-cam { overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12); }
  .wc-cam .wc-win { box-shadow: none; border-radius: 0; }
  /* the window chrome is pinned to the crop (walletconnect.js moves it with the pan) */
  .wc-cam .ww-titlebar { right: auto; width: 439.03px; z-index: 70; }
  .wc-cam .wd-url { width: 196px; }
  .wc-cam .wd-hist { display: none; }
  .wc-dev-phone { inset-inline-start: 15px; top: 3px; opacity: 0; transform-origin: 50% 50%; }
}
@media (max-width: 420px) { .wc-scene { width: calc(100vw - 24px); margin-inline: calc((100% - 100vw + 24px) / 2); } }

/* ---------- the phone: the site's device frame around a 375 x 812 screen ---------- */
.wc-phone { width: calc(var(--pw) * 1px); }
.wc-phone .device-frame { width: 100%; margin: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 40px 70px -34px rgba(0, 0, 0, 0.75); }
[data-theme="light"] .wc-phone .device-frame { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 34px 60px -30px rgba(20, 45, 75, 0.45); }
.wc-phone .app-screen { background: #121F32; }
.wp { position: absolute; left: 0; top: 0; width: 375px; height: 812px; transform-origin: 0 0; transform: scale(calc(var(--pw) * 0.0024449)); overflow: hidden;
  font-family: "Montserrat", -apple-system, sans-serif; font-weight: 500; color: #FFFFFF; background: #121F32; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; text-align: left; letter-spacing: 0; line-height: 1.25; }
.wp svg { display: block; }
.wp-l { position: absolute; inset: 0; }
.wp-status { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 46px; font-size: 16px; font-weight: 700; pointer-events: none; }
.wp-status i { display: flex; align-items: center; gap: 6px; }
.wp-status svg { height: 12px; width: auto; }
.wp-homebar { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #E8EEF3; z-index: 41; opacity: 0.9; }
.wp-tap { position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); opacity: 0; z-index: 45; pointer-events: none; }

/* home (app 3.17: Buy, Swap, Address, More) */
.wp-home { background: #121F32; }
.wp-sq { width: 39px; height: 39px; flex: none; border-radius: 12px; background: #1C3046; border: 1px solid #243A54; display: grid; place-items: center; color: #D2DEE2; }
.wp-sq svg { width: 21px; height: 21px; }
.wp-top { position: absolute; left: 8px; right: 9px; top: 57px; display: flex; gap: 9px; }
.wp-search { flex: 1; height: 39px; border-radius: 12px; background: #1C3046; border: 1px solid #243A54; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 13.5px; color: #ABBFC7; }
.wp-search svg { width: 20px; height: 20px; }
.wp-name { position: absolute; left: 0; right: 0; top: 135px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; color: #D2DEE2; }
.wp-name svg { width: 15px; height: 15px; }
.wp-bal { position: absolute; left: 0; right: 0; top: 160px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.wp-bal small { font-size: 22px; letter-spacing: 0; }
.wp-bal svg { width: 26px; height: 26px; color: #7E9EA8; margin-top: 4px; }
.wp-tiles { position: absolute; left: 14px; right: 14px; top: 232px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wp-tile { height: 69px; border-radius: 13px; background: #1C3046; border: 1px solid #243A54; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: #F2F5F8; }
.wp-tile svg { width: 25px; height: 25px; color: #57A4FF; }
.wp-tabs { position: absolute; left: 14px; right: 14px; top: 334px; display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; color: #57A4FF; }
.wp-tabs span { opacity: 0.85; }
.wp-tabs .on { font-weight: 700; opacity: 1; position: relative; }
.wp-tabs .on::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 17px; height: 3px; margin-left: -8.5px; border-radius: 2px; background: #3D86F5; }
.wp-tabs i { flex: 1; }
.wp-tabs .wp-sq.s { width: 35px; height: 36px; opacity: 1; color: #FFFFFF; }
.wp-tabs .wp-sq.s svg { width: 19px; height: 19px; }
.wp-tabs .wp-sq.s + .wp-sq.s { margin-inline-start: -13px; }
.wp-list { position: absolute; left: 14px; right: 14px; top: 386px; }
.wp-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.wp-coin { position: relative; flex: none; display: block; }
.wp-coin > svg { width: 100%; height: 100%; border-radius: 50%; }
.wp-coin .nb { position: absolute; right: -3px; bottom: -3px; width: 44%; height: 44%; border-radius: 50%; box-shadow: 0 0 0 2px #121F32; overflow: hidden; background: #121F32; }
.wp-coin .nb svg { width: 100%; height: 100%; }
.wp-row .nm { flex: 1; min-width: 0; }
.wp-row .nm b { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; }
.wp-ver { width: 14px; height: 14px; display: inline-block !important; }
.wp-row .nm span, .wp-row .vl span { display: block; font-size: 12.5px; color: #ABBFC7; margin-top: 4px; }
.wp-row em { font-style: normal; }
.wp-row .neg { color: #E5484D; }
.wp-row .pos { color: #31FD9D; }
.wp-row .dim { color: #7E9EA8; }
.wp-row .vl { text-align: right; }
.wp-row .vl b { display: block; font-size: 14.5px; font-weight: 600; }
.wp-bar { position: absolute; left: 14px; right: 14px; top: 728px; height: 64px; border-radius: 32px; background: rgba(27, 44, 67, 0.94); border: 1px solid #243A54; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; box-shadow: 0 -10px 30px -10px rgba(10, 16, 28, 0.9); }
.wp-tab { position: relative; width: 62px; height: 52px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; color: #8EA3B4; }
.wp-tab svg { width: 22px; height: 22px; }
.wp-tab.on { color: #57A4FF; background: #213A5E; }
.wp-tab.mid { justify-content: flex-end; padding-bottom: 3px; }
.wp-tab.mid span { position: absolute; left: 50%; top: -17px; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; background: #2A7AF7; display: grid; place-items: center; color: #FFFFFF; box-shadow: 0 8px 20px -6px rgba(42, 122, 247, 0.8); }

/* More sheet (3.17): Tools, Rewards and Tiers, THORChain; 422 pt, measured on ref app-3.17-more-sheet.png */
.wp-shade { background: rgba(18, 18, 19, 0.94); opacity: 0; }
.wp-sheet { top: auto; height: 422px; background: #18293D; border-radius: 22px 22px 0 0; opacity: 0; }
.wp-grab { position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: #2E4460; }
.wp-sh-h { position: absolute; left: 16px; right: 14px; top: 34px; display: flex; align-items: center; justify-content: space-between; }
.wp-sh-h b { font-size: 20px; font-weight: 600; }
.wp-sh-h svg { width: 22px; height: 22px; }
.wp-more { display: flex; flex-direction: column; padding: 72px 16px 0; }
.wp-sec { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 11px; font-weight: 400; letter-spacing: 2.2px; text-transform: uppercase; color: #7E9EA8; }
.wp-sec svg { width: 15px; height: 15px; color: #57A4FF; }
.wp-mrow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 3px 0 7px; }
.wp-mt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wp-mt .box { width: 52px; height: 52px; border-radius: 12px; background: #1C3046; border: 1px solid #243A54; display: grid; place-items: center; color: #57A4FF; }
.wp-mt .box svg { width: 24px; height: 24px; }
.wp-mt.wc .box svg { width: 25px; height: 15px; }
.wp-mt .lb { font-size: 13px; color: #D2DEE2; }
.wp-mt.off { opacity: 0.4; }

/* WalletConnect screen */
.wp-wc { background: #121F32; opacity: 0; }
.wp-hd { position: absolute; left: 10px; right: 0; top: 56px; height: 44px; display: flex; align-items: center; gap: 4px; }
.wp-hd svg { width: 26px; height: 26px; }
.wp-hd b { font-size: 20px; font-weight: 500; }
.wp-hd i { flex: 1; }
.wp-hd .reset { font-size: 14px; font-weight: 400; color: #DD4B4B; padding: 8px 16px; }
.wp-empty { position: absolute; left: 24px; right: 24px; top: 380px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #BDC1C2; }
.wp-empty svg { width: 33px; height: 37px; }
.wp-empty p { margin: 0; font-size: 14px; line-height: 20px; text-align: center; color: #ABBFC7; }
.wp-sess { position: absolute; left: 16px; right: 16px; top: 116px; height: 80px; display: flex; align-items: center; gap: 10px; opacity: 0; }
.wp-sess .ic { width: 60px; height: 60px; border-radius: 50%; background: #0B1B2C; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px #243A54; }
.wp-sess .ic img { width: 34px; height: 34px; object-fit: contain; }
.wp-sess .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wp-sess .tx b { font-size: 14px; font-weight: 600; color: #D2DEE2; }
.wp-sess .tx span { font-size: 14px; font-weight: 400; }
.wp-sess svg { width: 16px; height: 16px; color: #ABBFC7; }
.wp-pads { position: absolute; right: 8px; bottom: 42px; display: flex; gap: 20px; }
.wp-pad { width: 48px; height: 48px; border-radius: 12px; background: #18293D; border: 1px solid #1C3046; display: grid; place-items: center; color: #FFFFFF; }
.wp-pad svg { width: 40px; height: 40px; }

/* the scanner: the camera sees the Terminal's QR dialog */
.wp-scan { background: #05080C; opacity: 0; overflow: hidden; }
.wp-cam { position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 48%, #13263A 0%, #0A1522 55%, #04070B 100%); transform-origin: 50% 50%; }
.wp-cam .scr { position: absolute; left: -40px; right: -40px; top: 150px; height: 520px; border-radius: 18px; background: linear-gradient(180deg, #0E1E30, #0B1828); box-shadow: 0 0 0 10px #05080C, 0 0 120px 10px rgba(0, 120, 200, 0.12); transform: perspective(900px) rotateX(6deg) rotateY(-6deg) rotateZ(-2deg); }
.wp-cam .dlg { position: absolute; left: 50%; top: 40px; width: 232px; margin-left: -116px; padding: 12px 14px 16px; border-radius: 22px; background: #18191A; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); text-align: center; }
.wp-cam .dlg b { display: block; font-size: 11px; font-weight: 600; color: #E4E7E7; margin-bottom: 9px; }
.wp-cam .qr { position: relative; display: block; width: 204px; height: 204px; padding: 9px; border-radius: 14px; background: #FFFFFF; }
.wp-cam .qr > img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.wp-cam .ln { display: block; width: 150px; height: 6px; margin: 12px auto 0; border-radius: 3px; background: rgba(228, 231, 231, 0.55); }
.wp-mask { position: absolute; left: 62.5px; top: 281px; width: 250px; height: 250px; box-shadow: 0 0 0 600px rgba(0, 0, 0, 0.4); }
.wp-mask .c { position: absolute; width: 25px; height: 25px; border: 0 solid #FFFFFF; }
.wp-mask .tl { left: 0; top: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 5px; }
.wp-mask .tr { right: 0; top: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 5px; }
.wp-mask .bl { left: 0; bottom: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 5px; }
.wp-mask .br { right: 0; bottom: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 5px; }
.wp-mask .line { position: absolute; left: 8px; right: 8px; top: 0; height: 2px; background: #0097AB; box-shadow: 0 0 10px 1px rgba(0, 151, 171, 0.7); }
.wp-pill { position: absolute; left: 50%; top: 712px; width: 230px; height: 50px; margin-left: -115px; border-radius: 25px; background: #77FCBD; color: #0E1F2A; display: grid; place-items: center; font-size: 14px; font-weight: 500; }

/* "Pairing...", the approval sheet, the toast */
.wp-mshade { background: rgba(0, 0, 0, 0.6); opacity: 0; }
.wp-load { top: auto; height: 244px; background: #121F32; border-radius: 34px 34px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 14px; opacity: 0; }
.wp-spin { width: 21px; height: 21px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: #FFFFFF; }
.wp-prop { top: auto; height: 394px; padding: 16px 16px 0; background: #121F32; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; opacity: 0; box-shadow: 0 -1px 0 #1C3046; }
.wp-prop .logo { width: 60px; height: 60px; border-radius: 50%; border: 1px solid #ABBFC7; background: #0B1B2C; display: grid; place-items: center; }
.wp-prop .logo img { width: 34px; height: 34px; object-fit: contain; }
.wp-prop .nm { font-size: 14px; font-weight: 600; margin-top: 2px; }
.wp-prop .in { font-size: 12px; margin-top: 4px; }
.wp-prop .url { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #ABBFC7; margin-top: 6px; }
.wp-prop .url .vd { width: 16px; height: 16px; display: block; flex: none; }
.wp-prop .logo .dm, .wp-sess .ic .dm { width: 100%; height: 100%; display: block; border-radius: 50%; }
.wp-prop .chains { width: 100%; height: 134px; overflow: hidden; margin-top: 21px; padding: 8px 8px 0; border-radius: 12px; background: #18293D; }
.wp-prop .chains > b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.wp-prop .pls[data-v] { display: flex; flex-wrap: wrap; gap: 6px; height: 96px; overflow: hidden; }
.wp-prop .pls[data-v="dapp"], [data-variant="dapp"] .wp-prop .pls[data-v="terminal"] { display: none; }
[data-variant="dapp"] .wp-prop .pls[data-v="dapp"] { display: flex; }
.wp-prop .pls.more { -webkit-mask-image: linear-gradient(180deg, #000 62px, rgba(0, 0, 0, 0.12) 96px); mask-image: linear-gradient(180deg, #000 62px, rgba(0, 0, 0, 0.12) 96px); }
.wp-prop .pl { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 4px 10px 4px 4px; border-radius: 100px; background: #1C3046; border: 1px solid #243A54; font-size: 12px; }
.wp-prop .pl img { width: 18px; height: 18px; border-radius: 50%; background: #121F32; object-fit: cover; }
.wp-prop .btns { width: 100%; display: flex; justify-content: space-between; margin-top: 24px; }
.wp-prop .btns span { width: 48%; height: 48px; border-radius: 100px; border: 1px solid #57A4FF; display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.wp-prop .rj { color: #57A4FF; background: #121F32; }
.wp-prop .ap { color: #FFFFFF; background: #57A4FF; }   /* ModalFooter: BLUE_300 for a verified domain */
.wp-toast { inset: auto; left: 17.5px; top: 62px; width: 340px; height: 60px; border-radius: 6px; background: #18293D; border: 1px solid #24C77A; box-shadow: 0 0 10px rgba(36, 199, 122, 0.6); display: flex; align-items: center; padding: 0 20px; font-size: 14px; font-weight: 500; opacity: 0; z-index: 42; }

/* ---------- the Terminal window: 1180 x 700, the site's Terminal styles inside (terminal.css .ta) ---------- */
.wc-win { position: absolute; left: 0; top: 0; width: 1180px; height: 700px; transform-origin: 0 0; transform: scale(var(--ws)); border-radius: 14px; overflow: hidden; background: #0B1B2C; color: #FFFFFF; text-align: left;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12); font-family: var(--font-body); }
[data-theme="light"] .wc-win { box-shadow: 0 40px 80px -36px rgba(20, 45, 75, 0.55), 0 0 0 1px rgba(10, 26, 43, 0.14); }
.wc-win svg { display: block; }
.ww-titlebar { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: #13202F; border-bottom: 1px solid rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: center; }
.ww-dots { position: absolute; left: 16px; top: 12px; display: flex; gap: 8px; }
.ww-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.ww-dots i:nth-child(2) { background: #FEBC2E; }
.ww-dots i:nth-child(3) { background: #28C840; }
.ww-ttl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #E6ECF3; }
.ww-ttl img { width: 16px; height: 16px; border-radius: 4px; }
.ww-app { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; overflow: hidden; }
.wc-win .ta-scr, .wc-win .ta-nav a { transition: none; }
.wc-win .ta-logo { position: relative; }
.ww-col { margin-inline-start: auto; width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #8A9DB0; }
.ww-col svg { width: 14px; height: 14px; }
.ww-btn { position: relative; width: 144px; height: 38px; border-radius: 12px; background: #2A6BF2; color: #FFFFFF; font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px -8px rgba(42, 107, 242, 0.8); }
.ww-btn > span { position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; }
.ww-btn .b { opacity: 0; }
.ww-coin { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; }
.ww-coin > svg { width: 100%; height: 100%; display: block; }

/* start page (not connected): the Swap page of app.thorwallet.org, without its third-party logos */
.ww-start { padding: 18px 22px; }
.ww-ban { position: relative; display: flex; gap: 24px; padding: 22px 24px; border-radius: 18px; border-color: rgba(0, 204, 255, 0.16); background: radial-gradient(70% 120% at 10% 0%, rgba(0, 170, 220, 0.16), transparent 60%), linear-gradient(120deg, #0F2A3B, #0C2131 70%); }
.ww-ban .l { flex: 1; min-width: 0; padding-top: 6px; }
/* (the web app's coded "THORWALLET WEB BETA" label is left out on purpose) */
.ww-ban .hl { display: block; margin-top: 4px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.ww-ban .hl em { font-style: normal; background: linear-gradient(120deg, #00CCFF, #33FF99); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ww-ban .bt { display: flex; gap: 10px; margin-top: 22px; }
.ww-ban .bt span { height: 42px; padding: 0 22px; border-radius: 21px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ww-ban .b1 { background: #2A6BF2; }
.ww-ban .b2 { border: 1px solid rgba(255, 255, 255, 0.16); color: #E6ECF3; }
.ww-ban .mk { width: 300px; flex: none; border-radius: 14px; background: rgba(8, 20, 32, 0.6); border: 1px solid rgba(255, 255, 255, 0.07); padding: 12px 14px 6px; }
.ww-ban .mh { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; color: #8A9DB0; margin-bottom: 6px; }
.ww-ban .lv { display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0; color: #E6ECF3; }
.ww-ban .lv i { width: 6px; height: 6px; border-radius: 50%; background: #2EE6A0; }
.ww-ban .mr { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 56px; align-items: center; gap: 10px; height: 38px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; }
.ww-ban .mr:nth-child(2) { border-top: 0; }
.ww-ban .mr b { font-weight: 600; }
.ww-ban .mr em { font-style: normal; color: #F25A6B; text-align: right; font-size: 11px; }
/* the swap card a little narrower than "Popular swaps": on a phone the crop rests on the swap card and the button, uncut */
.ww-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 14px; margin-top: 14px; }
.ww-pop { padding: 14px 16px; }
.ww-pop .ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ww-pop .ph b { font-size: 14px; font-weight: 600; }
.ww-pop .ph span { font-size: 11px; color: #8A9DB0; }
.ww-pop .pr { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; margin-top: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.ww-pop .two { display: flex; }
.ww-pop .two .ww-coin + .ww-coin { margin-left: -8px; box-shadow: 0 0 0 2px #12263A; }
.ww-pop .tx { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ww-pop .tx b { font-size: 12.5px; font-weight: 600; }
.ww-pop .tx small { font-size: 10.5px; color: #8A9DB0; }
.ww-pop .pr em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #4C8DFF; }
.ww-sw { padding: 16px 18px; }
.ww-sw .sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ww-sw .sh b { font-size: 20px; font-weight: 600; }
.ww-sw .sh span { display: flex; gap: 8px; color: #C5D2DE; }
.ww-sw .sh svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); }
.ww-sw .box { position: relative; height: 104px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); margin-top: 8px; }
.ww-sw .box.on { border-color: rgba(46, 230, 200, 0.55); box-shadow: 0 0 22px -8px rgba(46, 230, 200, 0.5); }
.ww-sw .box small { display: block; font-size: 11px; color: #8A9DB0; }
.ww-sw .amt { display: block; margin-top: 8px; font-size: 28px; font-weight: 600; }
.ww-sw .amt.dim { color: #8A9DB0; }
.ww-sw .box .f { position: absolute; left: 14px; bottom: 10px; }
.ww-sw .tk { position: absolute; right: 14px; top: 30px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.ww-sw .tk b { font-weight: 600; }

/* wallet page (connected): terminal.css .tw-*, with the phone's figures */
.ww-wallet { opacity: 0; }

/* one backdrop from the Connect Wallet dialog to the connection (blur and dim; the dialogs carry none of their own) */
.ww-bd { position: absolute; inset: 0; z-index: 10; opacity: 0; background: rgba(5, 12, 22, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ww-ov { position: absolute; inset: 0; z-index: 11; opacity: 0; }
/* Connect Wallet: the real layout (ref web-2-connect-modal.png, at the web app's own sizes); third-party wallets are neutral chips */
.ww-cw .x { position: absolute; right: 28px; top: 20px; color: #C5D2DE; }
.ww-cw .x svg { width: 20px; height: 20px; }
.ww-cw .in { position: absolute; left: 64px; right: 64px; top: 46px; display: flex; flex-direction: column; align-items: flex-start; }
.ww-cw .t { align-self: center; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ww-cw .st { align-self: center; margin-top: 4px; font-size: 13px; color: #C5D2DE; }
.ww-cw .vc { align-self: stretch; display: flex; align-items: center; gap: 16px; height: 80px; margin-top: 22px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(46, 211, 198, 0.35); background: linear-gradient(90deg, rgba(14, 52, 66, 0.9), rgba(13, 33, 50, 0.9)); }
.ww-cw .vi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #0F2233; border: 1px solid rgba(255, 255, 255, 0.08); }
.ww-cw .vi img { width: 26px; height: 26px; }
.ww-cw .vt { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ww-cw .vt b { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.ww-cw .vt em { font-style: normal; font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: rgba(46, 230, 160, 0.14); color: #3DEB9F; }
.ww-cw .vt b svg { width: 14px; height: 14px; color: #8A9DB0; }
.ww-cw .vt small { font-size: 12px; color: #C5D2DE; }
.ww-cw .nn { font-size: 12.5px; font-weight: 600; color: #9AA8B8; margin-inline-end: 10px; }
.ww-cw .gb { display: grid; place-items: center; width: 96px; height: 36px; border-radius: 10px; background: #2A6BF2; font-size: 13.5px; font-weight: 600; }
.ww-cw .ow { margin-top: 30px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #9FB2C2; }
.ww-cw .rl { margin-top: 18px; font-size: 12.5px; color: #C5D2DE; }
.ww-cw .rl.hw { margin-top: 44px; }
.ww-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.ww-wt { display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 12px 0 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 600; color: #F2F5F8; white-space: nowrap; }
.ww-wt img, .ww-wt svg { width: 18px; height: 18px; object-fit: contain; color: #C5D2DE; }
.ww-wt.tw { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.ww-wt .wcb { width: 18px; height: 18px; border-radius: 50%; background: #3B99FC; display: grid; place-items: center; }
.ww-wt .wcb svg { width: 12px; height: 8px; color: #FFFFFF; }
.ww-wt.ph .lg { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); }
.ww-wt.ph .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }

/* the QR dialog: title, the code with the THORWallet mark, "Scan this QR Code with your phone", "Copy link" */
.ww-qd { position: absolute; left: 50%; top: 62px; width: 360px; margin-left: -180px; padding: 16px 20px 22px; border-radius: 30px; background: #18191A; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); text-align: center; color: #E4E7E7; }
.ww-qd .hd { display: flex; align-items: center; justify-content: space-between; height: 32px; color: #E4E7E7; }
.ww-qd .hd b { font-size: 16px; font-weight: 600; }
.ww-qd .hd svg { width: 20px; height: 20px; }
.ww-qrbox { position: relative; display: block; width: 320px; height: 320px; margin-top: 14px; padding: 16px; border-radius: 22px; background: #FFFFFF; }
.ww-qrbox > img, .wp-cam .qr > img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ww-qrbox .mk, .wp-cam .qr .mk { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 22%; background: #0B1B2C; display: grid; place-items: center; box-shadow: 0 0 0 5px #FFFFFF; }
.ww-qrbox .mk img, .wp-cam .qr .mk img { width: 64%; height: 64%; object-fit: contain; }
.ww-qrbox .mk.wc, .wp-cam .qr .mk.wc { background: #3B99FC; color: #FFFFFF; }
.mk .wcm { display: grid; place-items: center; width: 66%; }
.mk .wcm svg { width: 100%; height: auto; }
.ww-qline { position: absolute; left: 34px; right: 34px; top: 80px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #00CCFF 20%, #33FF99 80%, transparent); box-shadow: 0 0 14px 2px rgba(0, 204, 255, 0.5); opacity: 0; }
.ww-qd p { margin: 18px 0 0; font-size: 16px; font-weight: 500; }
.ww-qd .cl { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: #9A9FA3; }
.ww-qd .cl svg { width: 14px; height: 14px; }
.ww-qd .gt { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; height: 50px; padding: 0 12px 0 18px; border-radius: 16px; background: #222324; font-size: 15px; color: #C8CCCC; }
.ww-qd .gt span { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 12px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.12); color: #6C8CFF; font-size: 14px; font-weight: 600; }
.ww-qd .gt svg { width: 14px; height: 14px; }
.ww-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -3px 0 0 -5px; z-index: 50; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.ww-cursor svg { width: 100%; height: 100%; }
.ww-click { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75); opacity: 0; z-index: 49; pointer-events: none; }

/* ---------- Any dApp: a fictional dApp in a neutral browser window (same geometry as the Terminal window) ---------- */
.wd { background: #0E1620; }
.wd-bar { background: #18212C; justify-content: center; }
.wd-hist { position: absolute; left: 92px; top: 0; height: 36px; display: flex; align-items: center; gap: 14px; color: #6F7F90; }
.wd-hist svg { width: 15px; height: 15px; }
.wd-hist svg:first-child + svg { opacity: 0.5; }
.wd-url { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 400px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); font-size: 12.5px; font-weight: 500; color: #C9D3DD; }
.wd-url svg { width: 12px; height: 12px; color: #8D9BAA; }
.wd-app { background: #0E1620; color: #E8EDF2; font-family: var(--font-body); }
.wd-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; gap: 30px; padding: 0 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.wd-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wd-brand .dm { width: 26px; height: 26px; }
.wd-nav { display: flex; gap: 24px; font-size: 13.5px; color: #8D9BAA; }
.wd-nav .on { color: #E8EDF2; }
.wd-btn { position: relative; margin-inline-start: auto; width: 146px; height: 38px; }
.wd-btn > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.wd-btn .a { background: #E8EDF2; color: #0E1620; }
.wd-btn .b { opacity: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #E8EDF2; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.wd-btn .b i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 200deg, #8FB7FF, #9AF0D4, #F5D58F, #8FB7FF); flex: none; }
.wd-main { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; }
.wd-scr { position: absolute; inset: 0; padding: 40px 48px; }
.wd-wallet { opacity: 0; }
.wd-wallet { padding-top: 34px; }
.wd-conn { width: 420px; margin: 0 auto; padding: 22px 22px 20px; border-radius: 22px; background: #141E2A; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 18px; }
.wd-conn .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wd-conn .av { width: 52px; height: 52px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, #8FB7FF, #9AF0D4, #F5D58F, #8FB7FF); }
.wd-conn .tx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wd-conn .tx b { font-family: var(--font-mono); font-size: 21px; font-weight: 500; color: #F2F5F8; }
.wd-conn .tx small { font-size: 12.5px; color: #8D9BAA; }
.wd-conn .ok { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(46, 230, 160, 0.12); color: #5EEDB4; font-size: 13px; font-weight: 600; }
.wd-conn .ok i { width: 7px; height: 7px; border-radius: 50%; background: #2EE6A0; box-shadow: 0 0 0 3px rgba(46, 230, 160, 0.18); }
.wd-conn .nets { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wd-conn .lb { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8D9BAA; }
.wd-conn .pls { display: flex; flex-wrap: wrap; gap: 7px; }
.wd-conn .pl { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 5px; border-radius: 15px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); font-size: 12.5px; font-weight: 500; color: #E8EDF2; }
.wd-conn .pl img { width: 20px; height: 20px; border-radius: 50%; }
.wd-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.wd-wallet .wd-chart { margin-top: 16px; height: 150px; }
.wd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
.wd-lead { display: flex; flex-direction: column; align-items: flex-start; }
.wd-eb { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #8D9BAA; }
.wd-h { margin: 12px 0 18px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #F2F5F8; }
.wd-sk { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.09); margin-top: 10px; }
.wd-sk.lo { background: rgba(255, 255, 255, 0.05); }
.wd-card { border-radius: 16px; background: #141E2A; border: 1px solid rgba(255, 255, 255, 0.07); }
.wd-status { display: flex; align-items: center; gap: 14px; width: 404px; height: 76px; margin-top: 30px; padding: 0 18px; }
.wd-status .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); color: #8D9BAA; flex: none; }
.wd-status .ic svg { width: 20px; height: 20px; }
.wd-status .av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, #8FB7FF, #9AF0D4, #F5D58F, #8FB7FF); }
.wd-status .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wd-status .tx b { font-size: 14.5px; font-weight: 600; color: #F2F5F8; }
.wd-status.on .tx b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.wd-status .tx small { font-size: 12.5px; color: #8D9BAA; }
.wd-status .ok { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(46, 230, 160, 0.12); color: #5EEDB4; font-size: 12.5px; font-weight: 600; }
.wd-status .ok i { width: 7px; height: 7px; border-radius: 50%; background: #2EE6A0; box-shadow: 0 0 0 3px rgba(46, 230, 160, 0.18); }
.wd-side { display: flex; flex-direction: column; gap: 12px; }
.wd-mini { display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 18px; }
.wd-mini .dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); flex: none; }
.wd-mini .ls { flex: 1; }
.wd-mini .ls .wd-sk:first-child { margin-top: 0; }
.wd-wallet .wd-mini .dot { background: rgba(143, 183, 255, 0.18); }
.wd-wallet .wd-mini .ls .wd-sk:first-child { background: rgba(255, 255, 255, 0.14); }
.wd-chart { margin-top: 28px; height: 236px; padding: 20px 22px 0; overflow: hidden; display: flex; flex-direction: column; }
.wd-chart .hd { display: flex; align-items: center; gap: 12px; }
.wd-chart .hd .wd-sk { margin-top: 0; }
.wd-chart svg { flex: 1; width: 100%; margin-top: 18px; }
.wd-chart .ln { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.wd-chart .ar { fill: rgba(255, 255, 255, 0.025); }
.wd-wallet .wd-chart .ln { stroke: rgba(143, 183, 255, 0.55); }
.wd-wallet .wd-chart .ar { fill: rgba(143, 183, 255, 0.06); }
/* the dApp's own connect dialog, and its WalletConnect QR dialog (the Terminal's dialog styles, without the "Get" row) */
.wd-cw { display: flex; align-items: center; justify-content: center; }
.wd-modal { width: 380px; padding: 18px 18px 20px; border-radius: 22px; background: #18212C; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.wd-modal .hd { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 14px; color: #9AA8B8; }
.wd-modal .hd b { font-size: 17px; font-weight: 600; color: #F2F5F8; }
.wd-modal .hd svg { width: 18px; height: 18px; }
.wd-opt { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px; margin-top: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #9AA8B8; }
.wd-opt b { flex: 1; font-size: 15px; font-weight: 600; color: #F2F5F8; }
.wd-opt svg { width: 16px; height: 16px; }
.wd-opt .lg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #C9D3DD; flex: none; }
.wd-opt .lg svg { width: 18px; height: 18px; }
.wd-opt .lg.wc { background: #3B99FC; color: #FFFFFF; }
.wd-opt .lg.wc svg { width: 21px; height: 13px; }
.wd-opt.q { opacity: 0.45; }
.wd-qd { top: 95px; }

/* ---------- step rail ---------- */
.wc-rail { display: flex; align-items: flex-start; gap: 18px; margin: 18px auto 0; max-width: 1040px; }
.wc-play { flex: none; width: 40px; height: 40px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--text-hi); display: grid; place-items: center; cursor: pointer; }
.wc-play svg { width: 16px; height: 16px; }
.wc-play .i-play, .wc-scene.is-paused .wc-play .i-pause { display: none; }
.wc-scene.is-paused .wc-play .i-play { display: block; }
.wc-steps { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wc-step { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 10px; padding: 14px 0 6px; border: 0; background: none; color: var(--text-low); font: inherit; text-align: start; cursor: pointer; position: relative; border-radius: 6px; }
.wc-step .n { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; line-height: 1.5; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline-strong); }
.wc-step .c { font-size: 0.92rem; line-height: 1.45; color: var(--text-low); transition: color var(--dur-micro); }
.wc-step .bar { position: absolute; inset-inline: 0; top: 0; height: 2px; border-radius: 2px; background: var(--hairline-strong); overflow: hidden; }
.wc-step .bar i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .wc-step .bar i { transform-origin: 100% 50%; }
.wc-step:hover .c { color: var(--text-mid); }
.wc-step.on .c { color: var(--text-hi); }
.wc-step.on .n { color: var(--text-hi); border-color: var(--accent-line); background: var(--surface); }
.wc-step.done .bar i { transform: none; }
/* the caption is for the eye (shown under the compact rail on a phone); the live region speaks only after the reader acts */
.wc-cap { display: none; }
.wc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "The screens are shown in English.": only on the language pages (the device screens are not translated, see the hand-over) */
html:lang(en) .wc-ennote { display: none; }
.wc-note { margin: 18px 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-low); }

/* ---------- without script: the four states as a strip with their captions ---------- */
.wc-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wc-js .wc-strip { display: none; }
.wc-scene:not(.wc-js) .wc-stage, .wc-scene:not(.wc-js) .wc-rail, .wc-scene:not(.wc-js) .wc-cap { display: none; }
.wc-still > p { display: flex; gap: 10px; margin: 12px 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--text-mid); }
.wc-still > p > .n { flex: none; font-family: var(--font-mono); font-size: 0.8rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline-strong); }
.wc-sbox { position: relative; aspect-ratio: 4 / 3; container: wcf / inline-size; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); overflow: hidden; }
.wc-scanvas { position: absolute; top: 0; inset-inline-start: 0; width: 1180px; height: 885px; transform-origin: 0 0; transform: scale(tan(atan2(100cqw, 1180px))); }
[dir="rtl"] .wc-scanvas { transform-origin: 100% 0; }
.wc-scanvas > .wc-win { top: 92px; --ws: 1; inset-inline-start: 0; }
.wc-scanvas > .wc-phone { position: absolute; top: 20px; inset-inline-start: 385px; --pw: 409; }
.wc-scanvas .wc-phone .device-frame { height: 846px; }
@media (max-width: 960px) { .wc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wc-strip { grid-template-columns: 1fr; } }
/* the still states (strip frames and the first paint) */
[data-still="s1"] .ww-qrw, [data-still="s1"] .ww-bd { opacity: 1; }
/* the target ring of the animation, drawn on the control the step acts on: in the stills, and in the live scene when
   it stands still on a step (reduced motion: walletconnect.js sets data-key on the scene). Step 1's still is the QR
   code that the click brings up (nothing to tap there); step 4 is the result. */
[data-still="s2"] [data-t="wc"] .box, [data-still="s3"] [data-t="approve"],
.wc-scene[data-key="s2"] .wc-stage [data-t="wc"] .box, .wc-scene[data-key="s3"] .wc-stage [data-t="approve"] { position: relative; }
[data-still="s2"] [data-t="wc"] .box::after, [data-still="s3"] [data-t="approve"]::after,
.wc-scene[data-key="s2"] .wc-stage [data-t="wc"] .box::after, .wc-scene[data-key="s3"] .wc-stage [data-t="approve"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65); pointer-events: none; }
[data-still="s2"] .wp-shade, [data-still="s2"] .wp-sheet { opacity: 1; }
[data-still="s3"] .wp-wc, [data-still="s3"] .wp-mshade, [data-still="s3"] .wp-prop { opacity: 1; }
[data-still="s4"] .ww-wallet, [data-still="s4"] .ww-btn .b, [data-still="s4"] .wd-wallet, [data-still="s4"] .wd-btn .b { opacity: 1; }
[data-still="s4"] .wd-btn .a { opacity: 0; }
[data-still="s4"] .ww-btn .a { opacity: 0; }
[data-still="s4"] .ta-nav a.on { background: none; color: var(--t-mid); }
[data-still="s4"] .ta-nav a.on svg { color: inherit; }
[data-still="s4"] .ta-nav a[data-nav="wallet"] { background: #17304A; color: #FFFFFF; }
[data-still="s4"] .ta-nav a[data-nav="wallet"] svg { color: var(--t-teal); }

/* ---------- narrow screens ---------- */
@media (max-width: 700px) {
  .wc-rail { gap: 12px; align-items: center; }
  .wc-play { margin-top: 0; width: 44px; height: 44px; }
  .wc-step { min-height: 44px; }
  .wc-steps { gap: 8px; }
  .wc-step { grid-template-columns: 1fr; justify-items: center; padding: 12px 0 2px; }
  .wc-step .c { display: none; }
  .wc-rail { margin-top: 12px; }
  .wc-cap { display: block; margin: 8px auto 0; max-width: 34ch; min-height: 2.9em; text-align: center; font-size: 1rem; line-height: 1.45; color: var(--text-hi); }
}

/* ==========================================================
   The page under the hero: four steps, networks, the big screen,
   control, devices, questions, closing.
   ========================================================== */
.wc-sec { padding-block: clamp(72px, 9vw, 130px); }
.wc-sec .section-head .lead { max-width: 40em; }
.wc-hstep, #networks, #big-screen, #control, #devices, #faq { scroll-margin-top: 88px; }

/* ---------- four steps: each with a still of the scene, cropped close (pure CSS: right before any script) ---------- */
.wc-howto { list-style: none; margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.wc-hstep { container: wch / inline-size; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.wc-fig { position: relative; aspect-ratio: 16 / 11; overflow: hidden; container-type: inline-size; border-bottom: 1px solid var(--hairline);
  background: radial-gradient(70% 80% at 50% 105%, rgba(0, 204, 255, 0.14), transparent 70%), #0C1C2D; }
/* the same dark ground in both themes: two figures are window crops (dark), two are phones on this ground */
/* right, not inline-end: the drawn window is left to right in every language ("My Wallet" sits at its top right) */
.wc-finset { position: absolute; top: 5%; right: 4%; width: var(--iw); overflow: hidden; container-type: inline-size; border-radius: 12px; background: #0B1B2C; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.16); }
.wc-finset .wc-fdev > .wc-win { box-shadow: none; border-radius: 0; }
.wc-fdev { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(tan(atan2(100cqw, calc(var(--w) * 1px)))) translate(calc(var(--x) * -1px), calc(var(--y) * -1px)); }
.wc-fdev > .wc-win { --ws: 1; box-shadow: none; border-radius: 0; }
.wc-fdev > .wc-phone { --pw: 409; }
.wc-fdev .wc-phone .device-frame { height: 846px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
[data-theme="light"] .wc-fdev .wc-phone .device-frame { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 34px 70px -30px rgba(20, 45, 75, 0.5); }
@container wch (max-width: 479px) {
  .wc-fig { aspect-ratio: 4 / 5; }
  .wc-fdev { transform: scale(tan(atan2(100cqw, calc(var(--wn) * 1px)))) translate(calc(var(--xn) * -1px), calc(var(--yn) * -1px)); }
}
.wc-hstep > .tx { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; padding: clamp(20px, 2.2vw, 26px) clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px); }
.wc-hstep > .tx > .n { grid-row: span 2; width: 30px; height: 30px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--text-hi); border: 1px solid var(--accent-line); background: var(--surface-2); }
.wc-hstep > .tx > h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.12rem, 1.4vw, 1.28rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--text-hi); }
.wc-hstep > .tx > p { margin-top: 8px; font-size: 0.98rem; line-height: 1.6; color: var(--text-mid); text-wrap: pretty; }
.wc-fignote { margin: 18px 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-low); }

/* ---------- networks: four groups, the real logos on one disc treatment ---------- */
/* two columns of two groups (7 + 4 and 5 + 6 networks): each column holds 11, so both end on the same line */
.wc-nets { margin-top: clamp(36px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wc-ncol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wc-ng { min-width: 0; padding: 20px 22px 8px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.wc-ng h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-low); }
.wc-ng h3 span { min-width: 26px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); display: grid; place-items: center; letter-spacing: 0; color: var(--text-mid); background: var(--surface-2); }
.wc-ng ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.wc-ng li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.wc-ng li:nth-child(-n+2) { border-top: 0; }
/* a network with a limit takes the whole row, so its sentence stays on one line */
.wc-ng li.has-note { grid-column: 1 / -1; }
.wc-ng .lg { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; background: #0B1B2C; box-shadow: 0 0 0 1px var(--hairline-strong); }
.wc-ng .lg img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wc-ng .nm { min-width: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.3; color: var(--text-hi); }
.wc-ng .nm small { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 400; color: var(--text-low); }
.wc-netnote { margin: 22px 0 0; font-size: 0.98rem; color: var(--text-mid); }

/* ---------- cards: the big screen, control, devices ---------- */
.wc-cards { list-style: none; margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 14px; }
.wc-big, .wc-devs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wc-ctl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* one card anatomy in the three sections: the icon beside the title, the text and the link under the title */
.wc-cards > li { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 16px; align-content: start; padding: clamp(20px, 2vw, 24px) clamp(20px, 2.2vw, 26px); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.wc-cards > li > .ico, .wc-mnote .ico, .wc-phnote .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-solid); background: var(--surface-2); border: 1px solid var(--hairline); }
.wc-cards > li > .ico { grid-row: span 4; }
.wc-cards > li > .ico svg, .wc-mnote .ico svg, .wc-phnote .ico svg { width: 21px; height: 21px; }
.wc-cards > li > h3 { align-self: center; min-height: 40px; display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--text-hi); }
.wc-cards > li > p { margin-top: 4px; font-size: 0.98rem; line-height: 1.6; color: var(--text-mid); text-wrap: pretty; }
.wc-cards > li > .wc-quiet { justify-self: start; margin-top: 8px; padding-bottom: 0; font-size: 0.94rem; }
.wc-cards > li > p.wc-risk { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 0.84rem; line-height: 1.5; color: var(--text-low); }
.wc-risk b { font-weight: 600; color: var(--text-mid); }
/* Pro Trading carries its risk note: it takes the whole row, its text and the note side by side */
.wc-big > li.wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.wc-big > li.wide > h3 { grid-column: 2; }
.wc-big > li.wide > p:not(.wc-risk), .wc-big > li.wide > .wc-quiet { grid-column: 2; }
.wc-big > li.wide > p.wc-risk { grid-column: 3; grid-row: 1 / span 3; align-self: start; margin: 0 0 0 clamp(12px, 2vw, 28px); padding: 0 0 0 clamp(16px, 2vw, 28px); border-top: 0; border-inline-start: 1px solid var(--hairline); }
@media (max-width: 860px) { .wc-big > li.wide { grid-template-columns: auto minmax(0, 1fr); } .wc-big > li.wide > p.wc-risk { grid-column: 2; grid-row: auto; margin: 12px 0 0; padding: 12px 0 0; border-inline-start: 0; border-top: 1px solid var(--hairline); } }
.wc-mnote, .wc-phnote { display: flex; align-items: flex-start; gap: 16px; margin: 14px 0 0; padding: 18px 22px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); font-size: 0.98rem; line-height: 1.6; color: var(--text-mid); }
.wc-mnote b, .wc-phnote b { display: block; font-weight: 600; color: var(--text-hi); }
.wc-mnote a, .wc-phnote a, .wc-cards > li > p a, .wc-hstep > .tx > p a { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
/* the phone note sits under the scene on a phone (and the devices section keeps the longer one for the big screen) */
.wc-phnote { max-width: 34rem; margin: 18px auto 0; text-align: start; }
.wc-phnote, .wc-cta-m { display: none; }
@media (max-width: 700px) {
  .wc-phnote { display: flex; }
  .wc-cta-m { display: flex; margin-top: 22px; }
  .wc-cta-d, .wc-mnote { display: none; }
}
/* fine print: two plain lines */
.wc-fp p { max-width: 88ch; margin: 0 0 10px; font-size: 0.82rem; line-height: 1.62; color: var(--text-low); }

/* ---------- closing ---------- */
.wc-final .wc-cta { margin-top: 0; }

@media (max-width: 1100px) { .wc-big, .wc-devs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .wc-howto, .wc-ctl { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .wc-big, .wc-devs { grid-template-columns: 1fr; }
  .wc-nets { grid-template-columns: 1fr; }
  .wc-ng ul { column-gap: 14px; }
  .wc-ng .lg { width: 30px; height: 30px; }
  .wc-ng .nm { font-size: 0.94rem; }
  .wc-mnote { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .wc-play { display: none; }
  .wc-quiet svg, .wc-switch .th, .wc-tab { transition: none; }
}

/* Japanese and Chinese section headlines: the accent part is a short phrase; never break inside it (Chrome broke
   「よくあるご質問。」 after its first kana at 1440). It moves to its own line as a whole instead. */
:root:lang(ja) .wc-sec .h1 .outline-accent, :root:lang(zh) .wc-sec .h1 .outline-accent { white-space: nowrap; }
