:root {
  --bg: #ffffff;
  --text: #0f0f0f;
  --accent: #ff4d00;
  --soft: #f7f7f7;
  --border: #e8e8e8;
  --card: #fafafa;
  --slot-bg: #111111;
  --radius: 16px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}

header {
  padding: 20px 20px 10px;
}

.logo {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.logo span {
  color: var(--accent);
}

.tagline {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin-top: 4px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 20px 8px;
}

/* NICHOS ROW */
.nichos-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.nichos-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 12px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
}

.nichos-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.15s;
  color: var(--text);
  user-select: none;
  margin: 0 4px;
}

.scroll-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.nicho-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nicho-card:hover {
  border-color: #ccc;
  transform: translateY(-1px);
}

.nicho-card:active {
  transform: scale(0.96);
}

.nicho-card.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.25);
}

.nicho-emoji {
  font-size: 26px;
  display: block;
  margin-bottom: 5px;
  line-height: 1;
}

.nicho-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.bloco-tag {
  display: none;
  margin: 0 20px 6px;
  background: #fff3ee;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
}

/* MAIN COLS */
.main-cols {
  padding: 8px 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 700px) {
  .main-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* SLOT */
.slot-machine {
  background: var(--slot-bg);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}

.slot-header {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.slot-window {
  background: #1a1a1a;
  border-radius: 12px;
  border: 2px solid #2a2a2a;
  height: 80px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.slot-inner {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.slot-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.slot-item span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

.slot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, #1a1a1a, transparent);
  pointer-events: none;
  z-index: 2;
}

.slot-overlay.bot {
  top: auto;
  bottom: 0;
  background: linear-gradient(to top, #1a1a1a, transparent);
}

.slot-line {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.5;
  pointer-events: none;
}

.spin-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spin-btn:hover:not(:disabled) {
  background: #e04400;
}

.spin-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.spin-btn:disabled {
  background: #444;
  cursor: not-allowed;
}

.slot-hint {
  text-align: center;
  color: #555;
  font-size: 11px;
  margin-top: 10px;
  font-weight: 600;
}

/* RESULT */
.result-section {
  display: none;
}

.result-section.visible {
  display: block;
}

.result-card {
  background: var(--soft);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: popIn 0.28s ease forwards;
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.result-header {
  background: var(--accent);
  padding: 20px;
  color: white;
}

.result-emoji {
  font-size: 34px;
  margin-bottom: 8px;
  display: block;
}

.result-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.result-nicho-tag {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: inline-block;
}

.result-desc {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.92;
  font-style: italic;
  line-height: 1.5;
}

.result-body {
  padding: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.info-chip {
  background: white;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
}

.info-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.info-chip-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.section-block {
  margin-bottom: 16px;
}

.section-block-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-block-content {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}

.section-block-content ol,
.section-block-content ul {
  padding-left: 18px;
}

.section-block-content li {
  margin-bottom: 4px;
}

.funny-tip {
  background: #fffbea;
  border-left: 3px solid #ffe033;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  font-size: 13px;
  color: #555;
  margin-top: 16px;
  line-height: 1.6;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--soft);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.modal-body {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

.modal-body h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 18px 0 6px;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--soft);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
  text-align: center;
}

.modal-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.modal-content {
  display: none;
}

.modal-content.active {
  display: block;
}

footer {
  text-align: center;
  padding: 16px 20px 28px;
  font-size: 11px;
  color: #ccc;
  font-weight: 500;
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

/* BANNERS PUBLICIDADE */
.ad-banner {
  width: 100%;
  min-height: 90px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.ad-label {
  font-size: 10px;
  color: #ccc;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.share-btn {
  width: 100%;
  margin-top: 16px;
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  background: var(--accent);
  color: white;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.result-actions .share-btn {
  flex: 1;
  margin-top: 0;
}

.spin-again-btn {
  background: var(--soft);
  color: var(--text);
  border-color: var(--border);
}

.spin-again-btn:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
