* { box-sizing: border-box; }

:root {
  --portal-bg: linear-gradient(165deg, #eef2ff 0%, #f8fafc 45%, #f1f5f9 100%);
  --register: #0ea5e9;
  --register-dark: #0284c7;
  --house: #f97316;
  --house-dark: #ea580c;
  --vote: #eab308;
  --vote-dark: #ca8a04;
  --lunch: #10b981;
  --lunch-dark: #059669;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--portal-bg);
  color: #0f172a;
}

.portal-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.portal-hero {
  text-align: center;
  padding: 28px 12px 24px;
}

.portal-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-hero p {
  margin: 10px auto 0;
  max-width: 34ch;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.95rem;
}

.portal-tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.portal-tile:active {
  transform: translateY(0);
}

.portal-tile--register {
  background: linear-gradient(135deg, var(--register), var(--register-dark));
}

.portal-tile--house {
  background: linear-gradient(135deg, var(--house), var(--house-dark));
}

.portal-tile--vote {
  background: linear-gradient(135deg, var(--vote), var(--vote-dark));
}

.portal-tile--lunch {
  background: linear-gradient(135deg, var(--lunch), var(--lunch-dark));
}

.portal-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.portal-tile-body {
  flex: 1;
  min-width: 0;
}

.portal-tile-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.portal-tile-desc {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  opacity: 0.92;
}

.portal-tile-arrow {
  font-size: 1.25rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.portal-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.portal-footer a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

.portal-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 560px) {
  .portal-page {
    padding-top: 36px;
  }
}
