:root {
  --green: #19c37d; /* check */
  --red: #ff4d4f; /* cross */
  --ui-scale: .85;
}

* {
  box-sizing: border-box;
}
#capture-me { width: 945px; box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255,214,102,.15), transparent),
    radial-gradient(900px 400px at 5% 10%, rgba(143,76,255,.12), transparent),
    linear-gradient(#0a0a14, #07070b);
  color: #fff;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 28px 18px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 18px;
}

.header .title {
  letter-spacing: .065em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(30px, 5vw, 56px);
  color: var(--gold);
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.6))
          drop-shadow(0 0 24px rgba(255,214,102,.5));
}

.sub {
  letter-spacing: .065em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(30px, 5vw, 26px);
  color: var(--gold);
}

.header .title,
.header .sub,
.side .label,
.main .title,
.jackpot .label {
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Winrate bar */
.winrate {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.winrate h3 {
  margin: 0 0 4px;
  letter-spacing: .06em;
  text-align: center;
  font-size: clamp(20px, 3.2vw, 26px);
  color: #fff;
}

.winrate .lead {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 900;
}

.pricelist {
  display: grid;
  gap: 10px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px dashed rgba(255,255,255,.18);
}

.price strong {
  font-size: 35px;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.price .rate {
  font-weight: 800;
  font-size: 35px;
  color: #b6ff7a;
}

/* Body grid */
.grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: rgba(20,22,28,.6);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  text-align: center;
  18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.42);
}

/* Sidebar games */
.side .label {
  letter-spacing: .01em;
  font-weight: bold;
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 36px);
}

.game {
  position: relative; /* penting supaya ribbon patokannya ke .game */
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.game img {
  width: 190px;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  margin: 5px;
}

.ribbon {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  --s: 1.8em; /* ribbon size */
  --d: .5em;  /* depth */
  --c: .8em;  /* cutout */
  padding: 10px calc(var(--s) + var(--d) + .5em);
  display: flex; /* biar isi rata tengah */
  justify-content: center;
  align-items: center;
  line-height: 1.4;
  background:
    linear-gradient(90deg,#0004 var(--d),#0000 0 calc(100% - var(--d)),#0004 0)
    50%/calc(100% - 2*var(--s)) 100% no-repeat;
  clip-path: polygon(
    0 0, var(--s) 0,
    calc(var(--s) + var(--d)) var(--d),
    calc(100% - var(--s) - var(--d)) var(--d),
    calc(100% - var(--s)) 0, 100% 0,
    calc(100% - var(--c)) calc(50% - var(--d)/2),
    100% calc(100% - var(--d)),
    calc(100% - var(--s)) calc(100% - var(--d)),
    calc(100% - var(--s) - var(--d)) 100%,
    calc(var(--s) + var(--d)) 100%, var(--s) calc(100% - var(--d)),
    0 calc(100% - var(--d)), var(--c) calc(50% - var(--d)/2)
  );
  background-color: #d81a14;
  width: 259px;
}

.ribbon .flag-flank {
  transform: translateY(4px); /* isi geser turun 3px */
}

.flag-flank {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 6px;
}

.flag-flank img.flag-left,
.flag-flank img.flag-right {
  width: 25px;
  height: auto;
  border-radius: 3px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
}

.flag-flank .text {
  display: grid;
  justify-items: center;
  align-content: center;
  line-height: 1.05;
  font-size: 13px;
}

.flag-flank .text::before {
  content: attr(data-top);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.flag-flank .text::after {
  content: attr(data-bottom);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Main tricks */
.main .title {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(30px, 5vw, 36px);
  color: var(--gold);
}

.main .subtitle {
  opacity: .95;
  margin-top: -4px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.badges {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.badges li {
  display: flex;
  flex-wrap: nowrap; 
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
}

.badges .txt {
  font-weight: 900;
  font-size: 25px;
}

.checks {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  white-space: nowrap; 
  flex: 0 0 auto; 
}

.check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
}

.ok {
  background: var(--green);
}

.no {
  background: var(--red);
}

.dc {
  font-weight: 800;
  opacity: .9;
}

/* Jackpot */
.jackpot {
  text-align: center;
  margin-top: 16px;
}

.jackpot .label {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--gold);
}

.jackpot .val {
  font-weight: 900;
  font-size: clamp(30px, 6.5vw, 50px);
  background: var(--gold); /* gradient dari :root */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.6))
          drop-shadow(0 0 24px rgba(255,214,102,.5));
}

.search {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  opacity: .9;
}

.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .side {
    order: 2;
  }
  .main {
    order: 1;
  }
}

/* ---- Square frame (1:1) override ---- */
html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  background: #07070b;
}

.stage {
  width: min(100vmin, 1100px);
  height: min(100vmin, 1100px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
  background: var(--bg-img) center / cover no-repeat; /* FOTO BACKGROUND (1:1, cover) */
}

/* Overlay supaya teks tetap kebaca */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: clamp(12px, 2.4vmin, 22px); /* beri ruang ekstra utk glow */
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255,214,102,.18), transparent),
    radial-gradient(900px 400px at 5% 10%, rgba(143,76,255,.14), transparent),
    linear-gradient(rgba(7,7,11,.55), rgba(7,7,11,.78));
}

/* Pastikan konten di atas overlay */
.stage > .container {
  inset: 0;
  width: calc(100% / var(--ui-scale));
  height: calc(100% / var(--ui-scale));
  transform: scale(var(--ui-scale));
  transform-origin: top left;
  /* kunci max agar tidak meluber 1–2px karena sub-pixel */
  max-width: calc(100% / var(--ui-scale));
  max-height: calc(100% / var(--ui-scale));
}

.container {
  max-width: 105%;
}

.flag {
  font-size: 1.5rem; /* opsional */
  line-height: 1;
}
