:root {
  --fl-bg: #0b0c0f;
  --fl-card: #1c1c1e;
  --fl-card-2: #161618;
  --fl-text: #ffffff;
  --fl-mute: #b8b8b8;
  --fl-yellow: #f5d000;
  --fl-yellow-2: #ffe14d;
}

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body.fl-body {
  background: var(--fl-bg);
  color: var(--fl-text);
  font-family: Inter, system-ui, sans-serif;
}

.fl-frame {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.fl-skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 50;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transform: translateY(-160%);
}

.fl-skip:focus {
  transform: none;
}

.fl-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 8px 14px 36px;
  box-sizing: border-box;
}

.fl-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 14px;
}

.fl-home-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fl-gear {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1a1c;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.fl-topbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 12px;
}

.fl-topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 800;
}

.fl-back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1a1c;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.fl-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.fl-feat {
  position: relative;
  display: block;
  min-height: 168px;
  border-radius: 22px;
  padding: 14px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.fl-feat h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.fl-feat-art {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 118px;
  height: 118px;
  border-radius: 24px;
  opacity: 0.95;
}

.fl-feat-xm8 {
  background: linear-gradient(160deg, #7cff6b, #1faa3a 55%, #0d6b22);
}

.fl-feat-xm8 .fl-feat-art {
  background:
    linear-gradient(90deg, transparent 20%, #c8ffd0 20% 28%, transparent 28% 40%, #fff 40% 70%, #9cffb0 70%),
    linear-gradient(#2a2a2a, #111);
  transform: rotate(-28deg);
  border-radius: 8px;
}

.fl-feat-beanie {
  background: linear-gradient(160deg, #7ef0ff, #3db8d4 50%, #1a7a90);
}

.fl-feat-beanie .fl-feat-art {
  background: radial-gradient(circle at 50% 30%, #ffe36b 0 28%, #f5c400 28% 40%, #3b82c4 40% 70%, #f5c400 70%);
  border-radius: 50%;
}

.fl-skin {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  background: var(--fl-card);
  border-radius: 22px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  min-height: 150px;
  box-sizing: border-box;
}

.fl-skin h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.fl-skin h2 span {
  color: var(--fl-yellow);
}

.fl-skin p {
  margin: 6px 0 10px;
  color: var(--fl-mute);
  font-size: 13px;
}

.fl-skin-dots {
  display: grid;
  gap: 8px;
}

.fl-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  border: 2px solid #333;
}

.fl-skin-hero {
  border-radius: 16px;
  min-height: 118px;
  background:
    linear-gradient(120deg, rgba(245, 208, 0, 0.35), transparent 40%),
    linear-gradient(300deg, rgba(70, 140, 255, 0.4), transparent 42%),
    #111;
}

.fl-cat {
  display: block;
  background: var(--fl-card);
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
  padding: 14px 12px 12px;
  min-height: 168px;
  box-sizing: border-box;
}

.fl-cat h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.fl-cat-art {
  height: 110px;
  border-radius: 16px;
}

.fl-art-bunny {
  background: radial-gradient(circle at 50% 40%, #5aa7ff, #1c3d80 62%, #0b1220);
}

.fl-art-chest {
  background:
    radial-gradient(circle at 50% 38%, #7ecbff 0 16%, transparent 17%),
    linear-gradient(180deg, #c48a3a, #6a3d12);
}

.fl-art-map {
  background: linear-gradient(180deg, #4a5568, #1a202c 40%, #c45a1a 70%, #3b0d0d);
}

.fl-art-orb {
  background: radial-gradient(circle at 50% 45%, #fff 0 18%, #c9f 28%, #1a1028 70%);
}

.fl-level {
  display: grid;
  place-items: center;
  background: var(--fl-card);
  border-radius: 28px;
  min-height: 92px;
  margin-bottom: 12px;
  text-decoration: none;
}

.fl-pill {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 800;
  font-size: 1.05rem;
}

.fl-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--fl-card);
  border-radius: 22px;
  min-height: 78px;
  padding: 16px 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.fl-player span {
  font-weight: 800;
  font-size: 15px;
}

.fl-stars {
  display: flex;
  gap: 4px;
  color: var(--fl-yellow);
  font-size: 18px;
  letter-spacing: 1px;
}

.fl-stars .is-empty {
  color: #3a3a3a;
}

.fl-stars .is-half {
  background: linear-gradient(90deg, var(--fl-yellow) 50%, #3a3a3a 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fl-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  border-radius: 24px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.fl-rank::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, transparent 40%), currentColor;
  opacity: 0.85;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.25);
}

.fl-rank span {
  position: relative;
  z-index: 1;
}

.fl-rank-bronze { background: linear-gradient(180deg, #c47a4a, #5a2e14); color: #e8c4a0; }
.fl-rank-silver { background: linear-gradient(180deg, #9eb6d4, #2b4060); color: #d7e6ff; }
.fl-rank-gold { background: linear-gradient(180deg, #f0d060, #8a5a10); color: #fff3c2; }
.fl-rank-platinum { background: linear-gradient(180deg, #b9f0ff, #2a6f88); color: #e8fbff; }
.fl-rank-diamond { background: linear-gradient(180deg, #7a5cff, #2a1460); color: #ddd6ff; }
.fl-rank-heroic { background: linear-gradient(180deg, #ff5a5a, #7a1010); color: #ffd0d0; }

.fl-bundle {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  border-radius: 24px;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.fl-bundle h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.fl-bundle-art {
  flex: 1;
  margin-top: 8px;
  border-radius: 16px;
  min-height: 140px;
}

.fl-tone-blue { background: linear-gradient(180deg, #1b4b9a, #071428); }
.fl-tone-pink { background: linear-gradient(180deg, #c44a9a, #3a1028); }
.fl-tone-slate { background: linear-gradient(180deg, #3a3f48, #111214); }
.fl-tone-gold { background: linear-gradient(180deg, #e0b84a, #5a3a08); color: #111; }
.fl-tone-gold h2 { color: #111; }

.fl-tone-blue .fl-bundle-art { background: radial-gradient(circle at 50% 40%, #4fd2ff, #123a80 60%); }
.fl-tone-pink .fl-bundle-art { background: radial-gradient(circle at 50% 40%, #ff9ad4, #7a1858 62%); }
.fl-tone-slate .fl-bundle-art { background: radial-gradient(circle at 50% 40%, #d0d4dc, #222 62%); }
.fl-tone-gold .fl-bundle-art { background: radial-gradient(circle at 50% 40%, #fff3b0, #7a5208 62%); }

.fl-detail {
  background: var(--fl-card);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
}

.fl-detail-art {
  height: 220px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.fl-detail p {
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
}

.fl-download {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 999px;
  min-height: 54px;
  line-height: 54px;
  margin: 4px 0 16px;
  background: linear-gradient(90deg, #3ce7ff, #c44dff);
}

.fl-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9ad7a0;
  text-align: center;
}

.fl-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
  border-radius: 22px;
  padding: 0 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}

.fl-tip-red { background-color: #e24b3c; }
.fl-tip-blue { background-color: #3b8adf; }
.fl-tip-teal { background-color: #2fb39a; }
.fl-tip-gold { background-color: #e0b423; color: #111; }

.fl-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fl-heading-card {
  background: var(--fl-card);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.fl-body-card {
  background: #111;
  border-radius: 20px;
  padding: 16px;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 14px;
}

.fl-label {
  display: block;
  margin: 8px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.fl-input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: var(--fl-card);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  min-height: 56px;
  padding: 0 22px;
  margin-bottom: 14px;
}

.fl-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  background: var(--fl-yellow);
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.fl-result {
  background: var(--fl-card);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
}

.fl-result h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.fl-result-bar {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fl-yellow);
}

.fl-map {
  display: block;
  background: var(--fl-card);
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

.fl-map h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.fl-map p {
  margin: 0;
  color: var(--fl-mute);
  font-size: 13px;
}

.ad-slot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: 10px 0 14px;
}

.fl-native {
  background: #000;
  border-radius: 18px;
  padding: 12px;
  margin: 8px 0 14px;
}

.fl-native-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.fl-native-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.fl-native-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--fl-mute);
}

.fl-ad-badge {
  background: var(--fl-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
}

.fl-gem {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #7fd7ff, #2a6dff);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
}

.fl-disc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8f8f8f;
}

@media (min-width: 768px) {
  .fl-shell {
    max-width: 430px;
  }
}
