/* =============================================================================
   ALTIN 777 — Slot oyunu arayüzü
   Tema: Okey masası yeşil çuhası, istaka ahşabı, altın yaldız, fildişi taşlar
   ============================================================================= */

/* ---------- Yazı tipleri (yerel, OFL lisanslı) ---------- */
@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/alfa-slab-one-latin-400-normal.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; }
@font-face { font-family: 'Alfa Slab One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/alfa-slab-one-latin-ext-400-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-500-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-500-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-600-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-600-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-700-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-700-normal.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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-800-normal.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; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-800-normal.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; }

/* ---------- Tasarım belirteçleri ---------- */
:root {
  /* Okey masası çuhası */
  --felt-hi: #1f8350;
  --felt: #0f5a35;
  --felt-lo: #073521;
  --felt-edge: #02160c;
  /* Bedava çevirme modu: okey mavisi */
  --fs-hi: #2f6fe0;
  --fs: #1a3f99;
  --fs-lo: #0c2360;
  --fs-edge: #040b22;
  /* Altın yaldız */
  --gold-hi: #fff4c2;
  --gold: #f2c14e;
  --gold-mid: #d9a12b;
  --gold-lo: #8a5a12;
  /* İstaka ahşabı */
  --wood-hi: #94602f;
  --wood: #5e3818;
  --wood-lo: #2c180a;
  /* Okey taşı renkleri */
  --okey-red: #d7263d;
  --okey-yellow: #f2a900;
  --okey-blue: #1f5fd1;
  --okey-black: #23201c;
  /* Metin */
  --text: #f7f1de;
  --text-dim: rgba(247, 241, 222, .66);
  --line: rgba(242, 193, 78, .26);

  --font-display: 'Alfa Slab One', 'Rockwell Extra Bold', Georgia, serif;
  --font-ui: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);

  --topbar-h: 56px;
  --spin: 96px;
  --ctl: 50px;
  --frame: 12px;
  --badge-w: 34px;
  --badge-h: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--felt-edge);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 10px; }
svg { display: block; }

/* ---------- Uygulama ızgarası ---------- */
.app {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "stage" "console";
  padding: 0 var(--safe-r) 0 var(--safe-l);
  isolation: isolate;
}

/* Çuha: iki katman (normal + bedava çevirme), opaklıkla geçiş */
.app::before,
.app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  transition: opacity .9s ease;
}
.app::before {
  background:
    radial-gradient(120% 95% at 50% 40%, var(--felt-hi) 0%, var(--felt) 36%, var(--felt-lo) 70%, var(--felt-edge) 100%);
}
.app::after {
  background:
    radial-gradient(120% 95% at 50% 40%, var(--fs-hi) 0%, var(--fs) 36%, var(--fs-lo) 70%, var(--fs-edge) 100%);
  opacity: 0;
}
.is-fs .app::after { opacity: 1; }

/* Çuha dokusu */
.stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 -.12'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Üst çubuk ---------- */
.topbar {
  grid-area: top;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) clamp(10px, 2vw, 24px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(1, 10, 5, .72), rgba(1, 10, 5, 0));
  position: relative;
  z-index: 5;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__title {
  display: none;
  font-family: var(--font-display);
  font-size: 20px;
  background: linear-gradient(180deg, #fffbe0, #f2c14e 55%, #b9740e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  max-width: 46vw;
  padding: 0 14px 0 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .34);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: #4cd27a; box-shadow: 0 0 8px #4cd27a; flex: none; }
.chip__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip__tag {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  color: #2a1600;
  background: var(--gold);
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .34);
  color: var(--gold-hi);
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.icon-btn:hover { background: rgba(242, 193, 78, .16); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--fs { width: 46px; height: 46px; border-color: rgba(242, 193, 78, .6); background: rgba(242, 193, 78, .14); }
.icon-btn--fs svg { width: 24px; height: 24px; stroke-width: 2.4; }
.ico-sound-off, .ico-fs-exit { display: none; }
.is-muted .ico-sound-on { display: none; }
.is-muted .ico-sound-off { display: block; }
.is-fullscreen .ico-fs-enter { display: none; }
.is-fullscreen .ico-fs-exit { display: block; }

/* ---------- Sahne ve kabin ---------- */
.stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* içerik ne kadar uzun olursa olsun sahne ekrandan taşmaz */
  place-items: center;
  padding: 4px clamp(8px, 2vw, 24px) 6px;
}
.cabinet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

/* Işıklı tabela */
.marquee {
  position: relative;
  width: 100%;
  margin-bottom: clamp(6px, 1.2vh, 14px);
  padding: clamp(18px, 2.3vh, 26px) 34px clamp(20px, 2.5vh, 28px);
  text-align: center;
  border-radius: 22px 22px 12px 12px;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(242, 193, 78, .18), transparent 60%),
    linear-gradient(180deg, #0b2a1b, #03130b);
  border: 2px solid #1c0f05;
  box-shadow:
    inset 0 0 0 3px var(--gold-lo),
    inset 0 0 0 5px var(--gold),
    inset 0 0 0 7px #3a2208,
    0 12px 30px rgba(0, 0, 0, .45);
}
.marquee__bulbs {
  position: absolute;
  inset: 9px;
  border-radius: 16px 16px 8px 8px;
  pointer-events: none;
  --bulb: 18px;
  background:
    radial-gradient(circle at 25% 50%, #fffbe6 0 2px, #ffcf3f 2.6px 3.6px, transparent 4.4px) 0 0 / calc(var(--bulb) * 2) 10px repeat-x,
    radial-gradient(circle at 75% 50%, rgba(255, 220, 120, .35) 0 2px, rgba(160, 110, 20, .45) 2.6px 3.6px, transparent 4.4px) 0 0 / calc(var(--bulb) * 2) 10px repeat-x,
    radial-gradient(circle at 25% 50%, #fffbe6 0 2px, #ffcf3f 2.6px 3.6px, transparent 4.4px) 0 100% / calc(var(--bulb) * 2) 10px repeat-x,
    radial-gradient(circle at 75% 50%, rgba(255, 220, 120, .35) 0 2px, rgba(160, 110, 20, .45) 2.6px 3.6px, transparent 4.4px) 0 100% / calc(var(--bulb) * 2) 10px repeat-x;
  filter: drop-shadow(0 0 3px rgba(255, 205, 64, .9));
  animation: bulbs 0.9s steps(1) infinite;
}
.is-celebrating .marquee__bulbs { animation-duration: .22s; }
@keyframes bulbs {
  0% { background-position: 0 0, 0 0, 0 100%, 0 100%; }
  50% { background-position: var(--bulb) 0, var(--bulb) 0, calc(var(--bulb) * -1) 100%, calc(var(--bulb) * -1) 100%; }
}
.marquee__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 6.2vh, 70px);
  line-height: 1.05;
  letter-spacing: .02em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #fffdf0 0%, #ffe383 30%, #f4b92b 54%, #b8730c 76%, #ffd975 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px #3a2200;
  filter: drop-shadow(0 3px 0 #3a2200) drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
}
.marquee__sub {
  position: relative;
  margin-top: 2px;
  font-size: clamp(13px, 1.9vh, 19px);
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 236, 180, .78);
}

/* Makaralar + çizgi numaraları */
.reels-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.lines {
  position: relative;
  width: var(--badge-w);
  flex: none;
}
.line-badge {
  position: absolute;
  left: 0;
  width: var(--badge-w);
  height: var(--badge-h);
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: calc(var(--badge-h) * .66);
  font-weight: 800;
  line-height: 1;
  color: var(--lc);
  background: linear-gradient(180deg, #fffaf0, #eadcb9);
  box-shadow: 0 2px 0 #a88e5c, 0 3px 5px rgba(0, 0, 0, .35);
  cursor: default;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.line-badge.is-on {
  color: #fff;
  background: var(--lc);
  box-shadow: 0 0 0 2px #fff, 0 0 14px var(--lc), 0 3px 5px rgba(0, 0, 0, .35);
  transform: scale(1.12);
  z-index: 2;
}

/* İstaka çerçevesi */
.rack {
  position: relative;
  padding: var(--frame);
  border-radius: calc(var(--frame) * 1.7);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 12%, transparent 88%, rgba(0, 0, 0, .28)),
    linear-gradient(180deg, rgba(255, 210, 150, .16), transparent 30%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(96deg, #6d4422 0 7px, #613b1c 7px 12px, #7a4d27 12px 15px, #5d391b 15px 23px),
    var(--wood);
  box-shadow:
    inset 0 0 0 2px #1c0f05,
    inset 0 0 0 4px var(--gold-mid),
    inset 0 0 0 5px var(--gold-hi),
    inset 0 0 0 7px #3a2208,
    0 0 0 2px #1c0f05,
    0 22px 46px rgba(0, 0, 0, .58);
}
.rack canvas {
  display: block;
  border-radius: calc(var(--frame) * .9);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55);
}

/* Bedava çevirme şeridi */
.fs-strip {
  position: absolute;
  top: calc(var(--frame) * -0.2);
  left: 50%;
  transform: translate(-50%, -55%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(180deg, #3b7bff, #1a3f99);
  border: 2px solid var(--gold-hi);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 18px rgba(80, 140, 255, .6);
  font-size: clamp(14px, 2vh, 20px);
  font-weight: 700;
  z-index: 3;
}
.fs-strip__count { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.fs-strip__mult {
  font-family: var(--font-display);
  font-weight: 400;
  color: #2a1600;
  background: var(--gold);
  border-radius: 8px;
  padding: 0 7px;
}

/* Kazanç satırı */
.winbar {
  position: relative;
  /* Genişliği makaralara göre belirlenir; uzun mesaj kabini genişletmez */
  width: 0;
  min-width: 100%;
  min-height: clamp(36px, 5.2vh, 52px);
  margin-top: clamp(6px, 1vh, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.winbar__text {
  font-size: clamp(16px, 2.5vh, 24px);
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .7);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}
/* En küçük yazı boyutunda da sığmayan mesaj iki satıra bölünür */
.winbar__text.is-wrap {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.12;
}
.winbar__text.is-win { color: var(--gold-hi); }
.gamble-btn { flex: none; }
.winbar__text strong { color: var(--gold); font-weight: 800; }

.gamble-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 20px;
  border: 2px solid var(--gold-hi);
  background: linear-gradient(180deg, #e8433a, #9a0f12);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #4a0505, 0 0 18px rgba(232, 67, 58, .55);
  animation: nudge 1.6s ease-in-out infinite;
}
.gamble-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.gamble-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #4a0505; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ---------- Konsol ---------- */
.console {
  grid-area: console;
  position: relative;
  z-index: 4;
  display: grid;
  align-items: center;
  gap: 10px 12px;
  padding: 18px clamp(12px, 2.4vw, 32px) calc(18px + var(--safe-b));
  background: linear-gradient(180deg, rgba(2, 14, 8, .2), rgba(2, 14, 8, .86) 26%, #020d07);
  border-top: 1px solid rgba(242, 193, 78, .22);
  grid-template-columns: minmax(150px, 290px) minmax(150px, 290px) minmax(0, 1fr) var(--ctl) minmax(150px, 240px) var(--ctl) auto var(--spin) auto;
  grid-template-areas: "bal win . minus bet plus autoplay spin turbo";
}
.m-balance { grid-area: bal; }
.m-win { grid-area: win; }
.m-bet { grid-area: bet; }
.b-minus { grid-area: minus; }
.b-plus { grid-area: plus; }
.b-auto { grid-area: autoplay; }
.b-turbo { grid-area: turbo; }
.spin-btn { grid-area: spin; }

.meter {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 58px;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, .3));
  border: 1px solid rgba(242, 193, 78, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: left;
}
.meter__label { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text-dim); line-height: 1; }
.meter__value {
  font-size: clamp(20px, 2.8vh, 30px);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-win .meter__value { color: var(--gold); }
.m-win.is-hot { border-color: rgba(242, 193, 78, .7); box-shadow: 0 0 18px rgba(242, 193, 78, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.meter--button { cursor: pointer; align-items: center; text-align: center; }
.meter--button:hover { border-color: rgba(242, 193, 78, .55); }
.m-bet .meter__value { color: var(--text); }

.round-btn {
  position: relative;
  width: var(--ctl);
  height: var(--ctl);
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold-lo);
  background: radial-gradient(circle at 50% 30%, #2f5a43, #0f2a1c 70%);
  color: var(--gold-hi);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 0 #010a05, 0 6px 12px rgba(0, 0, 0, .4);
  transition: transform .08s, box-shadow .08s, background .2s, color .2s;
}
.round-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 0 #010a05; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn__label { display: none; }
.round-btn--toggle[aria-pressed="true"] {
  color: #2a1600;
  border-color: var(--gold-hi);
  background: radial-gradient(circle at 50% 30%, #fff0b0, #e0a630 70%);
  box-shadow: 0 0 16px rgba(242, 193, 78, .6), 0 3px 0 #5a3a0a;
}
.round-btn__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--okey-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Masaüstünde otomatik/hızlı butonları etiketli */
@media (orientation: landscape) and (min-height: 561px) {
  .round-btn--toggle {
    width: auto;
    border-radius: calc(var(--ctl) / 2);
    padding: 0 18px 0 14px;
    grid-auto-flow: column;
    gap: 8px;
  }
  .round-btn__label { display: inline; font-size: 17px; font-weight: 700; }
}

/* Çevir butonu */
.spin-btn {
  position: relative;
  width: var(--spin);
  height: var(--spin);
  justify-self: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 28%, #ff8a7a 0%, #e8291e 36%, #a10d0d 72%, #5e0505 100%);
  box-shadow:
    0 0 0 4px #3a0505,
    0 0 0 8px var(--gold),
    0 0 0 10px #5a3a0a,
    0 12px 26px rgba(0, 0, 0, .6),
    inset 0 -10px 18px rgba(0, 0, 0, .35),
    inset 0 8px 14px rgba(255, 255, 255, .28);
  transition: transform .08s, filter .2s;
}
.spin-btn:active { transform: scale(.96); }
.spin-btn:disabled { cursor: default; filter: grayscale(.55) brightness(.75); }
.spin-btn__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 233, 160, .7);
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
}
.is-busy .spin-btn__ring, .spin-btn:disabled .spin-btn__ring { animation: none; }
@keyframes ring {
  0% { transform: scale(.92); opacity: .0; }
  15% { opacity: .9; }
  100% { transform: scale(1.18); opacity: 0; }
}
.spin-btn__icon, .spin-btn__stop {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.spin-btn__stop { display: none; fill: currentColor; stroke: none; width: 48%; height: 48%; }
.spin-btn.is-spinning .spin-btn__icon { animation: spinIcon .55s linear infinite; }
.spin-btn.is-stop .spin-btn__icon { display: none; }
.spin-btn.is-stop .spin-btn__stop { display: block; }
.spin-btn__count {
  position: absolute;
  font-size: calc(var(--spin) * .3);
  font-weight: 800;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .5);
  font-variant-numeric: tabular-nums;
}
.spin-btn__count:empty { display: none; }
.spin-btn.has-count .spin-btn__icon, .spin-btn.has-count .spin-btn__stop { opacity: .28; }
@keyframes spinIcon { to { transform: rotate(360deg); } }

/* ---------- Dikey (telefon) ---------- */
@media (orientation: portrait) {
  :root { --spin: 88px; --ctl: 50px; --frame: 9px; --topbar-h: 52px; }
  .console {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "bal bal win win bet bet"
      "autoplay minus spin spin plus turbo";
    gap: 14px 6px;
    padding-top: 16px;
    padding-bottom: calc(20px + var(--safe-b));
  }
  .meter { height: 54px; padding: 6px 10px; }
  .meter__label { font-size: 13px; }
  .meter__value { font-size: 20px; }
  .lines { display: none; }
  .marquee { padding-left: 16px; padding-right: 16px; }
  .marquee__title { font-size: clamp(30px, 9.5vw, 64px); }
  .marquee__sub { font-size: clamp(13px, 3.4vw, 18px); }
}
@media (orientation: portrait) and (min-width: 700px) {
  :root { --spin: 108px; --ctl: 60px; --frame: 12px; }
  .meter { height: 64px; padding: 6px 16px; }
  .meter__label { font-size: 15px; }
  .meter__value { font-size: 28px; }
  .round-btn svg { width: 28px; height: 28px; }
}
@media (orientation: portrait) and (max-width: 360px) {
  :root { --spin: 76px; --ctl: 44px; }
  .meter__value { font-size: 18px; }
  .chip__tag { display: none; }
}

/* ---------- Yatay telefon (alçak ekran) ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --topbar-h: 44px; --spin: 84px; --ctl: 44px; --frame: 8px; }
  .app {
    grid-template-columns: minmax(0, 1fr) clamp(196px, 27vw, 260px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "top top" "stage console";
  }
  .topbar__title { display: block; }
  .marquee { display: none; }
  .lines { display: none; }
  .winbar { min-height: 32px; margin-top: 4px; }
  .console {
    grid-template-columns: var(--ctl) minmax(0, 1fr) var(--ctl);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "bal bal bal"
      "win win win"
      "minus bet plus"
      "autoplay spin turbo";
    align-content: center;
    gap: 8px;
    border-top: 0;
    border-left: 1px solid rgba(242, 193, 78, .2);
    background: linear-gradient(90deg, rgba(2, 14, 8, .4), rgba(2, 14, 8, .9) 30%);
    padding: 8px 12px calc(8px + var(--safe-b));
  }
  .meter { height: 48px; padding: 4px 10px; }
  .meter__label { font-size: 12px; }
  .meter__value { font-size: 19px; }
}

/* Geniş masaüstü: biraz daha iri */
@media (min-width: 1500px) and (min-height: 820px) {
  :root { --spin: 112px; --ctl: 56px; --frame: 14px; --topbar-h: 64px; --badge-w: 40px; }
  .meter { height: 66px; }
  .meter__label { font-size: 15px; }
  .meter__value { font-size: 32px; }
}

/* ---------- Efekt katmanı ---------- */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ---------- Katmanlar (overlay) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(1, 10, 5, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(242, 193, 78, .4);
  background: rgba(0, 0, 0, .3);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s, filter .15s, background .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary {
  color: #2a1600;
  border: 0;
  background: linear-gradient(180deg, #fff1b0, #f2c14e 45%, #c98a1e);
  box-shadow: 0 4px 0 #6b4308, 0 10px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--xl { height: 60px; padding: 0 34px; font-size: 23px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { background: rgba(242, 193, 78, .12); }
.btn--red { color: #fff; border: 2px solid #ffb4ad; background: linear-gradient(180deg, #ef4a3d, #a3121b); box-shadow: 0 4px 0 #4a0505; }
.btn--black { color: #fff; border: 2px solid #9a9a9a; background: linear-gradient(180deg, #4a4a4a, #141414); box-shadow: 0 4px 0 #000; }
.suits { font-size: 1.15em; letter-spacing: -1px; }

/* Yükleniyor */
.overlay--loading { background: radial-gradient(circle at 50% 40%, var(--felt), var(--felt-edge)); z-index: 80; }
.loading { width: min(360px, 80vw); text-align: center; }
.loading__title, .login__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8.4vw, 66px);
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(180deg, #fffdf0 0%, #ffe383 30%, #f4b92b 54%, #b8730c 76%, #ffd975 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px #3a2200;
  filter: drop-shadow(0 3px 0 #3a2200) drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
  white-space: nowrap;
}
.loading__bar { height: 10px; margin: 22px 0 10px; border-radius: 6px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); overflow: hidden; }
.loading__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c98a1e, #fff1b0); transition: width .2s; }
.loading__text { color: var(--text-dim); font-size: 17px; }

/* Giriş */
.overlay--login { background: radial-gradient(circle at 50% 38%, rgba(31, 131, 80, .55), rgba(1, 10, 5, .9) 70%); z-index: 70; }
.login {
  width: min(520px, 100%);
  padding: clamp(26px, 5vh, 46px) clamp(20px, 5vw, 44px);
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 42, 27, .92), rgba(3, 19, 11, .95));
  border: 1px solid rgba(242, 193, 78, .45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(0, 0, 0, .25);
}
.login__lead { margin: 14px 0 26px; font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.3; }
.login__note { margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--text-dim); line-height: 1.35; }
.login__note:empty { display: none; }

/* Büyük kazanç */
.overlay--bigwin { background: radial-gradient(circle at 50% 45%, rgba(60, 40, 0, .55), rgba(1, 8, 4, .88) 70%); cursor: pointer; z-index: 55; }
.bigwin { text-align: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.bigwin { position: relative; z-index: 1; max-width: 100%; }
.bigwin__title {
  --title-grad: linear-gradient(180deg, #fffdf0 0%, #ffe383 28%, #f4b92b 52%, #b8730c 74%, #ffd975 100%);
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 128px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%), var(--title-grad);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px #3a2200;
  filter: drop-shadow(0 5px 0 #3a2200) drop-shadow(0 0 30px rgba(255, 196, 64, .55));
  animation: shine 2.6s ease-in-out infinite;
}
.bigwin.tier-2 .bigwin__title { --title-grad: linear-gradient(180deg, #fff 0%, #ffd2c8 22%, #ff5b45 50%, #a80f0f 78%, #ffb39e 100%); }
.bigwin.tier-3 .bigwin__title { --title-grad: linear-gradient(100deg, #ffe383, #ff7a5a, #ffd24d, #7fd3ff, #c9a2ff, #ffe383); }
.bigwin.is-pop .bigwin__title { animation: tierPop .55s cubic-bezier(.2, 1.7, .4, 1), shine 2.6s ease-in-out infinite; }
.bigwin.is-pop .bigwin__amount { animation: tierPop .55s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes shine { 0% { background-position: 160% 0, 0 0; } 60%, 100% { background-position: -160% 0, 0 0; } }
@keyframes tierPop { 0% { transform: scale(.55); } 100% { transform: scale(1); } }
.bigwin__amount {
  margin-top: 10px;
  font-size: clamp(44px, 9vw, 112px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 210, 80, .85), 0 4px 0 #6b4308;
}
.bigwin__hint {
  margin-top: 26px;
  font-size: clamp(15px, 2.2vh, 20px);
  font-weight: 700;
  letter-spacing: .03em;
  color: rgba(255, 244, 194, .9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85);
  animation: hintBlink 1.6s ease-in-out infinite;
  transition: opacity .3s;
}
@keyframes hintBlink { 50% { opacity: .45; } }
.overlay--bigwin.is-done .bigwin__hint { opacity: 0; animation: none; }
/* Yazının arkasında hafif koyu bir hale: arkadan geçen paralar okunurluğu bozmasın */
.bigwin::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .28) 60%, transparent);
}
.bigwin__sub, .bigwin__amount { position: relative; }
.bigwin__sub { text-shadow: 0 2px 4px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .7); }
/* Kazanç ekranında efekt tuvali: ışık hüzmelerinin önünde, yazının arkasında */
.fx.is-inside { z-index: 0; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Bedava çevirme giriş/çıkış */
.overlay--feature { background: radial-gradient(circle at 50% 45%, rgba(26, 63, 153, .75), rgba(2, 6, 20, .92) 72%); z-index: 56; }
.feature {
  text-align: center;
  padding: clamp(24px, 5vh, 48px) clamp(22px, 6vw, 60px);
  border-radius: 26px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(20, 50, 130, .85), rgba(6, 16, 50, .92));
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .3), 0 0 60px rgba(70, 130, 255, .45);
  animation: pop .45s cubic-bezier(.2, 1.5, .4, 1);
  max-width: 100%;
}
.feature__kicker { font-size: clamp(18px, 3vh, 26px); color: var(--gold-hi); font-weight: 700; }
.feature__title {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 84px);
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(180deg, #fffdf0 0%, #ffe383 30%, #f4b92b 54%, #b8730c 76%, #ffd975 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px #3a2200;
  filter: drop-shadow(0 4px 0 #3a2200);
}
.feature__text { font-size: clamp(18px, 3vh, 26px); margin-bottom: 26px; color: #dfe8ff; }
.overlay--feature { overflow: hidden; }
.feature { position: relative; z-index: 1; }
.feature__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vmax;
  height: 220vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(130, 195, 255, .2) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 22%, transparent 50%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 22%, transparent 50%);
  animation: raysSpin 34s linear infinite;
}
.feature__tiles { display: flex; justify-content: center; gap: clamp(8px, 1.4vh, 14px); margin: 0 0 clamp(8px, 1.6vh, 16px); }
.feature__tiles[hidden] { display: none; }
.feature__tiles img {
  width: clamp(54px, 9vh, 92px);
  height: clamp(64px, 10.6vh, 108px);
  object-fit: contain;
  padding: 8px 6px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6fbff, #dcecfb 55%, #b9d3ee);
  box-shadow: 0 5px 0 #5a7fa8, 0 10px 18px rgba(0, 0, 0, .45), 0 0 28px rgba(120, 190, 255, .6);
  animation: tileBob 1.8s ease-in-out infinite;
}
.feature__tiles img:nth-child(2) { animation-delay: .25s; }
.feature__tiles img:nth-child(3) { animation-delay: .5s; }
@keyframes tileBob { 50% { transform: translateY(-7px); } }
@media (orientation: landscape) and (max-height: 560px) {
  .feature { padding: 16px 28px; }
  .feature__tiles img { width: 46px; height: 54px; padding: 5px 4px 8px; }
  .feature__text { margin-bottom: 14px; }
}

/* Katla */
.overlay--gamble { background: radial-gradient(circle at 50% 40%, rgba(110, 10, 10, .55), rgba(2, 8, 4, .9) 70%); z-index: 54; }
.gamble {
  width: min(460px, 100%);
  max-height: 100%;
  overflow: auto;
  text-align: center;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 42, 27, .95), rgba(3, 19, 11, .97));
  border: 1px solid rgba(242, 193, 78, .5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.gamble__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--gold); }
.gamble__lead { margin: 6px 0 14px; font-size: 17px; font-weight: 500; color: var(--text-dim); }
.gamble__amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gamble__amounts div { padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.gamble__amounts span { display: block; font-size: 14px; color: var(--text-dim); }
.gamble__amounts div { min-width: 0; }
.gamble__amounts strong { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gamble__amounts div:last-child strong { color: var(--gold); }
.gamble__table { display: grid; place-items: center; padding: 18px 0 10px; }
.card { width: clamp(110px, 30vw, 150px); aspect-ratio: 5 / 7; perspective: 900px; }
.card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__back, .card__face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}
.card__back {
  border: 6px solid #fbf4e2;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(0, 0, 0, .0) 22%),
    repeating-linear-gradient(45deg, #b3121b 0 8px, #8e0d1d 8px 16px);
}
.card__back::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: radial-gradient(circle, #fff1b0, #c98a1e);
}
.card__face {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #fffdf6, #f1e6cc);
  border: 1px solid #c9b78f;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 8px 10px;
  font-weight: 800;
}
.card__face.is-red { color: #d0121b; }
.card__face.is-black { color: #161616; }
.card__corner { font-size: 26px; line-height: .9; text-align: left; }
.card__corner--b { transform: rotate(180deg); }
.card__suit { display: grid; place-items: center; font-size: 64px; line-height: 1; }
.gamble__history { display: flex; justify-content: center; gap: 6px; min-height: 34px; }
.mini-card {
  width: 26px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fbf4e2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.mini-card.is-red { color: #d0121b; }
.mini-card.is-black { color: #161616; }
.gamble__step { margin: 8px 0 12px; font-size: 15px; color: var(--text-dim); }
.gamble__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gamble__actions .btn { height: 58px; font-size: 21px; }
.gamble .btn--ghost { width: 100%; }
.gamble.is-won .gamble__amounts div:last-child { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .45); }

/* ---------- Pencereler (sheet) ---------- */
.overlay--sheet { z-index: 52; }
.sheet {
  width: min(820px, 100%);
  max-height: min(88vh, 940px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f3a26, #062014);
  border: 1px solid rgba(242, 193, 78, .42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: rise .25s ease;
}
.sheet--compact { width: min(520px, 100%); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__head, .tabs { flex: none; }
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px 22px;
  border-bottom: 1px solid var(--line);
}
.sheet__head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--gold); }
.sheet__body { flex: 1 1 auto; min-height: 0; padding: 16px 22px 22px; overflow: auto; -webkit-overflow-scrolling: touch; -webkit-user-select: text; user-select: text; }
.sheet__label { margin: 0 0 8px; font-size: 16px; color: var(--text-dim); }
@media (max-width: 640px) {
  .overlay--sheet { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: var(--safe-b); }
}

.tabs { display: flex; gap: 6px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__btn {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dim);
}
.tabs__btn.is-active { color: var(--gold-hi); border-bottom-color: var(--gold); }
.tab { display: none; }
.tab.is-active { display: block; }

/* Ödeme tablosu */
.pay-note { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: var(--text-dim); line-height: 1.35; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pay-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(242, 193, 78, .14);
}
.pay-item--wide { grid-column: 1 / -1; grid-template-columns: 74px 1fr; }
.pay-item img {
  width: 74px;
  height: 74px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf0, #eadcb9);
  box-shadow: 0 3px 0 #a88e5c;
}
.pay-item__name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.pay-item__rows { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; font-size: 17px; font-variant-numeric: tabular-nums; }
.pay-item__rows span:nth-child(odd) { color: var(--text-dim); font-weight: 600; }
.pay-item__rows span:nth-child(even) { color: var(--gold-hi); font-weight: 700; }
.pay-item__desc { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--text); }

/* Çizgi şemaları */
.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.line-map { padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(242, 193, 78, .14); }
.line-map__num { font-size: 15px; font-weight: 800; color: var(--lc); margin-bottom: 6px; }
.line-map__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.line-map__grid i { display: block; aspect-ratio: 1 / 1.15; border-radius: 3px; background: rgba(251, 244, 226, .14); }
.line-map__grid i.on { background: var(--lc); box-shadow: 0 0 6px var(--lc); }

/* Kurallar metni */
.rules-text { font-size: 17px; font-weight: 500; line-height: 1.5; max-width: 70ch; }
.rules-text h3 { margin: 18px 0 6px; font-size: 20px; font-weight: 800; color: var(--gold-hi); }
.rules-text h3:first-child { margin-top: 0; }
.rules-text ul { margin: 0; padding-left: 20px; }
.rules-text li { margin: 4px 0; }
.rules-text strong { color: var(--gold-hi); font-weight: 700; }

/* Geçmiş */
.history-empty { padding: 30px 0; text-align: center; color: var(--text-dim); font-size: 18px; }
.h-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.h-row.is-win { border-color: rgba(242, 193, 78, .35); }
.h-row__head { display: flex; gap: 10px; align-items: baseline; font-size: 17px; font-weight: 700; flex-wrap: wrap; }
.h-row__time { color: var(--text-dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-row__type { color: var(--gold-hi); }
.h-row__money { text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.h-row__money b { color: var(--gold); }
.h-row__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 30px); grid-auto-rows: 30px; gap: 3px; margin-top: 4px; }
.h-row__grid img { width: 30px; height: 30px; padding: 2px; border-radius: 5px; background: #f3e8cc; }
.h-row__ref { grid-column: 1 / -1; font-size: 13px; color: rgba(247, 241, 222, .45); font-weight: 500; }

/* Bahis paneli */
.bet-current { display: grid; justify-items: center; gap: 2px; margin-bottom: 14px; }
.bet-current span { font-size: 15px; color: var(--text-dim); }
.bet-current strong { font-size: 40px; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; line-height: 1.05; }
.bet-current small { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.chip-btn {
  height: 46px;
  border-radius: 23px;
  border: 2px dashed rgba(255, 255, 255, .35);
  background: radial-gradient(circle at 50% 30%, #2f5a43, #0f2a1c);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.is-active { color: #2a1600; border: 2px solid #fff3c4; background: radial-gradient(circle at 50% 30%, #fff0b0, #e0a630); }
.bet-custom label { display: block; font-size: 16px; color: var(--text-dim); margin-bottom: 6px; }
.bet-custom__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input, .bet-custom input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(242, 193, 78, .4);
  background: rgba(0, 0, 0, .4);
  color: var(--text);
  font: 700 20px var(--font-ui);
  font-variant-numeric: tabular-nums;
  -webkit-user-select: text;
  user-select: text;
}
.input:disabled { opacity: .45; }
.bet-custom__hint { min-height: 20px; margin: 6px 0 12px; font-size: 15px; font-weight: 500; color: var(--text-dim); }
.bet-custom__hint.is-error { color: #ff8a80; }
.bet-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bet-quick .btn { padding: 0 8px; font-size: 17px; }

.check { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 17px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }
#autoStart { margin-top: 18px; }

/* Oyuncu menüsü */
.menu {
  position: fixed;
  top: calc(var(--topbar-h) + var(--safe-t) - 4px);
  left: calc(10px + var(--safe-l));
  z-index: 40;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: #0b2a1b;
  border: 1px solid rgba(242, 193, 78, .4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.menu__item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.menu__item:hover { background: rgba(242, 193, 78, .12); }

/* Bildirim */
.toast {
  position: fixed;
  top: calc(var(--topbar-h) + var(--safe-t) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(560px, calc(100vw - 24px));
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(10, 20, 14, .95);
  border: 1px solid rgba(242, 193, 78, .5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  animation: drop .25s ease;
}
.toast.is-error { border-color: #ff6f61; }
@keyframes drop { from { transform: translate(-50%, -10px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Yükleme sırasında arayüzü gizle */
.is-loading .topbar, .is-loading .stage, .is-loading .console { visibility: hidden; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  .marquee__bulbs, .spin-btn__ring, .gamble-btn, .bigwin__title, .bigwin__rays, .bigwin__hint, .feature__rays, .feature__tiles img, .rack__glow::before, .pillar span { animation: none !important; }
  .overlay, .sheet, .bigwin, .feature { animation: none !important; }
}

/* Giriş kartındaki taşlar */
.login__tiles { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.login__tiles img {
  width: clamp(58px, 15vw, 84px);
  height: clamp(70px, 18vw, 100px);
  object-fit: contain;
  padding: 8px 6px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf6, #f1e4c2 70%, #dcc796);
  box-shadow: 0 5px 0 #a88e5c, 0 10px 18px rgba(0, 0, 0, .45);
}
.login__tiles img:nth-child(2) { background: linear-gradient(180deg, #fffbe8, #fbe7a8 70%, #ecc96a); transform: translateY(-8px); }

/* ---------- Çanak (jackpot) göstergesi: Las Vegas LED panosu ---------- */
.jackpot-meter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 5px 18px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #070302, #170804);
  box-shadow: inset 0 0 0 2px #3a2208, inset 0 3px 10px rgba(0, 0, 0, .9), 0 0 0 1px var(--gold-lo), 0 0 22px rgba(255, 90, 30, .18);
}
.jackpot-meter__label { font-size: clamp(14px, 2.1vh, 21px); font-weight: 800; letter-spacing: .04em; color: var(--gold); }
.jackpot-meter__value {
  min-width: 7ch;
  text-align: right;
  font-size: clamp(24px, 4vh, 44px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #ff7a2e;
  text-shadow: 0 0 6px rgba(255, 110, 40, .95), 0 0 20px rgba(255, 70, 0, .6);
}
.jackpot-meter__hint { font-size: clamp(12px, 1.7vh, 16px); font-weight: 600; color: rgba(255, 236, 180, .72); white-space: nowrap; }
.jackpot-meter.is-bump .jackpot-meter__value { animation: jpBump .5s ease; }
.jackpot-meter { max-width: 100%; }
.jackpot-meter.is-tight .jackpot-meter__hint { display: none; }
@keyframes jpBump { 40% { transform: scale(1.06); color: #ffd36b; } }
/* Çanak göstergesi bedava çevirmelerde de görünür (5 WILD orada da çanağı kazandırır) */
.has-jackpot .marquee__sub { display: none; }
.is-fs .jackpot-meter { box-shadow: inset 0 0 0 2px #0c2a5c, inset 0 3px 10px rgba(0, 0, 0, .9), 0 0 0 1px #5fb4ff, 0 0 22px rgba(95, 180, 255, .3); }
.topbar__jackpot {
  display: none;
  padding: 3px 10px;
  border-radius: 8px;
  background: #0a0402;
  border: 1px solid var(--gold-lo);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.topbar__jackpot b { color: #ff7a2e; font-weight: 800; text-shadow: 0 0 6px rgba(255, 110, 40, .8); font-variant-numeric: tabular-nums; }
@media (orientation: landscape) and (max-height: 560px) {
  .has-jackpot .topbar__jackpot { display: inline-block; }
}
@media (orientation: portrait) {
  .jackpot-meter { gap: 10px; padding: 4px 12px 5px; }
  .jackpot-meter__hint { display: none; }
}

/* Jackpot kazanma ekranı */
.bigwin.tier-jackpot .bigwin__title {
  --title-grad: linear-gradient(180deg, #fff 0%, #ffe383 25%, #ff7a2e 55%, #b3120e 80%, #ffd36b 100%);
  filter: drop-shadow(0 5px 0 #3a0a00) drop-shadow(0 0 40px rgba(255, 90, 30, .75));
  animation: jpPulse .9s ease-in-out infinite, shine 2s ease-in-out infinite;
}
.bigwin__sub { margin-top: 12px; font-size: clamp(16px, 2.6vh, 24px); font-weight: 700; color: var(--gold-hi); }
@keyframes jpPulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .bigwin.tier-jackpot .bigwin__title { animation: none; } }

/* =============================================================================
   SÜRÜKLEYİCİ ORTAM: kumarhane ışıkları, spot, ışık halkası, sütunlar, cam
   ============================================================================= */
:root { --glow1: #ffd24d; --glow2: #ff8a3c; --glow-speed: 6s; --glow-op: .55; --p1: #ffd24d; --p2: #fff4c2; --p3: #ff9a3c; }
.is-busy { --glow-speed: 2.2s; --glow-op: .75; }
.is-win { --glow1: #fff4c2; --glow2: #ffd24d; --glow-speed: 1.1s; --glow-op: .95; }
.is-celebrating { --glow1: #ffffff; --glow2: #ff5b8a; --glow-speed: .7s; --glow-op: 1; }
.is-antic { --glow1: #ff3b2f; --glow2: #ffd24d; --glow-speed: .6s; --glow-op: 1; }
.is-fs { --glow1: #5fb4ff; --glow2: #c9a2ff; --p1: #5fb4ff; --p2: #e6f4ff; --p3: #9f7bff; }

.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Kabinin üzerine düşen spot ışık */
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1400px, 130%);
  height: 95%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(50% 62% at 50% 0%, rgba(255, 243, 210, .16), rgba(255, 243, 210, .05) 45%, transparent 72%);
}

/* Makaraların çevresinde dönen ışık halkası */
.rack__glow {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--frame) * 2.4);
  overflow: hidden;
  filter: blur(9px);
  opacity: var(--glow-op);
  transition: opacity .4s;
  pointer-events: none;
}
.rack__glow::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--glow1) 35deg, transparent 80deg, transparent 180deg, var(--glow2) 215deg, transparent 260deg);
  animation: glowSpin var(--glow-speed) linear infinite;
}
@keyframes glowSpin { to { transform: rotate(1turn); } }

/* Cam yansıması */
.rack__glass {
  position: absolute;
  inset: var(--frame);
  border-radius: calc(var(--frame) * .9);
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .035) 26%, transparent 38%, transparent 72%, rgba(255, 255, 255, .045) 86%, transparent 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 12px 24px rgba(0, 0, 0, .3), inset 0 -10px 20px rgba(0, 0, 0, .25);
}

/* Yan ışık sütunları (gerçek kabin gibi) */
.pillar {
  display: none;
  position: relative;
  flex: none;
  width: 18px;
  margin: 14px 4px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(90deg, #241306, #6b4420 45%, #241306);
  box-shadow: inset 0 0 0 2px #1c0f05, inset 0 0 0 3px var(--gold-lo), 0 10px 22px rgba(0, 0, 0, .5);
}
.pillar span {
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(0, 0, 0, .55) 7px 10px),
    linear-gradient(180deg, transparent 0%, var(--p1) 12%, var(--p2) 20%, var(--p3) 30%, transparent 46%, transparent 54%, var(--p1) 66%, var(--p2) 74%, var(--p3) 84%, transparent 100%);
  background-size: 100% 100%, 100% 200%;
  filter: drop-shadow(0 0 6px var(--p1));
  animation: pillarRun 3s linear infinite;
}
.is-busy .pillar span { animation-duration: 1.2s; }
.is-win .pillar span, .is-celebrating .pillar span { animation-duration: .45s; }
@keyframes pillarRun { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 -200%; } }
@media (orientation: landscape) and (min-height: 561px) and (min-width: 1000px) {
  .pillar { display: block; }
}

/* Makaraların üzerinde yükselen kazanç */
.win-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  font-size: clamp(30px, 6vh, 68px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 210, 80, .95), 0 0 34px rgba(255, 170, 40, .6), 0 4px 0 #6b4308;
}
.win-float.is-on { animation: winFloat 1.8s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes winFloat {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(.5); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  28% { transform: translate(-50%, -52%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -115%) scale(1); }
}

/* Büyük kazanç: dönen ışık hüzmeleri */
.overlay--bigwin { overflow: hidden; }
.bigwin__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vmax;
  height: 220vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 90, .22) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 50%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 50%);
  animation: raysSpin 28s linear infinite;
}
.overlay--bigwin.is-jackpot .bigwin__rays {
  background: repeating-conic-gradient(from 0deg, rgba(255, 90, 40, .3) 0deg 7deg, rgba(255, 214, 90, .2) 7deg 13deg, transparent 13deg 20deg);
  animation-duration: 10s;
}
.overlay--bigwin.is-jackpot { background: radial-gradient(circle at 50% 45%, rgba(120, 30, 0, .6), rgba(10, 2, 0, .92) 70%); }
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(1turn); } }

/* Sarsıntı (büyük kazanç anı) */
.is-shaking .stage, .is-shaking .console { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translate(-1px, 0); }
  20%, 80% { transform: translate(3px, 1px); }
  30%, 50%, 70% { transform: translate(-6px, -1px); }
  40%, 60% { transform: translate(6px, 1px); }
}

/* Açılış: makinenin ışıkları yanıyor */
#reels { transition: filter .7s ease; }
.marquee__title, .jackpot-meter, .rack__glow, .pillar span { transition: opacity .6s ease, filter .6s ease; }
.is-powering .marquee__bulbs { animation: none; opacity: 0; }
.is-powering .marquee__title { opacity: .25; }
.is-powering .jackpot-meter { opacity: .2; }
.is-powering .rack__glow, .is-powering .pillar span { opacity: 0; }
.is-powering #reels { filter: brightness(.22) saturate(.5); }
.is-powering-up .marquee__bulbs { animation: bulbFlicker .7s steps(1) 1, bulbs .9s steps(1) .7s infinite; }
@keyframes bulbFlicker { 0% { opacity: .2; } 15% { opacity: 1; } 30% { opacity: .1; } 45% { opacity: 1; } 60% { opacity: .3; } 75%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .is-shaking .stage, .is-shaking .console, .win-float.is-on, .is-powering-up .marquee__bulbs { animation: none !important; }
}

.bet-current__jp { color: #ff9a5a !important; font-weight: 700 !important; }

/* =============================================================================
   UZUN YAZI / DAR EKRAN DÜZENLEMELERİ
   ============================================================================= */
/* Çok dar telefonlarda pencere sekmeleri sığsın */
@media (max-width: 400px) {
  .tabs { gap: 0; padding: 8px 6px 0; }
  .tabs__btn { padding: 9px 9px; font-size: 16px; }
  .sheet__head h2 { font-size: 22px; }
}
/* Dar masaüstü penceresi / küçük dizüstü (yatay, 1100 pikselden dar):
   otomatik ve hızlı tuşları yalnız simge, sayaçlar kalan alanı paylaşır */
@media (orientation: landscape) and (min-height: 561px) and (max-width: 1099px) {
  .console {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--ctl) minmax(96px, 160px) var(--ctl) var(--ctl) var(--spin) var(--ctl);
    grid-template-areas: "bal win minus bet plus autoplay spin turbo";
    gap: 10px;
  }
  .round-btn--toggle { width: var(--ctl); padding: 0; border-radius: 50%; }
  .round-btn__label { display: none; }
}
/* Çok dar telefonda katla düğmeleri */
@media (max-width: 360px) {
  .gamble { padding: 18px 14px 14px; }
  .gamble__actions { gap: 8px; }
  .gamble__actions .btn { min-width: 0; padding: 0 8px; font-size: 18px; }
}
