:root{
  --bg1:#ffe45a;
  --bg2:#ffd21f;

  --card:#fff7cf;
  --card2:#fff0a6;

  --text:#1e1e1e;
  --muted:#5a5a5a;

  --accent:#18b04a;
  --accent2:#0d8a36;

  --line: rgba(0,0,0,.10);
  --shadow: 0 12px 28px rgba(0,0,0,.18);

  --radius:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* =========================
   LAYOUT (DESKTOP DEFAULT)
========================= */

.app{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding: 0 20px 120px;
}

/* =========================
   TOPBAR
========================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 0;
  background: rgba(255, 228, 90, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight: 900;
  letter-spacing:.5px;
}

/* LOGO BESAR */
.brand-logo{
  width:120px;        /* ukuran besar desktop */
  height:auto;        /* biar tidak gepeng */
  object-fit:contain;
  background:none;    /* hilangkan kotak */
  border:none;        /* hilangkan border */
  border-radius:0;    /* hilangkan sudut bulat */
}


.brand-name{
  font-size:28px;
  font-weight:1000;
  text-transform:uppercase;
}

.top-actions{
  display:flex;
  gap:14px;
}

/* button as link */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  padding:12px 20px;
  border-radius:14px;
  font-weight:900;
  font-size:15px;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.btn.ghost{
  background: transparent;
}

.btn.primary{
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color:#fff;
  border:0;
  box-shadow: 0 10px 18px rgba(24,176,74,.22);
}

/* =========================
   HERO
========================= */

.hero{
  margin: 20px 0;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  border:1px solid rgba(0,0,0,.10);
}

.hero-banner{
  display:block;
  width:100%;
  height:350px;
  object-fit:cover;
}

.hero-badge{
  position:absolute;
  top:14px;
  left:14px;
  background: rgba(0,0,0,.55);
  color:#fff;
  font-weight:1000;
  font-size:12px;
  padding:7px 12px;
  border-radius:999px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55));
}

.hero-title{
  font-weight: 1000;
  font-size: 40px;
  letter-spacing:.7px;
  color:#fff;
  text-transform:uppercase;
  text-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.hero-sub{
  margin-top:8px;
  font-weight: 900;
  font-size: 16px;
  color: rgba(255,255,255,.9);
}

/* =========================
   CARD
========================= */

.card{
  margin: 20px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}

.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.card-title{
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 18px;
  color: #0f6f2b;
}

.pill{
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  color: var(--muted);
  background: rgba(255,255,255,.55);
}

.pill.live{
  background: rgba(255,80,80,.14);
  border-color: rgba(255,80,80,.35);
  color:#9a0f0f;
}

/* =========================
   PROVIDER MINI GRID
========================= */

.provider-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.provider-mini{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.10);
}

.pm-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}

.pm-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:cover;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  flex: 0 0 auto;
}

.pm-name{
  font-weight: 1000;
  font-size: 14px;
}

.pm-sub{
  margin-top:3px;
  font-weight: 900;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pm-right{
  flex: 0 0 auto;
}

.pm-win{
  font-weight: 1000;
  color:#0f6f2b;
  background: rgba(24,176,74,.10);
  border:1px solid rgba(24,176,74,.18);
  padding:7px 12px;
  border-radius: 999px;
}

/* =========================
   SWIPER / GAME CARD
========================= */

.swiper{
  width:100%;
  padding-bottom: 8px;
}

.swiper-slide{
  width:250px;
}

.game-card{
  display:block;
  text-decoration:none;
  color: inherit;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}

.game-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0,0,0,.16);
}

.game-thumb{
  width:100%;
  height:140px;
  object-fit: cover;
  display:block;
}

.game-meta{
  padding: 12px;
}

.game-name{
  font-weight: 1000;
  font-size: 14px;
  line-height: 1.2;
}

.game-provider{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-weight: 1000;
  font-size: 12px;
}

.provider-icon{
  width:18px;
  height:18px;
  border-radius:6px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.10);
}

/* Swiper navigation look slightly darker */
.swiper-button-prev,
.swiper-button-next{
  color: rgba(0,0,0,.65);
}

/* =========================
   TABLE
========================= */

.table-wrap{
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
}

.tbl{
  width:100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.75);
}

.tbl thead th{
  text-align:left;
  padding: 12px;
  font-size: 14px;
  font-weight: 1000;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color:#fff;
}

.tbl tbody td{
  padding: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-weight: 1000;
  font-size: 14px;
}

.winrate{
  font-weight:1000;
  color: #0f6f2b;
  display:flex;
  align-items:center;
  gap:6px;
}

/* =========================
   BOTTOM NAV (HIDE ON DESKTOP)
========================= */

.bottom-nav{
  display:none;
}

/* ======================================================
   MOBILE RESPONSIVE
====================================================== */

@media (max-width: 768px){

  .app{
    max-width:430px;
    padding: 0 14px 110px;
  }

  .topbar{
    padding: 14px 0 10px;
  }

  .brand{
    gap:10px;
  }

.brand-logo{
  width:75px;
  height:auto;
  border-radius:0;
}


  .brand-name{
    font-size:20px;
  }

  .top-actions{
    gap:10px;
  }

  .btn{
    padding:10px 14px;
    font-size:13px;
    border-radius:12px;
  }

  .hero{
    margin: 12px 0 14px;
  }

  .hero-banner{
    height:170px;
  }

  .hero-overlay{
    padding:14px;
  }

  .hero-title{
    font-size:22px;
  }

  .hero-sub{
    font-size:13px;
  }

  .card{
    margin: 12px 0 14px;
    padding: 12px;
  }

  .card-title{
    font-size:14px;
  }

  .pill{
    font-size:11px;
    padding: 5px 9px;
  }

  .provider-grid{
    grid-template-columns: 1fr;
    gap:10px;
  }

  .pm-sub{
    max-width: 240px;
  }

  .swiper-slide{
    width:160px;
  }

  .game-thumb{
    height:90px;
  }

  .game-meta{
    padding:10px;
  }

  .game-name{
    font-size:12px;
  }

  .tbl thead th{
    font-size:12px;
    padding:10px;
  }

  .tbl tbody td{
    font-size:13px;
    padding:10px;
  }

  /* bottom nav only mobile */
  .bottom-nav{
    display:block;
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width: min(430px, 100%);
    padding: 10px 14px 16px;
    z-index:20;
    background: linear-gradient(180deg, rgba(255,210,31,0), rgba(255,210,31,.95) 40%);
  }

  .nav-wrap{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap: 8px;
    padding: 14px 16px 12px;
    border-radius: 22px;
    background: rgba(255,255,255,.55);
    border:1px solid rgba(0,0,0,.12);
    box-shadow: var(--shadow);
  }

  .nav-item{
    width: 64px;
    text-decoration:none;
    color: var(--muted);
    font-weight: 1000;
    font-size: 11px;
    text-align:center;
    user-select:none;
  }

  .nav-item .ico{
    width:26px;
    height:26px;
    margin: 0 auto 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 10px;
    background: rgba(0,0,0,.06);
    border:1px solid rgba(0,0,0,.10);
  }

  .nav-item.spacer{ opacity:0; pointer-events:none; }

  .fab{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:-26px;
    width:62px;
    height:62px;
    border-radius: 999px;
    border: 4px solid rgba(255,210,31,.95);
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    color:#fff;
    font-weight:1000;
    font-size: 30px;
    cursor:pointer;
    box-shadow: 0 16px 22px rgba(24,176,74,.25);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
  }
}
