:root {
  color-scheme: dark;
  --bg: #040a12;
  --surface: rgba(11, 23, 36, 0.88);
  --surface-strong: #0d1927;
  --surface-soft: rgba(15, 30, 46, 0.72);
  --border: rgba(159, 183, 207, 0.17);
  --border-strong: rgba(159, 183, 207, 0.28);
  --text: #f2f7fb;
  --muted: #9eafc0;
  --cyan: #17c4d4;
  --cyan-light: #53dbe6;
  --cyan-dark: #087e92;
  --bronze: #b88a55;
  --danger-soft: #ffb15c;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(12, 101, 126, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 28%, rgba(21, 112, 143, 0.09), transparent 28rem),
    linear-gradient(135deg, #030810 0%, #07111c 45%, #040a12 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.construction-banner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(255, 177, 92, 0.18);
  color: #d9c5ae;
  background: rgba(31, 24, 19, 0.68);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.construction-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger-soft);
  box-shadow: 0 0 14px rgba(255, 177, 92, 0.8);
}

.construction-separator {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.2);
}

.page-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - 34px);
  margin: 0 auto;
  padding: 0 54px;
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.site-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(23, 196, 212, 0.25));
}

.site-name-block {
  display: flex;
  flex-direction: column;
}

.site-domain {
  font-size: clamp(1.28rem, 2vw, 1.76rem);
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.site-domain span {
  color: var(--cyan);
}

.site-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 19, 31, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
}

.header-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(23, 196, 212, 0.7);
}

.landing-page {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.24fr) minmax(390px, 0.76fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  padding: 68px 0 72px;
}

.game-scene {
  position: relative;
  display: flex;
  min-height: 588px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px 0;
}

.scene-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.scene-eyebrow,
.auth-eyebrow {
  margin: 0 0 15px;
  color: var(--cyan-light);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.scene-copy h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(2.75rem, 5.3vw, 5.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.scene-copy > p:last-child {
  max-width: 510px;
  margin: 24px 0 0;
  color: #bac8d5;
  font-size: 1.06rem;
  line-height: 1.7;
}

.scene-visual {
  position: absolute;
  inset: 118px -105px 20px -20px;
  border-radius: 30px;
  background:
    linear-gradient(
      90deg,
      rgba(5, 14, 23, 0.96) 0%,
      rgba(5, 14, 23, 0.76) 20%,
      rgba(5, 14, 23, 0.18) 48%,
      transparent 70%
    ),
    linear-gradient(to top, rgba(5, 14, 23, 0.52), transparent 28%),
    url("/assets/landing/hero-games-v2.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 70px rgba(3, 10, 18, 0.5),
    0 34px 90px rgba(0, 0, 0, 0.28);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 92%, transparent);
}

.ambient-glow {
  position: absolute;
  right: 8%;
  bottom: 3%;
  width: 74%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 180, 198, 0.18), transparent 66%);
  filter: blur(18px);
}

.connect-four {
  position: absolute;
  right: 7%;
  bottom: 17%;
  display: grid;
  width: min(30vw, 350px);
  aspect-ratio: 1.3;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(71, 126, 202, 0.65);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(22, 67, 133, 0.96), rgba(5, 28, 69, 0.98));
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px rgba(51, 107, 184, 0.12);
  transform: rotateX(4deg) rotateY(-15deg) rotateZ(2deg);
}

.connect-four span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #06101c;
  box-shadow:
    inset 3px 5px 8px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(128, 168, 220, 0.18);
}

.connect-four .yellow {
  border: 1px solid #d6a91d;
  background: radial-gradient(circle at 34% 28%, #ffd94e, #d29400 70%);
  box-shadow:
    inset -3px -4px 7px rgba(110, 64, 0, 0.45),
    0 0 12px rgba(255, 198, 26, 0.18);
}

.connect-four .red {
  border: 1px solid #c9534f;
  background: radial-gradient(circle at 34% 28%, #ee5d52, #9e161b 70%);
  box-shadow:
    inset -3px -4px 7px rgba(74, 3, 9, 0.5),
    0 0 12px rgba(219, 50, 50, 0.15);
}

.tic-tac-toe {
  position: absolute;
  right: 38%;
  bottom: 2%;
  display: grid;
  width: min(22vw, 265px);
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 19px;
  background: linear-gradient(145deg, #101c2a, #080f19);
  box-shadow: 0 34px 62px rgba(0, 0, 0, 0.58);
  transform: rotateX(56deg) rotateZ(-13deg);
}

.tic-tac-toe i {
  position: relative;
  border-right: 1px solid rgba(150, 177, 204, 0.25);
  border-bottom: 1px solid rgba(150, 177, 204, 0.25);
}

.tic-tac-toe i:nth-child(3n) {
  border-right: 0;
}

.tic-tac-toe i:nth-child(n + 7) {
  border-bottom: 0;
}

.tic-tac-toe .circle::before {
  position: absolute;
  inset: 23%;
  border: 5px solid #ff6470;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 75, 89, 0.7);
  content: "";
}

.tic-tac-toe .cross::before,
.tic-tac-toe .cross::after {
  position: absolute;
  top: 48%;
  left: 24%;
  width: 52%;
  height: 5px;
  border-radius: 99px;
  background: #3ed9ee;
  box-shadow: 0 0 13px rgba(48, 211, 234, 0.72);
  content: "";
}

.tic-tac-toe .cross::before {
  transform: rotate(45deg);
}

.tic-tac-toe .cross::after {
  transform: rotate(-45deg);
}

.game-chip {
  position: absolute;
  width: 49px;
  height: 15px;
  border-radius: 50%;
  box-shadow: 0 11px 20px rgba(0, 0, 0, 0.5);
}

.chip-one {
  right: 44%;
  bottom: 1%;
  border: 2px solid #b4262c;
  background: #761318;
  transform: rotate(-17deg);
}

.chip-two {
  right: 10%;
  bottom: 11%;
  border: 2px solid #daa60b;
  background: #a66d00;
  transform: rotate(12deg);
}

.chip-three {
  right: 2%;
  bottom: 3%;
  border: 2px solid #b4262c;
  background: #761318;
  transform: rotate(-7deg);
}

.die {
  position: absolute;
  right: 29%;
  bottom: 6%;
  width: 58px;
  height: 58px;
  border: 1px solid #d7c6ae;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1dfc3, #ad9577);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.48);
  transform: rotate(18deg);
}

.die i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30261e;
}

.die i:nth-child(1) { top: 10px; left: 10px; }
.die i:nth-child(2) { top: 10px; right: 10px; }
.die i:nth-child(3) { top: 25px; left: 25px; }
.die i:nth-child(4) { right: 10px; bottom: 10px; }
.die i:nth-child(5) { bottom: 10px; left: 10px; }

.scene-benefits {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  color: #c4d0db;
  font-size: 0.78rem;
  font-weight: 650;
}

.scene-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scene-benefits i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(23, 196, 212, 0.3);
  border-radius: 50%;
  color: var(--cyan-light);
  background: rgba(23, 196, 212, 0.08);
  font-size: 0.68rem;
  font-style: normal;
}

.auth-panel {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: clamp(28px, 4vw, 45px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(17, 34, 51, 0.92), rgba(8, 18, 29, 0.94));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.auth-panel::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(68, 216, 231, 0.16), transparent 35%);
  content: "";
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.auth-heading h2 {
  max-width: 390px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.72rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-description {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: #cbd6df;
  font-size: 0.78rem;
  font-weight: 670;
}

.input-shell {
  display: flex;
  height: 53px;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(2, 10, 17, 0.52);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.input-shell:focus-within {
  border-color: rgba(23, 196, 212, 0.72);
  box-shadow: 0 0 0 3px rgba(23, 196, 212, 0.1);
}

.input-shell > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan-light);
  background: rgba(23, 196, 212, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.9rem;
}

.input-shell input::placeholder {
  color: #66798b;
}

.auth-button {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

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

.auth-button-primary {
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 18px 0 21px;
  border: 1px solid var(--cyan);
  color: #031116;
  background: linear-gradient(110deg, #3bd5de, #0aa2bd);
  box-shadow: 0 13px 25px rgba(8, 147, 170, 0.2);
  cursor: pointer;
}

.auth-button-primary span:last-child {
  font-size: 1.18rem;
}

.auth-links-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: -5px;
  font-size: 0.76rem;
}

.auth-links-row a {
  color: #aebdcc;
  text-decoration: none;
}

.auth-links-row a:last-child {
  color: var(--cyan-light);
  font-weight: 700;
}

.auth-links-row a:hover,
.footer-links a:hover {
  color: var(--cyan-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #65788a;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.auth-button-guest {
  border: 1px solid var(--border-strong);
  color: #dce6ee;
  background: rgba(12, 25, 39, 0.72);
}

.auth-button-guest:hover {
  border-color: rgba(23, 196, 212, 0.38);
  background: rgba(15, 34, 51, 0.9);
}

.gamepad-icon {
  position: relative;
  width: 23px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 6px 6px 8px 8px;
}

.gamepad-icon::before {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 2.5px -2.5px 0 -0.2px currentColor;
  content: "";
}

.gamepad-icon::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.auth-hint {
  margin: 21px 0 0;
  color: #6f8294;
  font-size: 0.69rem;
  text-align: center;
}

.site-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: #718396;
  font-size: 0.7rem;
}

.games-showcase {
  position: relative;
  margin: 2px 0 68px;
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 196, 212, 0.06), transparent 36rem),
    linear-gradient(145deg, rgba(12, 24, 38, 0.87), rgba(6, 14, 23, 0.92));
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.games-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.games-eyebrow {
  margin: 0 0 6px;
  color: var(--cyan-light);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.games-showcase h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
  letter-spacing: -0.035em;
}

.games-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.games-position {
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.carousel-button,
.carousel-edge {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: #d9e5ee;
  background: rgba(12, 25, 39, 0.82);
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.carousel-button {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  font-size: 0;
}

.carousel-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-block-start: 4px solid currentColor;
  border-inline-start: 4px solid currentColor;
  content: "";
  translate: -50% -50%;
}

#games-previous::after {
  transform: rotate(-45deg);
}

#games-next::after {
  transform: rotate(135deg);
}

.carousel-button:hover:not(:disabled),
.carousel-edge:hover:not(:disabled) {
  border-color: rgba(23, 196, 212, 0.5);
  color: var(--cyan-light);
  background: rgba(16, 43, 59, 0.95);
  transform: translateY(-1px);
}

.carousel-button:disabled,
.carousel-edge:disabled {
  cursor: default;
  opacity: 0.28;
}

.games-carousel-shell {
  position: relative;
}

.games-carousel {
  display: grid;
  grid-auto-columns: minmax(190px, 1fr);
  grid-auto-flow: column;
  gap: 15px;
  overflow-x: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.games-carousel::-webkit-scrollbar {
  display: none;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(22, 36, 51, 0.96), rgba(9, 18, 29, 0.98));
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.22);
  scroll-snap-align: start;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.game-card:hover {
  border-color: rgba(23, 196, 212, 0.36);
  box-shadow:
    0 17px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(23, 196, 212, 0.06);
  transform: translateY(-3px);
}

.game-art {
  position: relative;
  height: 142px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #111c29;
}

.game-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, rgba(8, 17, 27, 0.54));
  content: "";
  pointer-events: none;
}

.game-art-sprite {
  background-image: url("/assets/landing/game-cards-reference.png");
  background-repeat: no-repeat;
  background-size: 1845px 324px;
}

.sprite-tic-tac-toe { background-position: -125px -66px; }
.sprite-barrikade { background-position: -329px -66px; }
.sprite-vier-gewinnt { background-position: -536px -66px; }
.sprite-kniffel { background-position: -743px -66px; }
.sprite-mensch { background-position: -949px -66px; }
.sprite-dame { background-position: -1156px -66px; }
.sprite-muehle { background-position: -1363px -66px; }
.sprite-backgammon { background-position: -1567px -66px; }

.game-art-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.game-art-image.art-abalone {
  background-image: url("/assets/landing/game-cards/ab-al-one.webp");
}

.game-art-image.art-kalaha {
  background-image: url("/assets/landing/game-cards/kalaha.webp");
}

.game-art-image.art-chess {
  background-image: url("/assets/landing/game-cards/schach.webp");
}

.game-art-image.art-chess-three {
  background-image: url("/assets/landing/game-cards/schach-3-personen.webp");
}

.game-art-image.art-chess-3d {
  background-image: url("/assets/landing/game-cards/schach-3d-v2.webp");
}

.game-art-image.art-cards {
  background-image: url("/assets/landing/game-cards/skat.webp");
}

.game-art-image.art-doppelkopf {
  background-image: url("/assets/landing/game-cards/doppelkopf.webp");
}

.game-art-image.art-uno {
  background-image: url("/assets/landing/game-cards/uno.webp");
}

.game-art-image.art-skip-bo {
  background-image: url("/assets/landing/game-cards/skip-bo.webp");
}

.game-art-symbol {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.game-art-symbol::before {
  position: absolute;
  inset: -25%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 174, 191, 0.25), transparent 64%);
  content: "";
}

.game-art-symbol > span {
  position: relative;
  z-index: 1;
  color: #eef6fa;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.game-art-symbol b {
  color: var(--cyan-light);
  font-size: 0.55em;
  letter-spacing: 0.02em;
}

.game-art-symbol.art-chess {
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.06) 48% 52%, transparent 52%),
    linear-gradient(145deg, #2f2118, #101925 56%, #07101a);
}

.game-art-symbol.art-abalone {
  background:
    radial-gradient(circle at 30% 34%, #dbe5ec 0 8%, transparent 9%),
    radial-gradient(circle at 48% 52%, #1f2934 0 9%, transparent 10%),
    radial-gradient(circle at 68% 32%, #dbe5ec 0 8%, transparent 9%),
    radial-gradient(circle at 66% 72%, #1f2934 0 9%, transparent 10%),
    linear-gradient(145deg, #192a36, #0a121d);
}

.game-art-symbol.art-abalone > span {
  font-size: 2rem;
}

.game-art-symbol.art-kalaha {
  background:
    radial-gradient(circle at 16% 50%, rgba(54, 26, 12, 0.92) 0 13%, transparent 14%),
    radial-gradient(circle at 84% 50%, rgba(54, 26, 12, 0.92) 0 13%, transparent 14%),
    linear-gradient(145deg, #b77839, #6d391b 62%, #2e1b13);
}

.game-art-symbol.art-kalaha > span {
  display: grid;
  width: 72%;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  padding: 13px 18px;
  border: 3px solid rgba(77, 38, 17, 0.78);
  border-radius: 35px;
  background: rgba(154, 91, 42, 0.82);
  transform: perspective(180px) rotateX(12deg);
}

.game-art-symbol.art-kalaha i {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #f2c568 0 13%, transparent 14%),
    radial-gradient(circle at 65% 63%, #33231b 0 15%, transparent 16%),
    radial-gradient(circle at 45% 54%, #9a452f 0 14%, transparent 15%),
    #4a2615;
  box-shadow:
    inset 0 5px 8px rgba(30, 11, 4, 0.72),
    0 1px 0 rgba(255, 224, 170, 0.24);
}

.game-art-symbol.art-cards > span,
.game-art-symbol.art-doppelkopf > span {
  font-size: 2.55rem;
  word-spacing: 0.2em;
}

.game-art-symbol.art-cards {
  background: linear-gradient(145deg, #4a171c, #101b29 58%, #07101a);
}

.game-art-symbol.art-cards > span {
  color: #f0e7d7;
}

.game-art-symbol.art-doppelkopf {
  background: linear-gradient(145deg, #172944, #2f191c 58%, #07101a);
}

.game-art-symbol.art-chess-three {
  background: conic-gradient(from 30deg at 50% 120%, #153657, #4c2426, #725b1e, #153657);
}

.game-art-symbol.art-chess-3d {
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.07) 12%, transparent 12.5% 87%, rgba(255, 255, 255, 0.07) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5% 87%, rgba(255, 255, 255, 0.05) 87.5%),
    linear-gradient(145deg, #11263b, #07101a);
  background-size: 44px 76px;
}

.game-art-symbol.art-uno {
  background: conic-gradient(from 35deg, #ce2d34, #e9bb29, #269d62, #2580c5, #ce2d34);
}

.game-art-symbol.art-uno > span {
  padding: 12px 19px;
  border: 4px solid white;
  border-radius: 50%;
  font-size: 1.65rem;
  font-style: italic;
  transform: rotate(-12deg);
}

.game-art-symbol.art-skip-bo {
  background: linear-gradient(145deg, #1789c5, #15486d 60%, #09223a);
}

.game-art-symbol.art-skip-bo > span {
  padding: 13px 12px;
  border: 3px solid #eef8ff;
  border-radius: 12px;
  color: #eef8ff;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  transform: rotate(7deg);
}

.game-card-body {
  display: grid;
  min-height: 135px;
  grid-template-rows: auto auto 1fr;
  padding: 16px;
}

.game-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.28;
}

.game-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.game-card a {
  align-self: end;
  justify-self: start;
  margin-top: 15px;
  color: var(--cyan-light);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.game-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.game-card a span {
  margin-left: 3px;
  font-size: 0.68rem;
}

.carousel-edge {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 62px;
  border-radius: 13px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.carousel-edge:hover:not(:disabled) {
  transform: translateY(calc(-50% - 1px));
}

.carousel-edge-previous {
  left: -17px;
}

.carousel-edge-next {
  right: -17px;
}

@media (min-width: 761px) {
  .games-controls .carousel-button {
    display: none;
  }
}

.rules-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 31px;
  border: 1px solid rgba(23, 196, 212, 0.26);
  border-radius: 21px;
  color: var(--text);
  background: linear-gradient(145deg, #102234, #08121d);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
}

.rules-dialog::backdrop {
  background: rgba(1, 6, 11, 0.78);
  backdrop-filter: blur(8px);
}

.rules-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 2px solid #ff5c64;
  border-radius: 50%;
  color: transparent;
  background: #d9202b;
  box-shadow: 0 8px 24px rgba(217, 32, 43, 0.34);
  font-size: 0;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.rules-dialog-close::before,
.rules-dialog-close::after {
  position: absolute;
  width: 23px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.rules-dialog-close::before {
  transform: rotate(45deg);
}

.rules-dialog-close::after {
  transform: rotate(-45deg);
}

.rules-dialog-close:hover {
  border-color: #ff7b81;
  background: #ef2935;
  transform: scale(1.06);
}

.rules-dialog-status {
  margin: 0 0 9px;
  color: var(--cyan-light);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rules-dialog h2 {
  margin: 0;
  font-size: 1.7rem;
}

.rules-dialog > p:not(.rules-dialog-status) {
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rules-dialog-confirm {
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid var(--cyan);
  border-radius: 11px;
  color: #031116;
  background: var(--cyan);
  font-weight: 750;
  cursor: pointer;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a {
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 0 28px;
  }

  .landing-page {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.88fr);
    gap: 30px;
  }

  .scene-copy h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
  }

  .scene-visual {
    inset: 135px -135px 22px -30px;
    background-position: center;
    opacity: 0.88;
  }

  .games-carousel {
    grid-auto-columns: minmax(188px, 31%);
  }
}

@media (max-width: 760px) {
  .construction-banner {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .construction-separator,
  .construction-separator + span {
    display: none;
  }

  .page-shell {
    padding: 0 18px;
  }

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

  .site-logo {
    width: 46px;
    height: 46px;
  }

  .site-subtitle {
    font-size: 0.59rem;
    letter-spacing: 0.17em;
  }

  .header-status {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .landing-page {
    display: block;
    min-height: auto;
    padding: 34px 0 44px;
  }

  .game-scene {
    min-height: 335px;
    padding: 5px 4px;
  }

  .scene-copy {
    max-width: 94%;
  }

  .scene-copy h1 {
    max-width: 470px;
    font-size: clamp(2.35rem, 11.5vw, 4.2rem);
  }

  .scene-copy > p:last-child {
    max-width: 440px;
    margin-top: 17px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .scene-visual {
    inset: 142px -265px 18px -95px;
    background-position: 50% center;
    opacity: 0.46;
    mask-image: linear-gradient(to bottom, transparent, black 8%, black 82%, transparent);
  }

  .connect-four {
    right: 1%;
    width: 250px;
  }

  .tic-tac-toe {
    right: 38%;
    width: 190px;
  }

  .scene-benefits {
    display: none;
  }

  .auth-panel {
    margin-top: -8px;
    padding: 27px 22px;
    border-radius: 22px;
  }

  .auth-heading h2 {
    font-size: 2rem;
  }

  .games-showcase {
    margin-bottom: 44px;
    padding: 23px 17px 24px;
    border-radius: 20px;
  }

  .games-position {
    display: none;
  }

  .games-carousel {
    grid-auto-columns: minmax(205px, 74%);
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-behavior: auto;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .carousel-button {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .carousel-edge {
    display: none;
  }

  .game-card-body {
    min-height: 127px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 27px 0 30px;
  }
}

@media (max-width: 420px) {
  .site-domain {
    font-size: 1.08rem;
  }

  .site-subtitle {
    max-width: 175px;
    line-height: 1.35;
  }

  .auth-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

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

  .games-showcase-header {
    align-items: center;
  }

  .games-showcase h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
