/* Arhatic Yoga · Daily Practice Log — base styles (screens use the design's inline styles) */
:root {
  --app-w: 480px;
  --bg: #0e0c1f;
  --ink: #efe8dc;
  color-scheme: dark;
}

* { -webkit-tap-highlight-color: transparent; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(130% 50% at 50% -14%, rgba(164,143,240,0.20), rgba(164,143,240,0) 62%),
    radial-gradient(90% 36% at 100% 108%, rgba(226,189,114,0.07), rgba(226,189,114,0) 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Jost', 'Avenir Next', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Candlelight after 9 pm: a warm, dimming veil (a filter on body would break fixed bars) */
html.candle body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: rgba(60, 32, 0, 0.22);
  mix-blend-mode: multiply;
}

.app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  padding-top: env(safe-area-inset-top);
  box-sizing: border-box;
}

.with-tabs main {
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.tabbar {
  height: calc(82px + env(safe-area-inset-bottom));
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.app-header { top: env(safe-area-inset-top); }

button, a, label, input, select, textarea { font-family: inherit; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 2px solid #a48ff0;
  outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: #8f84ad; opacity: 1; }
select option { background: #171430; color: #efe8dc; }
img { max-width: 100%; }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 3s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .spin, .pulse { animation: none; }
}

/* On wide screens, show the phone-sized app with a soft edge */
@media (min-width: 560px) {
  .app { border-left: 1px solid rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.04); }
}
