/* Hub scene — mode selector. Mobile-first; modes stack 1-col then 2-col on wider. */

.scene-hub { gap: var(--sp-xl); padding-top: var(--sp-3xl); }

.hub-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-xs); }

.hub-eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mp-accent);
}

.hub-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mp-text);
}

.hub-tagline {
  margin: 0;
  max-width: 28ch;
  color: var(--mp-muted);
  font-size: 1rem;
}

.hub-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

@media (min-width: 600px) {
  .hub-modes { gap: var(--sp-md); }
}

/* Tighter hub title on phones */
@media (max-width: 480px) {
  .hub-title { font-size: 1.75rem; }
  .hub-tagline { font-size: 0.875rem; max-width: 22ch; }
}

.mode-card {
  background: var(--mp-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: var(--sp-sm);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  cursor: default;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .mode-card { padding: var(--sp-md); border-radius: var(--radius-lg); }
}

.mode-card-playable {
  cursor: pointer;
  border-color: var(--mode-colour, var(--mp-accent));
  box-shadow: 0 4px 14px rgba(31,37,48,0.05);
}

.mode-card-playable::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--mode-colour, var(--mp-accent));
}

.mode-card-playable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mode-card-stub { opacity: 0.55; }

.mode-art {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--mp-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.mode-art-emoji {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  line-height: 1;
  filter: saturate(0.9);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--mode-colour) 18%, transparent),
      color-mix(in srgb, var(--mode-colour) 6%,  transparent));
}

/* Legacy alias — kept so any inline references still work */
.mode-emoji {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: var(--sp-sm);
  filter: saturate(0.9);
}

.mode-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--mp-text);
}

.mode-tagline {
  margin: 4px 0 0 0;
  color: var(--mp-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

@media (min-width: 600px) {
  .mode-name { font-size: 1.25rem; }
  .mode-tagline { font-size: 0.9375rem; line-height: 1.4; margin-top: var(--sp-xs); }
}

.mode-stub-pill {
  display: inline-block;
  margin-top: var(--sp-sm);
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--mp-surface);
  color: var(--mp-muted);
}

/* ----- Random Mode CTA ----- */

.hub-random {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
}

.btn-random {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--mp-text);
  color: var(--mp-bg);
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: var(--shadow-md);
}

.btn-random:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-random:active { transform: translateY(0); }

.btn-random-emoji { font-size: 1.2rem; }

.hub-footnote {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.8125rem;
}
