:root {
  --qg-blue: #083475;
  --qg-blue-dark: #05214b;
  --qg-blue-soft: #e8effa;
  --qg-red: #d6012a;
  --qg-red-dark: #aa001f;
  --qg-green: #28a745;
  --qg-yellow: #ffc107;
  --qg-ink: #162238;
  --qg-muted: #687489;
  --qg-line: #dfe5ef;
  --qg-bg: #f4f6fb;
  --qg-white: #ffffff;
  --qg-shadow: 0 10px 28px rgba(8, 52, 117, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  background: var(--qg-bg) !important;
  color: var(--qg-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body,
button,
input {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.qg-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.qg-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--qg-white);
  box-shadow: 0 4px 20px rgba(5, 33, 75, 0.18);
}

.qg-service-bar {
  background: var(--qg-blue-dark);
  border-bottom: 3px solid var(--qg-red);
  font-size: 13px;
}

.qg-service-grid {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(280px, 1.4fr) minmax(220px, auto);
  gap: 16px;
  align-items: center;
}

.qg-service-grid p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
}

.qg-service-actions,
.qg-brand-links {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.qg-brand-links {
  justify-content: flex-end;
}

.qg-service-actions a,
.qg-brand-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--qg-white);
  white-space: nowrap;
  font-weight: 700;
  text-transform: uppercase;
}

.qg-service-actions img,
.qg-brand-links img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.qg-main-bar {
  background: var(--qg-blue);
}

.qg-main-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.qg-logo {
  display: inline-flex;
  align-items: center;
  width: 190px;
  min-height: 60px;
}

.qg-logo img {
  width: 180px;
  height: auto;
}

.qg-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  border-radius: 6px;
  padding: 9px;
}

.qg-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--qg-white);
  margin: 5px 0;
}

.qg-login {
  display: grid;
  grid-template-columns: auto minmax(125px, 150px) minmax(125px, 150px) auto auto auto;
  gap: 10px;
  align-items: center;
  justify-content: end;
  margin: 0;
}

.qg-login label {
  margin: 0;
}

.qg-login label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.qg-login input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #d9dde5;
  color: #101826;
  padding: 0 12px;
  outline: 2px solid transparent;
}

.qg-login input:focus {
  outline-color: var(--qg-yellow);
}

.qg-promo-link,
.qg-wheel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--qg-white);
  font-weight: 800;
  text-transform: uppercase;
  min-height: 42px;
}

.qg-promo-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.qg-wheel {
  width: 50px;
}

.qg-wheel img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.qg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 800;
  color: var(--qg-white);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.qg-btn:hover {
  transform: translateY(-1px);
}

.qg-btn-login {
  background: var(--qg-blue-dark);
  border-color: rgba(255, 255, 255, 0.25);
}

.qg-btn-register {
  background: var(--qg-red);
  color: var(--qg-white);
}

.qg-btn-register:hover {
  background: var(--qg-red-dark);
}

.qg-btn-ghost {
  background: var(--qg-white);
  color: var(--qg-blue);
  border-color: var(--qg-white);
}

.qg-product-nav {
  background: var(--qg-red);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.qg-nav-scroll {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.qg-nav-scroll a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: max-content;
  min-height: 52px;
  padding: 0 14px;
  color: var(--qg-white);
  font-weight: 800;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.qg-nav-scroll a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.qg-nav-scroll img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.qg-hero {
  background: linear-gradient(180deg, var(--qg-blue-soft) 0%, var(--qg-bg) 100%);
  padding: 26px 0 18px;
}

.qg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.qg-hero-media {
  position: relative;
  min-height: 250px;
  aspect-ratio: 5 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--qg-blue-dark);
  box-shadow: var(--qg-shadow);
}

.qg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-hero-copy {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px;
  border-radius: 8px;
  background: var(--qg-blue);
  color: var(--qg-white);
  box-shadow: var(--qg-shadow);
}

.qg-kicker {
  color: var(--qg-red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.qg-section-head-dark .qg-kicker,
.qg-hero-copy .qg-kicker {
  color: var(--qg-yellow);
}

.qg-hero-copy h1,
.qg-section-head h2,
.qg-seo-text h1,
.qg-seo-text h2,
.qg-footer h2,
.qg-footer h3 {
  margin: 0;
  color: inherit;
  line-height: 1.16;
}

.qg-hero-copy h1 {
  font-size: 42px;
  font-weight: 900;
}

.qg-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.qg-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qg-hero-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(5, 33, 75, 0.74);
  color: var(--qg-white);
}

.qg-hero-controls button,
.qg-rail-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--qg-red);
  color: var(--qg-white);
  font-weight: 900;
  cursor: pointer;
}

.qg-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qg-dots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.qg-dots button.is-active {
  background: var(--qg-yellow);
}

.qg-quick-band {
  padding: 14px 0 22px;
}

.qg-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qg-quick-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-content: center;
  padding: 15px;
  border: 1px solid var(--qg-line);
  border-radius: 8px;
  background: var(--qg-white);
  box-shadow: 0 6px 18px rgba(22, 34, 56, 0.06);
}

.qg-quick-item img {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.qg-quick-item strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.15;
}

.qg-quick-item span {
  color: var(--qg-muted);
  font-size: 14px;
}

.qg-live-band {
  padding: 26px 0;
  background: var(--qg-blue-dark);
  color: var(--qg-white);
}

.qg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.qg-section-head h2 {
  font-size: 28px;
  font-weight: 900;
}

.qg-section-head > a,
.qg-filter-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 12px;
  background: var(--qg-red);
  color: var(--qg-white);
  font-weight: 800;
}

.qg-section-head-dark > a {
  background: var(--qg-yellow);
  color: #161616;
}

.qg-match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qg-match {
  min-height: 154px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.qg-match span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--qg-red);
  font-size: 12px;
  font-weight: 900;
}

.qg-match strong {
  overflow-wrap: anywhere;
}

.qg-match div {
  color: var(--qg-yellow);
  font-size: 22px;
  font-weight: 900;
}

.qg-match a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--qg-white);
  color: var(--qg-blue);
  font-weight: 900;
}

.qg-games-band {
  padding: 30px 0 26px;
  background: var(--qg-bg);
}

.qg-filter-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.qg-filter-strip a {
  background: var(--qg-white);
  color: var(--qg-blue);
  border: 1px solid var(--qg-line);
}

.qg-game-sections {
  display: grid;
  gap: 24px;
}

.qg-game-block {
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--qg-white);
  box-shadow: 0 8px 24px rgba(22, 34, 56, 0.08);
}

.qg-game-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.qg-game-heading h3 {
  margin: 0;
  color: var(--qg-blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.qg-game-heading p {
  margin: 4px 0 0;
  color: var(--qg-muted);
}

.qg-game-heading a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--qg-blue);
  color: var(--qg-white);
  font-weight: 800;
}

.qg-rail-wrap {
  position: relative;
}

.qg-game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 184px;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-color: var(--qg-red) #edf1f7;
}

.qg-game-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 126px minmax(46px, auto);
  min-height: 178px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--qg-line);
  background: #f9fbff;
  color: var(--qg-ink);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.qg-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 1, 42, 0.42);
  box-shadow: 0 10px 20px rgba(8, 52, 117, 0.12);
}

.qg-game-card img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  background: var(--qg-blue-dark);
}

.qg-game-card span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--qg-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.qg-rail-btn {
  position: absolute;
  top: 48px;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(8, 52, 117, 0.22);
}

.qg-rail-prev {
  left: -10px;
}

.qg-rail-next {
  right: -10px;
}

.qg-seo-band {
  padding: 28px 0 34px;
  background: var(--qg-white);
}

.qg-seo-text {
  position: relative;
  max-width: 1030px;
  margin: 0 auto;
  color: #253148;
}

.qg-seo-text h1 {
  margin-bottom: 12px;
  color: var(--qg-blue);
  font-size: 30px;
  font-weight: 900;
}

.qg-seo-text h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--qg-blue);
  font-size: 24px;
  font-weight: 900;
}

.qg-seo-text h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--qg-red);
  font-size: 19px;
  font-weight: 900;
}

.qg-seo-text p,
.qg-seo-text li {
  font-size: 16px;
}

.qg-seo-text a {
  color: var(--qg-blue);
  font-weight: 800;
}

.qg-seo-collapsed {
  max-height: 480px;
  overflow: hidden;
}

.qg-seo-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--qg-white));
}

.qg-collapse-btn {
  min-width: 140px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  border: 0;
  border-radius: 6px;
  background: var(--qg-red);
  color: var(--qg-white);
  font-weight: 900;
  cursor: pointer;
}

.qg-footer {
  background: var(--qg-blue);
  color: var(--qg-white);
}

.qg-footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.8fr);
  gap: 28px;
  padding: 30px 0;
}

.qg-responsible h2,
.qg-footer-links h3 {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.qg-responsible p {
  margin: 14px 0 0;
  max-width: 310px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.qg-legal-badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.qg-legal-badges a {
  width: 64px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: var(--qg-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--qg-blue);
  font-size: 13px;
  font-weight: 900;
}

.qg-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.qg-footer-links section {
  display: grid;
  align-content: start;
  gap: 7px;
}

.qg-footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.qg-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 16px;
  background: #080b10;
}

.qg-payments img {
  max-width: 82px;
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
}

.qg-copyright {
  margin: 0;
  padding: 14px 16px 18px;
  background: var(--qg-blue-dark);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .qg-service-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 0;
  }

  .qg-service-grid p {
    text-align: left;
  }

  .qg-brand-links {
    justify-content: flex-start;
  }

  .qg-main-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .qg-login {
    grid-template-columns: auto minmax(120px, 1fr) minmax(120px, 1fr) auto auto;
  }

  .qg-wheel {
    display: none;
  }

  .qg-hero-grid,
  .qg-footer-top {
    grid-template-columns: 1fr;
  }

  .qg-hero-copy {
    min-height: auto;
  }

  .qg-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .qg-shell {
    width: min(100% - 20px, 760px);
  }

  .qg-main-grid {
    grid-template-columns: 44px minmax(150px, 1fr);
    min-height: 70px;
    gap: 10px;
  }

  .qg-menu-toggle {
    display: block;
  }

  .qg-logo {
    width: 156px;
    min-height: 52px;
  }

  .qg-logo img {
    width: 150px;
  }

  .qg-login {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    padding-bottom: 12px;
  }

  .qg-login .qg-promo-link {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .qg-login .qg-btn {
    width: 100%;
  }

  .qg-product-nav {
    display: none;
  }

  .qg-product-nav.is-open {
    display: block;
  }

  .qg-nav-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 8px 0;
  }

  .qg-nav-scroll a {
    justify-content: flex-start;
    border: 0;
    min-height: 42px;
  }

  .qg-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qg-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .qg-filter-strip {
    justify-content: flex-start;
  }

  .qg-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .qg-service-actions,
  .qg-brand-links {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .qg-login {
    grid-template-columns: 1fr;
  }

  .qg-hero {
    padding-top: 16px;
  }

  .qg-hero-media {
    min-height: 150px;
    aspect-ratio: 16 / 7;
  }

  .qg-hero-copy {
    padding: 18px;
  }

  .qg-hero-copy h1 {
    font-size: 34px;
  }

  .qg-hero-copy p {
    font-size: 16px;
  }

  .qg-quick-grid,
  .qg-match-grid,
  .qg-footer-links {
    grid-template-columns: 1fr;
  }

  .qg-game-block {
    padding: 12px;
  }

  .qg-game-heading {
    grid-template-columns: 1fr;
  }

  .qg-game-rail {
    grid-auto-columns: 152px;
  }

  .qg-game-card {
    grid-template-rows: 106px minmax(50px, auto);
  }

  .qg-game-card img {
    height: 106px;
  }

  .qg-rail-btn {
    display: none;
  }

  .qg-seo-text h1 {
    font-size: 25px;
  }

  .qg-seo-text h2 {
    font-size: 21px;
  }
}

/* Screenshot fidelity layer */
body {
  background-color: #064783 !important;
  background-size: 520px 520px;
  background-position: center 82px;
}

.qg-header {
  box-shadow: none;
}

.qg-service-bar {
  min-height: 23px;
  background: #041a35;
  border-bottom: 0;
  font-size: 12px;
}

.qg-service-grid {
  width: min(1500px, calc(100% - 24px));
  min-height: 23px;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}

.qg-service-grid p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.qg-service-actions,
.qg-brand-links {
  gap: 12px;
}

.qg-service-actions a,
.qg-brand-links a {
  min-height: 18px;
  font-size: 12px;
}

.qg-service-actions img,
.qg-brand-links img {
  width: 14px;
  height: 14px;
}

.qg-main-bar {
  background: #062b57;
}

.qg-main-grid {
  width: min(1500px, calc(100% - 24px));
  min-height: 54px;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.qg-logo {
  width: 142px;
  min-height: 46px;
}

.qg-logo img {
  width: 132px;
}

.qg-login {
  grid-template-columns: auto 150px 150px 74px 92px 42px;
  gap: 8px;
}

.qg-login input {
  height: 29px;
  border-radius: 3px;
  font-size: 12px;
  padding: 0 9px;
}

.qg-btn {
  min-height: 29px;
  border-radius: 3px;
  padding: 0 11px;
  font-size: 12px;
}

.qg-btn-login {
  background: #0069c9;
}

.qg-btn-register {
  background: #28a745;
}

.qg-promo-link {
  min-height: 29px;
  padding: 0 10px;
  border-radius: 3px;
  background: #ffca13;
  color: #151515;
  font-size: 12px;
}

.qg-promo-link img {
  width: 18px;
  height: 18px;
}

.qg-wheel img {
  width: 31px;
  height: 31px;
}

.qg-product-nav {
  position: relative;
  background: #042d62;
  border-top: 0;
  border-bottom: 9px solid #d6012a;
}

.qg-product-nav::after {
  content: "ACCEDI ALLA TUA FREE ZONE E SCOPRI GIOCHI E PREMI IN PALIO";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd84a;
  font-size: 12px;
  font-weight: 900;
}

.qg-nav-scroll {
  width: min(1040px, calc(100% - 24px));
  min-height: 30px;
  justify-content: center;
}

.qg-nav-scroll a {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  font-size: 12px;
  gap: 4px;
}

.qg-nav-scroll a:last-child {
  border-right: 0;
}

.qg-nav-scroll img {
  width: 16px;
  height: 16px;
}

.qg-hero {
  padding: 31px 0 18px;
  background: transparent;
}

.qg-hero .qg-shell {
  width: min(1498px, calc(100% - 96px));
}

.qg-hero-grid {
  display: block;
}

.qg-hero-copy,
.qg-quick-band,
.qg-live-band {
  display: none;
}

.qg-hero-media {
  width: 100%;
  min-height: 0;
  aspect-ratio: 5 / 1;
  border: 2px solid #d8b827;
  border-radius: 4px;
  box-shadow: none;
}

.qg-hero-controls {
  left: 50%;
  right: auto;
  bottom: -28px;
  min-height: 18px;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
}

.qg-hero-controls > button {
  display: none;
}

.qg-dots {
  gap: 8px;
}

.qg-dots button {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  background: #7b8b86;
  opacity: 0.78;
}

.qg-dots button.is-active {
  background: #e6c21d;
}

.qg-games-band {
  padding: 31px 0 16px;
  background: transparent;
  color: #ffffff;
}

.qg-games-band .qg-shell,
.qg-seo-band .qg-shell {
  width: min(835px, calc(100% - 24px));
}

.qg-games-band > .qg-shell > .qg-section-head {
  display: none;
}

.qg-game-sections {
  gap: 25px;
}

.qg-game-block {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.qg-game-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 8px;
}

.qg-game-heading h3 {
  display: inline;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  text-transform: none;
}

.qg-game-heading p {
  display: inline;
  margin: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.qg-game-heading a {
  min-height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.qg-rail-wrap {
  position: relative;
}

.qg-rail-btn {
  display: none;
}

.qg-game-rail {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 92px;
  height: 191px;
  gap: 7px;
  overflow: hidden;
  padding: 0;
  scroll-snap-type: none;
}

.qg-game-card {
  display: block;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 3px;
  background: transparent;
  overflow: hidden;
}

.qg-game-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.qg-game-card:hover {
  transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(230, 194, 29, 0.72);
}

.qg-game-card img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.qg-game-card span {
  display: none;
}

.qg-slot-supreme-hero {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 1.35;
  margin-bottom: 7px;
  border: 2px solid #d8b827;
  border-radius: 4px;
  overflow: hidden;
  background: #07294e;
}

.qg-slot-supreme-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-inline-live .qg-inline-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.qg-mini-match {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 9px;
  border-radius: 4px;
  background: #0d4e94;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qg-mini-match span {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e6002d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.qg-mini-match strong {
  min-width: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.qg-mini-match em {
  color: #ffd33d;
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}

.qg-mini-match a {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  min-height: 20px;
  border-radius: 3px;
  background: #073264;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.qg-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qg-highlight-grid a {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 3px;
  background: #d6012a;
  color: #ffffff;
}

.qg-highlight-grid small {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.82;
}

.qg-highlight-grid strong {
  font-size: 13px;
  line-height: 1.1;
}

.qg-seo-band {
  padding: 18px 0 22px;
  background: transparent;
  color: #ffffff;
}

.qg-seo-text {
  max-width: 835px;
  color: rgba(255, 255, 255, 0.9);
}

.qg-seo-text h1 {
  color: #ffffff;
  font-size: 20px;
}

.qg-seo-text h2 {
  color: #ffffff;
  font-size: 14px;
  margin-top: 12px;
}

.qg-seo-text h3 {
  color: #ffffff;
  font-size: 12px;
  margin-top: 10px;
}

.qg-seo-text p,
.qg-seo-text li {
  font-size: 12px;
  line-height: 1.28;
}

.qg-seo-text ul,
.qg-seo-text ol {
  padding-left: 18px;
}

.qg-seo-text a {
  color: #ffffff;
  text-decoration: underline;
}

.qg-seo-collapsed {
  max-height: 252px;
}

.qg-seo-collapsed::after {
  height: 70px;
  background: linear-gradient(180deg, rgba(6, 71, 131, 0), #064783);
}

.qg-collapse-btn {
  min-width: 28px;
  width: 32px;
  min-height: 24px;
  margin-top: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: 0;
}

.qg-collapse-btn::before {
  content: "⌄";
  font-size: 18px;
  line-height: 1;
}

.qg-footer {
  margin-top: 0;
  background: #062743;
}

.qg-footer-top {
  width: min(835px, calc(100% - 24px));
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.7fr);
  gap: 36px;
  padding: 35px 0 28px;
}

.qg-responsible h2 {
  font-size: 0;
}

.qg-responsible h2::before {
  content: "QUIGIOCO";
  display: block;
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
}

.qg-responsible p {
  max-width: 190px;
  font-size: 12px;
  line-height: 1.35;
}

.qg-legal-badges a {
  width: 34px;
  height: 24px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 12px;
}

.qg-footer-links {
  gap: 22px;
}

.qg-footer-links h3 {
  font-size: 12px;
}

.qg-footer-links a {
  font-size: 12px;
  line-height: 1.15;
}

.qg-payments {
  min-height: 42px;
  padding: 8px 16px;
  background: #08345f;
}

.qg-payments img {
  max-width: 55px;
  max-height: 20px;
}

.qg-copyright {
  padding: 8px 16px;
  background: #05213c;
  font-size: 12px;
}

@media (max-width: 1120px) {
  .qg-service-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qg-service-grid p {
    text-align: left;
  }

  .qg-main-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .qg-login {
    grid-template-columns: auto 130px 130px auto auto;
  }
}

@media (max-width: 860px) {
  .qg-hero .qg-shell {
    width: min(100% - 18px, 835px);
  }

  .qg-login {
    grid-template-columns: 1fr 1fr;
  }

  .qg-game-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 84px;
    height: 175px;
  }

  .qg-inline-live .qg-inline-match-grid,
  .qg-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .qg-main-grid {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .qg-hero-media {
    aspect-ratio: 5 / 1.65;
  }

  .qg-game-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 72px;
    height: 149px;
    gap: 5px;
  }

  .qg-game-card.is-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .qg-inline-live .qg-inline-match-grid,
  .qg-highlight-grid,
  .qg-footer-top,
  .qg-footer-links {
    grid-template-columns: 1fr;
  }
}

.qg-mobile-tabbar {
  display: none;
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
    padding-bottom: 66px;
    background-color: #123f70 !important;
  }

  .qg-header {
    background: #001b36;
  }

  .qg-service-bar {
    display: none;
  }

  .qg-main-bar {
    min-height: 60px;
    background: #001b36;
  }

  .qg-main-grid {
    width: 100%;
    min-height: 60px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 8px;
    align-items: center;
  }

  .qg-menu-toggle {
    width: 32px;
    min-width: 32px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .qg-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 0;
    background: #ffffff;
  }

  .qg-logo {
    width: min(50vw, 196px);
    min-height: 54px;
    justify-content: flex-start;
  }

  .qg-logo img {
    width: min(49vw, 194px);
  }

  .qg-login {
    display: flex !important;
    flex-direction: row-reverse;
    grid-column: 3;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: min(174px, 36vw);
    padding: 0;
  }

  .qg-login .qg-promo-link,
  .qg-login label,
  .qg-login .qg-btn-register {
    display: none !important;
  }

  .qg-wheel {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 4px;
    width: auto;
    min-width: 76px;
    min-height: 44px;
    color: #ffffff;
    text-decoration: none;
  }

  .qg-wheel img {
    display: none;
  }

  .qg-wheel::before {
    content: "";
    width: 32px;
    height: 20px;
    border-radius: 4px;
    background:
      radial-gradient(circle at 0 50%, #001b36 0 4px, transparent 5px),
      radial-gradient(circle at 100% 50%, #001b36 0 4px, transparent 5px),
      linear-gradient(135deg, #ffe86a 0%, #d89616 45%, #fff08d 52%, #b97809 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: rotate(-6deg);
  }

  .qg-wheel::after {
    content: "FREE\A ZONE";
    white-space: pre;
    color: #fff34a;
    font-size: 17px;
    line-height: 0.82;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 1px 1px 0 #001b36, 0 1px 3px rgba(0, 0, 0, 0.55);
  }

  .qg-btn-login {
    display: grid !important;
    grid-template-rows: 31px 14px;
    place-items: center;
    width: 42px;
    min-width: 42px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
  }

  .qg-btn-login::before {
    content: "";
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 34%, #0b315c 0 5px, transparent 6px),
      radial-gradient(circle at 50% 82%, #0b315c 0 11px, transparent 12px),
      #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  }

  .qg-product-nav {
    display: block;
    height: 18px;
    min-height: 18px;
    border: 0;
    background: #d6012a;
    overflow: hidden;
  }

  .qg-product-nav .qg-nav-scroll {
    display: none;
  }

  .qg-product-nav::after {
    position: static;
    height: 18px;
    min-height: 18px;
    content: "ACCEDI ALLA TUA FREE ZONE E SCOPRI GIOCHI E PREMI SU MISURA";
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
  }

  .qg-hero {
    padding: 12px 0 29px;
  }

  .qg-hero .qg-shell {
    width: calc(100% - 24px);
  }

  .qg-hero-media {
    aspect-ratio: 2 / 1;
    border: 2px solid #f0cf23;
    border-radius: 8px;
  }

  .qg-hero-media img {
    object-fit: fill;
    object-position: center;
  }

  .qg-hero-controls {
    bottom: -24px;
    min-height: 14px;
  }

  .qg-dots {
    gap: 5px;
  }

  .qg-dots button {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 1px;
    background: #96a7b7;
    opacity: 1;
  }

  .qg-dots button.is-active {
    background: #f4d33a;
  }

  .qg-games-band {
    padding: 0 0 26px;
  }

  .qg-games-band .qg-shell,
  .qg-seo-band .qg-shell {
    width: calc(100% - 24px);
  }

  .qg-game-sections {
    gap: 142px;
  }

  .qg-game-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
  }

  .qg-game-heading > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  .qg-game-heading h3 {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
  }

  .qg-game-heading p {
    min-width: 0;
    margin: 0;
    padding-left: 10px;
    border-left: 1px solid #ffcf25;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
  }

  .qg-game-heading a {
    min-width: 58px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 5px;
    background: #1398e8;
    color: #ffffff;
    font-size: 17px;
    line-height: 24px;
    font-weight: 800;
    text-align: center;
  }

  .qg-game-rail {
    --qg-mobile-card: clamp(106px, 24.4vw, 120px);
    --qg-mobile-gap: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, var(--qg-mobile-card));
    grid-auto-columns: var(--qg-mobile-card);
    gap: var(--qg-mobile-gap);
    width: 100%;
    height: clamp(226px, calc(48.8vw + 14px), 254px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .qg-game-rail::-webkit-scrollbar {
    display: none;
  }

  .qg-game-card {
    border-radius: 10px;
    scroll-snap-align: start;
  }

  .qg-game-card.is-featured {
    grid-column: span 2;
    grid-row: 1 / span 2;
  }

  .qg-game-card img {
    border-radius: 10px;
  }

  .qg-slot-supreme-hero {
    aspect-ratio: 2 / 1;
    border-radius: 8px;
  }

  .qg-seo-band {
    padding-bottom: 32px;
  }

  .qg-footer {
    padding-bottom: 64px;
  }

  .qg-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 58px;
    padding: 3px 8px 5px;
    background: #001b36;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
  }

  .qg-mobile-tabbar a {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
  }

  .qg-mobile-tabbar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.38;
    filter: grayscale(1);
  }

  .qg-mobile-tabbar a:nth-child(2)::after {
    content: "35";
    position: absolute;
    top: 3px;
    left: calc(50% + 3px);
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f4d21e;
    color: #001b36;
    font-size: 12px;
    font-weight: 900;
  }
}
