/* =========================================================
   KLASROYAL — marka ayarları (en son yüklenir)
   Logo oranı 4.9:1 (yatay), canlı destek butonu 3.2:1 (hap şeklinde).
   ========================================================= */

/* Header logosu: yatay KLASROYAL logosu kutuya orantılı sığar */
.logo img { object-fit: contain; object-position: left center; }

/* Canlı destek: KlasRoyal hap butonu */
.live-support { width: 196px; right: 16px; bottom: 16px; }
.live-support img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .live-support { width: 150px; right: 8px; }
}
@media (max-width: 420px) {
  .live-support { width: 136px; }
}

/* Çekmece üst logosu: yatay logo */
.drawer-top img { height: 34px; width: auto; max-width: 210px; object-fit: contain; }

/* Footer logosu */
#gc-footer.gc-reference-footer .gcf-brand img { width: 250px; height: auto; }
@media (max-width: 560px) {
  #gc-footer.gc-reference-footer .gcf-brand img { width: 200px; }
}

/* PREMIUM rozeti: altin zemin + lacivert yazi */
.tag-premium { color: #0b1530 !important; font-weight: 800; }

/* ===== Ana sayfa hero: aslanli yeni bannerlar 1872x668 (2.8:1) ===== */
@media (min-width: 851px) {
.home-page > .hero { aspect-ratio: 1872 / 668; }
}

/* ===== Mobil uygulama kampanya bannerı (koleksiyon alanının yerine) ===== */
.kr-app-banner { margin-top: 26px; }
.kr-app-banner a { display: block; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-card); }
.kr-app-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1996 / 624; object-fit: cover; }

/* Özel Oyunlar'ın hemen altındaki üç ayrı jackpot paneli. */
.home-page > .kr-jackpot-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.kr-jpm-panel { --jp-accent: #e4c36e; --jp-glow: 228,195,110; position: relative; min-width: 0; padding: 10px; overflow: hidden; border: 1px solid rgba(var(--jp-glow),.4); border-radius: 14px; background: radial-gradient(ellipse at 50% 0%, rgba(var(--jp-glow),.12), transparent 65%), #070d18; box-shadow: inset 0 0 22px rgba(var(--jp-glow),.05); opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.kr-jpm-cyan { --jp-accent: #61e6ec; --jp-glow: 97,230,236; transition-delay: .12s; }
.kr-jpm-violet { --jp-accent: #cea2ff; --jp-glow: 206,162,255; transition-delay: .24s; }
.kr-jpm-entered .kr-jpm-panel { opacity: 1; transform: translateY(0); }
.kr-jpm-header { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; margin-bottom: 8px; border-radius: 10px; border: 1px solid rgba(var(--jp-glow),.2); background: linear-gradient(130deg,#16223b,#0a1223); }
.kr-jpm-header h3 { margin: 0; color: var(--jp-accent); font: 900 clamp(16px,1.5vw,22px)/1.15 Montserrat,sans-serif; letter-spacing: .8px; text-shadow: 0 0 14px rgba(var(--jp-glow),.35); }
.kr-jpm-header img { display: block; width: 112px; height: 23px; object-fit: contain; }
.kr-jpm-header small { font: 600 8px/1.2 Montserrat,sans-serif; color: #a8b4cb; letter-spacing: 1.2px; }
.kr-jpm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.kr-jpm-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 6px; border: 1px solid rgba(var(--jp-glow),.24); border-radius: 9px; background: linear-gradient(130deg,rgba(23,37,65,.94),rgba(9,17,34,.96)); }
.kr-jpm-suit-window { display: block; flex: 0 0 30px; height: 42px; overflow: hidden; color: var(--jp-accent); filter: drop-shadow(0 0 5px rgba(var(--jp-glow),.35)); }
.kr-jpm-red { color: #f34b59; filter: drop-shadow(0 0 5px rgba(255,50,65,.4)); }
.kr-jpm-suit-track { display: flex; flex-direction: column; animation: kr-jpm-symbol-up 3.8s linear infinite; animation-delay: var(--suit-delay); animation-play-state: paused; }
.kr-jpm-suit-track > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; font: 37px/1 Georgia,serif; }
.kr-jpm-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.kr-jpm-tier { font: 700 8px/1 Montserrat,sans-serif; letter-spacing: 1px; color: var(--jp-accent); }
.kr-jpm-amount { display: flex; align-items: center; justify-content: flex-end; gap: 2px; white-space: nowrap; color: #f6f4e9; font: 700 clamp(10px,1.05vw,15px)/1.3 Roboto,sans-serif; font-variant-numeric: tabular-nums; }
.kr-jpm-digits { display: inline-flex; height: 1.3em; overflow: hidden; }
.kr-jpm-digit { display: inline-block; height: 1.3em; width: .57em; overflow: hidden; }
.kr-jpm-digit-track { display: flex; flex-direction: column; }
.kr-jpm-digit-track > span { display: block; height: 1.3em; line-height: 1.3em; text-align: center; }
.kr-jpm-roll { animation: kr-jpm-digit-up .8s cubic-bezier(.22,.8,.25,1) both; }
.kr-jpm-separator { line-height: 1.3em; }
.kr-jpm-currency { color: var(--jp-accent); font-size: .8em; }
.kr-jpm-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kr-jpm-particles i { position: absolute; left: var(--x); bottom: -8px; width: 3px; height: 3px; background: var(--jp-accent); box-shadow: 0 0 8px var(--jp-accent); animation: kr-jpm-particle-up var(--duration) linear infinite; animation-delay: var(--delay); animation-play-state: paused; }
.kr-jpm-running .kr-jpm-suit-track, .kr-jpm-running .kr-jpm-particles i { animation-play-state: running; }
@keyframes kr-jpm-symbol-up { to { transform: translateY(-50%); } }
@keyframes kr-jpm-digit-up { to { transform: translateY(-50%); } }
@keyframes kr-jpm-particle-up { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .6; } 85% { opacity: .6; } 100% { opacity: 0; transform: translateY(-260px); } }
@media (max-width: 850px) {
  .home-page > .kr-jackpot-trio { grid-template-columns: 1fr; gap: 12px; margin: 18px 8px 0; }
  .kr-jpm-amount { font-size: clamp(12px,3.3vw,16px); }
  .kr-jpm-header h3 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .kr-jpm-panel { opacity: 1; transform: none; transition: none; }
  .kr-jpm-suit-track, .kr-jpm-roll, .kr-jpm-particles i { animation: none; }
}

/* ===== HOT / COLD RTP (ana sayfa; eski "En Popüler Spor Bahisleri" yerine) ===== */
.rtp-hotcold { position: relative; isolation: isolate; overflow: hidden; margin-top: 26px; border-radius: 16px; }
.rtp-bg-video, .rtp-bg-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rtp-bg-video { z-index: -2; object-fit: cover; object-position: center; opacity: .42; filter: saturate(.9) contrast(1.08); }
.rtp-bg-shade { z-index: -1; background: linear-gradient(180deg, rgba(5,10,22,.58), rgba(5,10,22,.82)); }
.rtp-content { position: relative; z-index: 1; padding: 4px 0 2px; }
.reference-amusnet-jackpot { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; }
.jp-motion-bg, .jp-motion-shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jp-motion-bg { z-index: -2; object-fit: cover; object-position: center; opacity: .46; filter: saturate(1.15) contrast(1.08); }
.jp-motion-shade { z-index: -1; background: linear-gradient(180deg, rgba(4,10,23,.36), rgba(4,10,23,.78)); }
.jp-motion-content { position: relative; z-index: 1; }
.rtp-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.rtp-head .section-title { margin: 0; }
.rtp-tabs { display: flex; gap: 8px; }
.rtp-tab {
  height: 34px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(120, 150, 210, .28); background: #0e1830; color: #dfe6f3;
  font: 600 13px/1 Montserrat, sans-serif; transition: background .2s, color .2s, border-color .2s;
}
.rtp-tab:hover { border-color: rgba(212, 183, 90, .55); }
.rtp-tab.active {
  background: linear-gradient(180deg, #f3e6b8 0%, #d4b75a 100%); color: #0b1424;
  border-color: transparent; box-shadow: 0 2px 10px rgba(212, 183, 90, .22);
}
.rtp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rtp-panel {
  position: relative; overflow: hidden; border-radius: 14px; padding: 18px 14px 6px;
  background-image: linear-gradient(180deg, rgba(5,15,31,.28), rgba(5,12,27,.78)), url('/assets/rtp/rtp-panels-crystal-bg.webp?v=kr-crystal-1');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.rtp-panel::before { /* hafif yildiz noktaciklari */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 18% 22%, #8fb4e8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 12%, #8fb4e8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 46%, #8fb4e8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 40% 64%, #8fb4e8 50%, transparent 51%);
}
.rtp-hot { border: 1px solid rgba(255, 164, 74, .72); background-image: linear-gradient(180deg, rgba(5, 12, 25, .34), rgba(5, 12, 25, .72)), url('/assets/rtp/rtp-panels-hot-ember-v2.webp?v=hot-ember-2'); }
.rtp-cold { border: 1px solid rgba(150, 220, 255, .62); background-image: linear-gradient(180deg, rgba(5, 18, 43, .4), rgba(5, 18, 43, .82)), url('/assets/rtp/rtp-panels-crystal-bg.webp?v=kr-cold-1'); }
.rtp-panel-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.rtp-panel-head h3 { margin: 0; font: 800 21px/1 Montserrat, sans-serif; letter-spacing: .3px; color: #f0d98f; }
.rtp-panel-icon { width: 40px; height: 40px; margin-top: -12px; filter: drop-shadow(0 0 10px rgba(255, 140, 50, .45)); }
.rtp-cold .rtp-panel-icon { filter: drop-shadow(0 0 10px rgba(150, 210, 255, .5)); }
.rtp-panel-icon svg { display: block; width: 100%; height: 100%; }
.rtp-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.rtp-row {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 6px;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(3, 10, 24, .68);
  color: inherit; text-align: left; cursor: pointer;
}
.rtp-row img {
  flex: 0 0 72px; width: 72px; height: 96px; object-fit: cover; border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: transform .2s;
}
.rtp-row:hover img { transform: translateY(-2px); }
.rtp-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rtp-value { font: 700 22px/1 Montserrat, sans-serif; color: #fff; }
.rtp-value small { font-size: 14px; font-weight: 700; }
.rtp-value.is-empty { color: #cfd6e4; }
.rtp-name { font: 600 12.5px/1.3 Roboto, sans-serif; color: #f2f4fa; }
.rtp-note { font: 400 10.5px/1.25 Roboto, sans-serif; color: #bdc7d8; }
.rtp-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 14px; }
.rtp-foot p { margin: 0; max-width: 460px; font: 400 11.5px/1.55 Roboto, sans-serif; color: #8c97ae; }
.rtp-more {
  flex: 0 0 auto; padding: 9px 14px; border: 1px solid rgba(212, 183, 90, .55); border-radius: 8px;
  color: #e9dcae; font: 500 12px/1 Roboto, sans-serif; text-decoration: none;
}
.rtp-more:hover { background: rgba(212, 183, 90, .08); }
@media (max-width: 1100px) {
  .rtp-row img { flex-basis: 60px; width: 60px; height: 80px; }
  .rtp-value { font-size: 19px; }
}
@media (max-width: 850px) {
  .rtp-hotcold { margin: 18px 8px 0; }
  .rtp-head { gap: 10px; margin-bottom: 12px; }
  .rtp-panels { grid-template-columns: 1fr; gap: 16px; }
  .rtp-panel { padding: 14px 10px 4px; }
  .rtp-panel-head h3 { font-size: 18px; }
  .rtp-list { column-gap: 10px; }
  .rtp-row { gap: 8px; }
  .rtp-row img { flex-basis: 52px; width: 52px; height: 69px; border-radius: 7px; }
  .rtp-value { font-size: 17px; }
  .rtp-value small { font-size: 11px; }
  .rtp-name { font-size: 11px; }
  .rtp-foot { flex-direction: column; gap: 10px; }
}
@media (max-width: 360px) {
  .rtp-list { grid-template-columns: 1fr; }
}

/* RTP: her panelde 3 satir gorunur, fazlasi panel icinde asagi kaydirilir.
   Satir yuksekligi = kapak + 18px dolgu + 1px cizgi */
.rtp-list {
  max-height: 345px; overflow-y: auto; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(212, 183, 90, .55) rgba(255, 255, 255, .04);
}
.rtp-list::-webkit-scrollbar { width: 6px; }
.rtp-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 6px; }
.rtp-list::-webkit-scrollbar-thumb { background: rgba(212, 183, 90, .5); border-radius: 6px; }
.rtp-list::-webkit-scrollbar-thumb:hover { background: rgba(212, 183, 90, .75); }
@media (max-width: 1100px) { .rtp-list { max-height: 297px; } }
@media (max-width: 850px) { .rtp-list { max-height: 264px; padding-right: 4px; } }

/* Ana sayfa genis bannerlar (Slot / Canli Casino / Spor): icerik kesilmeden sigsin */
.home-page .jackpot-banner { aspect-ratio: 6.3 / 1; }
.home-page .dual-banners .wide-banner { aspect-ratio: 3.9 / 1; }

/* Header logosu kendi kutusundan tasmasin: gorsel her zaman logo kutusunun genisliginde
   (eski 205px / 230px kurallari 190px kutudan tasip PROMOSYONLAR butonunun altina giriyordu) */
@media (min-width: 861px) {
  #shell-top .logo { overflow: hidden; }
  #shell-top .logo img {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    height: 54px !important; object-fit: contain; object-position: left center;
  }
}

/* === KR v5: sabit header, populer slot izgarasi, koleksiyonlar === */
/* Header ve menu kaydirinca takip etmesin (kullanici istegi) */
.header, .mainnav { position: relative !important; top: auto !important; }
.sb-side, .sb-slip, .sb-right { top: 12px !important; }
@media (max-width: 850px) { #shell-top { position: relative !important; top: auto !important; } }

/* Populer Slot Oyunlari: gercek kapaklardan duz izgara */
.kr-popular-grid .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kr-pop-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.kr-pop-card { display: block; border-radius: 12px; overflow: hidden; background: #0e1830; aspect-ratio: 195 / 260;
  box-shadow: 0 0 0 1px rgba(120, 150, 210, .14); transition: transform .2s ease, box-shadow .2s ease; }
.kr-pop-card img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.kr-pop-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(236, 200, 105, .45); }
@media (max-width: 1250px) {
  .kr-pop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kr-pop-card:nth-child(n+13) { display: none; }
}
@media (max-width: 850px) {
  .kr-pop-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .kr-pop-grid::-webkit-scrollbar { display: none; }
  .kr-pop-card { flex: 0 0 30%; scroll-snap-align: start; }
  .kr-pop-card:nth-child(n+13) { display: block; }
}

/* En Populer Slot Koleksiyonlari */
.kr-collections .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kr-col-arrows { display: flex; gap: 8px; }
.kr-col-arrow { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(120, 150, 210, .28); background: #121d36;
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.kr-col-arrow:hover:not(:disabled) { background: #1b2a4c; }
.kr-col-arrow:disabled { opacity: .38; cursor: default; }
.kr-col-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kr-col-track::-webkit-scrollbar { display: none; }
.kr-col-card { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
  scroll-snap-align: start; background: #0b1428; box-shadow: 0 0 0 1px rgba(120, 150, 210, .16); }
.kr-col-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kr-col-card:hover .kr-col-bg { transform: scale(1.04); }
.kr-col-card::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 10, 24, .6) 0%, rgba(5, 10, 24, 0) 58%), linear-gradient(0deg, rgba(5, 10, 24, .55) 0%, rgba(5, 10, 24, 0) 45%); }
.kr-col-body { position: absolute; left: 5%; right: 5%; bottom: 6%; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.kr-col-title { font-weight: 800; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.1; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.kr-col-games { display: flex; gap: 8px; }
.kr-col-games img { flex: 0 0 22%; width: 22%; height: auto !important; max-height: none; aspect-ratio: 195 / 260; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.kr-tour-copy { gap: 7px; bottom: 7%; }
.kr-tour-title { font-weight: 800; font-size: clamp(15px, 1.2vw, 19px); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.kr-tour-subtitle { font-size: clamp(9px, .78vw, 12px); font-weight: 700; color: #c7f7ff; letter-spacing: .25px; }
.kr-tour-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #dce8f4; font-size: 10px; }
.kr-tour-meta strong { color: #f3d77c; font-size: clamp(16px, 1.25vw, 21px); text-shadow: 0 0 12px rgba(243,215,124,.25); }
.kr-tour-join { align-self: flex-end; padding: 5px 9px; border: 1px solid rgba(243,215,124,.55); border-radius: 999px; color: #f3d77c; font-size: 11px; font-weight: 800; background: rgba(6,12,27,.45); }
@media (max-width: 850px) { .kr-col-track { grid-auto-columns: 82%; gap: 12px; } .kr-col-arrows { display: none; } }

/* ===== Lobi hero v2: tam boy aslanli bannerlar 1872x668 ===== */
@media (min-width: 861px) {
  .hero.kr-tall { aspect-ratio: 1872 / 668; }
}

/* === Referans görseller: ana sayfadaki iki yatay şerit ===
   Üstte 8 yuvarlak oyun kartı, altta 7 adet gömülü metinli dev kazanç kartı. */
@media (min-width: 1100px) {
  .home-page > .stories {
    padding: 18px 12px 16px;
    margin-top: 0;
  }
  .home-page > .stories .stories-head {
    min-height: 32px;
    margin-bottom: 8px;
    padding: 0 0 0 8px;
  }
  .home-page > .stories .strip-scroll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    padding: 0;
  }
  .home-page > .stories .story {
    flex: 0 0 calc((100% - 98px) / 8);
    width: calc((100% - 98px) / 8);
  }
  .home-page > .stories .story-ring {
    width: min(100%, 158px);
    max-width: 158px;
    aspect-ratio: 1;
    margin: 0 auto;
  }
  .home-page > .stories .story span { display: none; }

  .home-page > .strip:not(.winners-widget) .section-head {
    margin-bottom: 14px;
  }
  .home-page > .strip:not(.winners-widget) .strip-scroll {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
  }
  .home-page > .strip:not(.winners-widget) .bigwin-card {
    flex: 0 0 calc((100% - 72px) / 7);
    width: calc((100% - 72px) / 7);
  }
}
