/* Renkleri buradan değiştirerek sayfanın tarzını değiştirebilirsin */
:root {
  --bg: #0a0612;
  --pink: #ff4fa3;
  --violet: #8b5cf6;
  --text: #f4eefc;
  --muted: #b9a9d6;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 10%, #2a1050 0, transparent 60%),
    radial-gradient(900px 600px at 90% 90%, #4a0f3d 0, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* Giriş ekranı */
#splash {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  border: 0;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.splash-logo {
  width: min(78vw, 460px); height: auto;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.55));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#splash span {
  font-size: 1.05rem; letter-spacing: 0.35em; text-transform: lowercase;
  animation: pulse 2.2s ease-in-out infinite;
  text-align: center; padding: 0 18px; transition: color .25s ease;
}
#splash span.error { color: #ff8294; }
#splash span.fixing { color: #ffd479; }
#splash span.success { color: #8fffc1; }
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* Sayfa */
#page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 42px 24px;
  perspective: 900px;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#page.hidden { opacity: 0; transform: scale(0.96); }

.card {
  width: min(100%, 440px);
  padding: 30px 24px 22px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.15s ease-out;
}

.layout {
  width: min(100%, 900px);
  display: grid; grid-template-columns: minmax(0, 440px) minmax(250px, 310px);
  align-items: stretch; justify-content: center; gap: 20px;
}

.avatar {
  position: relative;
  width: 112px; height: 112px; margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 34px rgba(255, 79, 163, 0.45);
  overflow: hidden;
}
.avatar-fallback, .avatar img {
  position: absolute; inset: 3px;
  width: calc(100% - 6px); height: calc(100% - 6px);
  border-radius: 50%;
}
.avatar-fallback {
  display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 800;
  background-color: #150a26;
  background-image: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.avatar img { object-fit: cover; background: #000; }

h1 { margin: 0; font-size: 1.7rem; letter-spacing: 0.02em; }

.type { min-height: 1.5em; margin: 6px 0 20px; color: var(--muted); font-size: 0.98rem; }
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  vertical-align: -0.15em; background: var(--pink);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Öne çıkanlar */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.feat {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px; border-radius: 16px; color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 79, 163, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feat b { font-size: 0.98rem; }
.feat small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.feat:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 8px 26px rgba(255, 79, 163, 0.25); }

.games-panel {
  align-self: center; padding: 24px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(32, 20, 48, .92), rgba(17, 13, 27, .94));
  border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(139, 92, 246, .2), inset 0 1px 0 rgba(255,255,255,.06);
}
.games-heading { text-align: left; margin: 0 0 20px; }
.games-kicker { color: var(--pink); font-size: .66rem; font-weight: 800; letter-spacing: .2em; }
.games-heading h2 { margin: 5px 0 4px; font-size: 1.45rem; }
.games-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.game-list { display: grid; gap: 12px; }
.game-list .feat { min-height: 96px; justify-content: center; padding: 16px; background: rgba(255,255,255,.045); }
.game-list .feat b { font-size: 1rem; }
.game-list .feat small { font-size: .82rem; }
.games-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }

/* Bağlantılar */
.links { display: grid; gap: 10px; }
.links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.links a .ic { width: 22px; text-align: center; font-size: 1.1rem; }
.links a .arrow { margin-left: auto; opacity: 0.5; transition: transform 0.2s, opacity 0.2s; }
.links a:hover { transform: translateY(-2px); border-color: var(--violet); background: rgba(139, 92, 246, 0.14); }
.links a:hover .arrow { transform: translateX(3px); opacity: 1; }

footer { margin-top: 20px; color: var(--muted); font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 760px) {
  #page { align-items: start; padding: 22px 14px; }
  .layout { width: min(100%, 440px); grid-template-columns: 1fr; gap: 14px; }
  .card { width: 100%; }
  .games-panel { width: 100%; padding: 20px; }
  .game-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .featured, .game-list { grid-template-columns: 1fr; }
  .card { padding: 26px 18px 20px; }
  #splash span { font-size: .82rem; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
