:root {
  --bg: #0b1220;
  --paper: #121a2b;
  --ink: #e8eefc;
  --muted: #8fa0c0;
  --accent: #4c8dff;
  --accent2: #7dd3fc;
  --line: rgba(232, 238, 252, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(76, 141, 255, 0.28), transparent 55%),
    radial-gradient(700px 420px at 90% 0%, rgba(125, 211, 252, 0.12), transparent 50%),
    linear-gradient(180deg, #0a101c, var(--bg));
}
.hidden { display: none !important; }
.shell { width: min(1100px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 40px; }
.top { margin-bottom: 28px; }
.brand-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: start;
}
.brand-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.brand small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.side-notes { display: grid; gap: 8px; }
.note-card {
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.75);
  border-radius: 12px;
  padding: 10px 12px;
}
.note-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}
.note-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(145deg, rgba(76, 141, 255, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(18, 26, 43, 0.96), rgba(12, 18, 32, 0.98));
  margin-bottom: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hero h1 {
  margin: 0 0 8px;
  font-family: Syne, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
}
.hero-sub { margin: 0 0 10px; color: var(--accent2); font-weight: 700; font-size: 18px; }
.hero-body { margin: 0 0 18px; color: var(--muted); max-width: 54ch; line-height: 1.55; }
.btn-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  max-width: 760px;
}
.btn-aside {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.portal-btn {
  --btn: #4c8dff;
  appearance: none;
  text-decoration: none;
  color: var(--ink);
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 238, 252, 0.14);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(18, 26, 43, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.portal-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--btn) 55%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--btn) 18%, transparent);
}
.portal-btn-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--btn) 40%, transparent);
  background: color-mix(in srgb, var(--btn) 18%, transparent);
  color: var(--btn);
  font-family: Syne, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.portal-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.portal-btn-copy strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.portal-btn-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-btn-go {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--btn) 45%, transparent);
  background: var(--btn);
  color: #0b1220;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--btn) 28%, transparent);
}
.portal-btn-aside {
  width: auto;
  min-height: 40px;
  padding: 6px 10px;
  opacity: 0.78;
  border-style: dashed;
  grid-template-columns: auto auto auto;
  gap: 8px;
}
.portal-btn-aside .portal-btn-icon {
  min-width: 36px;
  height: 24px;
  font-size: 10px;
}
.portal-btn-aside .portal-btn-copy strong { font-size: 12px; }
.portal-btn-aside .portal-btn-copy small { font-size: 9px; }
.portal-btn-aside .portal-btn-go {
  width: 24px;
  height: 24px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 238, 252, 0.18);
  color: var(--muted);
  box-shadow: none;
}
.portal-btn-aside:hover { opacity: 1; }
.portal-btn.sm { min-height: 48px; }
.portal-btn.lg { min-height: 64px; }
.domain-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  max-width: 760px;
}
.domain-links a {
  font-family: Syne, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 252, 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.domain-links a:hover {
  color: #d7ff4a;
  border-bottom-color: rgba(215, 255, 74, 0.55);
}
.domain-links-sep {
  color: rgba(232, 238, 252, 0.28);
  font-size: 12px;
  user-select: none;
}
.portal-btn-featured {
  --btn: #d7ff4a;
  grid-column: span 2;
  min-height: 72px;
  border-color: rgba(215, 255, 74, 0.55);
  background:
    linear-gradient(135deg, rgba(215, 255, 74, 0.28), rgba(215, 255, 74, 0.06) 42%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(22, 34, 18, 0.96);
  box-shadow:
    0 1px 0 rgba(215, 255, 74, 0.22) inset,
    0 10px 28px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(215, 255, 74, 0.18),
    0 0 24px rgba(215, 255, 74, 0.12);
}
.portal-btn-featured .portal-btn-icon {
  min-width: 52px;
  height: 36px;
  font-size: 14px;
  background: rgba(215, 255, 74, 0.22);
  border-color: rgba(215, 255, 74, 0.55);
  color: #eaff8a;
}
.portal-btn-featured .portal-btn-copy strong {
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #f4ffc4;
}
.portal-btn-featured .portal-btn-copy small {
  color: #d7ff4a;
}
.portal-btn-featured .portal-btn-go {
  width: 36px;
  height: 36px;
  font-size: 15px;
  background: #d7ff4a;
  border-color: #d7ff4a;
  color: #0b1220;
  box-shadow: 0 6px 14px rgba(215, 255, 74, 0.35);
}
.portal-btn-featured:hover {
  border-color: rgba(215, 255, 74, 0.8);
  box-shadow:
    0 1px 0 rgba(215, 255, 74, 0.3) inset,
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(215, 255, 74, 0.28),
    0 0 34px rgba(215, 255, 74, 0.2);
}

.mobile-top5 {
  display: none;
  margin: 0 0 6px;
  border: 1px solid rgba(232, 238, 252, 0.1);
  border-radius: 8px;
  padding: 3px 5px 2px;
  background: rgba(18, 26, 43, 0.75);
}
.mobile-top5-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}
.mobile-top5-kicker {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d7ff4a;
}
.mobile-top5-head strong {
  font-family: Syne, sans-serif;
  font-size: 9px;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}
.mobile-top5-link {
  color: var(--accent2);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.mobile-top5-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6px;
}
.mobile-top5-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 3px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  min-height: 16px;
}
.mobile-top5-row:last-child {
  grid-column: 1 / -1;
}
.mobile-top5-rank {
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  font-family: Syne, sans-serif;
  font-size: 8px;
  font-weight: 800;
  background: rgba(215, 255, 74, 0.12);
  color: #d7ff4a;
  border: none;
}
.mobile-top5-row:nth-child(1) .mobile-top5-rank {
  background: rgba(255, 215, 64, 0.22);
  color: #ffe08a;
}
.mobile-top5-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  font-size: 10px;
  line-height: 1.15;
}
.mobile-top5-score {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.mobile-top5-empty {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  padding: 1px;
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .btn-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }
  .portal-btn {
    min-height: 52px;
    padding: 8px 10px;
    gap: 8px;
    /* Nyíl nélkül: a felirat ne csússzon a ↗ alá */
    grid-template-columns: auto minmax(0, 1fr);
  }
  .portal-btn-go { display: none; }
  .portal-btn-icon {
    min-width: 34px;
    height: 28px;
    padding: 0 6px;
    font-size: 10px;
  }
  .portal-btn-copy strong { font-size: 13px; }
  .portal-btn-copy small { display: none; }
  .portal-btn-aside {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .portal-btn-featured {
    grid-column: 1 / -1;
    min-height: 58px;
    order: -1;
  }
  .portal-btn-featured .portal-btn-icon {
    min-width: 40px;
    height: 30px;
    font-size: 12px;
  }
  .portal-btn-featured .portal-btn-copy strong {
    font-size: 15px;
  }
  .mobile-top5 { display: block; }
}
.blocks { display: grid; gap: 12px; margin-bottom: 28px; }
.block {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  background: rgba(18, 26, 43, 0.7);
}
.block h3 { margin: 0 0 6px; font-family: Syne, sans-serif; }
.block p { margin: 0; color: var(--muted); line-height: 1.5; }
.news-wrap h2 { font-family: Syne, sans-serif; letter-spacing: -0.03em; }
.news-list { display: grid; gap: 10px; }
.news-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  background: var(--paper);
}
.news-card h3 { margin: 0 0 6px; font-size: 17px; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-card .meta { margin-top: 8px; font-size: 12px; color: var(--muted); opacity: 0.8; }
.foot {
  margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: var(--muted); font-size: 13px;
}
.foot a { color: var(--accent2); text-decoration: none; font-weight: 700; }
.maint {
  min-height: 100svh; display: grid; place-items: center; padding: 24px;
}
.maint-card {
  width: min(520px, 100%); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; background: var(--paper); text-align: center;
}
.kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
@media (max-width: 800px) {
  .brand-block { grid-template-columns: 1fr; }
}
