:root {
  --bg: #08090c;
  --card: #13151a;
  --ink: #f1f2f5;
  --soft: rgba(241, 242, 245, 0.54);
  --line: rgba(241, 242, 245, 0.09);
  --accent: #b6f24a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, var(--bg)) 0%, var(--bg) 72%);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px 10px;
}

.sw { position: relative; width: min(316px, 100%); padding: 14px 12px 12px; border-radius: 28px; background: linear-gradient(180deg, #191c22, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 34px 60px -34px rgba(0, 0, 0, 0.95); }
.sw__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.sw__head h2 { font-size: 16px; line-height: 22px; font-weight: 740; font-stretch: 102%; letter-spacing: -0.01em; }
.sw__chip { height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(241, 242, 245, 0.06); font-size: 11.500px; line-height: 24px; font-weight: 600; color: var(--soft); white-space: nowrap; }

.sw__panels { position: relative; display: grid; gap: 5px; }
.sw__panel { position: relative; padding: 11px 12px 12px 14px; border-radius: 19px; background: rgba(241, 242, 245, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
.sw__panel:focus-within, .sw__panel.is-focus { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.sw__top { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.sw__top b { font-weight: 660; color: rgba(241, 242, 245, 0.78); }
.sw__row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.sw__amount { flex: 1 1 auto; min-width: 0; width: 100%; height: 34px; display: block; border: 0; background: none; color: var(--ink); font: inherit; font-size: 27px; line-height: 34px; font-weight: 720; font-stretch: 96%; letter-spacing: -0.02em; outline: none; white-space: nowrap; overflow: hidden; caret-color: var(--accent); }
.sw__token { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: 17px; background: rgba(241, 242, 245, 0.08); box-shadow: inset 0 0 0 1px var(--line), 0 6px 12px -8px rgba(0, 0, 0, 0.9); font-size: 13.500px; font-weight: 720; }
.sw__token i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, 0.55), transparent 60%), var(--c, #888); color: #0c0d10; font-style: normal; font-size: 11.500px; font-weight: 800; }
.sw__token b { font-weight: inherit; }

.sw__flip { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #20232b; color: var(--ink); cursor: pointer; outline: none; z-index: 2; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 4px var(--card), inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.sw__flip:focus-visible, .sw__go:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.sw__flip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }

.sw__rate { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px; font-size: 12px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.sw__ratein { display: block; height: 16px; line-height: 16px; overflow: hidden; }
.sw__ratein span { display: block; }

.sw__go { position: relative; display: block; width: 100%; height: 48px; border: 0; border-radius: 17px; background: var(--accent); color: #0d1204; font: inherit; font-size: 15px; font-weight: 760; cursor: pointer; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 22px -14px color-mix(in srgb, var(--accent) 90%, transparent); }
.sw__go.is-short { background: rgba(241, 242, 245, 0.07); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.sw__gofill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55)); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.sw__golabel { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.sw__golabel svg { width: 0; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sw__golabel path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sw__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101216; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 5; }
