/**
 * Salla Kazan — ortak arayüz (madde 34).
 * Giriş kapısı, ilerleme çubuğu ve telefon kabuğu; `index.php` ve ileride `sk-app.js` ile uyumlu.
 */

:root {
  --sk-bg: #0f0f12;
  --sk-text: #f2f2f4;
  --sk-muted: rgba(242, 242, 244, 0.65);
  --sk-accent: #ff6b35;
  --sk-accent-soft: rgba(255, 107, 53, 0.16);
  --sk-gold: #f4d03f;
  --sk-ok: #2bd576;
  --sk-err: #ff5c5c;
  --sk-phone-frame: #2a2a35;
  --sk-screen: linear-gradient(165deg, #1e1e2e 0%, #12121a 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--sk-bg);
  color: var(--sk-text);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 53, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(244, 208, 63, 0.06), transparent);
}

.sk-wrap {
  display: grid;
  gap: 1.25rem;
  place-items: center;
  width: min(420px, 100%);
}

.sk-gate {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem 1.35rem;
  border-radius: 1.25rem;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1rem;
}

.sk-gate h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sk-gate-lead {
  font-size: 0.92rem;
  color: var(--sk-muted);
  line-height: 1.45;
  min-height: 1.45em;
}

.sk-gate-ready {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.sk-gate-await {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  width: 100%;
  padding: 2rem 1rem;
}

.sk-gate-inner--await-token .sk-gate-await {
  display: flex;
}

.sk-gate-inner--await-token .sk-gate-ready {
  display: none;
}

.sk-gate-spinner {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--sk-accent);
  animation: sk-gate-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.sk-gate-spinner--hero {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

@keyframes sk-gate-spin {
  to {
    transform: rotate(360deg);
  }
}

.sk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sk-gate p {
  font-size: 0.88rem;
  color: var(--sk-muted);
  line-height: 1.45;
}

.sk-gate code {
  font-size: 0.78rem;
  word-break: break-all;
  color: rgba(242, 242, 244, 0.85);
}

.sk-token-hint {
  display: none;
  font-size: 0.85rem;
  color: var(--sk-muted);
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.sk-token-hint.sk-token-hint--visible {
  display: block;
}

.sk-gate-error {
  display: none;
  font-size: 0.85rem;
  color: var(--sk-err);
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(255, 92, 92, 0.08);
  border: 1px solid rgba(255, 92, 92, 0.25);
}

.sk-gate-error.sk-gate-error--show {
  display: block;
}

.sk-progress-wrap {
  display: none;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sk-progress-wrap.sk-progress-wrap--active {
  display: block;
}

.sk-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sk-accent), var(--sk-gold));
  transition: width 0.35s ease;
}

.sk-progress-wrap.sk-progress-wrap--active .sk-progress-bar {
  width: 92%;
}

.sk-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sk-accent) 0%, #e85a2a 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sk-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.sk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sk-hidden {
  display: none !important;
}

.sk-stage {
  perspective: 1400px;
}

.sk-phone-wrap {
  transform-style: preserve-3d;
}

/* Ön/arka yüz: Y dönüşünde arka görünür; boyut burada */
.sk-phone-3d {
  width: min(300px, 88vw);
  aspect-ratio: 9 / 19;
  position: relative;
  transform-style: preserve-3d;
}

.sk-phone-face {
  position: absolute;
  inset: 0;
  border-radius: 2.6rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sk-phone-face--front {
  transform: rotateY(0deg) translateZ(4px);
}

.sk-phone-face--rear {
  transform: rotateY(180deg) translateZ(4px);
}

/* Arka kapak: mat cam / alüminyum hissi + kamera adası + ortada marka */
.sk-phone-back {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 115%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 85% 55% at 50% 38%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(155deg, #2a2d36 0%, #1a1c22 38%, #12141a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.sk-phone-back-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.02) 52%,
    transparent 58%
  );
  pointer-events: none;
}

.sk-phone-back-camera {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  width: 4.5rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #0e0f12, #1c1f26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.45rem;
}

.sk-phone-back-lens {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #3d4a5c, #0a0c10 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sk-phone-back-lens + .sk-phone-back-lens {
  width: 0.58rem;
  height: 0.58rem;
  opacity: 0.92;
}

.sk-phone-back-flash {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 2px;
  margin-left: 0.1rem;
  background: linear-gradient(135deg, #f5f0e6, #c9c2b8);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}

.sk-phone-back-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.sk-phone-back-favicon {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  display: block;
}

.sk-phone-back-bottom {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.sk-phone-back-fineprint {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.sk-phone-wrap.sk-phone-wrap--shake {
  animation: sk-phone-shake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes sk-phone-shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(-8px, 2px, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(8px, -2px, 0) rotate(4deg);
  }
  75% {
    transform: translate3d(-5px, 1px, 0) rotate(-2deg);
  }
}

.sk-phone {
  width: 100%;
  height: 100%;
  background: var(--sk-phone-frame);
  border-radius: 2.6rem;
  padding: 0.7rem;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 25px 50px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sk-phone::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.6rem;
  height: 1.35rem;
  background: #0a0a0e;
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}

.sk-screen {
  width: 100%;
  height: 100%;
  border-radius: 2.05rem;
  background: var(--sk-screen);
  overflow: hidden;
  position: relative;
  padding: 2.55rem 1.05rem 1.05rem;
}

/* Telefon içi tam ekran katmanlar: giriş + uygulama */
.sk-phone-layer {
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  top: 2.55rem;
  bottom: 1.05rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.sk-phone-layer--gate {
  z-index: 6;
}

.sk-phone-layer--app {
  z-index: 5;
}

.sk-gate-phone-inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0.85rem 0.95rem;
  display: grid;
  align-content: center;
  gap: 0.85rem;
  text-align: center;
}

.sk-gate-phone-inner.sk-gate-inner--await-token {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.sk-gate-phone-inner.sk-gate-inner--await-token .sk-gate-await {
  min-height: 11rem;
}

.sk-gate-phone-hero {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.sk-gate-phone-logo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 26%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* `index.php` `--logo:url('/favicon.ico')` ile üst katman */
  background:
    var(--logo, none) center / 82% no-repeat,
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 95%),
    linear-gradient(145deg, #ff6b3500, #c94d1f00);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 28px rgba(255, 107, 53, 0.32);
}

.sk-gate-phone-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sk-text);
}

.sk-gate-lead-phone {
  font-size: 0.82rem !important;
  line-height: 1.45;
  max-width: 100%;
  color: var(--sk-muted);
}

.sk-gate-error--phone {
  text-align: left;
}

.sk-btn--phone-login {
  width: 100%;
  justify-self: stretch;
}

.sk-root {
  width: min(420px, 100%);
}

.sk-ui {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  min-height: 0;
}

.sk-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(242, 242, 244, 0.92);
  user-select: none;
}

.sk-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.sk-app-title strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.sk-app-title span {
  font-size: 0.8rem;
  color: var(--sk-muted);
  font-weight: 600;
}

.sk-avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    var(--logo, none) center / 88% no-repeat,
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06));
}

.sk-member-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 1.35rem;
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sk-member-head {
  padding: 0.95rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sk-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(242, 242, 244, 0.45);
}

.sk-member-name {
  font-size: 1.1rem;
  font-weight: 800;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-rights-pill {
  padding: 0.45rem 0.55rem;
  border-radius: 0.85rem;
  text-align: center;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.28);
}

.sk-rights-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sk-rights-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sk-accent);
}

.sk-member-meta {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--sk-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.sk-meta-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(242, 242, 244, 0.88);
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.sk-prize-panel {
  flex: 1 1 auto;
  margin: 0.65rem;
  padding: 1rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.sk-prize {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sk-muted);
}

.sk-hint {
  font-size: 0.78rem;
  color: var(--sk-muted);
  line-height: 1.4;
  margin-top: auto;
}

.sk-actions {
  display: grid;
  gap: 0.6rem;
  place-items: center;
  width: 100%;
  max-width: min(300px, 88vw);
}

.sk-actions--in-phone {
  max-width: 100%;
  width: 100%;
}

.sk-actions.sk-actions--footer-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
}

.sk-actions-panels {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
}

.sk-actions-bar-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
  padding: 0.1rem 0.1rem 0;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sk-phone-app-footer {
  flex-shrink: 0;
  padding-top: 0.12rem;
  padding-bottom: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sk-phone-app-footer .sk-history-panel {
  max-height: min(42vh, 18rem);
}

/* Geçmiş veya promosyon: ana oyun gizli, yalnızca o alt ekran */
.sk-ui.sk-ui--mode-history,
.sk-ui.sk-ui--mode-promo {
  gap: 0;
}

.sk-ui.sk-ui--mode-history .sk-statusbar,
.sk-ui.sk-ui--mode-history .sk-appbar,
.sk-ui.sk-ui--mode-history .sk-member-card,
.sk-ui.sk-ui--mode-promo .sk-statusbar,
.sk-ui.sk-ui--mode-promo .sk-appbar,
.sk-ui.sk-ui--mode-promo .sk-member-card {
  display: none !important;
}

.sk-ui.sk-ui--mode-history .sk-phone-app-footer,
.sk-ui.sk-ui--mode-promo .sk-phone-app-footer {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
}

.sk-ui.sk-ui--mode-history .sk-actions.sk-actions--in-phone,
.sk-ui.sk-ui--mode-promo .sk-actions.sk-actions--in-phone {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  place-items: stretch;
  gap: 0.65rem;
}

.sk-ui.sk-ui--mode-history #shakeBtn,
.sk-ui.sk-ui--mode-history #skBtnPromo,
.sk-ui.sk-ui--mode-history #skPromoPanel,
.sk-ui.sk-ui--mode-promo #shakeBtn,
.sk-ui.sk-ui--mode-promo #skBtnHistory,
.sk-ui.sk-ui--mode-promo #skHistoryPanel {
  display: none !important;
}

.sk-ui.sk-ui--mode-history .sk-actions-panels,
.sk-ui.sk-ui--mode-promo .sk-actions-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.sk-ui.sk-ui--mode-history .sk-actions-bar-bottom,
.sk-ui.sk-ui--mode-promo .sk-actions-bar-bottom {
  justify-content: center;
  margin-top: 0;
  padding-top: 0.15rem;
}

.sk-ui.sk-ui--mode-history .sk-actions-bar-bottom #skBtnHistory {
  width: auto;
  max-width: none;
  min-width: 5rem;
  height: auto;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  margin-inline: auto;
  flex: 0 1 auto;
  line-height: 1.2;
}

.sk-ui.sk-ui--mode-promo .sk-actions-bar-bottom #skBtnPromo {
  width: 100%;
  max-width: 14rem;
  min-width: 0;
  height: auto;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  margin-inline: auto;
  flex: 0 1 auto;
  line-height: 1.2;
}

.sk-ui.sk-ui--mode-history .sk-history-panel.sk-history-panel--open {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  display: flex;
}

.sk-ui.sk-ui--mode-promo .sk-promo-panel.sk-promo-panel--open {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.sk-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.sk-actions-bar-bottom .sk-btn--emoji-nav {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 2.75rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  line-height: 1;
  border-radius: 0.82rem;
}

.sk-actions-bar-bottom .sk-btn--home-key {
  flex: 1.15 1 0;
  width: auto;
  height: 2.62rem;
  min-height: 2.62rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.32rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    165deg,
    rgba(255, 107, 53, 0.38),
    rgba(244, 208, 63, 0.14)
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.32);
}

.sk-actions-bar-bottom .sk-btn--home-key:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.sk-btn--grow {
  flex: 1 1 8rem;
  min-width: 0;
}

.sk-prize-strip-mount {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  perspective: 600px;
  transition: opacity 0.25s ease;
}

.sk-prize-strip-mount--hidden {
  display: none !important;
}

.sk-prize-strip-wrap {
  position: relative;
  width: 100%;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-prize-strip {
  position: relative;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-prize-chip {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(13rem, 80%);
  height: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: rgba(242, 242, 244, 0.95);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.sk-prize-chip--shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sk-prize-chip--leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.sk-prize-chip--win {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  border-color: var(--sk-gold);
  box-shadow:
    0 0 22px rgba(244, 208, 63, 0.5),
    0 0 0 1px rgba(244, 208, 63, 0.55) inset;
  color: var(--sk-gold);
}

/* Slot reel — spin sırasında hızlı chip değişimi (sk-prize-strip.js -> startFastSpin). */
.sk-prize-strip-mount--fast .sk-prize-chip {
  transition:
    opacity 70ms linear,
    transform 70ms linear;
}
.sk-prize-strip-mount--fast .sk-prize-chip--shown {
  transform: translateY(0) scale(1);
}
.sk-prize-strip-mount--fast .sk-prize-chip--leaving {
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .sk-prize-chip {
    transition: opacity 0.2s linear;
    transform: none;
  }

  .sk-prize-chip--shown,
  .sk-prize-chip--win {
    transform: none;
  }

  .sk-prize-chip--leaving {
    transform: none;
  }

  .sk-prize-strip-mount--fast .sk-prize-chip {
    transition: opacity 60ms linear;
    transform: none;
  }
}

.sk-history-panel {
  display: none;
  width: 100%;
  max-width: min(300px, 92vw);
  max-height: 14rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-direction: column;
}

.sk-history-panel.sk-history-panel--open {
  display: flex;
}

.sk-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sk-history-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 242, 244, 0.55);
}

.sk-history-close {
  font: inherit;
  border: none;
  background: transparent;
  color: var(--sk-muted);
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  border-radius: 0.35rem;
}

.sk-history-close:hover {
  color: var(--sk-text);
  background: rgba(255, 255, 255, 0.06);
}

.sk-history-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.sk-history-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.sk-history-item:last-child {
  border-bottom: none;
}

.sk-history-item-label {
  font-weight: 600;
  color: var(--sk-text);
}

.sk-history-item-meta {
  font-size: 0.72rem;
  color: var(--sk-muted);
}

.sk-history-loading,
.sk-history-empty,
.sk-history-err {
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  color: var(--sk-muted);
}

.sk-history-err {
  color: var(--sk-err);
}

.sk-btn--secondary {
  background: transparent;
  color: var(--sk-text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.sk-btn--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.sk-btn--small {
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
}

.sk-phone-wrap.sk-phone-wrap--promo-spin {
  transform-origin: center center;
  /* Süre assets/js/sk-phone-subviews.js SPIN_ANIM_MS ile aynı olmalı */
  animation: sk-phone-yaw-right 1.2s linear both;
}

/* Y ekseninde 2 tam tur (720deg); arka yüz dönüşte görünür */
@keyframes sk-phone-yaw-right {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(720deg);
  }
}

.sk-promo-panel {
  display: none;
  width: 100%;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.sk-promo-panel.sk-promo-panel--open {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sk-promo-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 244, 0.5);
}

.sk-promo-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.sk-promo-input {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.38rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--sk-text);
}

.sk-btn--promo-apply {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
}

.sk-promo-input::placeholder {
  color: rgba(242, 242, 244, 0.35);
}

.sk-promo-input:focus {
  outline: none;
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

.sk-promo-msg {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--sk-muted);
  min-height: 1.2em;
  flex: 0 0 auto;
}

.sk-promo-history {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sk-promo-history-title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 244, 0.42);
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.sk-promo-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.sk-promo-history-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.sk-promo-history-item:last-child {
  border-bottom: none;
}

.sk-promo-history-code {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: var(--sk-text);
  word-break: break-all;
}

.sk-promo-history-when {
  font-size: 0.68rem;
  color: var(--sk-muted);
}

.sk-promo-history-loading,
.sk-promo-history-empty,
.sk-promo-history-err {
  font-size: 0.74rem;
  color: var(--sk-muted);
  padding: 0.35rem 0;
}

.sk-promo-history-err {
  color: var(--sk-err);
}

.sk-promo-msg.sk-promo-msg--ok {
  color: var(--sk-ok);
}

.sk-promo-msg.sk-promo-msg--err {
  color: var(--sk-err);
}

.sk-footnote {
  font-size: 0.8rem;
  color: rgba(242, 242, 244, 0.5);
  text-align: center;
  max-width: 42ch;
  line-height: 1.35;
}

.sk-prize code,
.sk-gate code,
.sk-footnote code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
}

/* --- Çark (madde 36, sk-wheel.js) --- */

.sk-wheel {
  width: 100%;
  max-height: 11rem;
  aspect-ratio: 1;
  max-width: 11rem;
  margin: 0 auto;
  position: relative;
}

.sk-wheel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.sk-wheel-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
  transform: rotate(0deg);
  will-change: transform;
}

.sk-wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--sk-accent);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
