/* ===========================================================
   ALTIN EJDER — assets/ejder/style.css
   Tapınak teması: gün batımı göğü, mermer sütunlar, altın kemer,
   kristal çerçeveli koyu mor hücreler, siyah çevir düğmesi.
   =========================================================== */
:root {
  --gold: #ffcf5c;
  --gold-soft: #ffefc4;
  --gold-deep: #a06a08;
  --violet: #2d0b4e;
  --violet-deep: #150227;
  --cyan: #8ff0ff;
  --teal: #5ff0cf;
  --cream: #fdf7e9;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; min-height: 100%; }
body { min-height: 100dvh; }

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background-color: #10021c;
  background-image:
    linear-gradient(180deg, rgba(10, 1, 20, .16) 0%, rgba(10, 1, 20, .08) 42%, rgba(8, 1, 18, .58) 100%),
    url('img/altinejderwl.jpg');
  background-size: cover;
  background-position: center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 10px 8px 26px;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.7px 1.7px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 12%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44% 7%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 88% 62%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 22% 76%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 62% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 34% 46%, #bfe9ff 50%, transparent 51%);
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .28; } to { opacity: .62; } }

/* arka plan nefes alan altın ışık katmanı */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(68% 44% at 50% -4%, rgba(255, 190, 90, .3) 0%, rgba(255, 190, 90, 0) 68%),
    radial-gradient(82% 46% at 50% 104%, rgba(255, 122, 30, .3) 0%, rgba(255, 122, 30, 0) 66%);
  mix-blend-mode: screen;
  animation: bgGlow 7.5s ease-in-out infinite alternate;
}
@keyframes bgGlow { from { opacity: .4; } to { opacity: .95; } }

/* ---------- tapınak: sütunlar + altın kemer ---------- */
.pillars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.arch {
  position: absolute; left: 50%; top: 5vh; transform: translateX(-50%);
  width: min(780px, 97vw); height: 74vh;
  border: 10px solid transparent;
  border-radius: 50% 50% 14px 14px / 24% 24% 3% 3%;
  background:
    linear-gradient(180deg, rgba(74, 26, 96, .12), rgba(24, 4, 40, .04)) padding-box,
    linear-gradient(180deg, rgba(255, 231, 168, .62), rgba(255, 186, 86, .1) 42%, rgba(255, 231, 168, .4)) border-box;
  box-shadow: 0 0 90px -22px rgba(255, 196, 96, .5), inset 0 0 90px -18px rgba(126, 60, 210, .55);
  opacity: .8;
}

.pillar {
  position: absolute; top: 0; bottom: 0; width: 56px;
  background:
    linear-gradient(90deg, rgba(255, 246, 220, .06), rgba(255, 240, 205, .55) 22%, rgba(255, 255, 255, .72) 42%, rgba(228, 190, 240, .45) 62%, rgba(255, 240, 205, .18) 82%, rgba(255, 246, 220, .04));
  box-shadow: inset 0 0 34px rgba(120, 40, 160, .5), 0 0 46px rgba(255, 200, 90, .2);
  opacity: .26;
}
.pillar.left { left: 0; border-radius: 0 10px 10px 0; }
.pillar.right { right: 0; border-radius: 10px 0 0 10px; }
.pillar::before {
  content: ''; position: absolute; left: -10px; right: -10px; top: 0; height: 22px;
  background: linear-gradient(180deg, #fff1c8, #dcab3c 62%, #8a5a06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
  border-radius: 0 0 5px 5px;
}

/* ---------- sahne ---------- */
.stage {
  position: relative; z-index: 1; width: 100%; max-width: 660px; margin: 0 auto;
  display: flex; flex-direction: column;
}

/* ---------- üst bar ---------- */
.hud { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.brand { position: relative; }

.brand-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 4px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .36em;
  color: #3a1a00; text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, #fff6d6, #ffd257 42%, #e29a12 100%);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.brand-title {
  position: relative;
  margin-top: 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 36px; line-height: .9; font-weight: 900; letter-spacing: .05em;
  background: linear-gradient(180deg, #fffdf2 0%, #ffe89a 30%, #ffc33c 56%, #c97d0c 78%, #ffe291 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(58, 16, 0, .9)) drop-shadow(0 8px 18px rgba(255, 150, 40, .45));
}

.brand-sub {
  margin-top: 5px; font-size: 8px; font-weight: 800; letter-spacing: .24em;
  color: rgba(255, 240, 205, .78);
}

.brand-seal {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 8px; font-weight: 900; letter-spacing: .16em;
  color: #ffeec2; background: rgba(24, 4, 38, .62);
  border: 1px solid rgba(255, 207, 92, .55);
  box-shadow: 0 0 16px -4px rgba(255, 190, 80, .6);
}
.brand-seal b { color: var(--cyan); }

.hud-right { display: flex; align-items: center; gap: 8px; }

.balance-box {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 8px 13px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(52, 12, 78, .82), rgba(16, 2, 30, .92));
  border: 1.5px solid rgba(255, 207, 92, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 26px -18px rgba(0, 0, 0, .95), 0 0 22px -8px rgba(255, 207, 92, .5);
  backdrop-filter: blur(8px);
}
.balance-box span { font-size: 7.5px; letter-spacing: .2em; font-weight: 800; color: rgba(255, 231, 168, .8); }
.balance-box strong { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 900; color: var(--teal); text-shadow: 0 0 14px rgba(95, 240, 207, .6); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 207, 92, .6);
  background: radial-gradient(circle at 50% 28%, #4c1d78, #1d0536 72%);
  color: var(--gold); font-weight: 900; font-size: 15px; font-family: 'Cinzel', serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -12px rgba(0, 0, 0, .9);
  transition: transform .14s ease;
}
.icon-btn:active { transform: scale(.93); }

/* ---------- rozetler ---------- */
.badges { display: flex; gap: 8px; margin: 11px 0 8px; }
.badge {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(52, 12, 78, .8), rgba(14, 2, 26, .9));
  border: 1px solid rgba(255, 207, 92, .3);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.badge span { font-size: 8px; font-weight: 800; letter-spacing: .14em; color: rgba(255, 231, 168, .78); }
.badge strong { font-family: 'Cinzel', serif; font-size: 17px; font-weight: 900; color: var(--gold); text-shadow: 0 0 14px rgba(255, 200, 90, .55); }
.badge-free { border-color: rgba(95, 240, 207, .5); display: none; }
.badge-free strong { color: var(--teal); text-shadow: 0 0 16px rgba(95, 240, 207, .75); }
.badge-free.on { display: flex; animation: popIn .3s cubic-bezier(.2, 1.4, .5, 1); }

/* ---------- makara alanı ---------- */
.reels {
  position: relative; padding: 7px; border-radius: 20px;
  background:
    linear-gradient(160deg, #ffeeb8 0%, #e8b53c 16%, #9d6a0c 34%, #ffe9a6 52%, #c68f1c 70%, #8a5b07 88%, #f5d17a 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 245, 210, .35),
    0 0 46px -6px rgba(143, 240, 255, .28),
    0 28px 56px -26px rgba(0, 0, 0, .95),
    0 0 60px -10px rgba(255, 190, 70, .45);
}
.reels::before {
  content: ''; position: absolute; inset: 4px; border-radius: 16px; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(22, 4, 38, .8), inset 0 0 34px rgba(0, 0, 0, .6);
}

/* oyun çerçevesinin etrafında dönen alevli altın halka */
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.flame-frame {
  position: absolute; inset: -8px; z-index: 5; pointer-events: none;
  border-radius: 28px;
}
.flame-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow:
    0 0 26px 6px rgba(255, 152, 30, .42),
    0 0 64px 18px rgba(255, 96, 8, .26),
    inset 0 0 22px rgba(255, 140, 24, .28);
  animation: flamePulse 2.6s ease-in-out infinite alternate;
}
.flame-frame span {
  position: absolute; inset: 0; border-radius: inherit; padding: 7px;
  background: conic-gradient(from var(--ring-angle),
    rgba(255, 200, 80, 0) 0deg,
    rgba(255, 248, 208, .96) 22deg,
    #ffd166 50deg,
    #ff9a1f 82deg,
    #ff6a0a 104deg,
    rgba(255, 110, 20, 0) 138deg,
    rgba(255, 200, 80, 0) 186deg,
    rgba(255, 244, 190, .96) 236deg,
    #ffbe3c 264deg,
    #ff7a12 296deg,
    rgba(255, 110, 20, 0) 330deg,
    rgba(255, 200, 80, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 8px rgba(255, 186, 60, 1)) drop-shadow(0 0 26px rgba(255, 104, 12, .8));
  animation: ringSpin 3.6s linear infinite, flameFlicker 1.5s ease-in-out infinite alternate;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }
@keyframes flameFlicker { from { opacity: .82; } to { opacity: 1; } }
@keyframes flamePulse { from { opacity: .5; } to { opacity: 1; } }

/* kazanç anında çerçeve ve tüm ızgara alev alır */
.reels.win-flare .flame-frame span { animation-duration: .85s, .45s; filter: drop-shadow(0 0 14px rgba(255, 214, 110, 1)) drop-shadow(0 0 34px rgba(255, 120, 20, .95)) brightness(1.3); }
.reels.win-flare .flame-frame::before { animation-duration: .6s; box-shadow: 0 0 40px 14px rgba(255, 180, 50, .65), 0 0 90px 28px rgba(255, 104, 12, .45), inset 0 0 30px rgba(255, 160, 40, .5); }
.reels.win-flare .grid { box-shadow: inset 0 0 46px rgba(255, 200, 80, .38), 0 0 30px rgba(255, 190, 60, .4); }
.reels.win-flare .cell { border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .flame-frame span, .flame-frame::before { animation: none; }
  body::after { animation: none; opacity: .7; }
}

.grid {
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 3px;
  width: 100%; height: var(--board-height, auto); aspect-ratio: 6 / 5;
  padding: 5px; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% -14%, rgba(180, 110, 255, .34) 0%, rgba(140, 60, 220, 0) 62%),
    radial-gradient(100% 100% at 50% 116%, rgba(255, 170, 70, .22) 0%, rgba(30, 6, 56, 0) 60%),
    linear-gradient(180deg, #2b0a45 0%, #170227 100%);
  overflow: hidden;
}

/* kristal çerçeveli hücre */
.cell {
  position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0;
  border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  border: 1.5px solid transparent;
  background:
    radial-gradient(circle at 50% 18%, rgba(120, 70, 190, .55), rgba(20, 3, 36, .96) 74%) padding-box,
    linear-gradient(150deg, #b8f6ff 0%, #7f7bff 32%, #ffd97a 62%, #9df0ff 88%) border-box;
  box-shadow:
    inset 0 0 14px rgba(120, 200, 255, .18),
    0 0 10px -2px rgba(130, 200, 255, .32),
    inset 0 -6px 12px rgba(0, 0, 0, .5);
}
.cell .art { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.cell svg { width: 100%; height: 100%; display: block; }
.sym-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  user-select: none; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
}
.sym-img.blend { mix-blend-mode: screen; filter: drop-shadow(0 0 7px rgba(255, 220, 150, .35)); }

/* scatter: firavun maskesi + altın etiket */
.scatter-wrap { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.scatter-wrap .sym-img { width: 100%; height: 100%; }
.scat-tag {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  padding: 1px 5px; border-radius: 3px;
  font-size: 6.5px; font-weight: 900; letter-spacing: .12em; font-style: normal;
  color: #3a1a00; background: linear-gradient(180deg, #fff4cc, #ffc93c 60%, #d59410);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  white-space: nowrap;
}

/* oyun başlarken semboller yukarı-aşağı süzülür */
@keyframes bob { 0%, 100% { transform: translateY(-4%); } 50% { transform: translateY(4%); } }
.cell .art, .cell .orb, .cell .scatter-wrap { animation: bob 2.9s ease-in-out infinite; animation-delay: var(--bd, 0ms); }
.reels.spinning .cell .art, .reels.spinning .cell .orb, .reels.spinning .cell .scatter-wrap { animation-play-state: paused; }

.cell.drop { animation: dropIn .46s cubic-bezier(.18, 1.25, .45, 1) both; }
.cell.drop::after {
  content: ''; position: absolute; left: 50%; bottom: 6%; width: 72%; height: 16%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(190, 240, 255, .6), rgba(120, 180, 255, 0) 70%);
  animation: dust .5s ease-out both; pointer-events: none;
}
@keyframes dust {
  0% { opacity: 0; transform: translateX(-50%) scale(.4); }
  55% { opacity: .9; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.35); }
}

.cell.win::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; margin: -75% 0 0 -75%;
  border-radius: 50%; z-index: 3; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 250, 215, .95) 0%, rgba(255, 176, 60, .55) 38%, rgba(255, 90, 20, 0) 68%);
  animation: burst .62s cubic-bezier(.2, .7, .35, 1) forwards;
}
@keyframes burst {
  0% { transform: scale(.2); opacity: 1; }
  65% { opacity: .75; }
  100% { transform: scale(1.3); opacity: 0; }
}
.cell.win .art, .cell.win .orb, .cell.win .scatter-wrap { animation: winPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes winPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(1.5deg); }
  100% { transform: scale(1); }
}
.cell.win {
  border-color: transparent;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 226, 150, .5), rgba(40, 8, 60, .95) 76%) padding-box,
    linear-gradient(150deg, #fff3c2, #ffc126 40%, #fff8dd 70%, #ffab1c) border-box;
  box-shadow: 0 0 22px rgba(255, 205, 80, .85), inset 0 0 16px rgba(255, 220, 130, .45);
  animation: winPulse .55s ease-out;
  z-index: 1;
}
.cell.win::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 245, 180, .55), rgba(255, 200, 60, 0) 72%);
  animation: flash .55s ease-out;
}
.cell.scatter {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 200, 120, .45), rgba(50, 8, 60, .95) 76%) padding-box,
    linear-gradient(150deg, #ffe9a8, #ff9a3d 50%, #ffe9a8) border-box;
  box-shadow: 0 0 26px rgba(255, 160, 60, .95), inset 0 0 16px rgba(255, 190, 90, .4);
  animation: winPulse .55s ease-out;
}

@keyframes dropIn {
  from { transform: translateY(-34px) scale(.82); opacity: .12; }
  70%  { transform: translateY(3px) scale(1.06, .93); }
  86%  { transform: translateY(-1px) scale(.97, 1.03); }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* büyük çarpanda makara sarsıntısı */
@keyframes quake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-5px, 3px, 0) rotate(-.4deg); }
  40% { transform: translate3d(5px, -3px, 0) rotate(.4deg); }
  60% { transform: translate3d(-4px, -1px, 0); }
  80% { transform: translate3d(4px, 1px, 0); }
}
.reels.quake { animation: quake .42s ease-in-out; }
@keyframes winPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.11); }
  100% { transform: scale(1); }
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* çarpan küresi */
.orb { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.orb .sym-img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255, 140, 30, .9)); }
.orb-num {
  position: relative; z-index: 2;
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 900; color: #fffbe8;
  text-shadow: 0 2px 4px rgba(90, 10, 0, .95), 0 0 12px rgba(255, 180, 40, .95);
  letter-spacing: -.02em;
}

.reels.spinning .grid { filter: saturate(.92) brightness(.95); }

/* ---------- çarpan / bedava çevrim katmanları ---------- */
.mult-layer, .free-layer {
  position: absolute; inset: 7px; z-index: 6; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(24, 4, 44, .86), rgba(24, 4, 44, .48));
  backdrop-filter: blur(2px);
}
.mult-layer.show, .free-layer.show { display: flex; animation: popIn .34s cubic-bezier(.2, 1.4, .5, 1); }
.mult-layer strong {
  font-family: 'Cinzel', serif; font-size: 64px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #fffdf0, #ffc93c 58%, #ff7a12);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90, 30, 0, .85)) drop-shadow(0 0 26px rgba(255, 170, 50, .95));
}
.mult-layer small { font-size: 9px; letter-spacing: .26em; font-weight: 800; color: var(--gold-soft); }
.free-layer span { font-size: 10px; letter-spacing: .3em; font-weight: 800; color: rgba(255, 231, 168, .85); }
.free-layer strong {
  font-family: 'Cinzel', serif; font-size: 56px; font-weight: 900;
  background: linear-gradient(180deg, #eafff8, #5ff0cf 60%, #12a98e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(95, 240, 207, .85));
}
@keyframes popIn { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: scale(1); } }

/* ---------- makara altı yazı ---------- */
.caption {
  margin: 8px 0 0; text-align: center;
  font-size: 8.5px; font-weight: 900; letter-spacing: .2em;
  color: #ffe6a8;
  text-shadow: 0 1px 0 rgba(60, 16, 0, .9), 0 0 16px rgba(255, 180, 60, .7);
}
.caption b { color: var(--cyan); }

/* ---------- kazanç barı ---------- */
.winbar {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(52, 12, 78, .8), rgba(14, 2, 26, .92));
  border: 1px solid rgba(255, 207, 92, .26);
  backdrop-filter: blur(8px);
}
.winbar div { display: flex; flex-direction: column; gap: 2px; }
.winbar div:last-child { align-items: flex-end; }
.winbar span { font-size: 8px; letter-spacing: .18em; font-weight: 800; color: rgba(255, 231, 168, .6); }
.winbar strong { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 900; color: var(--gold-soft); }
.winbar strong.on { color: var(--teal); text-shadow: 0 0 16px rgba(95, 240, 207, .8); }

/* ---------- kontroller ---------- */
.controls {
  margin-top: 9px; padding: 11px 13px 9px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(48, 10, 74, .88), rgba(14, 2, 26, .95));
  border: 1px solid rgba(255, 207, 92, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -26px rgba(0, 0, 0, .95);
  backdrop-filter: blur(10px);
}

/* bahis + çevir aynı sırada: solda bahis, sağda siyah çevir düğmesi */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.bet-row { display: flex; align-items: center; justify-content: center; gap: 10px; }

.bet-value {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 112px; padding: 7px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #40156b, #1f0540);
  border: 1.5px solid rgba(255, 207, 92, .6);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .16), 0 12px 22px -14px rgba(0, 0, 0, .9), 0 0 22px -8px rgba(255, 200, 90, .6);
}
.bet-value span { font-size: 8px; letter-spacing: .2em; font-weight: 800; color: rgba(255, 231, 168, .85); }
.bet-value strong { font-family: 'Cinzel', serif; font-size: 19px; font-weight: 900; color: #fff; }

.step {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 20px; font-weight: 900; line-height: 1;
  color: #3a1500;
  background: radial-gradient(circle at 50% 26%, #fff5cf, #ffcb44 55%, #cc8a0b);
  border: 1.5px solid rgba(255, 250, 220, .9);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .9), inset 0 -3px 7px rgba(140, 80, 0, .38);
  transition: transform .12s ease, opacity .12s ease;
}
.step:active { transform: scale(.92); }
.step:disabled { opacity: .38; cursor: default; }

/* siyah, beyaz oklu çevir düğmesi */
.spin {
  position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; cursor: pointer; border: none;
  background: radial-gradient(circle at 50% 26%, #3b3b46 0%, #16161d 46%, #05050a 100%);
  box-shadow:
    0 0 0 3px rgba(255, 207, 92, .92),
    0 0 0 7px rgba(16, 2, 30, .95),
    0 18px 34px -14px rgba(0, 0, 0, .95),
    0 0 40px -4px rgba(255, 200, 90, .65),
    inset 0 3px 0 rgba(255, 255, 255, .28);
  color: #fff; display: grid; place-items: center;
  transition: transform .14s ease, filter .2s ease;
}
.spin::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .3), transparent 62%);
  pointer-events: none;
}
.spin svg { width: 44px; height: 44px; position: relative; z-index: 2; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .55)); }
.spin:active { transform: scale(.94); }
.spin:disabled { filter: grayscale(.35) brightness(.9); cursor: default; }
.spin.spinning svg { animation: spinRot .7s linear infinite; }
@keyframes spinRot { to { transform: rotate(360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.chip {
  padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 800;
  color: var(--gold-soft); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 207, 92, .28);
  transition: all .15s ease;
}
.chip.on {
  background: linear-gradient(180deg, #fff0bb, #ffc93c 60%, #e09a0d);
  color: #3d1c00; border-color: #fff6d4;
  box-shadow: 0 8px 16px -10px rgba(255, 180, 40, .95);
}
.chip:disabled { opacity: .45; cursor: default; }

/* dalgalanma + küçük düğmeler */
.bar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }

.vol { display: flex; align-items: center; gap: 7px; }
.vol span { font-size: 8px; font-weight: 900; letter-spacing: .18em; color: rgba(255, 240, 205, .8); }
.bolts { display: flex; gap: 1px; }
.bolts svg { width: 11px; height: 15px; display: block; }
.bolts svg:nth-child(-n+3) { color: var(--gold); filter: drop-shadow(0 0 5px rgba(255, 200, 90, .9)); }
.bolts svg:nth-child(n+4) { color: rgba(255, 207, 92, .22); }

.ctl-left { display: flex; align-items: center; gap: 8px; }
.turbo {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px;
  background: radial-gradient(circle at 50% 28%, #40156b, #1a0433);
  border: 1.5px solid rgba(255, 207, 92, .42);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: all .18s ease;
}
.turbo.on { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 22px rgba(95, 240, 207, .6); }
.turbo.auto {
  display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 60px;
  padding: 0 12px; border-radius: 999px;
  font-family: 'Sora', sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
}
.turbo.auto .a-logo { display: grid; place-items: center; }
.turbo.auto .a-logo svg { width: 14px; height: 14px; display: block; }
.turbo.auto .a-logo.running { animation: aSpin 1.15s linear infinite; }
.turbo.auto .a-count { font-size: 11px; font-variant-numeric: tabular-nums; }
.turbo.auto .a-stop { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
@keyframes aSpin { to { transform: rotate(360deg); } }

.auto-wrap { position: relative; display: inline-flex; }
.auto-menu {
  position: absolute; left: 0; bottom: calc(100% + 9px); z-index: 40; width: max-content;
  padding: 9px 10px 10px; border-radius: 16px;
  background: linear-gradient(180deg, #3d1163, #170230);
  border: 1.5px solid rgba(255, 207, 92, .48);
  box-shadow: 0 20px 38px -18px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .14);
  opacity: 0; transform: translateY(8px) scale(.95); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.auto-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.am-title {
  display: block; margin-bottom: 7px; font-size: 7.5px; font-weight: 800;
  letter-spacing: .2em; color: rgba(255, 231, 168, .62);
}
.am-opts { display: flex; gap: 6px; }
.am-opts button {
  min-width: 36px; padding: 7px 10px; border-radius: 999px; cursor: pointer;
  font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 800; color: var(--gold);
  background: rgba(255, 207, 92, .1); border: 1.5px solid rgba(255, 207, 92, .34);
  transition: all .15s ease;
}
.am-opts button:hover { background: rgba(255, 207, 92, .24); border-color: rgba(255, 207, 92, .72); }
.am-opts button:active { transform: scale(.94); }

.hint {
  margin-top: 8px; text-align: center; font-size: 8px; letter-spacing: .2em;
  font-weight: 800; color: rgba(255, 231, 168, .45);
}

/* ---------- özellik kartları ---------- */
.info { display: grid; gap: 8px; margin-top: 12px; }
.info-card {
  position: relative; overflow: hidden;
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 13px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(52, 12, 78, .74), rgba(14, 2, 26, .88));
  border: 1px solid rgba(255, 207, 92, .26);
  backdrop-filter: blur(8px);
}
.info-card::before {
  content: ''; position: absolute; top: -40%; right: -18%; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 70, .3), transparent 68%);
  pointer-events: none;
}
.info-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ffd75c, #dd9009);
  box-shadow: 0 10px 20px -12px rgba(255, 170, 40, .95), inset 0 1px 0 rgba(255, 255, 255, .6);
  color: #3a1500;
}
.info-ico svg { width: 21px; height: 21px; }
.info-card h3 {
  font-family: 'Cinzel', serif; font-size: 12.5px; font-weight: 900; letter-spacing: .06em;
  color: var(--gold-soft); text-transform: uppercase;
}
.info-card p { margin-top: 3px; font-size: 10.5px; line-height: 1.62; color: rgba(253, 247, 233, .76); }
.info-card p b { color: var(--gold); font-weight: 800; }
.info-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.info-tag {
  padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800;
  color: #1b0630; background: linear-gradient(180deg, #ffe9a8, #ffc93c);
}
.info-tag.alt { color: #04241e; background: linear-gradient(180deg, #c9fff1, #5ff0cf); }

/* ---------- alt bilgi ---------- */
.foot {
  position: relative; z-index: 1; max-width: 660px; margin: 14px auto 0;
  text-align: center; font-size: 9px; line-height: 1.7; color: rgba(253, 247, 233, .55);
}

/* ---------- bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 26px);
  z-index: 999; max-width: 92vw; padding: 11px 17px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(52, 12, 78, .97), rgba(14, 2, 26, .98));
  border: 1.5px solid rgba(255, 207, 92, .62);
  color: var(--gold-soft); font-size: 11.5px; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none; transition: all .28s ease;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .95);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ödeme tablosu ---------- */
.modal {
  position: fixed; inset: 0; z-index: 900; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10, 1, 20, .88); backdrop-filter: blur(6px);
}
.modal.show { display: flex; }
.modal-card {
  width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  border-radius: 20px; padding: 18px;
  background: linear-gradient(180deg, #330e54, #150227);
  border: 1.5px solid rgba(255, 207, 92, .55);
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, .95), 0 0 44px -14px rgba(255, 190, 70, .45);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { font-family: 'Cinzel', serif; font-size: 17px; letter-spacing: .06em; color: var(--gold); }
.modal-close { background: none; border: none; color: var(--gold-soft); font-size: 26px; cursor: pointer; line-height: 1; }
.pt-head, .pt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; gap: 4px; }
.pt-head {
  font-size: 8px; letter-spacing: .1em; font-weight: 800; color: rgba(255, 231, 168, .7);
  padding-bottom: 7px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.pt-row { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pt-row .sym { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: var(--cream); }
.pt-row .sym svg, .pt-row .sym .sym-img { width: 30px; height: 30px; flex: 0 0 auto; }
.pt-row .v { font-family: 'Cinzel', serif; font-size: 12px; font-weight: 900; color: var(--gold); text-align: center; }
.pt-special {
  display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 9px;
  border-radius: 12px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 207, 92, .22);
}
.pt-special .sym-img { width: 32px; height: 32px; }
.pt-special div { display: flex; flex-direction: column; gap: 1px; }
.pt-special b { font-size: 10px; color: var(--gold-soft); font-family: 'Cinzel', serif; }
.pt-special span { font-size: 9px; color: rgba(253, 247, 233, .72); }
.pt-note { margin-top: 13px; font-size: 10.5px; line-height: 1.65; color: rgba(253, 247, 233, .72); }
.pt-note b { color: var(--gold-soft); }
.pt-note .pt-split { display: block; height: 7px; }

/* ---------- kazanç şöleni ---------- */
.celebration {
  position: absolute; inset: 7px; z-index: 8; display: none; place-items: center;
  border-radius: 16px; overflow: hidden; pointer-events: none;
}
.celebration.show { display: grid; }
.cel-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 248, 220, .96), rgba(255, 190, 70, .4) 46%, rgba(255, 120, 40, 0) 74%);
  animation: celFlash .85s ease-out forwards;
}
@keyframes celFlash {
  0% { opacity: 0; transform: scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}
.celebration-body {
  position: relative; z-index: 2; display: grid; gap: 3px; justify-items: center;
  padding: 0 12px; text-align: center;
  animation: celPop .5s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes celPop {
  0% { opacity: 0; transform: scale(.62) translateY(10px); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}
.cel-tier {
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 900; letter-spacing: .18em;
  color: #fff6d4;
  text-shadow: 0 2px 0 rgba(80, 20, 0, .9), 0 0 26px rgba(255, 180, 50, .95);
}
.cel-amount {
  font-family: 'Cinzel', serif; font-size: 46px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #fffdf0, #ffd257 52%, #ff8c1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90, 26, 0, .9)) drop-shadow(0 0 28px rgba(255, 170, 50, .95));
}
.cel-sub { font-size: 9px; font-weight: 900; letter-spacing: .24em; color: rgba(255, 240, 205, .92); }

/* mega / inanılmaz kazanç tonları */
.celebration.mega .cel-tier { color: #d6fff6; text-shadow: 0 2px 0 rgba(0, 50, 44, .9), 0 0 28px rgba(95, 240, 207, 1); }
.celebration.mega .cel-amount {
  background: linear-gradient(180deg, #f4fffb, #5ff0cf 55%, #12a98e);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(2, 44, 38, .9)) drop-shadow(0 0 30px rgba(95, 240, 207, .95));
}
.celebration.insane .cel-tier { color: #ffe0f6; text-shadow: 0 2px 0 rgba(60, 0, 40, .9), 0 0 28px rgba(255, 90, 190, 1); }
.celebration.insane .cel-amount {
  background: linear-gradient(180deg, #fff4fb, #ff8ed6 52%, #ff3d9a);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(70, 0, 44, .9)) drop-shadow(0 0 32px rgba(255, 90, 190, .95));
}

/* uçuşan altınlar / kıvılcımlar */
.party { position: absolute; inset: 0; z-index: 1; }
.party .coin {
  position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff8cf, #ffc233 46%, #b7791a);
  box-shadow: 0 0 10px rgba(255, 190, 60, .95);
  animation: coinFly 1s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.party .coin.spark {
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #8ff0ff);
  box-shadow: 0 0 12px rgba(143, 240, 255, .95);
}
@keyframes coinFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.85) rotate(var(--rot));
  }
}

/* bakiye artışında nabız */
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.balance-box strong.bump { animation: bump .6s cubic-bezier(.2, 1.4, .4, 1); }

@media (max-width: 430px) {
  body { padding: 8px 6px 22px; }
  .brand-title { font-size: 28px; }
  .brand-sub { font-size: 7.5px; letter-spacing: .15em; }
  .grid { gap: 4px; padding: 6px; }
  .reels { padding: 5px; border-radius: 16px; }
  .cell { border-radius: 9px; }
  .spin { width: 72px; height: 72px; }
  .spin svg { width: 38px; height: 38px; }
  .bet-value { min-width: 98px; padding: 6px 12px; }
  .orb-num { font-size: 12.5px; }
  .scat-tag { font-size: 6px; letter-spacing: .08em; }
  .mult-layer strong { font-size: 46px; }
  .free-layer strong { font-size: 42px; }
  .balance-box strong { font-size: 14px; }
  .info-card p { font-size: 10px; }
  .caption { font-size: 7.5px; letter-spacing: .14em; }
  .cel-amount { font-size: 32px; }
  .cel-tier { font-size: 12px; letter-spacing: .14em; }
  .cel-sub { font-size: 8px; }
}

/* ---------- telefon / tablet: oyun ekranı tam görünür ---------- */
@media (max-width: 900px), (max-height: 700px) {
  .info { display: none; }
  .foot { display: none; }
  body { padding-bottom: 10px; }
  .arch { top: 2vh; height: 82vh; }
}
@media (max-height: 660px) {
  .winbar { display: none; }
  .badges { margin: 7px 0 6px; }
  .controls { padding: 8px 10px 6px; }
  .chips { margin-top: 7px; }
  .caption { margin-top: 5px; }
  .hint { display: none; }
}
@media (max-height: 560px) {
  .brand-sub, .brand-seal { display: none; }
  .brand-title { font-size: 22px; }
  .balance-box { padding: 6px 10px; }
  .spin { width: 64px; height: 64px; }
  .spin svg { width: 32px; height: 32px; }
  .chips { display: none; }
}