/* Skyros app screens */
.app { position: relative; z-index: 1; width: min(92vw, 1100px); margin-inline: auto; padding: 116px 0 96px; min-height: 100vh; }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.app-title { font-size: clamp(40px, 11vw, 84px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; }
.app-sub { margin-top: 18px; max-width: 30ch; color: rgba(255, 255, 255, 0.62); font-size: 17px; line-height: 1.5; }
.muted { color: rgba(255, 255, 255, 0.62); }
.note { color: rgba(255, 255, 255, 0.55); font-size: 13px; line-height: 1.5; }
.note:empty { display: none; }
.err, .note.err { color: #ff8f8f; }

.panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.panel > * + * { padding-top: 0; }
.panel .rule, .panel hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.16); }
.panel .btn { width: 100%; height: 58px; font-size: 16px; }
.panel .btn.small { width: auto; height: 38px; font-size: 13px; }
.panel .btn[disabled], .btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field .label { font-size: 13px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.01em; }
.input { width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); border-radius: 0; padding: 10px 0 12px; font: inherit; font-size: 18px; outline: none; transition: border-color 0.18s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: rgba(255, 255, 255, 0.3); }
.input:focus { border-bottom-color: #fff; }
.input.big, .input[inputmode="decimal"], .input[type="number"] { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="file"] { font-size: 14px; padding: 12px 0; color: rgba(255, 255, 255, 0.7); }
.input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; height: 34px; padding: 0 14px; margin-right: 14px; background: #fff; color: #000; border: 1px solid #fff; border-radius: 4px; cursor: pointer; }
input[type="range"] { width: 100%; accent-color: #fff; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 4px; padding: 3px; width: 100%; max-width: 280px; }
.seg button { height: 40px; border-radius: 4px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.7); background: transparent; transition: background 0.18s, color 0.18s; }
.seg button:hover { color: #fff; }
.seg button.on, .seg button[aria-pressed="true"], .seg button.active, .seg button.selected { background: #fff; color: #000; }

.amount { font-size: clamp(48px, 14vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; word-break: break-word; }
.amount small, .amount .coin { font-size: 0.36em; font-weight: 500; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.62); margin-left: 0.3em; }

.row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; }
.row > :first-child { color: rgba(255, 255, 255, 0.55); }
.row > :last-child { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.row + .row { border-top-color: rgba(255, 255, 255, 0.1); }
.row a, .list-item a, .panel a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.row a:hover, .list-item a:hover, .panel a:not(.btn):hover { text-decoration-color: #fff; }

.list { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: #fff; transition: padding 0.18s; }
a.list-item { text-decoration: none; }
a.list-item:hover { padding-left: 8px; }
.list-item .title, .list-item strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.list-item .meta, .list-item small { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.meter { position: relative; width: 100%; aspect-ratio: 2.4 / 1; min-height: 120px; }
.meter canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: rgba(255, 255, 255, 0.62); font-size: 15px; }
.steps li::before { content: counter(step); color: rgba(255, 255, 255, 0.4); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps li.done, .steps li.on { color: #fff; }
.steps li.on::before { color: #fff; }

.wallet-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wallet-bar .btn { width: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

@media (min-width: 860px) {
  .app { padding-top: 168px; }
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 80px; }
  .app-sub { font-size: 18px; }
}

/* one frame for every screen */
#app .sk-screen, #app .nt, #app .sd, #app .dz { width: min(92vw, 1120px); max-width: none; margin: 0 auto; padding: clamp(132px, 21vh, 220px) 0 96px; box-sizing: border-box; }
#app .sk-screen, #app .nt, #app .sd, #app .dz .one { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(40px, 6vw, 96px); align-items: start; }
#app .sk-title, #app .nt-title, #app .sd h1, #app .dz h1 { font-size: clamp(44px, 5.2vw, 80px); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
#app .sk-switch, #app .nt-seg, #app .sd .coin { display: grid; grid-template-columns: 1fr 1fr; width: 100%; align-self: stretch; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; overflow: hidden; }
#app .sk-switch button, #app .nt-seg button, #app .sd .coin button { height: 48px; padding: 0 12px; font-size: 15px; font-weight: 600; }
#app .sk-amount-in, #app .nt-amt, #app .sd input.amt { height: auto; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); border-radius: 0; padding: 4px 0 10px; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }
#app .sk-amount-in:focus, #app .nt-amt:focus, #app .sd input.amt:focus { border-bottom-color: #fff; }
#app .sk-amount-in::placeholder, #app .nt-amt::placeholder, #app .sd input.amt::placeholder { color: rgba(255, 255, 255, 0.25); }
#app .sk-wide, #app .nt-col > .btn, #app .go { width: 100%; height: 58px; padding: 0 20px; font-size: 16px; justify-content: center; }
#app .sk-text-in, #app .nt-code, #app .sd input.t:not(.amt) { height: 50px; padding: 0 14px; font-size: 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; }
@media (max-width: 860px) {
  #app .sk-screen, #app .nt, #app .sd, #app .dz { padding: 132px 0 72px; }
  #app .sk-screen, #app .nt, #app .sd, #app .dz .one { grid-template-columns: 1fr; gap: 32px; }
  #app .sk-amount-in, #app .nt-amt, #app .sd input.amt { font-size: 48px; }
}

/* wallet chooser */
.wp-back { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.78); }
.wp { width: min(100%, 380px); background: #000; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.wp-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.wp-item { display: flex; align-items: center; gap: 14px; width: 100%; height: 58px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 4px; font-size: 16px; font-weight: 600; text-align: left; color: #fff; transition: background 0.18s, color 0.18s; }
.wp-item:hover { background: #fff; color: #000; }
.wp-item img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.wp-close { align-self: center; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.wp-close:hover { color: #fff; }
