:root {
  --bg: #0b0f17;
  --surface: #121826;
  --text: #e6eaf2;
  --muted: #9aa6bf;
  --accent: #6ea8fe;
  --accent-strong: #3b82f6;
  --border: #20293c;
  --header-h: 72px;
  --panel-max-w: 1400px;
  --panel-padding: 32px;
  --card-gap: 32px;
  --title-size: 48px;
  --body-size: 20px;
  --button-size: 20px;
  --media-aspect: 16 / 9;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(180deg, #0b0f17 0%, #0e1422 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  font-size: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  padding: 12px 28px;
  min-height: var(--header-h);
  background: rgba(18, 24, 38, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.tab-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}


.site-brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 28px;
}

.site-ig {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-ig:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.tab-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}



.tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  font-size: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 160ms ease-in-out;
}

.tab:hover {
  color: var(--text);
  border-color: #2a3550;
  background: rgba(255, 255, 255, 0.03);
}

.tab--active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(110, 168, 254, 0.12);
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 28px 48px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--panel-padding);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  width: auto;
  max-width: var(--panel-max-w);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms ease-in-out;
}

.tab-panel[hidden] {
  display: none;
  opacity: 0;
}

.tab-panel.fade-out {
  opacity: 0;
}

.tab-panel.fade-in {
  opacity: 1;
}

.mafia-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--card-gap);
  align-items: center;
}

.media {
  width: 100%;
  aspect-ratio: var(--media-aspect);
  overflow: hidden;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content h1 {
  margin: 0 0 16px 0;
  font-size: var(--title-size);
}

.content p {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: var(--body-size);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--accent-strong);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: var(--button-size);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  width: fit-content;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.45);
}

.button-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.install-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: var(--button-size);
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
  width: fit-content;
  text-decoration: none;
}

.install-guide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.45);
}

.placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.view-counter {
  position: fixed;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 24, 38, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  z-index: 100;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.counter-text {
  margin-left: 4px;
}

@media (max-width: 900px) {
  html, body { font-size: 16px; }
  .site-brand { font-size: 24px; }
  .mafia-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .content h1 { font-size: 32px; }
  .download-btn { font-size: 16px; padding: 12px 18px; }
} 