/* Solo Oyun hero: the SoloBet wordmark over a gold "OYUNLAR" with a shine sweeping across the word.
   It replaces the default banner image (see hero.html); the page's own background shows through. */

:root {
  --gold-1: #ffe49a;
  --gold-2: #ffc23c;
  --gold-3: #ff9a1f;
  --gold-4: #ef6812;
}

.hero.brand-hero {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  container-type: inline-size; /* the title sizes itself to this box, not to the window */
}

/* more specific than the app's `.hero img` (full-size cover) rule */
.hero.brand-hero .brand-hero-logo {
  display: block;
  width: min(68%, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(255, 140, 30, 0.28));
}

/* fine gold rules either side of the title */
.brand-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.brand-hero-title::before,
.brand-hero-title::after {
  content: "";
  flex: 1 1 0;
  min-width: 10px;
  max-width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 196, 64, 0), var(--gold-2));
}
.brand-hero-title::after { background: linear-gradient(270deg, rgba(255, 196, 64, 0), var(--gold-2)); }

/* the glow sits on a wrapper: filters on a background-clip:text element misbehave in some WebViews */
.brand-hero-glow {
  display: inline-block;
  filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 6px 16px rgba(255, 150, 40, 0.3));
  animation: brand-glow 3.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

.brand-hero-word {
  display: inline-block;
  font: 700 clamp(30px, 11vw, 48px) / 1.05 var(--display);
  font-size: clamp(30px, 12.5cqi, 50px); /* about 64% of the hero width, so the rules always fit beside it */
  white-space: nowrap;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* tracking adds space after the last letter; keep the word centred */
  color: var(--gold-2); /* if background-clip:text is unsupported */
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 252, 235, 0.45) 38%, #fffdf2 50%, rgba(255, 252, 235, 0.45) 62%, transparent 78%) -160% 0 / 60% 100% no-repeat,
    linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 75%, var(--gold-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-shine 3.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

/* the light crosses the word, then the word rests before the next pass */
@keyframes brand-shine {
  0%, 18% { background-position: -160% 0, 0 0; }
  62%, 100% { background-position: 260% 0, 0 0; }
}
@keyframes brand-glow {
  0%, 18%, 70%, 100% { filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 6px 16px rgba(255, 150, 40, 0.3)); }
  40% { filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 4px 26px rgba(255, 200, 90, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-word,
  .brand-hero-glow { animation: none; }
}

/* SoloSpin card at the top of the list (Solo Oyun only; it opens oyun.solobet.cc/games/solospin/) */
.brand-promo {
  position: relative;
  display: block;
  margin: 0 0 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 90, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 130, 0, 0.25);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.brand-promo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.brand-promo-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 26px 110px 12px 14px;
  background: linear-gradient(180deg, rgba(20, 8, 1, 0), rgba(20, 8, 1, 0.92) 55%);
}
.brand-promo-info b { font: 800 20px/1.1 var(--display, system-ui); color: var(--gold-1); }
.brand-promo-info small { font-size: 13px; color: #f0d6b0; }
.brand-promo-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #ffb23f, #e05a00);
  font: 900 11px/1.4 system-ui; letter-spacing: 0.1em;
}
.brand-promo-play {
  position: absolute; right: 12px; bottom: 14px;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #ffb23f, #d45f00);
  border: 1px solid #ffd27a;
  font: 900 14px/1 system-ui; letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(255, 130, 0, 0.5);
}
.brand-promo:active { transform: scale(0.985); }

/* ---------- weekly demo wallet (brand.js fills it) ---------- */
/* a thin strip: "Bakiye: 100.000₺" in the middle, an arrow on the bottom edge opens the reset date and the earn rates */
.bp-wallet {
  position: relative; border-radius: 14px; margin-bottom: 6px;
  background: linear-gradient(180deg, rgba(46, 22, 4, 0.92), rgba(20, 9, 2, 0.94));
  border: 1px solid rgba(255, 154, 31, 0.42);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.bp-wallet-bar {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; padding: 6px 16px 8px;
  border: 0; background: none; color: var(--text); font: 700 14px var(--display); letter-spacing: 0.04em; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bp-wallet-bar b { color: var(--gold-1); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-wallet-bar:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 14px; }
/* the arrow sits on the strip's bottom edge, centred */
.bp-wallet-arrow {
  position: absolute; left: 50%; bottom: -9px; width: 26px; height: 17px; margin-left: -13px; display: grid; place-items: center;
  border-radius: 0 0 10px 10px; background: #1f0e03; border: 1px solid rgba(255, 154, 31, 0.42); border-top: 0;
  color: var(--gold-2); transition: transform 0.25s ease;
}
.bp-wallet-arrow svg { transition: transform 0.25s ease; }
.bp-wallet.open .bp-wallet-arrow svg { transform: rotate(180deg); }
.bp-wallet-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.bp-wallet.open .bp-wallet-more { grid-template-rows: 1fr; }
.bp-wallet-inner { overflow: hidden; min-height: 0; padding: 0 16px; text-align: center; visibility: hidden; transition: visibility 0s 0.28s; }
.bp-wallet.open .bp-wallet-inner { visibility: visible; transition-delay: 0s; }
.bp-wallet.open .bp-wallet-inner { padding-bottom: 16px; }
.bp-wallet-inner p { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.bp-wallet-reset { padding-top: 8px; border-top: 1px solid rgba(255, 154, 31, 0.16); white-space: pre-line; }
.bp-wallet-rank { color: var(--gold-1) !important; font-weight: 700; }
.bp-wallet-rank[hidden] { display: none; }
.bp-wallet-head { display: block; margin: 8px 0 4px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bp-wallet-rates { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 4px; width: max-content; max-width: 100%; text-align: left; }
.bp-wallet-rates li { font-size: 14px; color: var(--text); }
.bp-wallet-rates span { display: inline-block; min-width: 76px; color: var(--muted); }
.bp-wallet-rates b { color: var(--gold-1); font-weight: 700; }
.bp-wallet.bump .bp-wallet-bar b { animation: bp-bump 0.6s ease-out; display: inline-block; }
@keyframes bp-bump { 30% { transform: scale(1.1); color: #ffffff; } }
@media (prefers-reduced-motion: reduce) { .bp-wallet-more, .bp-wallet-arrow svg { transition: none; } }

/* ---------- the week's richest players ---------- */
#hub > .bp-leaders { padding: 10px; }
.bp-leaders-list { list-style: none; margin: 0; padding: 0; }
.bp-leaders-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.bp-leaders-list li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.bp-leaders-list li.me { background: rgba(255, 154, 31, 0.14); }
.bp-leaders-list li.empty { justify-content: center; color: var(--muted); background: none; }
.bp-leaders-list .pos { width: 28px; text-align: center; font: 700 15px var(--display); color: var(--muted); }
.bp-leaders-list .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-leaders-list .amt { font: 700 14px var(--display); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.bp-leaders-me { margin: 8px 6px 2px; color: var(--muted); font-size: 13px; }

/* ---------- reward line on the arcade result card, toast ---------- */
.bp-reward { margin: 8px 0 0; font: 800 16px var(--display); color: var(--gold-1); }
.bp-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); z-index: 40;
  padding: 10px 16px; border-radius: 14px; background: rgba(24, 11, 2, 0.96); border: 1px solid rgba(255, 154, 31, 0.5);
  color: var(--text); font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); white-space: nowrap;
}

/* ---------- admin ---------- */
.bp-admin-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  background: var(--card-strong); border: 1px solid var(--line); cursor: pointer; }
.bp-sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 6, 11, 0.7); backdrop-filter: blur(3px); }
.bp-sheet-wrap[hidden] { display: none; }
.bp-sheet { width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 16px 14px calc(18px + var(--safe-bottom));
  background: linear-gradient(180deg, #2a1405, #120701); border: 1px solid rgba(255, 154, 31, 0.3); border-bottom: 0; border-radius: 18px 18px 0 0; }
.bp-sheet h3 { margin: 0 0 4px; font: 800 19px var(--display); color: var(--gold-1); }
.bp-sheet p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.bp-sheet input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 15px; }
.bp-players { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.bp-players li { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 154, 31, 0.12); }
.bp-players .row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.bp-players .row b { font-family: var(--display); color: var(--gold-1); }
.bp-players .row small { color: var(--muted); }
.bp-players .adds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bp-players .adds button { flex: 1; min-width: 70px; padding: 8px 6px; border-radius: 10px; font-weight: 700; font-size: 13px;
  background: linear-gradient(180deg, #ffc23c, #ef6812); color: #1a0a02; cursor: pointer; }
.bp-players .adds input { flex: 2; min-width: 110px; padding: 8px 10px; font-size: 13px; }
.bp-sheet .close-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.bp-sheet .close-row button { padding: 9px 16px; border-radius: 12px; background: var(--card-strong); border: 1px solid var(--line); color: var(--text); cursor: pointer; }

/* Solo's hub is a plain column: the wallet strip sits under the wordmark, the ranking card under the weekly board */
.brand-hero + .bp-wallet, .bp-wallet { margin: 0 0 14px; }
.bp-leaders[hidden], .bp-leaders-title[hidden], .bp-wallet[hidden] { display: none; }
#hub .bp-leaders, .bp-leaders { padding: 10px; }

/* ---------- new SoloBet logo in the hub header (14 Nov): crowned lion, the brand's S jewel, gold wordmark ---------- */
.hero.brand-hero.so-hero { padding: 6px 0 10px; gap: 0; }
.so-hero-logo { position: relative; width: min(64%, 250px); margin: 0 auto; }
.so-hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(255, 140, 20, 0.28)); }
/* a slow light passing over the gold, masked to the logo's own shape */
.so-hero-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 230, 0.55) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  -webkit-mask: url("logo-full.webp") center / 100% 100% no-repeat; mask: url("logo-full.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen; animation: so-shine 5s cubic-bezier(0.45, 0.05, 0.25, 1) 1.2s infinite;
}
@keyframes so-shine { 0%, 12% { background-position: -150% 0; } 45%, 100% { background-position: 250% 0; } }

/* ---------- opening animation (splash.html): the emblem rises in on a gold glow with slow light rays, a light
   sweeps over the jewel, then the wordmark lifts in. Transform and opacity only; two seconds (SPLASH_MS). ---------- */
.splash.so-splash {
  gap: 10px; overflow: hidden;
  background: radial-gradient(60% 42% at 50% 40%, rgba(255, 150, 30, 0.16) 0%, transparent 70%), radial-gradient(90% 70% at 50% 40%, #2a1204 0%, #0c0502 75%);
}
.so-sp-rays {
  position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 196, 90, 0.10) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%);
  opacity: 0; animation: so-rays-in 0.9s ease-out 0.15s forwards, so-spin 24s linear infinite;
}
.so-sp-stage { position: relative; width: min(54vw, 230px); aspect-ratio: 520 / 639; display: grid; place-items: center; }
.so-sp-glow {
  position: absolute; inset: 8% -10% 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 50, 0.55) 0%, rgba(255, 120, 10, 0.18) 45%, transparent 70%);
  opacity: 0; transform: scale(0.6); animation: so-glow 1.6s ease-out 0.1s forwards;
}
.so-sp-emblem, .so-sp-word { position: relative; }
.so-sp-emblem { width: 100%; opacity: 0; transform: translateY(18px) scale(0.84); animation: so-rise 0.8s cubic-bezier(0.2, 1.3, 0.35, 1) 0.1s forwards; }
.so-sp-emblem img, .so-sp-word img { display: block; width: 100%; height: auto; }
.so-sp-word { width: min(78vw, 330px); opacity: 0; transform: translateY(14px); animation: so-rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.75s forwards; }
.so-sp-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 235, 0.85) 50%, transparent 62%) -150% 0 / 55% 100% no-repeat;
  mix-blend-mode: screen;
}
.so-sp-emblem .so-sp-shine {
  -webkit-mask: url("sp-emblem.webp") center / 100% 100% no-repeat; mask: url("sp-emblem.webp") center / 100% 100% no-repeat;
  animation: so-sweep 0.7s ease-in-out 0.65s forwards;
}
.so-sp-word .so-sp-shine {
  -webkit-mask: url("sp-word.webp") center / 100% 100% no-repeat; mask: url("sp-word.webp") center / 100% 100% no-repeat;
  animation: so-sweep 0.6s ease-in-out 1.2s forwards;
}
.so-sp-sparks { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; }
.so-sp-sparks i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe4a0; box-shadow: 0 0 10px #ffb23f;
  opacity: 0; animation: so-spark 1.1s ease-out forwards;
}
.so-sp-sparks i:nth-child(1) { --dx: -130px; --dy: -90px; animation-delay: 0.7s; }
.so-sp-sparks i:nth-child(2) { --dx: 120px; --dy: -110px; animation-delay: 0.75s; }
.so-sp-sparks i:nth-child(3) { --dx: -150px; --dy: 30px; animation-delay: 0.8s; }
.so-sp-sparks i:nth-child(4) { --dx: 145px; --dy: 40px; animation-delay: 0.72s; }
.so-sp-sparks i:nth-child(5) { --dx: -60px; --dy: -150px; animation-delay: 0.85s; }
.so-sp-sparks i:nth-child(6) { --dx: 70px; --dy: -140px; animation-delay: 0.9s; }
.so-sp-sparks i:nth-child(7) { --dx: -100px; --dy: 110px; animation-delay: 0.95s; }
.so-sp-sparks i:nth-child(8) { --dx: 105px; --dy: 120px; animation-delay: 0.78s; }
.so-sp-bar { width: 132px; height: 3px; margin-top: 18px; border-radius: 3px; background: rgba(255, 190, 90, 0.18); overflow: hidden; }
.so-sp-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #ff9a1f, #ffe49a); animation: so-bar 1.8s ease-in-out 0.1s forwards; }

@keyframes so-rise { to { opacity: 1; transform: none; } }
@keyframes so-glow { 40% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0.75; transform: scale(1); } }
@keyframes so-rays-in { to { opacity: 1; } }
@keyframes so-spin { to { rotate: 360deg; } }
@keyframes so-sweep { from { background-position: -150% 0; } to { background-position: 250% 0; } }
@keyframes so-spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@keyframes so-bar { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .so-sp-rays, .so-sp-glow, .so-sp-emblem, .so-sp-word, .so-sp-shine, .so-sp-sparks i, .so-sp-bar i, .so-hero-logo::after { animation: none !important; }
  .so-sp-emblem, .so-sp-word, .so-sp-glow { opacity: 1; transform: none; }
  .so-sp-rays { opacity: 0.6; }
  .so-sp-bar i { transform: none; }
}
