:root { --bg: #0f1115; --fg: #f2f3f5; --mut: #8a8f98; --card: #1a1d24; --acc: #18c47c; --err: #ff5a5f; color-scheme: dark }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.35 system-ui, -apple-system, Roboto, sans-serif }
[v-cloak] { display: none }
#app { min-height: 100%; display: flex; flex-direction: column }
button { font: inherit; color: inherit; border: 0; border-radius: 14px; background: var(--card); padding: 14px 18px; cursor: pointer }
button:active { transform: scale(.97) }
.pos { flex: 1; display: flex }
.pos > section { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; text-align: center; animation: fade .25s }
h1, h2 { margin: 8px 0 }
.sub, small { color: var(--mut) }
.warn { color: #ffb547 }

/* idle */
.hero { font-size: 56px; animation: bob 2.4s ease-in-out infinite }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 420px; margin-top: 16px }
.card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px }
.card .emoji { font-size: 40px; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s) }

/* amount */
.emoji.big { font-size: 88px; animation: bob 2.4s ease-in-out infinite }
.sum { font-size: 44px; font-weight: 700; margin: 4px 0 20px }
.tap { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: var(--acc); background: #18c47c18; animation: pulse 1.6s ease-out infinite }
.tap svg { width: 64px; transform: rotate(0deg) }
.tap.on { animation-duration: .8s }
.tap.on path { animation: wave 1.2s infinite; animation-delay: calc(var(--d, 0) * .2s) }
.tap path:nth-child(2) { --d: 1 } .tap path:nth-child(3) { --d: 2 }
.pays { color: var(--mut); font-size: 13px; letter-spacing: .5px }
.actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; margin-top: 12px }
.primary { background: var(--acc); color: #04140c; font-weight: 700 }
.ghost { background: transparent; border: 1px solid #2a2e37 }

/* result */
.result .mark { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; font-weight: 700; animation: pop .35s }
.result.ok .mark { background: var(--acc); color: #04140c }
.result.fail .mark { background: var(--err) }

/* debug */
.debug { flex: 1; padding: 12px; font-size: 14px; overflow: auto }
.debug h3 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; color: var(--mut) }
.debug .row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: center }
.debug button { padding: 10px 12px; font-size: 14px }
.debug .mini { padding: 4px 10px; font-size: 12px }
.debug input { background: var(--card); color: var(--fg); border: 1px solid #2a2e37; border-radius: 10px; padding: 9px; font: inherit; min-width: 0; flex: 1 }
.debug label { display: flex; gap: 6px; align-items: center; flex: 1; color: var(--mut) }
pre { background: var(--card); padding: 10px; border-radius: 10px; margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 12px; border-left: 3px solid #2a2e37 }
pre.ok { border-color: var(--acc) } pre.fail { border-color: var(--err) }
.logs { list-style: none; padding: 0; margin: 0; font: 11px/1.4 ui-monospace, Menlo, monospace }
.logs li { padding: 3px 0; border-bottom: 1px solid #1f232b; word-break: break-all }
.logs i { color: var(--mut); font-style: normal } .logs .error { color: var(--err) } .logs .warn { color: #ffb547 } .logs .debug { color: var(--mut) }

footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--mut); border-top: 1px solid #1f232b }
.toggle { display: flex; gap: 4px; align-items: center }

@keyframes bob { 50% { transform: translateY(-8px) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #18c47c55 } 100% { box-shadow: 0 0 0 28px #18c47c00 } }
@keyframes wave { 50% { opacity: .25 } }
@keyframes pop { from { transform: scale(.4); opacity: 0 } }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } }
