/* Base reset + keyframes — ported verbatim from the Jolly Store design. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; opacity: .7; }
button { font-family: inherit; }
input, select { font-family: inherit; outline: none; }
::selection { background: #141414; color: #fff; }

@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Mobile bottom navigation — hidden on wider screens */
.js-mobnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  justify-content: space-around;
  align-items: stretch;
  background: var(--bg, #faf9f7);
  border-top: 1px solid var(--line, #e7e4df);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  transition: background .3s ease;
}
.js-mobnav__tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--sub, #8a867f);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .15s ease;
}
.js-mobnav__tab[data-active="1"] { color: var(--ink, #141414); }
.js-mobnav__ic {
  position: relative;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.js-mobnav__ic svg { width: 22px; height: 22px; display: block; }
.js-mobnav__badge {
  position: absolute;
  top: -5px; right: -9px;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--inv, #141414);
  color: var(--invInk, #ffffff);
  font-size: 9px; line-height: 15px;
  text-align: center; letter-spacing: 0; font-weight: 600;
}

@media (max-width: 640px) {
  .js-mobnav { display: flex; }
  .js-app { padding-bottom: 74px; } /* clear the fixed bottom bar */
  .js-hide-mobile { display: none !important; }
}

/* Loading state before the app boots */
.js-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a867f;
  background: #faf9f7;
}
