/* ============================================
   FONTE METROPOLIS — mesma do site original
   Arquivos locais para evitar bloqueio CORS
   ============================================ */

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Metropolis-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Metropolis-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Metropolis-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Metropolis-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/Metropolis-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/Metropolis-Black.woff2') format('woff2');
}



/* --- Reset & Variables --- */
:root {
  --red: #d81a0d;
  --red-hover: #c01009;
  --ink: #323232;
  --ink-light: #757575;
  --line: #eeeeee;
  --box-border: #d3d3d3;
  --bg-base: #ffffff;
  --bg-panel: #f9f9f9;
  --bg-tab: #f4f4f4;
  --bg-selected: #fff4f4;
  --bg-tag-promo: #e6252d;
  --success: #33b25e;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Metropolis, 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--bg-base);
  overflow-x: hidden;
  line-height: 1.5;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* =============================================
   TOPBAR / HEADER
   ============================================= */
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc(50% - 496px));
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Brand link */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* The full Garena logo (image) */
.garena-logo {
  display: block;
  width: 34px;
  height: 36px;
  object-fit: contain;
}
/* Vertical separator line */
.brand-divider {
  display: block;
  width: 1px;
  background: #c8c8c8;
  align-self: stretch;
  flex-shrink: 0;
  height: 48px;
  align-self: center;
}

.desktop-brand .brand-divider {
  height: 50px;
  margin: 0;
  align-self: center;
}

.mobile-brand .brand-divider {
  height: 48px;
  margin: 0;
  align-self: center;
}

.brand strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
}

/* Avatar profile button */
.avatar {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Desktop vs mobile brand */
.desktop-brand { display: flex !important; }
.mobile-brand  { display: none  !important; }

/* =============================================
   BANNER STAGE
   ============================================= */
.banner-stage {
  height: 287px;
  background: #111;
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.banner-track {
  height: 205px;
  display: flex;
  gap: 16px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.45s ease;
}

.banner-track img {
  width: 512px;
  height: 193px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.5;
  transition: all 0.45s;
  flex-shrink: 0;
}

.banner-track img.current {
  width: 543px;
  height: 205px;
  opacity: 1;
}

.banner-dots {
  position: absolute;
  bottom: 17px;
  left: 50%;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.banner-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  padding: 0;
  cursor: pointer;
}

.banner-dots button.active {
  background: var(--red);
}

/* =============================================
   GAME BAND / SELEÇÃO DE JOGOS
   ============================================= */
.game-band {
  background: linear-gradient(135deg, #f4f4f4 0% 70%, #ffe2a3 70%);
  height: 270px;
  overflow: hidden;
}

.game-wrap {
  width: min(100% - 28px, 712px);
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 28px;
}

.game-wrap h1 {
  font-size: 24px;
  margin: 0 0 28px;
  font-weight: 800;
  color: var(--ink);
}

.game-list {
  display: flex;
  gap: 68px;
  align-items: flex-start;
}

.game {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 17px;
  font-family: inherit;
}

.game img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.game.active img {
  outline: 4px solid var(--red);
  outline-offset: -2px;
}

.game b {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.game.active b {
  color: var(--red);
  font-weight: 800;
}

/* =============================================
   CONTENT COLUMN
   ============================================= */
.content-column {
  width: min(100% - 28px, 712px);
  margin: 0 auto;
  padding-bottom: 28px;
}

/* =============================================
   SELECTED GAME BAR
   ============================================= */
.selected-game {
  height: 88px;
  margin-top: -1px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(110deg, #6e4847, #a97d71 60%, #e6c0a6);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-game > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.selected-game img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.selected-game h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.selected-game span {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.65);
  padding: 7px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   FREE ITEM
   ============================================= */
.free-item {
  height: 122px;
  margin-top: 20px;
  border-radius: 8px;
  background: #f3f3f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  overflow: hidden;
  position: relative;
}

.free-item > div:first-child {
  flex: 1;
  z-index: 1;
}

.free-item h2 {
  font-size: 16px;
  margin: 0 0 3px;
  font-weight: 700;
  color: var(--ink);
}

.free-item p {
  font-size: 11px;
  color: #777;
  margin: 0 0 12px;
}

.red-button {
  border: 0;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 10px 22px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  line-height: 1;
}

.red-button:hover {
  background: var(--red-hover);
}

.red-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.free-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: var(--ink);
  flex-shrink: 0;
  width: 90px;
  z-index: 1;
}

.free-product img {
  width: 90px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.free-product > div {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

/* =============================================
   EVENTS
   ============================================= */
.events {
  margin-top: 20px;
}

.events h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.events > img {
  width: 100%;
  height: 97px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.events p {
  font-size: 11px;
  margin: 8px 0 28px;
  color: var(--ink);
  font-weight: 600;
}

/* =============================================
   STEPS (Login, Recharge, Payment)
   ============================================= */
.step {
  margin-bottom: 28px;
}

.step h2 {
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.step h2 i {
  font-style: normal;
  color: white;
  background: var(--red);
  width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  /* Free Fire chamfered corners: cut TL and BR */
  clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
  border-radius: 2px;
}

/* =============================================
   LOGIN PANEL
   ============================================= */
.login-panel {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 24px;
  border: 0;
}

.login-panel label {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #222;
  font-weight: 500;
}

.login-row {
  display: flex;
  position: relative;
  gap: 0;
}

.login-row input {
  height: 48px;
  flex: 1;
  border: 1px solid #dcdcdc;
  border-radius: 4px 0 0 4px;
  border-right: 0;
  padding: 0 40px 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.login-row input:focus {
  border-color: #99999f;
}

.login-row input::placeholder {
  color: #a0a0a0;
}

.login-chevron {
  position: absolute;
  right: calc(110px + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #111;
  pointer-events: none;
  line-height: 1;
}

.login-row .red-button {
  height: 48px;
  border-radius: 0 4px 4px 0;
  padding: 0;
  font-size: 16px;
  width: 110px;
  font-weight: 700;
  white-space: nowrap;
}

.error {
  display: none;
  color: var(--red);
  font-size: 11px;
  margin: 6px 0 0;
}

.error:not([hidden]) {
  display: block;
}

.social-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.social-row > span {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.social-row > span::before,
.social-row > span::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eaeaea;
}

.social-row > div {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  line-height: 0;
  width: auto;
  height: auto;
}

.social-row button img,
.social-row button svg {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

/* =============================================
   TABS (Comprar/Resgatar)
   ============================================= */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button {
  border: 1px solid var(--box-border);
  border-radius: 18px;
  background: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.tabs button.active {
  border-color: var(--red);
  color: var(--red);
  font-weight: 600;
}

/* =============================================
   DIAMONDS GRID
   ============================================= */
.diamonds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.diamonds button {
  height: 53px;
  border: 1px solid var(--box-border);
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.15s;
  font-weight: 600;
}

.diamonds button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
}

.diamonds button.active,
.specials button.active,
.payments button.active {
  border: 2px solid var(--red);
  background: var(--bg-selected);
}

/* =============================================
   SPECIALS / OFERTAS
   ============================================= */
.step h3 {
  font-size: 12px;
  color: var(--ink-light);
  margin: 16px 0 10px;
  font-weight: 600;
}

.specials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.specials button {
  height: 120px;
  border: 1px solid var(--box-border);
  border-radius: 5px;
  background: #fff;
  position: relative;
  padding: 8px 5px 5px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.15s;
  overflow: hidden;
}

.specials button img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.specials button span {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  display: block;
}

.specials small {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--ink-light);
  font-size: 11px;
}

.more-button {
  display: none;
  border: 0;
  background: none;
  color: var(--red);
  margin: 12px auto 0;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.more-button svg {
  transition: transform 0.2s ease;
}

.more-button.expanded svg {
  transform: rotate(180deg);
}

/* =============================================
   PAYMENT METHODS
   ============================================= */
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payments button {
  height: auto;
  min-height: 58px;
  border: 1px solid var(--box-border);
  border-radius: 5px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px 6px;
  position: relative;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.payments img {
  width: 44px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.payments b {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

.payments em {
  position: absolute;
  right: 3px;
  top: 3px;
  background: var(--bg-tag-promo);
  color: #fff;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.pm-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-top: 1px;
}

.payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #795548;
  line-height: 1.5;
}

.payment-notice svg {
  flex-shrink: 0;
  color: #f9a825;
  margin-top: 1px;
}

.payment-note {
  color: var(--ink-light);
  font-size: 11px;
  margin-top: 10px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  height: 45px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  color: var(--ink-light);
  font-size: 10px;
}

footer a {
  color: var(--ink-light);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100% - 80px, 990px);
  background: rgba(35, 35, 35, 0.94);
  color: #fff;
  padding: 22px 30px;
  border-radius: 8px 8px 0 0;
}

.cookie h2 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
}

.cookie p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.cookie u {
  color: #fff;
}

/* =============================================
   MODAL
   ============================================= */
.modal-backdrop {
  display: none;
  place-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  background: #fff;
  border-radius: 10px;
  padding: 30px 24px 24px;
  position: relative;
  width: min(420px, calc(100% - 28px));
  text-align: center;
}

.modal h2 {
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 700;
}

.modal p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-light);
  margin: 0 0 16px;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 5px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--ink-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* =============================================
   ACCOUNT CARD
   ============================================= */
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-tab);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.account-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.account-card strong {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.account-card span {
  font-size: 13px;
  color: var(--ink-light);
}

.logout-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  font-weight: 600;
  flex-shrink: 0;
}

/* =============================================
   PLAYER RESULT
   ============================================= */
.player-result {
  margin: 6px 0 0;
  font-size: 12px;
}

.player-result.success {
  color: var(--success);
  font-weight: 700;
}

/* =============================================
   CAPTCHA BOX
   ============================================= */
.captcha-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

.captcha-box strong,
.captcha-box small {
  display: block;
  margin-bottom: 8px;
}

.captcha-link {
  display: inline-block;
  margin: 4px 0 8px;
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.login-row button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* =============================================
   CAPTCHA MODAL
   ============================================= */
.modal.captcha-modal {
  width: min(820px, calc(100% - 24px));
  max-width: 820px;
}

.captcha-frame {
  display: block;
  width: 100%;
  height: min(560px, 70vh);
  border: 0;
  background: #fff;
  border-radius: 4px;
}

.captcha-modal p {
  font-size: 13px;
}

.captcha-modal .red-button {
  margin-top: 8px;
}

/* =============================================
   REDEEM MODAL
   ============================================= */
.redeem-label {
  display: block;
  text-align: left;
  font-size: 12px;
  margin: 12px 0 6px;
  color: var(--ink);
  font-weight: 500;
}

.redeem-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--box-border);
  border-radius: 5px;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.modal #redeemLogin {
  margin-top: 14px;
  width: 100%;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

/* =============================================
   EXPANDED SPECIALS
   ============================================= */
.specials button:nth-child(n+5) {
  /* shown by default on desktop */
}

.specials.expanded button:nth-child(n+5) {
  display: flex !important;
}

/* =============================================
   BACKGROUNDS FROM ASSETS
   ============================================= */
.selected-game {
  background-image: linear-gradient(100deg, rgba(64,24,25,0.6), rgba(80,28,28,0.08)),
    url('assets/banners/selected-game.jpg');
  background-size: cover;
  background-position: center;
}

.free-item {
  background: #f3f3f3 url('assets/products/free-item-bg.png') right top / cover no-repeat;
}

/* =============================================
   RESPONSIVE - MOBILE (≤700px)
   ============================================= */
@media (max-width: 700px) {
  /* Topbar */
  .topbar {
    height: 72px;
    padding: 0 16px;
  }

  .desktop-brand { display: none !important; }
  .mobile-brand  { display: flex !important; }

  .mobile-brand .garena-logo {
    width: 38px;
    height: 42px;
    object-fit: contain;
  }

  .mobile-brand .brand-divider {
    height: 44px;
    margin: 0;
  }

  .mobile-brand strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .avatar::before {
    width: 11px;
    height: 11px;
    top: 6px;
  }

  .avatar::after {
    width: 20px;
    height: 12px;
    bottom: 5px;
  }

  /* Banner */
  .banner-stage {
    height: 159px;
    padding: 0;
  }

  .banner-track {
    height: 159px;
    left: 0 !important;
    transform: none !important;
    width: 100%;
  }

  .banner-track img {
    display: none;
  }

  .banner-track img.current {
    display: block;
    width: 100%;
    height: 159px;
    border-radius: 0;
    object-fit: cover;
    opacity: 1;
  }

  .banner-dots {
    bottom: 7px;
    gap: 7px;
  }

  .banner-dots button {
    width: 7px;
    height: 7px;
  }

  /* Game band */
  .game-band {
    height: 169px;
    overflow: hidden;
  }

  .game-wrap {
    padding-top: 17px;
    padding-bottom: 16px;
    width: calc(100% - 28px);
  }

  .game-wrap h1 {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .game-list {
    gap: 20px;
  }

  .game {
    font-size: 11px;
    gap: 7px;
    min-width: 55px;
  }

  .game img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .game.active img {
    outline-width: 3px;
  }

  /* Content */
  .content-column {
    width: calc(100% - 28px);
  }

  /* Selected game */
  .selected-game {
    height: 76px;
    padding: 8px 12px;
  }

  .selected-game img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .selected-game h2 {
    font-size: 16px;
  }

  .selected-game span {
    font-size: 10px;
    padding: 5px 7px;
  }

  /* Free item */
  .free-item {
    height: 120px;
    margin-top: 16px;
    padding: 14px 16px;
  }

  .free-item h2 {
    font-size: 14px;
  }

  .free-item p {
    font-size: 9px;
    margin-bottom: 10px;
  }

  .free-item .red-button {
    padding: 8px 14px;
    font-size: 11px;
  }

  .free-product {
    width: 75px;
  }

  .free-product img {
    width: 75px;
    height: 52px;
  }

  /* Events */
  .events {
    margin-top: 16px;
  }

  .events h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .events > img {
    height: 85px;
  }

  .events p {
    font-size: 10px;
    margin: 7px 0 22px;
  }

  /* Steps */
  .step {
    margin-bottom: 24px;
  }

  .step h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  /* Login panel */
  .login-panel {
    padding: 12px;
  }

  .login-row input {
    height: 36px;
    font-size: 12px;
  }

  .login-row .red-button {
    height: 36px;
    font-size: 12px;
    padding: 0 14px;
  }

  .social-row {
    gap: 14px;
    margin-top: 20px;
  }
  
  .social-row > span {
    font-size: 12px;
  }

  .social-row button img,
  .social-row button svg {
    width: 38px;
    height: 38px;
  }

  .diamonds {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .diamonds button {
    height: 46px;
    font-size: 11px;
  }

  /* Specials */
  .specials {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .specials button {
    height: 118px;
    font-size: 11px;
  }

  .specials button:nth-child(n+5) {
    display: none;
  }

  .more-button {
    display: flex;
  }

  /* Payments */
  .payments {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .payments button {
    min-height: 72px;
    gap: 3px;
    padding: 6px 6px 5px;
  }

  .payments img {
    width: 36px;
    height: 26px;
  }

  .payments b {
    font-size: 9px;
    text-align: center;
  }

  .pm-price {
    font-size: 10px;
  }

  /* Footer */
  footer {
    height: auto;
    padding: 20px 12px;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 9px;
  }

  /* Cookie */
  .cookie {
    width: calc(100% - 28px);
    padding: 18px;
    bottom: 12px;
    border-radius: 8px;
  }

  .cookie h2 {
    font-size: 18px;
  }

  .cookie p {
    font-size: 13px;
  }

  .cookie .red-button {
    font-size: 13px;
    width: 100%;
  }
}

/* =============================================
   PURCHASE BAR (sticky bottom)
   ============================================= */
.purchase-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
  min-height: 56px;
}

.purchase-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.purchase-bar-diamond {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.purchase-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.purchase-bar-chevron {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-light);
  display: flex;
  align-items: center;
}

.purchase-bar-total {
  font-size: 12px;
  color: var(--ink-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.purchase-bar-total strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
}

.purchase-bar-btn {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.purchase-bar-btn:hover {
  background: #c62828;
}

.purchase-bar-btn svg {
  flex-shrink: 0;
}

/* =============================================
   CHECKOUT OVERLAY
   ============================================= */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #f5f5f5;
  overflow-y: auto;
}

.checkout-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.checkout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.checkout-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

.checkout-back {
  border: 0;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-weight: 600;
}

.checkout-back:hover {
  color: var(--red);
}

/* Checkout summary */
.chk-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chk-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chk-diamond {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.chk-total strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.chk-pix-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fff4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.chk-pix-badge img {
  width: 36px;
  height: 24px;
  object-fit: contain;
}

.chk-pix-badge span {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

/* Checkout form */
.chk-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
}

.chk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chk-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.req { color: var(--red); }

.chk-field input {
  height: 44px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.chk-field input:focus {
  border-color: #999;
}

.chk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chk-error {
  color: var(--red);
  font-size: 12px;
  margin: 0;
  min-height: 16px;
}

.chk-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.chk-submit:hover { background: #c62828; }
.chk-submit:disabled { opacity: 0.6; cursor: default; }

/* =============================================
   PIX SCREEN (inside checkout)
   ============================================= */
.pix-screen {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.pix-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pix-logo {
  width: 44px;
  height: 30px;
  object-fit: contain;
}

.pix-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.pix-subtitle {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0 0 16px;
}

.pix-qr-wrap {
  margin: 0 auto 16px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.pix-qr-img {
  width: 192px;
  height: 192px;
  object-fit: contain;
}

.pix-qr-placeholder {
  width: 192px;
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #bbb;
  font-size: 13px;
  border-radius: 10px;
}

.pix-code-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pix-code-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 11px;
  font-family: monospace;
  color: var(--ink);
  background: #f9f9f9;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-copy-btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.pix-copy-btn:hover { background: #000; }
.pix-copy-btn.copied { background: #2e7d32; }

.pix-timer {
  font-size: 12px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
  animation: pulse-timer 2s ease-in-out infinite;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pix-status {
  font-size: 12px;
  color: var(--ink-light);
  min-height: 18px;
  margin-bottom: 8px;
}

.pix-status.error { color: var(--red); }

.pix-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.pix-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.pix-info span {
  font-size: 10px;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pix-info strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.pix-note {
  font-size: 11px;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* =============================================
   MOBILE: PURCHASE BAR / CHECKOUT
   ============================================= */
@media (max-width: 700px) {
  .purchase-bar {
    padding: 8px 14px;
    gap: 8px;
    min-height: 50px;
  }

  .purchase-bar-label {
    font-size: 12px;
  }

  .purchase-bar-total strong {
    font-size: 13px;
  }

  .purchase-bar-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .checkout-page {
    padding: 0 12px 30px;
  }

  .chk-row {
    grid-template-columns: 1fr;
  }

  .pix-qr-wrap {
    width: 170px;
    height: 170px;
  }

  .pix-qr-img {
    width: 162px;
    height: 162px;
  }
}

/* Extra bottom padding so content doesn't hide behind purchase bar */
main {
  padding-bottom: 70px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cart Button */
.cart-btn {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cart-btn:hover {
  color: var(--red);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: inherit;
}

/* =============================================
   CART TOAST
   ============================================= */
#cartToast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

#cartToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   CART MODAL
   ============================================= */
.modal.cart-modal {
  width: min(500px, calc(100% - 28px));
  text-align: left;
}

.cart-modal h2 {
  text-align: left;
}

.cart-empty {
  text-align: center;
  padding: 20px 0;
  color: var(--ink-light);
}

.cart-empty svg {
  margin: 0 auto 12px;
  display: block;
}

.cart-empty p {
  margin-bottom: 20px;
  font-size: 15px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cart-item-info img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.cart-item-info div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-item-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info span {
  font-size: 11px;
  color: var(--ink-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--box-border);
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  font-family: inherit;
}

.cart-item-qty button:hover {
  border-color: var(--red);
  color: var(--red);
}

.cart-item-qty span {
  font-size: 13px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 64px;
  text-align: right;
}

.cart-remove {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  font-size: 18px;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: color 0.15s;
}

.cart-remove:hover {
  color: var(--red);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total span {
  font-size: 14px;
  color: var(--ink-light);
}

.cart-total strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* =============================================
   CHECKOUT MODAL
   ============================================= */
.modal.checkout-modal {
  width: min(500px, calc(100% - 28px));
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-modal h2 {
  text-align: left;
}

.checkout-summary {
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 2px solid var(--line);
}

.checkout-total span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
}

.checkout-total strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
}

.checkout-pix-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fff4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.checkout-pix-badge img {
  width: 36px;
  height: 24px;
  object-fit: contain;
}

.checkout-pix-badge span {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.required-star {
  color: var(--red);
}

.form-row input {
  height: 44px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.form-row input:focus {
  border-color: #999;
}

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-direction: unset;
}

.form-row-half > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-half label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-row-half input {
  height: 44px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.checkout-error {
  color: var(--red);
  font-size: 12px;
  margin: 0;
  min-height: 16px;
}

.checkout-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   PIX MODAL
   ============================================= */
.modal.pix-modal {
  width: min(460px, calc(100% - 28px));
  text-align: center;
}

.pix-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pix-logo {
  width: 44px;
  height: 30px;
  object-fit: contain;
}

.pix-modal h2 {
  margin: 0;
  font-size: 20px;
}

.pix-subtitle {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0 0 16px;
}

.pix-qr-wrap {
  margin: 0 auto 16px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.pix-qr-img {
  width: 192px;
  height: 192px;
  object-fit: contain;
}

.pix-qr-placeholder {
  width: 192px;
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #bbb;
  font-size: 13px;
}

.pix-code-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pix-code-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 11px;
  font-family: monospace;
  color: var(--ink);
  background: #f9f9f9;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-copy-btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.pix-copy-btn:hover {
  background: #000;
}

.pix-copy-btn.copied {
  background: var(--success);
}

.pix-timer {
  font-size: 12px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
  animation: pulse-timer 2s ease-in-out infinite;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pix-status {
  font-size: 12px;
  color: var(--ink-light);
  min-height: 18px;
  margin-bottom: 8px;
}

.pix-status.error {
  color: var(--red);
}

.pix-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.pix-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.pix-info span {
  font-size: 10px;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pix-info strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.pix-note {
  font-size: 11px;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   MOBILE RESPONSIVE: CART / CHECKOUT / PIX
   ============================================= */
@media (max-width: 700px) {
  .modal.cart-modal,
  .modal.checkout-modal,
  .modal.pix-modal {
    width: calc(100% - 28px);
    padding: 20px 16px;
  }

  .form-row-half {
    grid-template-columns: 1fr;
  }

  .pix-qr-wrap {
    width: 170px;
    height: 170px;
  }

  .pix-qr-img {
    width: 162px;
    height: 162px;
  }

  .cart-item-subtotal {
    min-width: 50px;
  }

  .diamonds {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .diamonds button {
    height: 56px;
    font-size: 11px;
  }
}