/* Maracana Park — Client App
   Design tokens & global styles — LIGHT THEME
   ----------------------------------------------- */

:root {
  /* Surfaces — warm cream light */
  --ink:        #FAF8F2;
  --bg-deep:    #F5F3EC;
  --bg-card:    #FFFFFF;
  --bg-elev:    #F0EDE4;
  --bg-hi:      #E8E4D8;
  --line:       rgba(8,17,13,0.07);
  --line-2:     rgba(8,17,13,0.14);

  /* Brand */
  --pitch:      #00BD63;
  --pitch-deep: #008542;
  --pitch-dim:  #C5EAD2;
  --sun:        #E5600B;
  --sun-deep:   #B84600;
  --gold:       #C9A300;

  /* Text — names kept for compatibility but values inverted */
  --ivory:      #0B1612;
  --ivory-2:    #2D3933;
  --ivory-dim:  #6A7770;
  --ivory-mute: #9AA59E;

  /* Status */
  --danger:     #D63147;
  --info:       #2D7DD2;

  /* Type */
  --f-display:  'Bebas Neue', 'Anton', Impact, sans-serif;
  --f-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, monospace;
}

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--f-body);
  background: var(--bg-deep);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* Stage — plein écran mobile, fond de marque desktop */
.stage {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}

/* Coquille du téléphone — full-screen sur mobile, cadre centré sur desktop */
.phone-shell {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* App-wide content inside-the-phone */
.app {
  height: 100%;
  background: var(--bg-deep);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Branding masqué sur tous les écrans */
.stage-brand { display: none; }

/* Desktop — largeur limitée, centré */
@media (min-width: 768px) {
  .stage {
    display: flex;
    justify-content: center;
  }

  .phone-shell {
    width: 100%;
    max-width: 720px;
  }
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.app-scroll::-webkit-scrollbar { display: none; }

/* Typography helpers */
.t-display { font-family: var(--f-display); letter-spacing: 0.02em; line-height: 0.9; }
.t-mono    { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  font-weight: 600;
}

/* Primary button */
.btn-primary {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: var(--pitch);
  color: #FFFFFF;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms;
  box-shadow: 0 10px 24px -10px rgba(0,189,99,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); background: #00CD6E; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--bg-elev);
  color: var(--ivory-mute);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--ivory);
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { background: var(--bg-elev); }

.btn-ghost {
  background: transparent;
  color: var(--ivory-dim);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(8,17,13,0.04);
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill.success { background: rgba(0,189,99,0.14); color: var(--pitch-deep); }
.pill.warn    { background: rgba(229,96,11,0.16); color: var(--sun-deep); }
.pill.info    { background: rgba(45,125,210,0.14); color: var(--info); }
.pill.muted   { background: rgba(8,17,13,0.06); color: var(--ivory-dim); }
.pill.danger  { background: rgba(214,49,71,0.12); color: var(--danger); }

/* Menu row hover */
.menu-row:first-child { border-top: none !important; }
.menu-row:hover { background: var(--bg-elev); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,189,99,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(0,189,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,189,99,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp 360ms cubic-bezier(.2,.7,.2,1) both; }
