/* public/css/rankrush.css — Sleek Charcoal & Graphite Gray Palette */
:root {
  --bg: #111317;
  --card-bg: #1a1d23;
  --surface-2: #232730;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #60a5fa;
  --gold: #eab308;
  --emerald: #4ade80;
  --rose: #f87171;
  --purple: #a78bfa;
  --orange: #fb923c;
  --muted: #9ca3af;
  --text: #f3f4f6;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  height: var(--app-height, 100dvh);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 520px) {
  html {
    font-size: 11px;
  }
}

.scene-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0d1016;
}

.scene-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
}

@media (max-aspect-ratio: 4/5) {
  .scene-stage {
    transform: translate(-60%, -50%);
  }
}

.scene-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 16, 22, 0.42) 0%,
    rgba(13, 16, 22, 0.04) 36%,
    rgba(13, 16, 22, 0.72) 82%,
    rgba(13, 16, 22, 0.92) 100%
  );
}

.nyc-sign {
  width: 100%;
  max-width: 440px;
  margin-top: 6px;
  background: rgba(8, 8, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid #ffffff;
  border-radius: 4px;
  padding: 6px 10px 7px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  height: var(--app-height, 100dvh);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 4px 2px max(12px, env(safe-area-inset-bottom, 12px));
  gap: 6px;
  overflow: hidden;
}

body.tv-mode .app-shell {
  max-width: 1600px;
  padding: 20px 28px;
}

/* Header */
.rr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-shrink: 0;
}

.rr-logo {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  height: 26px;
  padding: 0 8px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.rr-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  height: 26px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 #090d16;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.rr-pill:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 0 0 #090d16;
}

.rr-pill.emerald {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--emerald);
}


.hidden { display: none !important; }

/* Portrait-only on phones: overlay shown by js/rankrush-orientation.js */
.rotate-lock {
  display: none;
}

body.rr-rotate-lock:not(.tv-mode) .rotate-lock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d1016;
  color: var(--text);
  text-align: center;
  padding: 24px;
}

.rotate-lock-icon {
  font-size: 2.6rem;
  transform: rotate(90deg);
}

.rotate-lock-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rotate-lock-sub {
  font-size: 0.84rem;
  color: var(--muted);
}
