/* SAMP Mobile — roulette page, in the style of the login / donate cards */
.rl-page { padding: 0 !important; }
.rl { padding: 60px 16px 90px; }
.rl-wrap { width: min(1060px, 100%); margin: 0 auto; display: grid; gap: 34px; }
.rl ul { list-style: none; margin: 0; padding: 0; }

/* rarity colours */
.rl-r--common    { --rc: #8a94a6; --rg: rgba(138, 148, 166, .28); }
.rl-r--rare      { --rc: #2f7bf5; --rg: rgba(47, 123, 245, .28); }
.rl-r--epic      { --rc: #9b4dff; --rg: rgba(155, 77, 255, .3); }
.rl-r--legendary { --rc: #ff5a00; --rg: rgba(255, 90, 0, .32); }

/* ---------- main orange card (same as .container_login) ---------- */
.rl-card {
  position: relative; overflow: hidden;
  padding: 40px 32px 34px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 180, 0, .92), rgba(255, 90, 0, .92)), url(../img/bg_donate.png) center / cover;
  box-shadow: 0 24px 60px rgba(18, 16, 30, .18);
}
.rl-card::before {
  content: ''; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.rl-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.rl-head__title { font-family: 'Headlinerr', sans-serif; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: 3px; color: #1b1200; }
.rl-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-chip {
  height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 12px;
  background: #fff; color: #5d5d68; font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05);
}
.rl-chip b { color: #ff5a00; font-weight: 800; }

/* ---------- reel ---------- */
.rl-reel {
  position: relative; height: 178px; border-radius: 18px; overflow: hidden;
  background: rgba(27, 18, 0, .16);
  box-shadow: inset 0 6px 18px rgba(27, 18, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .25);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.rl-track { position: absolute; top: 17px; left: 0; display: flex; gap: 12px; will-change: transform; }
.rl-item {
  flex: none; width: 132px; height: 144px; border-radius: 16px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #fff; box-shadow: 0 4px 12px rgba(27, 18, 0, .14), inset 0 -5px 0 var(--rc);
  transition: transform .35s ease, box-shadow .35s ease;
}
.rl-item__img { width: 100px; height: 70px; display: flex; align-items: center; justify-content: center; }
.rl-item__img img { max-width: 100%; max-height: 100%; display: block; }
.rl-item__name { font-size: 13px; font-weight: 800; color: #17161c; text-align: center; line-height: 1.15; padding: 0 6px; }
.rl-item.is-landed { transform: translateY(-3px) scale(1.07); box-shadow: 0 0 0 4px #16120b, 0 16px 30px rgba(27, 18, 0, .35), inset 0 -5px 0 var(--rc); z-index: 2; }

.rl-reel__marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; z-index: 3; background: #16120b; border-radius: 2px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.rl-reel__marker::before, .rl-reel__marker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 12px solid transparent; }
.rl-reel__marker::before { top: 0; border-top-color: #16120b; border-bottom-width: 0; }
.rl-reel__marker::after { bottom: 0; border-bottom-color: #16120b; border-top-width: 0; }

/* ---------- actions ---------- */
.rl-actions { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.rl-card .rl-spin { width: min(380px, 100%) !important; height: 58px !important; text-decoration: none; }
.rl-card .rl-spin div { font-size: 24px; }
.rl-card .rl-spin:disabled { opacity: .75; cursor: progress; transform: none; }
.rl-sound {
  width: 58px; height: 58px; border: 0; border-radius: 14px; cursor: pointer; flex: none;
  background: rgba(255, 255, 255, .9); color: #16120b; box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .2s ease;
}
.rl-sound:hover { background: #fff; transform: translateY(-1px); }
.rl-sound .off { display: none; }
.rl-sound.is-off .on { display: none; }
.rl-sound.is-off .off { display: block; color: #8a8a94; }
.rl-hint { position: relative; margin-top: 16px; text-align: center; color: #1b1200; font-size: 14px; font-weight: 600; }
.rl-hint b { background: rgba(255, 255, 255, .85); padding: 2px 8px; border-radius: 6px; }

/* ---------- my unclaimed prizes ---------- */
.rl-mine {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 18px; background: #fff;
  box-shadow: 0 10px 30px rgba(18, 16, 30, .08), inset 4px 0 0 #ff8a00;
}
.rl-mine[hidden] { display: none; }
.rl-mine__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #5d5d68; }
.rl-mine__text b { color: #17161c; }
.rl-mine__text > b { font-size: 17px; }
.rl-mine__list { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-mine__list li { width: 58px; height: 44px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e8e9ee, inset 0 -3px 0 var(--rc); display: flex; align-items: center; justify-content: center; padding: 4px; }
.rl-mine__list img { max-width: 100%; max-height: 100%; }
.rl-mine__more { font-weight: 800; color: #5d5d68; }

/* ---------- sections (shop-like) ---------- */
.rl-title { margin: 0 0 22px; }
.rl-title div { margin-left: 0 !important; }
.rl-prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rl-prize {
  position: relative; text-align: center; padding: 34px 12px 18px; border-radius: 22px; background: #fff;
  box-shadow: 0 10px 30px rgba(18, 16, 30, .08), inset 0 -4px 0 var(--rc);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rl-prize:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(18, 16, 30, .14), inset 0 -4px 0 var(--rc); }
.rl-prize__tag {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--rc); background: var(--rg); padding: 3px 9px; border-radius: 6px;
}
.rl-r--legendary .rl-prize__tag { color: #fff; background: linear-gradient(135deg, #ffb400, #ff5a00); }
.rl-prize__img { height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.rl-prize__img img { max-height: 100%; max-width: 100%; }
.rl-prize__name { font-weight: 800; font-size: 15px; color: #17161c; }
.rl-prize__sub { font-size: 12px; color: #7a7a86; margin-top: 3px; }

.rl-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rl-feed__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 22px rgba(18, 16, 30, .07), inset 4px 0 0 var(--rc); animation: rl-in .35s ease both;
}
.rl-feed__item img { width: 52px; height: 38px; object-fit: contain; flex: none; }
.rl-feed__item div { display: flex; flex-direction: column; min-width: 0; }
.rl-feed__item b { font-size: 14px; color: #17161c; }
.rl-feed__item span { font-size: 13px; color: #ff5a00; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-feed__empty { grid-column: 1 / -1; color: #7a7a86; font-size: 14px; background: #fff; border-radius: 16px; padding: 16px; text-align: center; }
@keyframes rl-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- win modal (white card with orange header) ---------- */
.rl-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rl-modal[hidden] { display: none; }
.rl-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 4, .72); opacity: 0; transition: opacity .2s ease; }
.rl-modal__box {
  position: relative; width: min(420px, 100%); border-radius: 24px; overflow: hidden; background: #fff; text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  transform: translateY(20px) scale(.94); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s ease;
}
.rl-modal.is-open .rl-modal__backdrop { opacity: 1; }
.rl-modal.is-open .rl-modal__box { transform: none; opacity: 1; }
.rl-modal__top { padding: 22px 20px 58px; background: linear-gradient(135deg, rgba(255, 180, 0, .95), rgba(255, 90, 0, .95)), url(../img/bg_donate.png) center / cover; }
.rl-modal__kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; background: #fff; color: #ff5a00; padding: 4px 10px; border-radius: 7px; }
.rl-modal__head { margin-top: 10px; font-family: 'Headlinerr', sans-serif; font-size: 34px; letter-spacing: 3px; color: #1b1200; line-height: 1; }
.rl-modal__img {
  width: 170px; height: 118px; margin: -46px auto 12px; border-radius: 20px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(27, 18, 0, .25), inset 0 -5px 0 var(--rc, #8a94a6);
  animation: rl-pop .55s cubic-bezier(.2, .9, .3, 1.4) both .1s;
}
.rl-modal__img img { max-width: 86%; max-height: 86%; }
@keyframes rl-pop { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.rl-modal[data-rarity="common"] .rl-modal__img { --rc: #8a94a6; }
.rl-modal[data-rarity="rare"] .rl-modal__img { --rc: #2f7bf5; }
.rl-modal[data-rarity="epic"] .rl-modal__img { --rc: #9b4dff; }
.rl-modal[data-rarity="legendary"] .rl-modal__img { --rc: #ff5a00; }
.rl-modal__name { font-family: 'Headlinerr', sans-serif; font-size: 28px; letter-spacing: 2px; color: #17161c; padding: 0 20px; }
.rl-modal__desc { margin: 4px 20px 0; font-size: 16px; font-weight: 800; color: #ff5a00; }
.rl-modal__desc::first-letter { text-transform: uppercase; }
.rl-modal__how { margin: 10px 20px 0; font-size: 14px; color: #5d5d68; }
.rl-modal__how b { background: #fff1d6; color: #c25a00; padding: 1px 7px; border-radius: 6px; }
.rl-modal__btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 20px; }
.rl-modal__btns .btn-form { height: 52px !important; }
.rl-modal__btns .btn-form div { font-size: 20px; }
.rl-btn-light { height: 52px; border: 0; border-radius: 14px; cursor: pointer; background: #f1f2f6; color: #17161c; font-weight: 800; font-size: 15px; transition: background .2s ease; }
.rl-btn-light:hover { background: #e6e8ee; }

.rl-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rl-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: rl-fall linear forwards; }
@keyframes rl-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .rl-prizes { grid-template-columns: repeat(3, 1fr); }
  .rl-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rl { padding: 30px 12px 60px; }
  .rl-wrap { gap: 26px; }
  .rl-card { padding: 28px 14px 24px; }
  .rl-head { justify-content: center; text-align: center; }
  .rl-head__title br { display: none; }
  .rl-chips { justify-content: center; }
  .rl-chip { font-size: 13px; padding: 0 12px; height: 38px; }
  .rl-reel { height: 150px; border-radius: 14px; }
  .rl-track { top: 14px; gap: 10px; }
  .rl-item { width: 104px; height: 122px; border-radius: 14px; }
  .rl-item__img { width: 82px; height: 56px; }
  .rl-item__name { font-size: 12px; }
  .rl-card .rl-spin div { font-size: 21px; }
  .rl-sound { width: 54px; height: 54px; }
  .rl-prizes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rl-feed { grid-template-columns: 1fr; }
}
