:root {
  color: #211b17;
  background: #f5f3ef;
  font-family: "DM Sans", Inter, "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  --ink: #211b17;
  --muted: #675d55;
  --line: #e4ddd5;
  --orange: #fa794b;
  --dark: #211a17;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #c34b27; outline-offset: 4px; }
a { color: inherit; }
.frame { max-width: 1120px; width: min(100% - 56px, 1120px); margin-inline: auto; }
.top { background: #fffdf9; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 74px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.06rem; font-weight: 760; }
.brand img { border-radius: 10px; display: block; }
.network { padding: 6px 11px; border: 1px solid #ecc6b7; border-radius: 99px; color: #922e15; background: #fff2e9; font: 650 .86rem/1.25 "IBM Plex Mono", Consolas, monospace; }
.wallet { margin-left: auto; padding: 10px 15px; border-radius: 9px; border: 1px solid #342823; color: #fff9f4; background: #332621; font-weight: 650; }
.content { padding-top: 52px; }
.intro { margin-bottom: 27px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.3rem, 4.1vw, 3.55rem); letter-spacing: -.065em; line-height: 1.11; }
.intro p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.layout { display: grid; grid-template-columns: 1.04fr 1fr; gap: 18px; align-items: start; }
.overview, .purchase { border-radius: 17px; position: relative; }
.overview { min-height: 400px; padding: 32px 32px 29px; color: #fff6eb; background: radial-gradient(ellipse at right top, #533023, #211a17 62%); overflow: hidden; }
.sale-status { position: relative; z-index: 1; display: inline-flex; padding: 6px 11px; border: 1px solid #8b5c4b; border-radius: 99px; color: #ffbda4; background: #3b2821; font-size: .88rem; font-weight: 650; }
.sale-status:has([data-open="true"]) { color: #b4f5cd; border-color: #508665; background: #243e2c; }
.cover-logo { position: absolute; right: 30px; top: 26px; border-radius: 24px; transform: rotate(8deg); box-shadow: 0 15px 40px #120c0a70; }
.small-label { margin-top: 64px; color: #dec0b1; font-size: .9rem; }
.price { margin-top: 7px; font: 650 clamp(1.6rem, 3vw, 2.62rem)/1.12 "IBM Plex Mono", Consolas, monospace; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price span { display: inline-block; font: 530 .83rem/1.4 system-ui, sans-serif; letter-spacing: 0; color: #f2c7b6; }
.rate { margin-top: 12px; color: #ffbba1; }
.overview-divider { height: 1px; background: #755140; margin: 28px 0 20px; }
.inventory-label, .inventory-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #ddc7b7; font-size: .88rem; }
.refresh { color: #ffba9e; border: 0; background: transparent; padding: 2px 0 2px 10px; }
.inventory { margin: 9px 0 14px; font-size: clamp(1.5rem,3vw,2.45rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; overflow-wrap: anywhere; }
.inventory span { color: #e0beab; font-size: .96rem; letter-spacing: 0; }
.progress { background: #624237; height: 7px; border-radius: 10px; overflow: hidden; margin-bottom: 9px; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); }
.inventory-foot b { font-weight: 620; color: #faeadd; }
.purchase { padding: 26px 28px; background: #fffdfa; border: 1px solid var(--line); }
h2 { font-size: 1.34rem; letter-spacing: -.03em; }
.wallet-status { color: var(--muted); margin: 7px 0 15px; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.payment-selector:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .9rem; }
.payment-selector select { font: inherit; color: inherit; background: #fff; padding: 7px 10px; border: 1px solid #d9c9bd; border-radius: 8px; }
.balance-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.balance { background: #f5f1ed; border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.balance span, .fine { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.balance strong { font-size: 1.09rem; font-variant-numeric: tabular-nums; }
.claim { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid #e5b19d; color: #9f321a; background: #fff3ec; border-radius: 8px; font-size: .9rem; font-weight: 650; }
.fine { margin: 7px 0 15px; }
label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 6px; }
.amount-wrap { display: flex; align-items: center; padding: 0 12px; border: 1px solid #dbcdc2; border-radius: 10px; color: var(--muted); background: #fff; }
.amount-wrap:focus-within { border-color: #ad4e31; }
.amount-wrap input { flex: 1; width: 0; padding: 10px 0; background: transparent; border: 0; color: var(--ink); font-size: 1.35rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.amount-wrap input:focus-visible { outline: none; }
.amount-wrap span { margin-left: 10px; font-size: .9rem; }
.presets { display: flex; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.presets button { padding: 5px 10px; border-radius: 7px; border: 1px solid #e4d9cf; color: #4c4038; background: transparent; font-size: .86rem; }
.quote { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); margin: 14px 0 10px; font-size: .95rem; }
.quote strong { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.buy { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 9px; background: var(--orange); color: #261610; font-weight: 780; }
.wallet:hover, .buy:hover { filter: brightness(1.075); }
.result { border: 1px solid #e6c2b4; background: #fff4eb; border-radius: 9px; margin-top: 14px; padding: 11px 13px; line-height: 1.5; overflow-wrap: anywhere; }
.result[data-variant="ok"] { border-color: #adcebc; background: #edf8f0; color: #17502f; }
.result[data-variant="error"] { border-color: #e1aca5; background: #fff0ee; color: #873226; }
.result p, .result a { font-size: .88rem; }
.result p { margin: 4px 0; }
.chain-details { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 23px; padding: 16px 0; }
.chain-details div { display: flex; flex-direction: column; gap: 4px; }
.chain-details span, .footer { font-size: .85rem; color: var(--muted); }
.chain-details strong, .chain-details a { font-size: .88rem; font-weight: 620; }
.atomic .chain-details :is(strong, a) { overflow-wrap: anywhere; }
.atomic form > label:not(:first-child) { margin-top: 12px; }
.atomic #order-list { padding-left: 19px; }
.atomic #order-list li + li { margin-top: 6px; }
.footer { padding: 14px 0 24px; }
dialog { max-width: 450px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; padding: 23px; color: var(--ink); background: #fffdf9; }
dialog::backdrop { background: #23140e91; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-header button, #wallet-list button { border-radius: 8px; border: 1px solid var(--line); background: #faf4ee; color: var(--ink); padding: 8px 10px; }
#wallet-list button { display: block; width: 100%; text-align: left; margin-bottom: 7px; }
#wallet-empty { color: var(--muted); line-height: 1.6; }
@media (min-width: 850px) { .overview { min-height: 100%; } }
@media (max-width: 730px) {
  .frame { width: calc(100% - 28px); }
  .top-inner { min-height: 62px; gap: 8px; }
  .content { padding-top: 30px; }
  .intro { margin-bottom: 19px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .overview { min-height: auto; padding: 24px 19px 21px; }
  .cover-logo { width: 73px; height: 73px; right: 22px; top: 17px; border-radius: 15px; }
  .small-label { margin-top: 32px; }
  .overview-divider { margin: 18px 0 13px; }
  .purchase { padding: 22px 17px; }
  .chain-details { grid-template-columns: 1fr 1fr; }
  .chain-details div:first-child { grid-column: 1 / -1; }
}
