/* The public front page at cardgameonline.net (2026-09-13). The old site's
   look — light-blue gradient header, the "56" gradient logo, white slide
   panels with calligraphic gradient titles and tilted cards — rebuilt as
   plain HTML/CSS. No framework: this page must be the fastest thing on the
   site and readable by every crawler. */

:root {
  --bar: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  --page: #e0eafc;
  --ink: #23385d;
  --pill: #3d94f6;
  --pill-dark: linear-gradient(#3d94f6, #1e62d0);
  --title-gradient: linear-gradient(180deg, #4a1a6b 0%, #e0287a 55%, #ff8c42 100%);
  --panel-radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
  line-height: 1.45;
}

a {
  color: #1e62d0;
}

/* ---------------------------------------------------------------- header */
.bar {
  background: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 60px;
  height: 60px;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.suits {
  height: 26px;
  opacity: 0.9;
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.menu {
  position: relative;
}

.menu > button {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.menu ul {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #c6d7f5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(35, 56, 93, 0.18);
  min-width: 200px;
  z-index: 30;
}

.menu.open ul {
  display: block;
}

.menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.menu li a:hover {
  background: #eef4ff;
}

.pill {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 12px;
  background: var(--pill);
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.pill.signup {
  background: var(--pill-dark);
}

.pill:hover {
  filter: brightness(1.06);
}

/* -------------------------------------------------------------- slideshow */
.stage {
  max-width: 1300px;
  margin: 18px auto 0;
  padding: 0 16px;
}

.slides {
  position: relative;
  background: #ffffff;
  border-radius: var(--panel-radius);
  box-shadow: 0 10px 30px rgba(35, 56, 93, 0.12);
  overflow: hidden;
  aspect-ratio: 1304 / 850;
  max-height: 78vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 3% 4% 6%;
  animation: fade 0.8s;
}

.slide.active {
  display: flex;
}

@keyframes fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.slide .counter {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 12px;
  color: #93a4b3;
}

.slide h2 {
  margin: 0 0 2%;
  font-family: Gabriola, "Almendra Display", "Uncial Antiqua", cursive;
  font-size: clamp(28px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  z-index: 2;
}

.slide .picture {
  position: relative;
  z-index: 2;
  max-width: 82%;
  max-height: 68%;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.slide .picture.plain {
  box-shadow: none;
  max-width: 100%;
  max-height: 88%;
}

.slide .caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(13px, 1.5vw, 19px);
  color: #5a6b7a;
  z-index: 2;
  padding: 0 40px;
}

/* Two pictures side by side (logs & replays, any device). */
.slide .pair {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3%;
  align-items: center;
  justify-content: center;
  width: 92%;
  max-height: 68%;
}

.slide .pair img {
  max-width: 48%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.slide .pair img.phone {
  max-width: 34%;
  border: 10px solid #1b232c;
  border-radius: 22px;
}

/* The tilted decorative cards, like the old pictures. */
.card {
  position: absolute;
  width: 8%;
  min-width: 46px;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.c1 {
  left: 3%;
  top: 12%;
  transform: rotate(-18deg);
}

.c2 {
  right: 3%;
  top: 8%;
  transform: rotate(22deg);
}

.c3 {
  left: 6%;
  bottom: 12%;
  transform: rotate(14deg);
}

.c4 {
  right: 5%;
  bottom: 10%;
  transform: rotate(-24deg);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(35, 56, 93, 0.55);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.arrow:hover {
  background: rgba(35, 56, 93, 0.85);
}

.arrow.prev {
  left: 12px;
}

.arrow.next {
  right: 12px;
}

.dots {
  text-align: center;
  padding: 12px 0 4px;
}

.dots button {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: none;
  margin: 0 5px;
  background: #b8c7dc;
  cursor: pointer;
  padding: 0;
}

.dots button.active {
  background: #23385d;
}

/* ------------------------------------------------------------------ about */
.about {
  max-width: 1000px;
  margin: 10px auto 0;
  padding: 8px 20px 24px;
}

.about h2 {
  font-size: 22px;
  margin: 12px 0 6px;
}

.about p {
  margin: 0 0 12px;
  font-size: 16px;
}

.trial {
  background: #ffffff;
  border-left: 5px solid var(--pill);
  border-radius: 8px;
  padding: 10px 14px;
}

/* ----------------------------------------------------------------- footer */
.foot {
  background: var(--bar);
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 16px 20px;
  font-size: 15px;
}

.foot a {
  color: #1e62d0;
}

.foot .copy {
  width: 100%;
  text-align: center;
  color: #5a6b7a;
  font-size: 13px;
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 720px) {
  .brand h1 {
    font-size: 22px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .suits {
    display: none;
  }

  .bar-right {
    width: 100%;
    justify-content: space-between;
  }

  .pill {
    padding: 10px 18px;
    font-size: 16px;
  }

  .slides {
    aspect-ratio: 4 / 3;
  }

  .slide .picture {
    max-width: 92%;
  }

  .card {
    display: none;
  }

  .arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* The static help/FAQ pages share the header and footer. */
.doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}

.doc h2 {
  font-size: 24px;
  margin: 18px 0 8px;
}

.doc h3 {
  font-size: 18px;
  margin: 16px 0 4px;
}

.doc p,
.doc li {
  font-size: 16px;
}
