@font-face {
  font-family: "Estedad";
  src: url("assets/fonts/Estedad-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Estedad";
  src: url("assets/fonts/Estedad-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Lalezar";
  src: url("assets/fonts/Lalezar-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #071d19;
  --surface: #0b2b25;
  --raised: #0d4035;
  --felt: #0e473a;
  --scrim: #001512;
  --gold: #d6aa5a;
  --gold-soft: #f0d59a;
  --text: #f8ebcb;
  --muted: #a8cdbd;
  --border: #275a4c;
  --border-strong: #1a6a5a;
  --danger: #e05b55;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -20%, #0b2b25 0, var(--canvas) 42%);
  color: var(--text);
  font-family: "Estedad", Tahoma, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--canvas);
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Lalezar", "Estedad", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: clamp(18px, 3vw, 36px);
}

.language-switcher {
  direction: ltr;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(11 43 37 / 50%);
}

.language-switcher button {
  min-width: 38px;
  min-height: 32px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 0.72rem/1 "Estedad", Tahoma, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher button.active {
  background: var(--gold);
  color: var(--canvas);
}

.language-switcher button:hover:not(.active) {
  color: var(--text);
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-soft);
}

.hero {
  min-height: min(720px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(48px, 6vw, 78px);
  padding-block: 56px 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 540px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4vw, 3.85rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.34;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-family: "Lalezar", "Estedad", sans-serif;
}

.hero-intro,
.section-heading > p:last-child,
.release > div > p:last-child {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--gold);
  color: var(--canvas);
  box-shadow: 0 4px 16px rgb(214 170 90 / 20%);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgb(214 170 90 / 32%);
}

.button-primary:active {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-link span {
  display: inline-block;
  margin-inline-start: 5px;
  transition: transform 0.2s ease;
}

[dir="rtl"] .text-link:hover span[data-i18n="hero.arrow"],
[dir="rtl"] .text-link:focus-visible span[data-i18n="hero.arrow"] {
  transform: translateX(-4px);
}

[dir="ltr"] .text-link:hover span[data-i18n="hero.arrow"],
[dir="ltr"] .text-link:focus-visible span[data-i18n="hero.arrow"] {
  transform: translateX(4px);
}

.table-scene {
  position: relative;
  max-width: 610px;
  justify-self: end;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: center;
}

.table-scene::before,
.table-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(214 170 90 / 22%);
  border-radius: 50%;
}

.table-scene::before {
  inset: 0 8% 7%;
}

.table-scene::after {
  inset: 7% 1% 0 15%;
}

.table-cloth {
  position: relative;
  width: 82%;
  aspect-ratio: 1.24;
  border: 7px solid var(--gold);
  border-radius: 37%;
  background:
    radial-gradient(circle at center, rgb(255 255 255 / 5%), transparent 52%),
    linear-gradient(45deg, transparent 48%, rgb(240 213 154 / 5%) 49% 51%, transparent 52%),
    var(--felt);
  box-shadow:
    inset 0 0 0 2px var(--gold-soft),
    0 28px 55px rgb(0 0 0 / 28%);
  transform: perspective(850px) rotateX(13deg) rotateZ(-2deg);
}

.table-cloth::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgb(240 213 154 / 25%);
  border-radius: 32%;
}

.seat {
  position: absolute;
  width: 34px;
  height: 34px;
  z-index: 2;
  border: 6px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
}

.seat-top {
  inset-block-start: -21px;
  inset-inline-start: calc(50% - 17px);
}

.seat-right {
  inset-block-start: calc(50% - 17px);
  inset-inline-end: -21px;
}

.seat-bottom {
  inset-block-end: -21px;
  inset-inline-start: calc(50% - 17px);
  background: var(--gold-soft);
}

.seat-left {
  inset-block-start: calc(50% - 17px);
  inset-inline-start: -21px;
}

.table-mark {
  position: absolute;
  top: 45%;
  left: 50%;
  color: rgb(240 213 154 / 14%);
  font-family: "Lalezar", "Estedad", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.played-cards img,
.hand img {
  position: absolute;
  width: clamp(46px, 6.2vw, 76px);
  border-radius: 6px;
  box-shadow: 0 8px 14px rgb(0 0 0 / 30%);
}

.played-cards img:first-child {
  inset-block-start: 30%;
  inset-inline-start: 38%;
  transform: rotate(8deg);
}

.played-cards img:last-child {
  inset-block-start: 35%;
  inset-inline-start: 51%;
  transform: rotate(97deg);
}

.hand {
  position: absolute;
  inset: auto 50% -28px auto;
  z-index: 3;
  width: 220px;
  height: 130px;
  transform: translateX(50%) rotateX(-13deg) rotateZ(2deg);
}

.hand img {
  inset-block-end: 0;
  inset-inline-start: calc(50% - 32px);
  transform-origin: 50% 125%;
}

.hand img:nth-child(1) { transform: rotate(-30deg); }
.hand img:nth-child(2) { transform: rotate(-15deg); }
.hand img:nth-child(3) { transform: rotate(0); }
.hand img:nth-child(4) { transform: rotate(15deg); }
.hand img:nth-child(5) { transform: rotate(30deg); }

@media (hover: hover) and (pointer: fine) {
  .hand img {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer;
  }

  .hand img:nth-child(1):hover { transform: rotate(-30deg) translateY(-14px) scale(1.06); z-index: 10; box-shadow: 0 16px 28px rgb(0 0 0 / 45%); }
  .hand img:nth-child(2):hover { transform: rotate(-15deg) translateY(-14px) scale(1.06); z-index: 10; box-shadow: 0 16px 28px rgb(0 0 0 / 45%); }
  .hand img:nth-child(3):hover { transform: rotate(0deg) translateY(-14px) scale(1.06); z-index: 10; box-shadow: 0 16px 28px rgb(0 0 0 / 45%); }
  .hand img:nth-child(4):hover { transform: rotate(15deg) translateY(-14px) scale(1.06); z-index: 10; box-shadow: 0 16px 28px rgb(0 0 0 / 45%); }
  .hand img:nth-child(5):hover { transform: rotate(30deg) translateY(-14px) scale(1.06); z-index: 10; box-shadow: 0 16px 28px rgb(0 0 0 / 45%); }
}

.score-strip {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 90px);
  margin-bottom: 10px;
  border-block: 1px solid var(--border);
}

.score-strip p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.score-strip strong {
  color: var(--gold-soft);
  font-size: 2.2rem;
  line-height: 1;
}

.score-strip span {
  color: var(--muted);
}

.score-strip i {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section {
  padding-block: clamp(82px, 10vw, 128px);
}

.gameplay {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(400px, 1.15fr);
  gap: clamp(70px, 11vw, 150px);
}

.game-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.game-steps li {
  min-height: 142px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.game-steps li > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-steps p,
.ways-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.ways {
  position: relative;
}

.section-heading.compact {
  max-width: 680px;
  margin-bottom: 56px;
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}

.ways-grid article {
  min-height: 280px;
  padding: 38px 34px 44px;
  border-inline-start: 1px solid var(--border);
  transition: background-color 0.25s ease;
}

.ways-grid article:hover {
  background-color: var(--surface);
}

.ways-grid article:last-child {
  border-inline-end: 1px solid var(--border);
}

.way-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.ways-grid article:hover .way-number {
  transform: scale(1.08);
  background-color: var(--gold);
  color: var(--canvas);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 130px);
  align-items: center;
}

.principles-copy h2 {
  max-width: 520px;
  margin-bottom: 0;
}

.principles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.principles li:first-child {
  border-top: 1px solid var(--border);
}

.principles li > span:first-child {
  width: 24px;
  flex: 0 0 24px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  text-align: center;
}

.principles li:nth-child(2) > span:first-child,
.principles li:nth-child(3) > span:first-child {
  color: var(--danger);
}

.release {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
  margin-block: 30px 84px;
  padding-inline: clamp(32px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 24px;
  background: var(--surface);
}

.release.section {
  padding-block: clamp(78px, 8vw, 104px);
}

.release::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 47.5%, rgb(214 170 90 / 8%) 48% 52%, transparent 52.5%) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 58%);
  mask-image: linear-gradient(to left, #000, transparent 58%);
}

.release > * {
  position: relative;
}

.release h2 {
  max-width: 700px;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(214 170 90 / 60%);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.25);
    box-shadow: 0 0 8px 3px rgb(214 170 90 / 40%);
  }
}

.release-status {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  white-space: nowrap;
}

.release-status > span:first-child {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0;
}

.footer-brand {
  font-size: 1rem;
}

.copyright {
  justify-self: end;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 62px 86px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .table-scene {
    max-width: 600px;
    justify-self: center;
  }

  .gameplay,
  .principles {
    grid-template-columns: 1fr;
  }

  .ways-grid article {
    padding-inline: 24px;
  }

  .release {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 650px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switcher button {
    min-width: 34px;
  }

  .hero {
    gap: 30px;
    padding-block: 44px 66px;
  }

  h1 {
    max-width: 350px;
    font-size: clamp(2.3rem, 10.5vw, 2.65rem);
    letter-spacing: 0;
    line-height: 1.38;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-actions {
    align-items: center;
    flex-flow: row wrap;
    gap: 18px;
    margin-top: 28px;
  }

  .table-scene {
    width: 100%;
  }

  .table-cloth {
    width: 88%;
    border-width: 5px;
  }

  .seat {
    width: 28px;
    height: 28px;
    border-width: 5px;
  }

  .seat-top { inset-block-start: -17px; inset-inline-start: calc(50% - 14px); }
  .seat-right { inset-block-start: calc(50% - 14px); inset-inline-end: -17px; }
  .seat-bottom { inset-block-end: -17px; inset-inline-start: calc(50% - 14px); }
  .seat-left { inset-block-start: calc(50% - 14px); inset-inline-start: -17px; }

  .hand {
    width: 170px;
    height: 100px;
  }

  .score-strip {
    gap: 18px;
    min-height: 106px;
  }

  .score-strip p {
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }

  .score-strip strong {
    font-size: 1.8rem;
  }

  .score-strip span {
    font-size: 0.72rem;
  }

  .score-strip i {
    width: 4px;
    height: 4px;
  }

  .gameplay {
    gap: 38px;
  }

  .game-steps li {
    min-height: 154px;
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .ways-grid {
    grid-template-columns: 1fr;
    border-block: 0;
  }

  .ways-grid article,
  .ways-grid article:last-child {
    min-height: auto;
    padding: 32px 0;
    border-inline: 0;
    border-top: 1px solid var(--border);
  }

  .ways-grid article:last-child {
    border-bottom: 1px solid var(--border);
  }

  .way-number {
    margin-bottom: 30px;
  }

  .release {
    gap: 32px;
    margin-block: 10px 64px;
    padding: 54px 24px;
  }

  .release-status {
    justify-self: start;
  }

  footer {
    min-height: 120px;
  }
}

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

  .release-status > span:first-child {
    animation: none;
  }

  .hand img,
  .button-primary,
  .ways-grid article,
  .way-number,
  .text-link span {
    transition: none;
  }
}
