/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* =========================
   NATIVE APP FEEL
========================= */

/* Disable web-style text selection and tap highlights */
* {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Disable iOS long-press menu */
html {
  -webkit-touch-callout: none;
}

/* Allow typing fields to behave normally */
input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}


/* =========================
   BODY / LAYOUT
========================= */

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;

  /* Native system fonts */
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  /* Disable overscroll bounce */
  overscroll-behavior: none;
}


/* App container */
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* Scrollable content area */
.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* =========================
   SAFE AREA (iPhone notch)
========================= */

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}


/* =========================
   TOUCH INTERACTION
========================= */

button,
a {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Native-like press feedback */
button:active {
  transform: scale(0.96);
  opacity: 0.9;
}


/* =========================
   IMAGES
========================= */

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

  /* Disable drag behavior */
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}


/* =========================
   SCROLLBARS
========================= */

/* Hide scrollbars (still scrollable) */
::-webkit-scrollbar {
  display: none;
}


/* =========================
   LINKS
========================= */

a {
  text-decoration: none;
  color: inherit;
}


/* =========================
   FORM ELEMENTS
========================= */

input,
textarea,
select {
  outline: none;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
}


/* =========================
   ANIMATION HELPERS
========================= */

.screen {
  will-change: transform, opacity;
}

.fade-in {
  animation: fadeIn 200ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}


/* =========================
   UTILITY CLASSES
========================= */

.hidden {
  display: none !important;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}