/* ---------- footer slot makinesi ---------- */
.slot {
  /* makara genişliği ekrana göre: kabin + kol + masaüstü kaydırma çubuğu payı 375px'te de sığsın */
  --w: clamp(56px, calc((100vw - 2 * var(--pad) - 124px) / 3), 196px);
  --h: calc(var(--w) * .625);
  --b: clamp(26px, 2.6vw, 34px);
  --gold: #ffd23f;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(28px, 5vw, 80px);
  margin-top: clamp(36px, 7vh, 72px); min-height: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.slot:empty { display: none; }
.slot__machine { display: grid; justify-items: center; gap: 24px; max-width: 100%; }
.slot__rig { display: flex; align-items: center; }

.slot__cab {
  position: relative; display: grid; gap: 10px; padding: 12px; border-radius: 30px 30px 18px 18px; color: #fff;
  background: radial-gradient(120% 60% at 50% 0%, #3a2418, transparent 60%), linear-gradient(180deg, #24180f, #0c0b0a 55%);
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #0c0b0a, inset 0 0 0 7px rgba(255, 210, 63, .35),
    0 30px 50px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4);
}
/* kaide */
.slot__cab::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 100%; height: 12px; border-radius: 0 0 14px 14px;
  background: linear-gradient(#1c130e, #050404); box-shadow: inset 0 -2px 0 rgba(255, 210, 63, .4);
}
.slot__sign { text-align: center; }
.slot__sign span {
  display: inline-block; padding: 6px 16px 5px; border-radius: 99px; white-space: nowrap;
  font-family: var(--display); font-weight: 900; font-size: clamp(9px, 1.1vw, 13px); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(#d22a1c, #7c0d08); text-shadow: 0 0 10px rgba(255, 180, 40, .7);
  box-shadow: inset 0 0 0 2px var(--gold), 0 6px 14px -6px rgba(0, 0, 0, .8);
}

/* ampuller: boşta tek-çift yanık, dönerken kayar (üst sağa, alt sola: tur atar), kazanınca hep beraber yanıp söner */
.slot__lights { display: flex; justify-content: space-between; padding: 0 10px; }
.slot__lights--b { flex-direction: row-reverse; }
.slot__lights i { position: relative; width: clamp(6px, .7vw, 9px); aspect-ratio: 1; border-radius: 50%; background: #5a3b0c; }
.slot__lights i::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: .2;
  background: radial-gradient(circle at 40% 35%, #fffbe6, var(--gold) 50%, #ff9f1c); box-shadow: 0 0 8px 2px rgba(255, 200, 60, .75);
}
.slot__lights i:nth-child(odd)::after { opacity: 1; }
.slot.is-spin .slot__lights i::after { opacity: .2; animation: slot-chase .36s steps(1) infinite; }
.slot.is-spin .slot__lights i:nth-child(3n + 2)::after { animation-delay: -.24s; }
.slot.is-spin .slot__lights i:nth-child(3n)::after { animation-delay: -.12s; }
.slot.is-win .slot__lights i::after { animation: slot-flash .5s steps(1) 6; }
@keyframes slot-chase { 0% { opacity: 1; } 33.33% { opacity: .2; } }
@keyframes slot-flash { 0% { opacity: 1; } 50% { opacity: .15; } }

.slot__win {
  position: relative; display: grid; grid-template-columns: repeat(3, var(--w)); gap: 6px; padding: 8px 12px; border-radius: 14px;
  background: #050404; box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .6), inset 0 12px 24px rgba(0, 0, 0, .9);
}
/* cam parlaması */
.slot__win::after { content: ''; position: absolute; inset: 8px 12px; border-radius: 8px; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 34%); }
.slot__reel { position: relative; height: calc(var(--h) * 1.7); overflow: hidden; border-radius: 8px; background: linear-gradient(#8f8578, #f4eee4 50%, #8f8578); }
/* silindir gölgesi */
.slot__reel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .75), transparent 30%, transparent 70%, rgba(0, 0, 0, .75)), linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 15%, transparent 85%, rgba(0, 0, 0, .25));
}
/* ortadaki öğe pencerenin tam ortasına gelsin; dönüşü JS yPercent ile yapar */
.slot__strip { position: relative; top: calc(var(--h) * -.65); }
.slot.is-spin .slot__strip { will-change: transform; }
.slot__item { height: var(--h); padding: 3px 4px; }
.slot__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.slot__pay { position: absolute; inset: 0; pointer-events: none; }
.slot__pay::before, .slot__pay::after { content: ''; position: absolute; top: 50%; margin-top: -7px; border: 7px solid transparent; }
.slot__pay::before { left: 0; border-width: 7px 0 7px 9px; border-left-color: #ff4a1c; }
.slot__pay::after { right: 0; border-width: 7px 9px 7px 0; border-right-color: #ff4a1c; }
.slot__glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 30px rgba(255, 210, 63, .55), 0 0 34px rgba(255, 210, 63, .6);
}
.slot.is-win .slot__glow { animation: slot-glow 1.2s var(--ease-out) 2; }
@keyframes slot-glow { from { opacity: 1; } to { opacity: 0; } }

/* kol: sap pivotta (kutunun ortası) katlanır, top aşağı iner */
.slot__lever { position: relative; flex: none; width: calc(var(--b) + 18px); height: calc(var(--b) * 5); margin-left: -3px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.slot__stick {
  position: absolute; left: 50%; top: calc(var(--b) / 2); width: 8px; height: calc(var(--b) * 2); margin-left: -4px;
  border-radius: 4px; transform-origin: 50% 100%; background: linear-gradient(90deg, #6d6d6d, #f4f4f4 45%, #8a8a8a);
}
.slot__hub {
  position: absolute; left: 0; top: calc(var(--b) * 2.5 - 15px); width: calc(50% + 9px); height: 30px; border-radius: 0 10px 10px 0;
  background: linear-gradient(#3a2a1e, #0c0b0a); box-shadow: inset 0 0 0 2px var(--gold), 0 6px 12px -4px rgba(0, 0, 0, .6);
}
.slot__ball {
  position: absolute; left: 50%; top: 0; width: var(--b); height: var(--b); margin-left: calc(var(--b) / -2); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffc2b3 0 6%, #ff3b24 28%, #b0100a 68%, #520504);
  box-shadow: 0 8px 14px -4px rgba(0, 0, 0, .55); transition: filter .2s;
}
.slot__lever:hover .slot__ball { filter: brightness(1.15); }

.slot__note { color: var(--mute); text-align: center; font-size: 10.5px; max-width: 42ch; }
.slot__out { flex: 1 1 300px; max-width: 560px; display: grid; gap: 22px; }
.slot__msg {
  font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.035em;
  text-transform: uppercase; color: var(--fg); min-height: 2.04em;
}
.slot__msg span[lang="en"] { color: var(--gold); background: #0c0b0a; padding: 0 .18em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.slot__msg span:empty { display: none; }
.slot__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.slot__acts.is-off { visibility: hidden; }

@media (max-width: 640px) {
  .slot__cab { padding: 10px; border-radius: 24px 24px 14px 14px; }
  .slot__win { padding: 6px 10px; gap: 4px; }
  .slot__win::after { inset: 6px 10px; }
  .slot__out { flex-basis: 100%; }
}

/* ---------- fırlatılan harfler ---------- */
.foot__word .ch { position: relative; }
.foot__word .ch.is-held { z-index: 3; color: var(--fg); -webkit-text-stroke-color: var(--fg); transition: none; }
.foot__hint { margin-top: 18px; text-align: center; color: var(--mute); }

/* ---------- AFK ---------- */
.afk {
  position: fixed; left: 50%; bottom: var(--pad); z-index: 360; display: grid; gap: 3px; justify-items: center; text-align: center;
  width: max-content; max-width: calc(100vw - 2 * var(--pad)); padding: 12px 20px; border-radius: 16px; background: #0c0b0a; color: #fff;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; transform: translate(-50%, calc(100% + var(--pad))); pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .35s;
}
.afk.is-on { opacity: 1; transform: translate(-50%, 0); }
.afk .mono { font-size: 10px; color: #ffd23f; }
.afk b { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* dar ekranda alttaki seviye ve başarım kutularıyla çakışmasın: üste */
@media (max-width: 1000px) {
  .afk { bottom: auto; top: 76px; transform: translate(-50%, calc(-100% - 76px)); }
  .afk.is-on { transform: translate(-50%, 0); }
}
