:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111c29;background:#f5f7fa;--ink:#111c29;--muted:#506277;--line:#e0e6ed;--blue:#1058ed;--orange:#a43905}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}header{background:#fff;border-bottom:1px solid var(--line);height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,calc((100vw - 1240px)/2));gap:18px}.logo{font-size:21px;font-weight:850;white-space:nowrap}.logo span{color:var(--blue)}nav{display:flex;gap:24px;color:var(--muted);font-weight:650}button,select,input{font:inherit}button,select,.handoff{border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:9px 12px}button,.handoff{font-weight:680;cursor:pointer}button:disabled{opacity:.52;cursor:default}.primary{background:var(--blue);color:white;border-color:var(--blue)}main{max-width:1280px;margin:auto;padding:0 24px}.hero{padding:48px 0 30px}.eyebrow{color:var(--blue);font-size:13px;font-weight:800;letter-spacing:.1em}h1{font-size:clamp(38px,6vw,67px);letter-spacing:-.071em;line-height:1.03;margin:12px 0 15px}h2{letter-spacing:-.035em;margin:5px 0;font-size:25px}p{color:var(--muted);line-height:1.55;margin:8px 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);gap:20px;align-items:start}.panel,dialog{background:white;border:1px solid var(--line);box-shadow:0 8px 32px #23477309;border-radius:20px;padding:22px;min-width:0}.head,.field{display:flex;justify-content:space-between;align-items:center;gap:10px}.networks{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.networks button[aria-pressed=true]{background:#edf3ff;border-color:#adc9ff;color:#0845b7}.search{display:grid;gap:6px;font-size:14px;font-weight:650}.search input{border:1px solid var(--line);padding:10px 12px;border-radius:10px;width:100%}.status{font-size:14px;min-height:1.2em}.table-wrap{overflow:auto}table{width:100%;min-width:460px;border-collapse:collapse}th,td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line)}th{font-size:13px;color:var(--muted)}td small{display:block;color:var(--muted);margin-top:3px}.pill{display:inline-block;font-size:13px;background:#edf2f8;color:#31485f;border-radius:20px;padding:5px 9px;white-space:nowrap}.pill.warn{background:#fff1e6;color:var(--orange)}.swap form{margin-top:14px}.side{background:#f5f7fa;border:1px solid var(--line);padding:12px;border-radius:13px}.side label:first-child{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px}.field{margin-top:8px}.field input,.field output{border:0;background:none;min-width:0;width:100%;font-size:25px;color:var(--ink)}.field select{max-width:47%}#reverse{display:block;margin:6px auto;padding:4px 12px}.full,.handoff{display:block;width:100%;margin-top:12px;text-align:center}.proof{border:1px solid #ffdbc5;background:#fff6ef;border-radius:12px;padding:12px;margin-top:16px;color:var(--orange);font-size:14px}.proof p{margin-bottom:0}.address{overflow-wrap:anywhere;font-family:monospace}dialog{width:min(520px,calc(100% - 24px))}dialog::backdrop{background:#15233e80}footer{text-align:center;color:var(--muted);padding:35px 12px;font-size:14px}:focus-visible{outline:3px solid #5489ff;outline-offset:2px}@media(max-width:820px){.layout{grid-template-columns:1fr}.swap{grid-row:1}header{padding:0 16px}main{padding:0 14px}}@media(max-width:460px){nav{display:none}.panel{padding:15px}}

/* Primus orange with frosted white surfaces. */
:root {
  --brand: #ff4800;
  --action: #a82d00;
  --ink: #25160f;
  --muted: #644437;
  --line: #f1cabb;
  color: var(--ink);
  background: var(--brand);
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 88% 7%, #ffae72 0%, transparent 42%),
    radial-gradient(ellipse at 8% 95%, #ff7f3d 0%, transparent 49%),
    linear-gradient(150deg, #ff4800, #ff4800 55%, #e13400);
}
header {
  background: #fff5eddb;
  border-bottom-color: #ffffffad;
  backdrop-filter: blur(18px);
}
.logo span, .eyebrow { color: var(--action); }
.hero h1 { color: #25130b; }
.hero .eyebrow, .hero p, footer { color: #391d11; }
.panel, dialog {
  background: linear-gradient(155deg, #fffefbf5, #fff4eddf);
  border-color: #ffffffc4;
  box-shadow: 0 12px 36px #7c260028, inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}
.panel .side, .panel button:not(.primary), .panel select,
.search input, .handoff {
  background: #ffffffb8;
}
.primary, .primary:hover {
  background: var(--action);
  border-color: var(--action);
}
.primary:not(:disabled):hover { background: #8b2500; }
.networks button[aria-pressed=true] {
  background: #ffdfcf;
  border-color: #f2a789;
  color: #8b2705;
}
.pill { background: #f8e9df; color: #674336; }
.pill.warn, .proof { background: #fff1e6; color: #8b310e; }
.proof { border-color: #f6c2a7; }
dialog::backdrop { background: #3f140e80; }
:focus-visible { outline-color: #a82d00; }

/* The warm background shows through the frosted glass. */
main { padding-bottom: 36px; }
.hero { padding-top: clamp(30px, 5vw, 54px); }
.hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 780;
  letter-spacing: -.044em;
  line-height: 1.16;
  margin: 0 0 13px;
}
.hero h1 span { font-weight: 640; }
.panel, dialog {
  background:
    radial-gradient(ellipse at 6% 0%, rgb(255 255 255 / .42), transparent 64%),
    linear-gradient(140deg, rgb(255 250 245 / .74), rgb(255 238 229 / .56));
  border: 1px solid rgb(255 255 255 / .84);
  border-radius: 22px;
  box-shadow:
    0 18px 36px rgb(102 24 0 / .17),
    0 3px 10px rgb(102 24 0 / .08),
    inset 0 1px 0 rgb(255 255 255 / .94),
    inset 0 -1px 0 rgb(255 255 255 / .23);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  backdrop-filter: blur(28px) saturate(135%);
}

.panel .side, .panel .proof {
  background: linear-gradient(145deg, rgb(255 255 255 / .64), rgb(255 252 248 / .35));
  border-color: rgb(255 255 255 / .76);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .74), 0 3px 9px rgb(126 54 29 / .05);
}

.panel .search input, .panel select, .panel button:not(.primary), .panel .handoff {
  background: rgb(255 255 255 / .68);
  border-color: rgb(255 255 255 / .86);
}

.panel .networks button[aria-pressed="true"] {
  background: rgb(255 222 205 / .88);
  border-color: #ea9b7e;
}

dialog {
  background: linear-gradient(145deg, rgb(255 253 250 / .94), rgb(255 237 226 / .86));
}

.field input:focus-visible {
  outline: 0;
  border-radius: 5px;
  box-shadow: inset 0 -1px 0 #735e54;
}

@media (prefers-reduced-transparency: reduce) {
  .panel, dialog { background: #fff2e9; }
  .panel .side, .panel .proof { background: #fff9f4; }
}

main { position: relative; isolation: isolate; }
main::before {
  content: "";
  position: absolute;
  top: 128px;
  right: 0;
  width: min(570px, 100%);
  height: 570px;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 64% 43%, rgb(255 244 222 / .55), rgb(255 204 166 / .28) 36%, transparent 72%);
}

.ambient-particles {
  position: absolute;
  inset: 0 0 auto;
  height: min(100%, 860px);
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.ambient-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgb(255 247 230 / .39);
  opacity: 0;
  animation: particle-drift var(--period, 11s) var(--phase, -4s) ease-in-out infinite;
}
.ambient-particles span:nth-child(1) { --x: 1%; --y: 29%; --phase: -3s; }
.ambient-particles span:nth-child(2) { --x: 31%; --y: 6%; --period: 14s; --phase: -4s; }
.ambient-particles span:nth-child(3) { --x: 66%; --y: 13%; --size: 4px; --phase: -6s; }
.ambient-particles span:nth-child(4) { --x: 82%; --y: 8%; --period: 13s; --phase: -1s; }
.ambient-particles span:nth-child(5) { --x: 96%; --y: 16%; --phase: -5s; }
.ambient-particles span:nth-child(6) { --x: 67%; --y: 54%; --period: 15s; --phase: -5s; }
.ambient-particles span:nth-child(7) { --x: 98.8%; --y: 59%; --size: 4px; --phase: -2s; }
.ambient-particles span:nth-child(8) { --x: 14%; --y: 77%; --period: 12s; --phase: -5s; }
.ambient-particles span:nth-child(9) { --x: 49%; --y: 85%; --period: 16s; --phase: -7s; }
.ambient-particles span:nth-child(10) { --x: 91%; --y: 91%; --phase: -9s; }
.ambient-particles span:nth-child(11) { --x: 17%; --y: 8%; --period: 12s; --phase: -7s; }
.ambient-particles span:nth-child(12) { --x: 56%; --y: 22%; --period: 15s; --phase: -3s; }
.ambient-particles span:nth-child(13) { --x: 98%; --y: 35%; --phase: -7s; }
.ambient-particles span:nth-child(14) { --x: 5%; --y: 67%; --period: 14s; --phase: -5s; }
.ambient-particles span:nth-child(15) { --x: 73%; --y: 87%; --period: 12s; --phase: -9s; }

@keyframes particle-drift {
  0%, 100% { opacity: 0; transform: translateY(5px) scale(.65); }
  45% { opacity: .78; }
  90% { opacity: 0; transform: translateY(-14px) scale(1.08); }
}

@media (max-width: 820px) {
  .ambient-particles span:nth-child(n+9) { display: none; }
  main::before { top: 102px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-particles span { animation: none; opacity: .35; }
}

.wallet-option {
  --wallet-accent: #806d63;
  --wallet-tint: #f8efe8;
  --wallet-ink: #40332c;
  min-height: 42px;
  border-color: color-mix(in srgb, var(--wallet-accent) 55%, white);
  border-inline-start: 4px solid var(--wallet-accent);
  background: linear-gradient(105deg, var(--wallet-tint), color-mix(in srgb, var(--wallet-tint) 62%, white));
  color: var(--wallet-ink);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px #4120100d;
}
.wallet-option:hover { background: var(--wallet-tint); }
.wallet-option:focus-visible { outline-color: var(--wallet-ink); }
.wallet-option[data-wallet-theme="metamask"] {
  --wallet-accent: #ed7625;
  --wallet-tint: #ffbb86;
  --wallet-ink: #78340d;
}
.wallet-option[data-wallet-theme="rabby"] {
  --wallet-accent: #6478e8;
  --wallet-tint: #bac8ff;
  --wallet-ink: #2c3e8d;
}
.wallet-option[data-wallet-theme="subwallet"] {
  --wallet-accent: #268d80;
  --wallet-tint: #a6e2ce;
  --wallet-ink: #15564c;
}
.wallet-option[data-wallet-theme="phantom"] {
  --wallet-accent: #9264dc;
  --wallet-tint: #d6bbff;
  --wallet-ink: #52328a;
}

#wallet-picker, #review {
  inset: 12px 12px auto auto;
  margin: 0;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 15px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgb(255 255 255 / .79), rgb(255 239 227 / .51));
  backdrop-filter: blur(32px) saturate(130%);
  -webkit-backdrop-filter: blur(32px) saturate(130%);
  box-shadow: 0 14px 38px #6121002e, inset 0 1px 0 #fff;
  overflow: auto;
}
#wallet-picker h2, #review h2 { font-size: 20px; }
#wallet-picker-status { margin: 4px 0 0; font-size: 14px; }
#wallet-picker .head button, #review .head button { padding: 4px 9px; }
#wallet-picker::backdrop, #review::backdrop { background: rgb(61 20 9 / .13); }
#review > p { margin: 7px 0; font-size: 14px; }
#review .proof {
  margin-top: 12px;
  padding: 10px 11px;
  background: rgb(255 252 248 / .48);
  border-color: rgb(255 255 255 / .72);
}
#review .proof p { margin-top: 4px; }
#review-swap { margin-top: 11px; width: 100%; }
#wallet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}
#wallet-options .wallet-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-height: 44px;
  padding: 6px;
  font-size: 14px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.wallet-option-badge {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--wallet-accent) 68%, white);
  border-radius: 8px;
  background: rgb(255 255 255 / .62);
}
@media (max-width: 320px) {
  #wallet-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-transparency: reduce) {
  #wallet-picker, #review { background: #fff2e9; }
}

.swap-chain { display: flex; justify-content: flex-end; }
.swap-chain select { max-width: 100%; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.panel .amount-presets button { padding: 5px 4px; font-size: 13px; }
.panel .amount-presets button:hover, .panel .amount-presets button[aria-pressed="true"] {
  background: #ffdfcf;
  border-color: #ea9b7e;
  color: #8b2705;
}
#balance-status { margin: 7px 0 0; font-size: 13px; }

.proof-asset {
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  margin-top: 9px;
  padding-top: 9px;
}
.proof-asset p { margin-top: 3px; }
#proof-status a, #review-issuer, #swap-reference a { text-decoration: underline; }
