:root {
  --blue-600: 43 83 222;
  --blue-400: 22 105 251;
  --blue-300: 15 114 255;
  --blue-160: 50 133 234;
  --blue-150: 69 140 230;
  --blue-100: 83 151 246;

  --green-150: 102 248 87;
  --green-180: 93 255 89;
  --green-200: 82 241 64;
  --green-300: 65 227 49;
  --green-400: 58 202 9;
  --green-500: 20 122 2;

  --button-primary-bg: linear-gradient(178deg, rgb(var(--green-180) / .2) 6.87%,
    rgb(var(--green-180) / 0) 120.68%), radial-gradient(171.59% 82.06% at 51.32% 18.75%,
    rgb(var(--green-200)) .44%, rgb(var(--green-150)) 44.3%,
    rgb(var(--green-300)) 46.51%, rgb(var(--green-400)) 100%);

  --button-primary-hover: linear-gradient( 0deg, rgb(172 255 130 / .35) 0%, rgb(172 255 130 / .35) 100% ), radial-gradient( 171.59% 82.06% at 51.32% 18.75%, rgb(82 241 64) .44%, rgb(102 248 87) 44.3%, rgb(65 227 49) 46.51%, rgb(58 202 9) 100%);

  --button-secondary-bg: radial-gradient(57.41% 52.5% at 50% 100%,
    rgb(153 224 255 / .35) 0%,
    rgb(153 224 255 / .35) 31.84%,
    rgb(153 224 255 / 0) 100%),
    linear-gradient(rgb(var(--blue-100)),
    rgb(var(--blue-150)) 57.84%,
    rgb(var(--blue-160)));

  --button-secondary-hover: linear-gradient( 0deg, rgb(187 235 255 / .36), rgb(187 235 255 / .36) ),
    linear-gradient( 180deg, rgb(83 151 246) 0%, rgb(69 140 230) 57.84%, rgb(50 133 234) 100% ),
    radial-gradient(51.18% 71% at 50% 100%, rgb(141 221 255 / .65) 0%, rgb(141 221 255 / 0) 100%);

  --play-hover: linear-gradient( 0deg, rgb(252 255 104 / .2) 0%,
    rgb(252 255 104 / .2) 100% ), linear-gradient(rgb(252 255 104 / .7),
    rgb(255 191 0 / 0) 98.48%), radial-gradient( 145.85% 88.04% at 50% 15.91%,
    rgb(255 173 0) .44%, rgb(255 221 61) 47.7%, rgb(255 191 0) 48.79%, rgb(255 138 0) 100%);
}

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
}

body {
  background: rgb(29 55 136);
}

img {
  width: 100%;
}

h1,
h2 {
  font-size: 30px;
  text-align: center;
}

h3 {
  font-size: 22px;
  text-align: center;
}

h4 {
  font-size: 18px;
  text-align: center;
}

ul {
  padding-left: 20px;
  list-style: disc;
}

ul li {
  font-size: 14px;
  color: white;
}

.highlighted {
  font-weight: 900;
  color: #ffcc00;
}

.link {
  text-decoration: none;
  color: rgb(255 221 61);
}

.link:hover {
  color: rgb(219 234 255);
}

.text {
  font-weight: 500;
  color: white;
  font-size: 14px;
}

main .container > * {
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 10px 20px;
  border-bottom: 2px solid #3499FE;
  background-image: url(../img/header-pattern.webp),
    linear-gradient(180deg, rgb(var(--blue-600)) 10%, rgb(var(--blue-400)) 45.5%, rgb(var(--blue-300)) 47.68%, rgb(var(--blue-400)));
  background-size: 100px 100px, auto;
  gap: 12px;
}

header .logo {
  height: 100%;
  width: auto;
  margin-right: auto;
}

.button-text {
  color: white;
  text-shadow: 0 calc(1px + 1px) 1px rgb(28 33 39), 0 calc(1px + 1px) 0 rgb(0 0 0 / .15);
  font-weight: 900;
  -webkit-text-stroke: .14em rgb(28 33 39);
  paint-order: stroke fill;
  z-index: 2;
}

.button {
  box-shadow: 0 0 0 1px rgb(10, 27, 48);
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / .15));
  border-radius: 8px;
  text-transform: uppercase;
  padding: 0 10px 2px;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  justify-items: center;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  text-decoration: none;
}

.button::before {
  z-index: 2;
  background-repeat: no-repeat;
  background-position: 4.5px 2.5px;
  background-size: 6px 4.5px;
}

.button:after {
  border: 3px solid rgb(172 255 130 / .2);
}

.button::before,
.button::after {
  position: absolute;
  inset: 0 0 2.5px 0;
  border-radius: 8px;
  content: "";
}

header .button {
  height: 36px;
  font-size: 12px;
}

.primary-button {
  background: var(--button-primary-bg);
}

.primary-button:before {
  background-image: url(../img/glare-primary.webp);
  box-shadow: 0 3px 0 0 rgb(172 255 130 / .7) inset, 0 2.5px 0 0 rgb(20 122 2);
}

.secondary-button {
  background: var(--button-secondary-bg);
}

.secondary-button:before {
  box-shadow: 0 2px 0 0 rgb(255 255 255 / .3) inset, 0 2.5px 0 0 rgb(3 73 164);
}

.secondary-button:after {
  border-color: transparent;
}

.content-button {
  height: 56px;
  width: 100%;
  max-width: 320px;
}

.container {
  padding: 0 20px;
  margin: 0 auto;
}

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.banner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 40px;
}

.welcome-label {
  background: url(../img/welcome-label.png) no-repeat center/cover;
  padding: 0 20px 5px;
  font-size: 14px;
}

.welcome-bonus,
.table-header-title {
  -webkit-text-stroke: 4px rgb(28 33 39);
  paint-order: stroke fill;
  text-shadow: 0 3px 1px rgb(28 33 39), 0 3px 0 rgb(28 33 39 / .15);
  text-align: center;
  line-height: 1.2;
  text-wrap: balance;
  color: rgb(255 221 61);
  font-weight: 900;
}

.welcome-bonus {
  font-size: 24px;
}

.table-header-title {
  font-size: 20px;
}

.banner .button {
  height: 68px;
  max-width: 280px;
  width: 100%;
}

.banner .button-text {
  font-size: 30px;
}

.text-white-stroke {
  -webkit-text-stroke: 2px rgb(28 33 39);
  paint-order: stroke fill;
  text-shadow: 0 2px 1px rgb(28 33 39), 0 2px 0 rgb(0 0 0 / .15);
  font-weight: 900;
  color: white;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.game {
  aspect-ratio: 2 / 3;
  display: grid;
  border-radius: 11px;
  background: linear-gradient(rgb(50 133 234), rgb(83 151 246));
  border: 1px solid rgb(28 33 39);
  box-shadow: 0 3px 0 rgb(0 0 0 / .25), 0 -4px 0 rgb(2 73 172) inset;
}

.game-picture {
  position: relative;
  overflow: hidden;
  grid-area: 1 / 1 / -1 / -1;
  background-color: rgb(31 62 178);
  border-radius: 8px;
  contain: content;
  margin-inline: 3px;
  margin-block: 3px 7px;
}

.game-picture img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-link {
  position: relative;
  grid-area: 1 / 1 / -1 / -1;
  border-radius: 11px;
}

.thumbnail {
  position: relative;
  grid-area: 1 / 1 / 2 / -1;
  display: grid;
  grid-template-rows: min-content 1fr;
  grid-template-columns: 1fr min-content;
  border-radius: 11px;
}

.thumbnail-actions {
  display: grid;
  grid-area: 1 / 1 / -1 / -1;
  grid-template-rows: 54px 16px;
  row-gap: 8px;
  grid-template-columns: auto;
  align-content: center;
  justify-content: center;
  justify-items: center;
  border-radius: 7.5px;
  background-image: url(../img/games/game-hover.webp);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity .2s;
  margin-inline: 3px;
  margin-block: 3px 7px;
}

.game:hover .thumbnail-actions {
  opacity: 1;
}

.game .play {
  position: relative;
  background: linear-gradient( rgb(252 255 104 / .7) 0%, rgb(255 191 0 / 0) 98.48% ), radial-gradient( 145.85% 88.04% at 50% 15.91%, rgb(255 173 0) .44%, rgb(255 221 61) 47.7%, rgb(255 191 0) 48.79%, rgb(255 138 0) 100% );
  z-index: 1;
  align-self: end;
  display: inline-grid;
  font-size: 14px;
  height: 46px;
  width: 46px;
  padding: 13px;
  border-radius: 50%;
  box-shadow: 0 0 2px 0 rgb(255, 255, 255, .5) inset, 0 2px 0 0 rgb(201 73 29);
}

.game .play:before,
.game .play:after {
  position: absolute;
  inset: 0 0 2px 0;
  border-radius: 50%;
  content: "";
}

.game .play:before {
  box-shadow: 0 3px 0 0 rgb(255 255 255 / .45) inset, 0 2px 0 0 rgb(201 73 29);
}

.game .play:after {
  border: 0 solid rgb(255 191 0 / .5);
}

.game .demo-link {
  z-index: 1;
  align-self: start;
  display: inline-grid;
  font-size: 12px;
  font-weight: 800;
}

.button-wrapper {
  display: flex;
  justify-content: center;
}

.list-wrapper h4,
.text-wrapper h4 {
  margin-bottom: 20px;
}

.columns {
  display: grid;
  gap: 20px;
}

.game-table,
.payment-table {
  display: grid;
  background-color: #5696F2;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #5696F2;
}

.game-table:has(.desc),
.payment-table:has(.desc) {
  gap: 3px;
  grid-template-columns: 120px 1fr;
}

.game-table .row,
.payment-table .row {
  display: contents;
  background: #195cab;
}

.game-table .row > *,
.payment-table .row > * {
  padding: 16px;
}

.game-table .title,
.game-table .desc,
.payment-table .desc {
  display: flex;
  align-items: center;
}

.game-table .row:nth-child(odd) .title,
.game-table .row:nth-child(odd) .desc,
.payment-table .row:nth-child(odd) .title,
.payment-table .row:nth-child(odd) .desc,
.assessment-table .assessment-table-row:nth-child(odd) .title,
.assessment-table .assessment-table-row:nth-child(odd) .desc {
  background: #185BB6;
}


.game-table .row:nth-child(even) .title,
.game-table .row:nth-child(even) .desc,
.payment-table .row:nth-child(even) .title,
.payment-table .row:nth-child(even) .desc,
.assessment-table .assessment-table-row:nth-child(even) .title,
.assessment-table .assessment-table-row:nth-child(even) .desc {
  background: #1140BA;
}

.game-table .title,
.payment-table .title {
  font-weight: bold;
  color: #ffcc00;
  font-size: 14px;
}

.game-table .title span,
.payment-table .title span {
  color: white;
}

.game-table .desc,
.payment-table .desc {
  color: #ffffff;
  font-size: 12px;
}

.bonus-table,
.assessment-table {
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #5696F2;
}

.bonus-table .bonus-table-header {
  padding: 16px 12px;
}

.bonus-table .bonus-table-header,
.assessment-table .assessment-table-header {
  background-image: url(../img/header-pattern.webp),
    linear-gradient(180deg, rgb(var(--blue-600)) 10%, rgb(var(--blue-400)) 45.5%, rgb(var(--blue-300)) 47.68%, rgb(var(--blue-400)));
  background-size: 100px 100px, auto;
  text-align: center;
}

.assessment-table .assessment-table-header .title {
  padding: 16px 12px;
}

.assessment-table .assessment-table-header .title + .title {
  border-left: 3px solid #5696F2;
}

.assessment-table .assessment-table-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  text-align: left;
}

.bonus-table .bonus-table-body,
.assessment-table .assessment-table-body {
  display: grid;
  gap: 3px;
  grid-template-rows: auto auto;
  background-color: #5696F2;
}

.bonus-table .bonus-table-body {
  grid-template-columns: repeat(3, 1fr);
}

.assessment-table .assessment-table-body {
  grid-template-columns: 120px 1fr;
}

.bonus-table .bonus-table-row,
.assessment-table .assessment-table-row {
  display: contents;
}

.bonus-table .bonus-table-row {
  grid-row: 2;
}

.bonus-table .bonus-table-row .title {
  grid-row: 1;
}

.bonus-table .bonus-table-row .title,
.assessment-table .assessment-table-row .title {
  font-size: 14px;
  color: #FFDD3D;
  font-weight: 900;
  background: #185BB6;
  padding: 16px 12px;
}

.assessment-table .assessment-table-row .title,
.assessment-table .assessment-table-row .desc {
  display: flex;
  align-items: center;
}

.bonus-table .bonus-table-row .desc,
.assessment-table .assessment-table-row .desc {
  font-size: 12px;
  color: white;
  background: #1140BA;
  padding: 16px 12px;
}

.faq {
  border: 1px solid #1B1985;
  background: linear-gradient(94deg, #2365B6 -15.95%, #2967E7 100%);
  border-radius: 12px;
  overflow: hidden;
  padding: 0 20px;
  height: max-content;
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 32px 0 0;
  font-size: 14px;
  position: relative;
}

.faq-header .icon {
  position: absolute;
  right: 0;
  width: 28px;
}

.faq .icon-minus {
  opacity: 0;
}

.faq.active .icon-plus {
  opacity: 0;
}

.faq.active .icon-minus {
  opacity: 1;
}

.faq-body {
  font-size: 14px;
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  color: white;
}

.faq-body span {
  display: block;
  margin-bottom: 10px;
}

footer {
  background: #2640AB;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 16px 20px;
}

footer .text {
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    filter: drop-shadow(0 0 10px rgba(34, 136, 255, .7));
  }

  .primary-button:hover {
    background: var(--button-primary-hover);
    box-shadow: 0 0 2px 0 rgb(255, 255, 255, .73) inset, 0 2.5px 0 0 rgb(var(--green-500));
  }

  .secondary-button:hover {
    background: var(--button-secondary-hover);
    box-shadow: 0 0 2px 0 rgb(255, 255, 255, .4) inset, 0 2.5px 0 0 rgb(3 73 164);
  }

  .game .play:hover {
    background: var(--play-hover);
    box-shadow: 0 0 31px 0 rgb(255 247 194) inset, 0 2px 0 0 rgb(201 73 29), 0 3px 0 0 rgb(255 255 255 / .4) inset;
  }
}

@media screen and (min-width: 768px) {
  .banner {
    justify-content: flex-start;
    align-items: center;
  }

  .banner-content {
    padding: 0 30px 50px;
  }

  h1,
  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 26px;
  }

  .text {
    font-size: 16px;
  }

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

  .game-table,
  .payment-table {
    text-align: left;
    grid-template-columns: 170px 1fr;
  }

  .game-table .row .title,
  .payment-table .row .title {
    font-size: 16px;
  }

  .game-table .desc,
  .payment-table .desc {
    font-size: 14px;
  }

  .bonus-table .bonus-table-row .title,
  .assessment-table .assessment-table-row .title {
    font-size: 16px;
  }

  .assessment-table .assessment-table-header,
  .assessment-table .assessment-table-body {
    grid-template-columns: 170px 1fr;
  }

  .bonus-table .bonus-table-row .desc,
  .assessment-table .assessment-table-row .desc {
    font-size: 14px;
  }

  .faq-header {
    font-size: 16px;
  }
}

@media screen and (min-width: 960px) {
  .container {
    max-width: 1228px;
  }

  .table-header-title {
    font-size: 22px;
  }

  .banner {
    max-width: 1248px;
    margin: 0 auto;
  }

  .banner-content {
    padding: 0 70px;
  }

  .game-list {
    gap: 20px;
    grid-template-columns: repeat(6, 1fr);
  }

  .game-table,
  .payment-table,
  .game-table:has(.desc),
  .payment-table:has(.desc) {
    grid-template-columns:repeat(5, 1fr);
    grid-template-rows: auto auto;
  }

  .assessment-table .assessment-table-header,
  .assessment-table .assessment-table-body {
    grid-template-columns: 230px 1fr;
  }

  .game-table .row .title,
  .payment-table .row .title {
    grid-row: 1;
  }

  .game-table .row,
  .payment-table .row {
    grid-row: 2;
  }
}
