:root {
  --bg: #020617;
  --card: #020617;
  --card-soft: #020817;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.15), transparent 60%),
    #020617;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 32px 16px 40px;
}

.page {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 22px 18px 22px;
}

@media (min-width: 720px) {
  .page {
    padding: 26px 28px 26px;
  }
}

/* HEADER */
header {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-title {
  font-size: clamp(26px, 3vw, 30px);
  letter-spacing: 0.05em;
}

.site-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 40rem;
}

.banner {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.96));
  padding: 14px 14px 12px;
  font-size: 13px;
  color: var(--muted);
}

.banner strong {
  color: var(--accent);
  font-weight: 500;
}

/* MAIN LAYOUT */
main {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr);
  gap: 18px;
}

@media (max-width: 820px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }
}

section {
  margin-bottom: 14px;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 14px 14px 12px;
}

/* ENTRANCE ANIMATION FOR CARDS */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInCascade 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInCascade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
}
.section-header-wrap svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: inherit;
}

.section-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

/* LINK LISTS */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CSS GRID FOR GAMES (replaces simple list) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.link-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.6);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  padding: 12px;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.link-item:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), rgba(15, 23, 42, 0.98));
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 47, 73, 0.7);
}

.link-anchor {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
}

.link-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-url {
  font-size: 11px;
  color: var(--muted);
}

.link-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* ICONS SPECIFIC SPACING */
.icon-sm {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  opacity: 0.8;
}

/* CONTACT + SOCIAL */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-soft);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}

.contact-item a:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.contact-note {
  font-size: 12px;
  color: var(--muted);
}

/* MINIMAL FLOATING NAVIGATION BAR FOR APPS */
.minimal-nav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(8px);
  opacity: 0.4;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.minimal-nav:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent);
  transform: scale(1.05);
}

.minimal-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(75, 85, 99, 0.8);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
