/* ============================================================
   base.css — Reset, body, layout primitives
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: var(--font);
}

img {
  display: block;
  max-width: 100%;
}

/* App shell */
.app {
  max-width: 450px;
  margin: 0 auto;
  height: 100vh;
  height: calc(var(--real-vh, 1vh) * 100);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

/* Screen base */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.screen.hidden {
  display: none !important;
}

/* Scrollable content area */
.main-scroll,
.result-scroll,
.pay-scroll,
.settings-scroll,
.history-scroll {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-scroll::-webkit-scrollbar,
.result-scroll::-webkit-scrollbar,
.pay-scroll::-webkit-scrollbar,
.settings-scroll::-webkit-scrollbar,
.history-scroll::-webkit-scrollbar {
  display: none;
}

/* Utility */
.hidden {
  display: none !important;
}

.section-label {
  width: 100%;
  font-weight: 800;
  font-size: 16px;
  color: var(--txt);
  margin-bottom: 10px;
}
