* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: Inter, Arial, sans-serif;
  color: #111936;
  background: #fff;
  line-height: 1.45;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: auto; padding: 0 24px; }

header {
  height: 84px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f3;
  background: white;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
}
header .logo img {
  max-width: 240px;
}
.menu {
  display: flex;
  gap: 36px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  background: linear-gradient(120deg, #fff 45%, #ffe8ec);
  padding: 48px 0 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 10px 16px;
  background: #fff4f6;
  border-radius: 30px;
  color: #17203a;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}
h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
h1 span { color: #ff334d; }
.hero p {
  max-width: 560px;
  color: #4c5268;
  font-size: 18px;
  margin-bottom: 28px;
}
.buttons { display: flex; gap: 18px; }
.btn {
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 800;
  display: inline-block;
}
.btn-primary { background: #ff334d; color: white; }
.btn-outline {
  border: 2px solid #ff334d;
  color: #ff334d;
  background: white;
}
.hero-art {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-art img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 72%);
}

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.feature, .card {
  background: white;
  border: 1px solid rgba(255, 51, 77, 0.12);
  border-radius: 14px;
  box-shadow:
    0 0 12px rgba(255, 51, 77, 0.10),
    0 0 30px rgba(255, 51, 77, 0.07),
    0 0 60px rgba(255, 51, 77, 0.04);
}
.card {
  display: flex;
  flex-direction: column;
}
.card .list-item {
  flex: 1;
}
.feature {
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.icon { color: #ff334d; font-size: 28px; }
.feature h4 { font-size: 14px; }
.feature p { font-size: 12px; color: #697086; }

main { padding: 28px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.content-grid--equal {
  grid-template-columns: 1fr 1fr;
}
.card { padding: 24px; }
.card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}
.card-head a { color: #ff334d; font-weight: 800; font-size: 13px; }
.card-head-note { color: #ff334d; font-weight: 800; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  color: #7b8194;
  text-transform: uppercase;
  padding-bottom: 12px;
}
td {
  padding: 16px 8px;
  border-top: 1px solid #eef1f6;
  font-weight: 700;
  vertical-align: middle;
}
.rank { font-size: 20px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rank-gold { color: #DAA520; }
.rank-silver { color: #A8A8A8; }
.rank-bronze { color: #8B4513; }
.rank-default { color: #111936; }
.casino { display: flex; align-items: center; gap: 12px; }
.bonus { font-size: 13px; white-space: nowrap; }
.bonus .small { font-size: 11px; }
.casino-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #f5f6fa;
  padding: 4px;
}
.small { color: #7a8194; font-size: 12px; font-weight: 500; }
.rating { font-size: 24px; color: #101831; }
.stars { color: #ff334d; font-size: 12px; }
.visit {
  background: #ff334d;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
}

.side-stack { display: grid; gap: 18px; }
.promo {
  border-radius: 14px;
  padding: 24px;
  min-height: 150px;
  background: #fff3f5;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
}
.promo:nth-child(2) { background: #fff7fb; }
.promo:nth-child(3) { background: #f3f7ff; }
.promo-img {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.label {
  color: #ff334d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.promo h3 { font-size: 20px; margin: 4px 0; }
.promo p { color: #596176; font-size: 13px; }
.promo a { color: #ff334d; font-weight: 900; font-size: 13px; display: inline-block; margin-top: 8px; }

.browse-heading {
  margin-top: 28px;
  margin-bottom: 14px;
}
.about-section {
  margin: 28px 0;
}
.about-section h2 {
  margin-bottom: 14px;
  font-size: 24px;
}
.about-section p {
  color: #4c5268;
  line-height: 1.6;
}
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 14px 0 28px;
}
.cat {
  padding: 24px 16px;
  border: 1px solid rgba(255, 51, 77, 0.12);
  border-radius: 12px;
  background: white;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 0 12px rgba(255, 51, 77, 0.10),
    0 0 30px rgba(255, 51, 77, 0.07),
    0 0 60px rgba(255, 51, 77, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cat:hover {
  border-color: rgba(255, 51, 77, 0.25);
  box-shadow:
    0 0 16px rgba(255, 51, 77, 0.15),
    0 0 40px rgba(255, 51, 77, 0.10),
    0 0 80px rgba(255, 51, 77, 0.06);
}
.cat span {
  display: block;
  color: #111936;
}

a.list-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #eef1f6;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
a.list-item:hover {
  background: rgba(255, 51, 77, 0.03);
}
.list-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #eef1f6;
  align-items: center;
}
.list-item:hover {
  background: rgba(255, 51, 77, 0.03);
}
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f6fa;
  object-fit: contain;
  padding: 4px;
}
.thumb-icon {
  background: #fff4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.newsletter {
  background: linear-gradient(135deg, #ffe4e8 0%, #fff0f2 100%);
  border-radius: 16px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 51, 77, 0.10);
}
.newsletter h2 {
  font-size: 22px;
  color: #111936;
  margin-bottom: 6px;
}
.newsletter > div > p {
  color: #596176;
  font-size: 14px;
  line-height: 1.5;
}
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter .form-row {
  display: flex;
  gap: 10px;
}
.newsletter .form-group input {
  padding: 14px 16px;
  border: 1px solid #e3e6ef;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.newsletter .form-group input::placeholder {
  color: #a0a8b8;
}
.newsletter button[type="submit"] {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
}

/* Form fields & validation */
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group input {
  width: 100%;
  padding: 17px;
  border: 1px solid #e3e6ef;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: #ff334d;
}
.input-error {
  border-color: #ff334d !important;
  background: #fff5f6 !important;
}
.form-error {
  display: none;
  color: #ff334d;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 25, 54, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow:
    0 0 20px rgba(255, 51, 77, 0.12),
    0 0 60px rgba(255, 51, 77, 0.06),
    0 24px 48px rgba(17, 25, 54, 0.15);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #111936;
}
.modal > p {
  color: #596176;
  font-size: 14px;
  margin-bottom: 20px;
}
.modal .form-group {
  margin-bottom: 12px;
}
.modal .form-group input {
  padding: 14px 16px;
}
.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #7b8194;
  line-height: 1;
}
.close-modal:hover { color: #ff334d; }
.modal-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 4px;
}

footer {
  border-top: 1px solid #eef1f6;
  padding: 32px 0;
  color: #596176;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 30px;
}
footer h4 { color: #101831; margin-bottom: 10px; }
footer li { list-style: none; margin: 7px 0; }
footer li a { color: inherit; text-decoration: none; cursor: pointer; }
footer li a:hover { color: #ff334d; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #101831;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.socials a {
  color: #596176;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.socials a:hover { color: #ff334d; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { min-height: 220px; }
  .hero-art img { max-width: 320px; width: 100%; }
  .hero p { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .badge { margin-left: auto; margin-right: auto; }

  .features { display: none; }

  .content-grid, .content-grid--equal { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .newsletter form { align-items: center; }
  .newsletter .form-row { flex-direction: column; width: 100%; }
  .newsletter button[type="submit"] { align-self: center; width: 100%; }

  .categories { grid-template-columns: 1fr 1fr; }
  .cat { padding: 16px 12px; font-size: 13px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  h1 { font-size: 36px; letter-spacing: -1px; }
  .menu { display: none; }

  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 12px; width: max-content; min-width: 100%; }
  thead { display: none; }
  td { padding: 10px 6px; }
  .rank svg { width: 20px; height: 20px; }
  .visit { padding: 8px 12px; font-size: 12px; }

  .promo { grid-template-columns: 60px 1fr; padding: 16px; min-height: auto; }
  .promo-img { width: 52px; height: 52px; }
  .promo h3 { font-size: 16px; }

  .list-item { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .thumb { width: 46px; height: 34px; }

  .card-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .form-row { flex-direction: column; }
  .modal { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  .features { grid-template-columns: 1fr; }
  .features .feature:last-child { max-width: none; }
  .categories { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
}
