/* Portal — landing page with featured game + 15-tile grid */

html, body { overflow-y: auto; overflow-x: hidden; min-height: 100%; }
body { background: radial-gradient(ellipse at 50% 0%, var(--bg-glow) 0%, var(--bg-mid) 40%, var(--bg-deep) 100%); }

#portal {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  min-height: 100vh;
}

/* === Hero === */
.hero {
  text-align: center;
  margin-bottom: 36px;
}
.hero-logo {
  width: 100px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 18px rgba(182, 255, 46, 0.3));
}
.hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(182, 255, 46, 0.35);
}
.hero-subtitle {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.6;
}
.hero-emphasis {
  color: var(--phosphor);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* === Featured today === */
.featured {
  margin-bottom: 36px;
}
.featured-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--phosphor);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.featured-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  background: rgba(182, 255, 46, 0.06);
  border: 1px solid var(--phosphor);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 0 32px rgba(182, 255, 46, 0.18), inset 0 0 0 1px rgba(182, 255, 46, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.featured-card:active {
  transform: scale(0.98);
  box-shadow: 0 0 18px rgba(182, 255, 46, 0.28);
}
.featured-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--phosphor);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-shadow: 0 0 14px rgba(182, 255, 46, 0.45);
}
.featured-body { flex: 1; min-width: 0; }
.featured-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.featured-desc {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0 0 8px;
  line-height: 1.4;
}
.featured-cta {
  font-size: 12px;
  color: var(--phosphor);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === Grid === */
.grid-section { margin-bottom: 40px; }
.grid-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(244, 241, 234, 0.025);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 8px;
}

.tile-unlocked {
  cursor: pointer;
}
.tile-unlocked:active {
  transform: scale(0.96);
  background: rgba(244, 241, 234, 0.05);
  border-color: var(--phosphor);
}
.tile-locked {
  opacity: 0.42;
  cursor: not-allowed;
}
.tile-today {
  border-color: var(--phosphor);
  background: rgba(182, 255, 46, 0.06);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 46, 0.35);
}

.tile-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tile-today .tile-num { color: var(--phosphor); }
.tile-locked .tile-num { color: var(--ink-dim); }

.tile-name {
  font-size: 10px;
  color: var(--ink-dim);
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

.tile-status {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--phosphor);
  font-weight: 600;
  text-transform: uppercase;
}
.tile-locked .tile-status { color: var(--ink-dim); }

/* === Bottom CTA === */
.cta-section {
  margin: 0 0 40px;
}
.cta-register {
  padding: 16px 16px;
  text-align: center;
}
.cta-register .cta-line-1 {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.cta-register .cta-line-2 {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

/* === Footer === */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-dim);
  opacity: 0.5;
  padding-top: 16px;
}
.footer p { margin: 0; }

/* Larger screens (desktop preview) — keep mobile-feeling */
@media (min-width: 600px) {
  #portal { padding-top: 56px; }
}
