/* Age-of-Empires-inspired medieval strategy aesthetic.
   Pure CSS: parchment, stone, brass, wood and heraldic details. */

:root {
  --ink: #241d13;
  --ink-soft: #3d3321;
  --stone: #c6b894;
  --stone-dark: #7b6b4a;
  --parchment: #f0e4c2;
  --parchment-light: #faf4e2;
  --wood: #57351f;
  --wood-dark: #382116;
  --red: #8b2f2c;
  --red-dark: #62201e;
  --blue: #274c63;
  --gold: #c59b43;
  --gold-light: #e1c477;
  --forest: #39513a;
  --line: rgba(36, 29, 19, .18);
  --shadow: 0 14px 34px rgba(36, 29, 19, .16);
  --radius: 12px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(197,155,67,.12), transparent 26rem),
    repeating-linear-gradient(0deg, #ece0bf 0 31px, #e8dbb8 32px);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .5rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: .65rem .9rem;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #f7efdc;
  background:
    linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
    linear-gradient(90deg, var(--wood-dark), var(--wood), var(--wood-dark));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 5px 18px rgba(0,0,0,.2);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 6px;
  opacity: .6;
  background: repeating-linear-gradient(90deg, #8b7442 0 22px, #6f5b33 22px 44px);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.desktop-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: clamp(.7rem, 1.7vw, 1.35rem);
}

.desktop-nav a,
.footer-nav a {
  color: #f2e6c7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold-light);
}

.header-cta,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.header-cta {
  color: #fff8e7;
  background: linear-gradient(#9e3934, var(--red-dark));
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  white-space: nowrap;
}

.header-cta svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-light);
}

.header-cta:hover,
.header-cta:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff8e7;
  background:
    linear-gradient(135deg, rgba(39,76,99,.95), rgba(26,49,62,.97) 55%, rgba(36,29,19,.98));
  border-bottom: 5px solid var(--gold);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  opacity: .13;
  background:
    linear-gradient(30deg, transparent 45%, #fff 46% 47%, transparent 48%) 0 0 / 46px 46px;
}

.hero::after {
  inset: auto 0 0;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 18px, #80662d 18px 36px);
  opacity: .55;
}

.hero-inner {
  position: relative;
  padding: clamp(2rem, 5vw, 4.6rem) 0 clamp(1.9rem, 4vw, 3.6rem);
}

.hero-crest {
  position: absolute;
  top: .6rem;
  right: .1rem;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  display: grid;
  place-items: center;
  color: rgba(225,196,119,.16);
  border: 3px solid rgba(225,196,119,.12);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.hero-crest .tower {
  position: absolute;
  font-size: clamp(5rem, 10vw, 9rem);
}

.hero-crest .swords {
  position: absolute;
  bottom: 10%;
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 .38rem;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}

.hero-intro {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-top: .95rem;
  color: #efe5ce;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-intro p {
  margin: 0;
}

.author-card {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .72rem;
  padding: .56rem .7rem;
  background: rgba(26,33,35,.45);
  border: 1px solid rgba(225,196,119,.38);
  border-radius: 8px;
}

.author-card img,
.author-bio img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
  font-family: Arial, Helvetica, sans-serif;
}

.author-card p {
  margin: .05rem 0 0;
  color: #cfc5ad;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
}

.verified-badge {
  padding: .09rem .42rem;
  color: #fff7dc;
  background: var(--forest);
  border: 1px solid rgba(225,196,119,.45);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

/* Listing */
.listing-section {
  padding: clamp(1.55rem, 4vw, 3.2rem) 0 clamp(2.2rem, 4vw, 4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid rgba(87,53,31,.28);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.medieval-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff7dc;
  background: var(--red);
  border: 3px double var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(98,32,30,.2);
  font-size: 1.2rem;
}

.casino-list {
  display: grid;
  gap: .88rem;
}

.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(185px,.9fr) minmax(245px,1.1fr) minmax(240px,1fr) 165px;
  align-items: center;
  gap: .95rem;
  padding: .95rem 1rem .95rem .82rem;
  background:
    linear-gradient(90deg, rgba(197,155,67,.07), transparent 28%),
    var(--parchment-light);
  border: 1px solid rgba(87,53,31,.24);
  border-left: 5px solid var(--stone-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(36,29,19,.08);
}

.casino-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid rgba(197,155,67,.19);
  border-radius: 8px;
}

.casino-card--featured {
  border-left-color: var(--red);
  box-shadow: 0 14px 34px rgba(98,32,30,.13);
}

.casino-rank {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff6dc;
  background: linear-gradient(#4d412c, var(--ink));
  border: 2px solid var(--gold);
  border-radius: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  transform: rotate(-2deg);
}

.casino-brand {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: .7rem;
}

.casino-logo {
  width: 84px;
  height: 54px;
  object-fit: contain;
  padding: .24rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.casino-brand h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}

.rating {
  margin-top: .18rem;
  color: var(--gold);
  letter-spacing: -.04em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
}

.casino-bonus,
.casino-features,
.casino-cta {
  position: relative;
  z-index: 1;
}

.casino-bonus .eyebrow {
  color: var(--red);
}

.casino-bonus p {
  margin: .16rem 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .93rem;
  font-weight: 900;
  line-height: 1.35;
}

.casino-features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .3rem;
  list-style: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .79rem;
}

.casino-features li {
  display: flex;
  align-items: flex-start;
  gap: .42rem;
}

.check-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: .08rem;
  fill: none;
  stroke: var(--forest);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.casino-cta {
  display: grid;
  gap: .32rem;
  text-align: center;
}

.casino-cta small {
  color: #6e604a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .64rem;
  line-height: 1.25;
}

.btn-primary {
  color: #fff8e4;
  background: linear-gradient(#9b3b37, var(--red-dark));
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

/* Article content */
.content {
  padding: 0 0 clamp(3rem, 6vw, 6rem);
  overflow-wrap: anywhere;
}

.content h2 {
  margin: 2.65rem 0 .8rem;
  font-size: clamp(1.58rem, 3vw, 2.25rem);
  line-height: 1.2;
  scroll-margin-top: 90px;
}

.content h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: .55rem;
  background:
    linear-gradient(90deg, var(--red) 0 58%, var(--gold) 58%);
}

.content h3 {
  margin: 1.65rem 0 .52rem;
  color: #493621;
  font-size: clamp(1.16rem, 2vw, 1.46rem);
  line-height: 1.3;
}

.content h4 {
  margin: 1.35rem 0 .48rem;
  color: var(--wood);
  font-size: 1.08rem;
  line-height: 1.3;
}

.content p {
  margin: .62rem 0 1rem;
}

.content ul,
.content ol {
  padding-left: 1.38rem;
}

.content li + li {
  margin-top: .36rem;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 1.2rem 0 1.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  background: var(--parchment-light);
  border: 1px solid rgba(87,53,31,.24);
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(36,29,19,.05);
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(39,76,99,.3);
  outline-offset: 2px;
}

.content table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  background: var(--parchment-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .88rem;
  line-height: 1.45;
}

.content td,
.content th {
  min-width: 145px;
  padding: .77rem .82rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid rgba(87,53,31,.17);
  border-bottom: 1px solid rgba(87,53,31,.17);
}

.content td:last-child,
.content th:last-child {
  border-right: 0;
}

.content tr:last-child td {
  border-bottom: 0;
}

.content tbody tr:first-child td,
.content thead th {
  color: #fff7df;
  background: linear-gradient(90deg, var(--wood-dark), var(--wood));
  font-weight: 900;
}

.content table p {
  margin: 0;
}

.casino-review-media {
  width: 100%;
  margin: 1.08rem 0 1.9rem;
  padding: .45rem;
  background: linear-gradient(135deg, var(--wood-dark), #4f3821);
  border: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.casino-review-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.author-bio {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  color: #fff6df;
  background: linear-gradient(135deg, var(--blue), #213947);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.author-bio h2 {
  margin: 0 0 .28rem;
  padding: 0;
  font-size: 1.22rem;
}

.author-bio h2::after {
  display: none;
}

.author-bio p {
  margin: 0;
  color: #e5dcc5;
}

/* Footer */
.site-footer {
  color: #eee4ce;
  background:
    linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
    var(--wood-dark);
  border-top: 5px solid var(--gold);
}

.footer-inner {
  padding: 2.1rem 0;
}

.footer-logo img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem 1.15rem;
  margin: 1rem 0;
}

.responsible-note {
  max-width: 850px;
  padding: .95rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(225,196,119,.25);
  border-radius: 8px;
}

.responsible-note strong {
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
}

.responsible-note p,
.copyright {
  margin: .4rem 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .81rem;
  line-height: 1.55;
}

.copyright {
  margin-top: .95rem;
  color: #b5a891;
}

/* Tablet */
@media (max-width: 1040px) {
  .desktop-nav {
    gap: .7rem;
  }

  .desktop-nav a {
    font-size: .79rem;
  }

  .casino-card {
    grid-template-columns: 54px minmax(180px,.9fr) minmax(220px,1.1fr) minmax(210px,1fr);
  }

  .casino-cta {
    grid-column: 2 / -1;
    grid-template-columns: minmax(150px,190px) 1fr;
    align-items: center;
    text-align: left;
  }
}

/* Mobile: compact hero so the first card remains visible on the first screen */
@media (max-width: 820px) {
  html {
    scroll-padding-top: 70px;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, var(--content));
  }

  .header-inner {
    min-height: 58px;
    grid-template-columns: 1fr auto;
    gap: .65rem;
  }

  .desktop-nav {
    display: none;
  }

  .site-logo img {
    height: 33px;
  }

  .header-cta {
    min-height: 38px;
    padding: .48rem .65rem;
    font-size: .76rem;
  }

  .hero-inner {
    padding: .88rem 0 .72rem;
  }

  .hero-kicker {
    margin-bottom: .16rem;
    font-size: .65rem;
  }

  .hero h1 {
    max-width: 90%;
    font-size: clamp(1.42rem, 7vw, 1.95rem);
    line-height: 1.07;
  }

  .hero-intro {
    max-width: 95%;
    margin-top: .4rem;
    font-size: .8rem;
    line-height: 1.42;
  }

  .hero-crest {
    top: .1rem;
    right: -.55rem;
    width: 96px;
    height: 96px;
  }

  .hero-crest .tower {
    font-size: 4.8rem;
  }

  .hero-crest .swords {
    font-size: 1.7rem;
  }

  .author-card {
    width: 100%;
    margin-top: .45rem;
    padding: .34rem .48rem;
  }

  .author-card img {
    width: 38px;
    height: 38px;
  }

  .author-line {
    font-size: .82rem;
  }

  .author-card p {
    font-size: .69rem;
  }

  .listing-section {
    padding: .68rem 0 1.9rem;
  }

  .section-heading {
    margin-bottom: .58rem;
    padding-bottom: .48rem;
  }

  .section-heading h2 {
    font-size: 1.23rem;
  }

  .section-heading .eyebrow,
  .medieval-seal {
    display: none;
  }

  .casino-card {
    grid-template-columns: 42px 1fr;
    gap: .52rem .68rem;
    padding: .68rem;
    border-radius: 9px;
  }

  .casino-rank {
    width: 38px;
    height: 38px;
    font-size: .84rem;
  }

  .casino-brand {
    grid-template-columns: 66px 1fr;
  }

  .casino-logo {
    width: 66px;
    height: 42px;
  }

  .casino-bonus,
  .casino-features,
  .casino-cta {
    grid-column: 1 / -1;
  }

  .casino-bonus p {
    font-size: .86rem;
  }

  .casino-features {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: .3rem;
    font-size: .68rem;
  }

  .casino-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .casino-cta small {
    display: none;
  }

  .content h2 {
    margin-top: 2rem;
  }

  .content table {
    min-width: 660px;
  }
}

@media (max-width: 520px) {
  .header-cta span {
    max-width: 104px;
  }

  .hero h1 {
    font-size: 1.48rem;
  }

  .hero-intro {
    font-size: .78rem;
  }

  .casino-features {
    grid-template-columns: 1fr;
  }

  .content table {
    min-width: 630px;
    font-size: .8rem;
  }

  .content td,
  .content th {
    min-width: 135px;
    padding: .66rem;
  }

  .author-bio {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
