:root {
  /* OK Win logo colors – red-orange, white, dark */
  --okwin-red: #e11d48;
  --okwin-orange: #ea580c;
  --okwin-red-dark: #b91c3a;
  --okwin-orange-dark: #c2410c;
  --okwin-glow: rgba(225, 29, 72, 0.4);
  --okwin-glow-orange: rgba(234, 88, 12, 0.25);
  --bg-top: #0c0a0b;
  --bg-mid: #140f12;
  --bg-bottom: #1a1216;
  --ink: #f5f0f2;
  --muted: #c9b8be;
  --line: rgba(225, 29, 72, 0.2);
  --line-strong: rgba(225, 29, 72, 0.35);
  --glass: rgba(26, 18, 22, 0.72);
  --glass-strong: rgba(36, 22, 28, 0.85);
  --brand: #ff6b4a;
  --brand-strong: #ea580c;
  --accent: #ffe4dc;
  --accent-strong: #ffc4b8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 46px rgba(0, 0, 0, 0.5);
  --blur: 14px;
  --anchor-offset: 78px;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--okwin-red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

#download,
#register,
#login,
#deposit,
#withdraw {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(900px 360px at 92% -8%, var(--okwin-glow-orange), transparent 58%),
    radial-gradient(680px 300px at -10% 16%, rgba(225, 29, 72, 0.12), transparent 56%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 44%, var(--bg-bottom));
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  margin: 0 0 0.82rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.8vw, 3.35rem); }
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--line-strong);
}
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
.top-cta-btn:focus-visible,
.main-nav a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-inline: clamp(32px, 7vw, 80px);
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.top-cta-bar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(36, 22, 28, 0.95), rgba(26, 16, 20, 0.9));
}

.main-nav-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 12, 16, 0.95);
}

.top-cta-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.62rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.top-cta-btn {
  text-decoration: none;
  color: #fff5f7;
  background: linear-gradient(135deg, var(--okwin-red), var(--okwin-red-dark));
  border: 1px solid rgba(255, 143, 164, 0.6);
  border-radius: 999px;
  padding: 0.4rem 0.98rem;
  min-width: 102px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 8px 18px var(--okwin-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.top-cta-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--okwin-orange), var(--okwin-red));
  box-shadow: 0 10px 22px var(--okwin-glow-orange);
}

.main-nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  border-radius: 0;
  width: auto;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.18s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff4f6;
  background: linear-gradient(135deg, var(--okwin-red), var(--okwin-red-dark));
  border-color: rgba(255, 143, 164, 0.7);
  box-shadow: 0 8px 18px var(--okwin-glow);
}

main {
  padding: 2.2rem 0 4rem;
}

.section-center {
  text-align: center;
}

.section-center h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-center p,
.section-center ol {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

.section-center ol {
  list-style-position: inside;
  padding-left: 0;
  text-align: left;
  display: inline-block;
}

section {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-soft);
}

/* About page – intro with image */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.about-intro-content {
  min-width: 0;
}

.about-hero-figure {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 8, 10, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.about-hero-figure img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  display: block;
}

/* Home page: remove panel backgrounds for Download/Register/Login blocks */
#download,
#register,
#login,
#deposit,
#withdraw {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#download {
  padding-inline: clamp(1.25rem, 3vw, 2.25rem);
}

#register,
#login,
#deposit
#withdraw {
  padding-inline: clamp(1.25rem, 3vw, 2.25rem);
}

#download .download-steps,
#register .split-copy,
#login .split-copy,
#deposit .split-copy,
#withdraw .split-copy,
#register .split-media,
#login .split-media,
#deposit .split-media,
#withdraw .split-media,
#download .full-image {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#download .full-image,
#register .split-media,
#login .split-media,
#deposit .split-media,
#withdraw .split-media {
  padding: 0;
}

#download .download-layout {
  align-items: start;
}

#download .download-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}

/* Hero section – styled for OK Win logo colors */
.hero {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, var(--okwin-glow-orange), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(225, 29, 72, 0.15), transparent 50%),
    linear-gradient(165deg, rgba(36, 22, 28, 0.9), rgba(26, 16, 22, 0.95));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.08), var(--shadow-soft);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-bottom: 1.5rem;
}

.hero-content {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 8, 10, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--okwin-glow);
}

.hero-figure img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
}

.hero-below {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-below p {
  margin-bottom: 0.85rem;
  color: var(--muted);
  max-width: none;
  width: 100%;
}

.hero-below p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.82rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 142, 164, 0.5);
  background: rgba(225, 29, 72, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin: 1.2rem 0 1.4rem;
}

.btn {
  text-decoration: none;
  border-radius: 11px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff5f7;
  background: linear-gradient(135deg, var(--okwin-red), var(--okwin-red-dark));
  border: 1px solid rgba(255, 143, 164, 0.7);
  box-shadow: 0 10px 20px var(--okwin-glow);
}

.btn-secondary {
  color: var(--accent);
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid var(--line-strong);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.45rem;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(36, 22, 28, 0.5);
}

.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(26, 18, 22, 0.7);
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 0.84rem 0.92rem;
  text-align: left;
}

.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  width: 35%;
  color: var(--ink);
  background: rgba(225, 29, 72, 0.12);
  font-weight: 800;
}

.table-wrap td {
  background: rgba(36, 22, 28, 0.5);
}

.download-layout {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 1rem;
  align-items: center;
}

.download-steps,
.split-copy {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(36, 22, 28, 0.5);
  min-width: 0;
}

.download-steps li,
.split-copy li {
  margin-bottom: 0.45rem;
}

.section-figure {
  margin: 0;
  min-width: 0;
}

.section-figure .full-image {
  display: block;
}

.full-image {
  width: 100%;
  margin: 0;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(36, 22, 28, 0.5);
  padding: 0.6rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.2rem;
  align-items: center;
}

.split-media {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem;
  background: rgba(36, 22, 28, 0.5);
  min-width: 0;
}

.split-copy {
  min-width: 0;
}

.split-media img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center top;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.78rem;
  background: rgba(36, 22, 28, 0.6);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(225, 29, 72, 0.15) inset;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.card h3 {
  margin-top: 0.74rem;
  font-size: 1.17rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-list {
  padding-left: 1.1rem;
}

.contact-list,
.blog-list {
  list-style: none;
  padding: 0;
}

.contact-list li,
.blog-list li {
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  margin-top: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(36, 22, 28, 0.6);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.contact-form .btn {
  margin-top: 0.25rem;
  width: fit-content;
}

.blog-overview-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.35rem;
  align-items: start;
}

.blog-overview-layout > div {
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.blog-grid-single .blog-post-card {
  width: 100%;
}

.blog-grid-single .blog-post-card img {
  height: 205px;
}

.blog-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(36, 22, 28, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(225, 29, 72, 0.15) inset;
}

.blog-post-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: rgba(12, 8, 10, 0.6);
}

.blog-post-body {
  padding: 1rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.recent-sidebar {
  position: sticky;
  top: 136px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(28, 18, 22, 0.88);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.recent-sidebar h3 {
  margin-bottom: 0.85rem;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.recent-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.recent-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recent-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.recent-item img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.recent-item span {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.recent-title {
  display: block;
  font-size: 0.95rem;
}

.recent-item:hover span {
  color: var(--accent);
}

.recent-author {
  display: block;
  margin-top: 0.25rem;
  margin-left: calc(84px + 0.7rem);
  font-size: 0.86rem;
  color: var(--accent-strong);
}

.recent-date {
  display: block;
  margin-top: 0.25rem;
  margin-left: calc(84px + 0.7rem);
  font-size: 0.88rem;
  color: var(--muted);
}

.post-author-box {
  margin-top: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 143, 164, 0.25);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(225, 29, 72, 0.12), rgba(36, 22, 28, 0.88));
}

.post-author-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 800;
}

.post-author-name {
  margin: 0;
  font-weight: 800;
  color: #fff7f8;
  font-size: 1.02rem;
  line-height: 1.3;
}

.post-author-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-image {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid rgba(255, 143, 164, 0.75);
  object-fit: cover !important;
  object-position: center;
  background: rgba(12, 8, 10, 0.6);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.post-author-bio {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

#article-title {
  margin-top: 0.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.18;
  text-wrap: pretty;
  max-width: 26ch;
}

#article-meta {
  margin-bottom: 0.35rem !important;
}

.article-hero {
  margin: 0.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(36, 22, 28, 0.6);
}

.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: rgba(12, 8, 10, 0.6);
}

#article-content {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(28, 18, 22, 0.82);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

#article-content p:last-child {
  margin-bottom: 0;
}

#article-content h2,
#article-content h3 {
  margin-top: 1.2rem;
}

#article-content h2:first-child,
#article-content h3:first-child {
  margin-top: 0;
}

#article-content p,
#article-content ul,
#article-content ol {
  line-height: 1.75;
}

#article-content ul,
#article-content ol {
  padding-left: 1.15rem;
}

#article-content li {
  margin-bottom: 0.45rem;
}

#article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#article-content img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 8, 10, 0.6);
  padding: 0.4rem;
}

#article-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--brand);
  background: rgba(225, 29, 72, 0.08);
  border-radius: 8px;
}

.blog-pagination {
  margin-top: 1rem;
}

.pager-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.pager-btn {
  text-decoration: none;
  color: #fff5f7;
  background: linear-gradient(135deg, var(--okwin-red), var(--okwin-red-dark));
  border: 1px solid rgba(255, 143, 164, 0.7);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
}

.pager-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.pager-status {
  color: var(--muted);
  font-weight: 700;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.84rem 1rem;
  background: rgba(36, 22, 28, 0.6);
  margin-bottom: 0.72rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(36, 22, 28, 0.5);
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 0 1.2rem;
  background: linear-gradient(180deg, rgba(14, 10, 12, 0.98), rgba(18, 12, 15, 0.98));
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(26, 18, 22, 0.8);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.footer-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line-strong);
}

.footer-share-label {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.social-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.social-btn svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: currentColor;
}

.social-fb { background: #1877f2; border-color: #1877f2; }
.social-wa { background: #25d366; border-color: #25d366; }
.social-tg { background: #229ed9; border-color: #229ed9; }
.social-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  border-color: #b94bc0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.footer-brand-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 62ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-links a:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s ease forwards;
}

main .reveal:nth-of-type(2) { animation-delay: 0.07s; }
main .reveal:nth-of-type(3) { animation-delay: 0.12s; }
main .reveal:nth-of-type(4) { animation-delay: 0.16s; }
main .reveal:nth-of-type(5) { animation-delay: 0.2s; }
main .reveal:nth-of-type(6) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Tablet & small desktop (980px) ========== */
@media (max-width: 980px) {
  :root {
    --anchor-offset: 75px;
  }

  .container {
    padding-inline: clamp(24px, 5vw, 44px);
  }

  main {
    padding: 1.5rem 0 3rem;
  }

  section {
    padding: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
  }

  .split,
  .games-grid,
  .two-col,
  .blog-grid,
  .blog-overview-layout,
  .download-layout,
  .footer-main,
  .about-intro {
    grid-template-columns: 1fr;
  }

  /* Mobile nav: Row 1 = Download Register Login (flex) | Row 2 = Logo | Row 3 = Home About Contact (flex) */
  .top-cta-wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding: 0.5rem 0 0.6rem;
  }

  .top-cta-btn {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    min-width: 0;
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 120px;
  }

  .main-nav-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 0 0.75rem;
    min-height: auto;
  }

  .brand {
    display: block;
    text-align: center;
  }

  .brand img {
    max-height: 72px;
    margin: 0 auto;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
  }

  .main-nav a {
    text-align: center;
    font-size: 0.82rem;
    padding: 0.5rem 0.5rem;
    border-radius: 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 120px;
  }

  .hero {
    padding: clamp(1rem, 2.5vw, 1.5rem);
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-figure {
    margin-top: 0.5rem;
    order: 2;
    padding: 0.5rem;
  }

  .hero-figure img {
    max-height: 280px;
  }

  .about-hero-figure img {
    max-height: 320px;
  }

  .about-intro {
    gap: 1.25rem;
  }

  #download .section-figure .full-image,
  .full-image {
    max-height: 360px;
  }

  .split {
    gap: 1rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-below {
    padding-top: 1rem;
  }

  .cta-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cta-row .btn {
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .table-wrap {
    margin-inline: -0.5rem;
    border-radius: var(--radius-sm);
  }

  .table-wrap table {
    min-width: 320px;
    font-size: 0.9rem;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 0.6rem 0.75rem;
  }

  .card {
    padding: 0.65rem;
  }

  .card img {
    height: 160px;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-form .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .recent-sidebar {
    position: static;
    top: auto;
  }

  .recent-date {
    margin-left: 0;
  }

  .recent-author {
    margin-left: 0;
  }

  #article-content {
    padding: 1rem;
  }

  #article-content img {
    max-height: 320px;
  }

  .recent-item {
    grid-template-columns: 70px 1fr;
    gap: 0.6rem;
  }

  .recent-item img {
    width: 70px;
    height: 52px;
  }

  .footer-share-row {
    align-items: flex-start;
  }

  .footer-main {
    gap: 1rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
    padding-top: 0.35rem;
    gap: 0.62rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-shell {
    padding: 1rem;
  }

  .footer-disclaimer {
    max-width: none;
  }
}

/* ========== Mobile (640px) ========== */
@media (max-width: 640px) {
  :root {
    --anchor-offset: 70px;
  }

  .container {
    padding-inline: clamp(20px, 5vw, 32px);
  }

  main {
    padding: 1.25rem 0 2.5rem;
  }

  section {
    padding: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 0.9rem;
    border-radius: var(--radius-md);
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    padding-bottom: 0.35rem;
  }

  h3 {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }

  p, ul, ol {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }

  .main-nav a {
    font-size: 0.78rem;
    padding: 0.5rem 0.25rem;
  }

  .top-cta-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }

  .hero {
    padding: clamp(0.9rem, 3vw, 1.2rem);
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .cta-row {
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
  }

  .hero-figure img {
    max-height: 220px;
  }

  .hero-below p {
    font-size: 0.95rem;
  }

  #article-title {
    margin-bottom: 0.7rem;
  }

  .article-hero img {
    height: 320px;
  }

  #article-content {
    padding: 0.9rem;
  }

  #article-content h2,
  #article-content h3 {
    margin-top: 1rem;
  }

  .download-layout {
    gap: 0.75rem;
  }

  .split-media img {
    height: auto;
    max-height: 280px;
    min-height: 200px;
  }

  #download .section-figure .full-image,
  .full-image {
    max-height: 320px;
  }

  #register,
  #login,
  #deposit,
  #withdraw {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .games-grid {
    gap: 0.75rem;
  }

  .card img {
    height: 140px;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .two-col {
    gap: 0.75rem;
  }

  .feature-list {
    padding-left: 1rem;
  }

  .contact-list li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.65rem 0.75rem;
    font-size: 16px; /* prevents zoom on iOS */
  }

  details {
    padding: 0.65rem 0.85rem;
  }

  summary {
    font-size: 0.95rem;
  }

  .footer-brand-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-brand-row img {
    max-height: 48px;
  }

  .footer-disclaimer {
    font-size: 0.88rem;
  }

  .footer-copy {
    font-size: 0.85rem;
    padding-top: 0.85rem;
  }
}

/* ========== Small phones (400px) ========== */
@media (max-width: 400px) {
  .container {
    padding-inline: 16px;
  }

  #download {
    padding-inline: 16px;
  }

  #register,
  #login,
  #deposit,
  #withdraw {
    padding-inline: 16px;
  }

  .split-media img {
    max-height: 240px;
    min-height: 180px;
  }

  .about-hero-figure img {
    max-height: 260px;
  }

  .full-image {
    max-height: 280px;
  }

  .top-cta-wrap {
    gap: 0.35rem;
    padding: 0.45rem 0 0.5rem;
  }

  .top-cta-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
    min-height: 42px;
  }

  .main-nav-wrap {
    gap: 0.5rem;
    padding: 0.5rem 0 0.6rem;
  }

  .main-nav {
    gap: 0.35rem;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding: 0.45rem 0.35rem;
    min-height: 42px;
  }

  .brand img {
    max-height: 60px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .hero-figure img {
    max-height: 180px;
  }

  .table-wrap table {
    min-width: 280px;
    font-size: 0.85rem;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 0.5rem 0.6rem;
  }
}

/* ========== Accessibility: Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus visible – ensure keyboard focus is clear (Best Practices / A11y) */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

#referral-section .split-media picture img {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center center;
}
