/* ==========================================================================
   Temel stiller: font, renk paleti, ortak bileşenler
   ========================================================================== */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-condensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #07040d;
  --panel: rgba(13, 9, 22, 0.94);
  --panel-2: #150e24;
  --panel-3: #1d1431;
  --line: rgba(168, 140, 220, 0.3);
  --line-strong: rgba(196, 170, 245, 0.55);
  --text: #f4efff;
  --text-2: #d4cae6;
  --text-dim: #a99dc2;
  --text-mute: #7f7498;
  --violet: #a855f7;
  --violet-2: #c084fc;
  --violet-deep: #5b21b6;
  --neon: #b46bff;
  --gold: #f4c463;
  --danger: #ff6b93;
  --ok: #9ff0c6;
  --font: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
img { display: block; user-select: none; -webkit-user-drag: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

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

/* --------- Ortak ikonlar --------- */
.i-svg { display: inline-flex; width: 1em; height: 1em; vertical-align: -0.12em; }
.i-svg svg { width: 100%; height: 100%; }
.i-flame { display: inline-block; width: 1.25em; height: auto; vertical-align: -0.3em; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6)); }

/* --------- Neon mor ana buton (referanstaki "Yükselt") --------- */
.btn-primary {
  --hx: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 52px;
  padding: 0 34px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(40, 0, 80, 0.9), 0 0 10px rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.55));
  transition: filter 0.2s ease, transform 0.12s ease;
  isolation: isolate;
}
.btn-primary::before,
.btn-primary::after {
  content: '';
  position: absolute;
  clip-path: polygon(var(--hx) 0, calc(100% - var(--hx)) 0, 100% 50%, calc(100% - var(--hx)) 100%, var(--hx) 100%, 0 50%);
  z-index: -1;
}
.btn-primary::before {
  inset: 0;
  background: linear-gradient(180deg, #f0dcff 0%, #a873f5 40%, #6b37c9 100%);
}
.btn-primary::after {
  inset: 2px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #8f4ff2 0%, #6d2fd6 48%, #4a1c9e 100%);
}
.btn-primary > * { position: relative; }
.btn-primary:hover:not(:disabled) { filter: drop-shadow(0 0 16px rgba(190, 120, 255, 0.95)) brightness(1.08); }
.btn-primary:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn-primary:disabled { filter: grayscale(0.75) brightness(0.6); }
.btn-primary.sm { height: 40px; min-width: 120px; font-size: 18px; --hx: 13px; padding: 0 24px; }

.btn-ghost {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(60, 40, 100, 0.55), rgba(30, 20, 52, 0.75));
  color: var(--text-2);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--line-strong); color: #fff; box-shadow: 0 0 14px rgba(168, 85, 247, 0.4); }

.btn-danger {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 147, 0.45);
  background: rgba(90, 20, 50, 0.45);
  color: #ffc2d4;
  font-size: 15px;
}
.btn-danger:hover { box-shadow: 0 0 14px rgba(255, 107, 147, 0.4); }

/* --------- Panel çerçevesi (mobil HUD ve modallar) --------- */
.frame {
  background:
    linear-gradient(180deg, rgba(28, 19, 46, 0.96), rgba(11, 8, 19, 0.97));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Yalnızca mobil düzende görünen öğeler (geniş ekranda referans görselin kendisi gösterilir) */
.layout-desktop .m-only { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
