/* Layout only - minimal */
* { margin: 0; padding: 0; box-sizing: border-box }

/* Ticker */
.ticker-wrap {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  padding: calc(34px + env(safe-area-inset-top)) 0 22px;
  background: #f9fafb;
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker-scroll 75s linear infinite;
}

.ticker-card {
  flex-shrink: 0;
  position: relative;
  width: 200px;
  height: 80px;
  background: #E5E7EB;
  border-radius: 12px;
  color: #000;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 14px 10px;
  line-height: 1.3;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.ticker-card:active {
  transform: scale(0.93);
  opacity: 0.75;
}

/* Status pills — absolute, centered, half-overlapping top edge */
.status-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid;
  color: #f9fafb;
}

/* Live — blue */
.ticker-card.live { background: #D9EEFF; }
.ticker-card.live .status-pill {
  background: #0A80E1;
  border-color: #0A80E1;
  color: #fff;
}

/* Pending — gray */
.ticker-card.pending { background: #E5E7EB; }
.ticker-card.pending .status-pill {
  background: #68686B;
  border-color: #68686B;
  color: #fff;
}

/* Won — green */
.ticker-card.won { background: #D7FFF4; }
.ticker-card.won .status-pill {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}

/* Lost — red */
.ticker-card.lost { background: #FFE6E6; }
.ticker-card.lost .status-pill {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}

/* Closed — gray */
.ticker-card.closed { background: #E5E7EB; }
.ticker-card.closed .status-pill {
  background: #68686B;
  border-color: #68686B;
  color: #fff;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

html {
  background: #f9fafb;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #f9fafb;
  color: #000;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.container {
  width: 100%;
  max-width: 360px;
  padding: 2rem 2rem 5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.container::-webkit-scrollbar,
*::-webkit-scrollbar { display: none; width: 0 }
* { scrollbar-width: none; -ms-overflow-style: none }

.content { text-align: center; width: 100% }

.app-icon-flip {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  perspective: 600px;
  cursor: pointer;
}

.app-icon-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}


.app-icon {
  width: 140px;
  height: 140px;
  background: #f9fafb;
  border-radius: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-icon-back {
  background: #0F1011;
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 4px;
}

.app-icon-back-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.back-title {
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.back-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.app-icon img { max-width: 100%; max-height: 100% }

/* Home: tagline */
.tagline {
  font-size: 1rem;
  color: #000c;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* App Store badge */
.appstore-badge {
  display: block;
  margin: 3.5rem auto 2rem;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.appstore-badge:hover { opacity: 0.8 }
.appstore-badge:active { transform: scale(0.93); opacity: 0.75; }
.appstore-badge img { display: block }

/* Coming Soon text */
.coming-soon {
  font-size: 1.1rem;
  color: #888;
  margin: 3.5rem auto 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer links */
.footer {
  margin-top: 1rem;
  text-align: center;
  color: rgba(0,0,0,0.5);
  font-size: 0.8rem;
}

.footer a { color: rgba(0,0,0,0.5); text-decoration: underline; }

/* Content pages (privacy, support): scrollable with logo in flow */
.page-with-logo {
  align-items: flex-start;
}

.page-with-logo .container {
  max-width: 900px;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-with-logo .logo-top {
  width: 140px;
  margin: 0 auto 2rem;
}

.page-with-logo .logo-top .app-icon {
  position: relative;
  top: auto;
  left: auto;
}

.page-with-logo .page-content {
  text-align: left;
  color: rgba(0,0,0,0.9);
  line-height: 1.6;
  padding: 0 20px;
}

.page-with-logo h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #000;
}

.page-with-logo h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #000;
}

.page-with-logo h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
}

.page-with-logo p { margin-bottom: 15px; color: rgba(0,0,0,0.6) }
.page-with-logo p:first-of-type { margin-bottom: 40px }
.page-with-logo ul { margin-left: 20px; margin-bottom: 15px }
.page-with-logo li { margin-bottom: 8px }
.page-with-logo section { margin-bottom: 30px }
.page-with-logo a { color: #000 }

@media (max-width: 600px) {
  .container { margin-left: 0.7rem; margin-right: 0.7rem }
}
