:root {
  --c: #9f1239;
  --c2: #881337;
  --ink: #1c1412;
  --muted: #6b7280;
  --line: #eadfd6;
  --soft: #fbf7f4;
  --gold: #d97706;
  --green: #059669;
  --max: 768px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Leelawadee UI", "Noto Sans Thai", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, textarea { font: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head {
  max-width: 1100px;
  height: 64px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  color: var(--c);
}
.brand img {
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
}
.brand span { font-size: 18px; letter-spacing: 0.04em; }
.age {
  font-size: 11px;
  font-weight: 800;
  color: var(--c);
  border: 1px solid #fecdd3;
  background: #fff1f2;
  border-radius: 999px;
  padding: 2px 8px;
}
.nav { margin-left: auto; display: flex; gap: 14px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--c); }
.menu-btn {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 7px;
  cursor: pointer;
}
.menu-btn i {
  display: block;
  height: 2px;
  background: var(--c);
  margin: 5px 0;
  border-radius: 2px;
}

.main > section, .main > article, .main > aside {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 16px;
}
.band { background: var(--soft); }
h1, h2 { line-height: 1.3; }
.main h2 { text-align: center; font-size: 24px; margin: 0 0 20px; }

.hero { text-align: center; padding-top: 40px !important; max-width: 640px !important; }
.banner,
.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: #1a0508;
  aspect-ratio: 1;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track { display: flex; height: 100%; transition: transform 0.55s ease; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  padding: 0;
  cursor: pointer;
}
.dot.active { width: 36px; background: #fff; }
.tagline { font-size: 22px; margin: 14px auto 0; max-width: 680px; }
.lede { color: var(--muted); margin: 8px auto 0; max-width: 560px; }

.ctas {
  max-width: 600px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.btn {
  display: block;
  padding: 17px 24px;
  border: 0;
  border-radius: 9px;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-red { background: linear-gradient(135deg, #e11d48, #9f1239); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #3b2b00 !important; }
.btn-wine { background: linear-gradient(135deg, #9f1239, #4c0519); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: auto;
}
.shots figure { margin: 0; min-width: 0; }
.shots img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  object-position: top;
  border-radius: 9px;
  background: #f3f4f6;
}
.shots figcaption {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

.intro { color: #4b5563; }
.intro p { margin: 0 0 14px; }
.intro h3 { color: var(--ink); font-size: 18px; margin: 18px 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.pills li {
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--c);
  border: 1px solid #fecdd3;
  font-size: 13px;
  font-weight: 700;
}

.faq details {
  padding: 16px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.faq summary {
  position: relative;
  padding-right: 26px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; position: absolute; right: 0; color: var(--c); }
.faq details[open] summary::after { transform: rotate(180deg); display: inline-block; }
.faq p { color: #4b5563; margin: 10px 0 0; }

.review {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 12px;
}
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stars { color: var(--gold); font-weight: 800; }
.review small { color: #9ca3af; }
.review h3 { font-size: 16px; margin: 10px 0 6px; }
.review p { color: #4b5563; margin: 0 0 9px; }
.good, .note {
  display: inline-block;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 3px 5px 0 0;
}
.good { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.note { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

.timeline { border-left: 3px solid var(--c); padding-left: 20px; }
.release { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
.release::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 18px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c);
}
.release:first-child::before { background: var(--green); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-head strong { color: var(--c); }
.release-head time { font-size: 13px; color: #9ca3af; }
.badge { font-size: 11px; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 99px; }
.release h3 { font-size: 15px; margin: 5px 0; }
.release p { font-size: 14px; color: #4b5563; margin: 0; }

.discussion { max-width: 800px !important; }
.comment-form {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff1f2; }
.comment-form textarea {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  resize: vertical;
}
.send {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--c), var(--c2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.form-status { grid-column: 2 / 4; font-size: 13px; color: var(--green); min-height: 1.2em; }
.post {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.post-top { display: flex; gap: 10px; align-items: center; }
.post-top b { display: block; font-size: 14px; }
.post-top time { display: block; font-size: 12px; color: #9ca3af; }
.post p { font-size: 14px; color: #374151; margin: 8px 0; }
.post-actions { font-size: 13px; color: #9ca3af; }

.rating { padding: 24px 16px; background: #fff1f2; text-align: center; }
.rating strong { font-size: 30px; color: var(--c); }
.rating span { display: block; color: var(--gold); letter-spacing: 4px; }
.rating b { font-size: 13px; color: var(--muted); }

.crumb { max-width: var(--max); margin: auto; padding: 12px 16px; color: #9ca3af; font-size: 13px; }
.crumb a { color: var(--c); text-decoration: none; }
.inner-hero { padding-top: 28px !important; text-align: center; }
.inner-hero h1 { font-size: 30px; margin: 0 0 8px; }
.inner-hero > p { color: var(--muted); margin: 0; }

.appbox {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.appbox img { width: 120px; height: 72px; object-fit: contain; background: transparent; }
.appbox h2 { text-align: left; margin: 0 0 4px; font-size: 20px; }
.appbox p { margin: 0; color: var(--muted); font-size: 14px; }
.appbox b { font-size: 13px; color: var(--gold); }
.appbox .btn { font-size: 15px; padding: 12px 18px; }

.content { color: #374151; }
.content p { margin: 0 0 15px; }
.content h3 { color: var(--ink); margin: 18px 0 8px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 13px; border: 1px solid var(--line); text-align: left; }
.table th { background: #fff1f2; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.card img { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex: 0 0 86px; }
.card strong { display: block; }
.card span { display: block; font-size: 13px; color: var(--muted); }
.card b { font-size: 12px; color: var(--c); }

.home-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.provider-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-align: center;
}
.provider-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.provider-card strong { font-size: 14px; padding-top: 8px; }
.provider-card.active { outline: 2px solid var(--c); }
.home-games a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.home-games img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.home-games strong, .home-games em {
  display: block;
  padding: 0 8px;
  font-style: normal;
}
.home-games strong { font-size: 13px; padding-top: 8px; }
.home-games em { font-size: 11px; color: var(--muted); padding-bottom: 8px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active { background: var(--c); color: #fff; border-color: var(--c); }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.game-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
}
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card .game-name { font-weight: 800; padding: 10px 12px 0; }
.game-card .game-studio { color: var(--muted); font-size: 13px; padding: 0 12px; }
.game-card.is-open { outline: 2px solid var(--c); }
.game-card[hidden] { display: none !important; }
.game-detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.game-detail[hidden] { display: none; }
.game-detail img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }
.game-detail h2 { text-align: left; margin: 0 0 6px; font-size: 22px; }
.eyebrow { margin: 0; color: var(--c); font-size: 13px; font-weight: 800; }
.note-line { font-size: 13px; color: var(--muted); }

.places { display: grid; gap: 12px; }
.place {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.place strong { display: block; }
.place span { color: var(--muted); font-size: 14px; }

.footer {
  padding: 22px 16px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: #9ca3af;
}
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.footer a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer p { font-size: 12px; margin: 4px 0; }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(159, 18, 57, 0.32);
}

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }
  body.nav-open .nav { display: flex; flex-direction: column; gap: 0; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .head { height: 56px; padding: 0 16px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    padding: 10px 16px 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }
  body.nav-open .nav { display: flex; flex-direction: column; gap: 0; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .main > section, .main > article, .main > aside { padding: 28px 12px; }
  .main h2, .tagline { font-size: 20px; }
  .hero { padding-top: 16px !important; }
  .shots { gap: 8px; }
  .shots img { height: 176px; }
  .comment-form { grid-template-columns: 36px 1fr; }
  .comment-form .send, .form-status { grid-column: 2; }
  .appbox { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .appbox img { width: 108px; height: 64px; }
  .appbox .btn { grid-column: 1 / 3; }
  .inner-hero h1 { font-size: 24px; }
  .related, .game-detail { grid-template-columns: 1fr; }
  .home-games, .provider-row { grid-template-columns: repeat(3, 1fr); }
  .game-detail img { width: 100%; height: auto; aspect-ratio: 1; }
  .table { font-size: 14px; }
}
