/* ceus.games · neon kristal */
:root {
  --bg: #07051a;
  --bg2: #0e0a2a;
  --panel: rgba(22, 16, 58, 0.72);
  --line: rgba(124, 108, 220, 0.22);
  --line2: rgba(124, 108, 220, 0.4);
  --text: #eeeafc;
  --muted: #a39cc9;
  --teal: #2dd4bf;
  --teal2: #5eead4;
  --pink: #f0abfc;
  --danger: #f87171;
  --radius: 16px;
  --display: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.6 var(--display);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(240, 171, 252, 0.13), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(45, 212, 191, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
  background-attachment: fixed;
}
/* ince ızgara dokusu */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 108, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 220, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
a { color: var(--teal2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.8rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 20px; }
main.page { flex: 1; padding-top: 32px; padding-bottom: 56px; }
main.home { flex: 1; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; }

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 5, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; height: 64px; gap: 16px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--teal); font-weight: 800; }
.mark { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.65)); }
.lang { font-weight: 700; font-size: .8rem; letter-spacing: 1px; color: var(--muted); }
.icon-link { color: var(--muted); font-size: 1.1rem; }
.banner { background: #3b2a06; color: #fcd34d; text-align: center; font-size: .85rem; padding: 5px 16px; }
.flash {
  width: min(1200px, calc(100% - 40px)); margin: 14px auto 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.45);
}

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 750; color: #04201d; background: var(--teal); transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.danger { background: var(--danger); color: #3b0a0a; }
.btn.neon {
  --accent: var(--teal);
  background: var(--accent); color: #04201d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn.neon:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 10px 40px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 80px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.big { padding: 16px 30px; font-size: 1.15rem; border-radius: 14px; text-transform: uppercase; letter-spacing: 1px; }
.tri { font-size: .9em; }

/* ---------- ana sayfa: öne çıkan oyun ---------- */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 26, 0.95) 0%, rgba(7, 5, 26, 0.75) 38%, rgba(7, 5, 26, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-in { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 64px; max-width: 1200px; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; line-height: .95; text-transform: uppercase; letter-spacing: 1px;
  margin: 14px 0 12px; max-width: 12ch;
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero-text { font-size: 1.15rem; color: #d6d1ef; max-width: 46ch; margin: 0 0 26px; }
.hero-note { color: var(--muted); margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; letter-spacing: .3px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
}
.chip.hot { background: var(--accent); color: #04201d; border-color: transparent; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- oyun rafı ---------- */
.shelf { margin-top: 44px; }
.section-title { font-size: .85rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile { --accent: var(--teal); display: block; color: var(--text); border-radius: var(--radius); }
.tile:hover { text-decoration: none; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line2); background: #120d2e; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.tile:hover .thumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px); }
a.tile:hover .thumb img { transform: scale(1.06); }
.play-dot {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #04201d; font-size: .95rem; opacity: 0; transform: translateY(6px); transition: .2s;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent);
}
a.tile:hover .play-dot { opacity: 1; transform: none; }
.tile-info { padding: 10px 4px 0; }
.tile-info h3 { font-size: 1.05rem; margin: 0; }
.tile-info p { margin: 0; font-size: .85rem; color: var(--accent); font-weight: 600; }
.tile.locked .thumb img { filter: grayscale(.6) brightness(.45) blur(1px); }
.soon {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  font-size: .85rem; color: var(--text);
}

/* ---------- stüdyo şeridi ---------- */
.studio {
  margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px;
  border-radius: var(--radius); color: var(--text); border: 1px solid var(--line2);
  background: linear-gradient(110deg, rgba(251, 146, 60, 0.12), rgba(124, 58, 237, 0.1) 60%, transparent), var(--panel);
}
.studio:hover { text-decoration: none; border-color: #fb923c; }
.studio h2 { margin: 2px 0 4px; }
.studio p { margin: 0; }
.kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: #fdba74; font-weight: 700; }

/* ---------- paneller ve formlar ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; backdrop-filter: blur(10px); }
.panel.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.panel.danger { border-color: rgba(248, 113, 113, 0.35); }
.panel.glow { box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.15), 0 30px 80px rgba(45, 212, 191, 0.12); }
label { display: block; margin-bottom: 16px; font-size: .9rem; color: var(--muted); }
label small { display: block; margin-top: 5px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; color: var(--text);
  background: rgba(5, 3, 18, 0.7); border: 1px solid var(--line2); border-radius: 11px; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2); }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
label.check input { width: auto; margin-top: 5px; accent-color: var(--teal); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.inline { display: inline-flex; gap: 8px; }
table.list { width: 100%; border-collapse: collapse; margin: 14px 0; }
table.list td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
td.num { text-align: right; font-weight: 750; }
.soon { text-align: center; }
form.soon label { text-align: left; }
.soon-mark .mark { width: 64px; height: 64px; margin-bottom: 8px; }

/* ---------- oyun sayfası ---------- */
body.playing { height: 100vh; overflow: hidden; background: #000; }
body.playing::before { display: none; }
.bar {
  --accent: var(--teal);
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; font-size: .9rem;
  background: rgba(7, 5, 26, 0.92); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 35%, transparent);
}
.bar-home { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.bar-home .mark { width: 22px; height: 22px; }
.bar-sep { width: 1px; height: 20px; background: var(--line2); }
.bar-title { color: var(--accent); letter-spacing: .3px; }
.bar .spacer { flex: 1; }
.bar-btn { background: none; border: 1px solid var(--line2); border-radius: 9px; padding: 5px 11px; color: var(--text); font: inherit; cursor: pointer; }
.bar-btn:hover { border-color: var(--accent); }
.bar summary { color: var(--text); cursor: pointer; padding: 5px 4px; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more .menu {
  position: absolute; right: 0; top: 36px; z-index: 5; min-width: 240px; padding: 10px;
  background: #110c2e; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.more .menu a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--text); }
.more .menu a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.more .menu.text p { margin: 5px 6px; color: var(--muted); }
main.stage { flex: 1; display: flex; }
#game { flex: 1; width: 100%; border: 0; background: #000; }
.touch-note { display: none; margin: 0; padding: 7px 14px; font-size: .85rem; background: #3b2a06; color: #fcd34d; }
@media (pointer: coarse) { .touch-note { display: block; } }

/* ---------- yasal metinler ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 2rem; }
.prose h2 { margin-top: 2em; color: var(--teal2); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); }

/* ---------- yönetim ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stats strong { display: block; font-size: 2rem; }
.msg.unread { border-color: var(--teal); }

/* ---------- alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 22px; background: rgba(5, 3, 18, 0.5); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.foot-brand p { margin: 6px 0 0; }
.foot-brand .logo { font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--muted); font-size: .9rem; }
.foot-links a:hover { color: var(--text); }
.copy { margin-top: 18px; }

@media (max-width: 720px) {
  .row2, .split { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 5, 26, 0.7) 55%, rgba(7, 5, 26, 0.35)); }
  .studio { flex-direction: column; align-items: flex-start; }
  .bar { gap: 10px; font-size: .82rem; }
  .bar-home span, .bar-btn span, .bar-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
