:root {
  --pink-orchid: #cdb4db;
  --pastel-petal: #ffc8dd;
  --blush-pop: #ffafcc;
  --icy-blue: #bde0fe;
  --sky-blue: #a2d2ff;
  --card: #fffdf9;
  --text: #3b2e42;
  --text-soft: #6c5f73;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background-color: var(--pastel-petal);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(255, 175, 204, 0.45) 0 12px, transparent 13px),
    radial-gradient(circle at 90% 22%, rgba(205, 180, 219, 0.35) 0 12px, transparent 13px);
  background-size: 52px 52px, 52px 52px, 240px 240px, 260px 260px;
}

.card {
  width: min(95vw, 420px);
  background: var(--card);
  border-radius: 34px;
  padding: 28px 18px 15px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(59, 46, 66, 0.17);
  position: relative;
  overflow: hidden;
  animation: rise .7s ease-out both;
  display: flex;
  flex-direction: column;
}

.card-wide {
  width: min(95vw, 900px);
  min-height: 800px;
}

.logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 4px auto 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pink-orchid), var(--blush-pop));
  z-index: 0;
}

.logo.use-photo {
  color: transparent;
  text-shadow: none;
}

.logo.use-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("./images/laura.png");
  background-size: 165%;
  background-position: center 18%;
  z-index: 1;
}

.avatar-pop {
  position: fixed;
  inset: 0;
  background: rgba(55, 38, 67, 0.42);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  z-index: 20;
  padding: 20px;
}

.avatar-pop.open {
  opacity: 1;
  pointer-events: auto;
}

.avatar-pop-circle {
  width: min(72vw, 470px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background-image: url("./images/laura.png");
  background-size: 100%;
  background-position: center 15%;
  transform: scale(.55);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.avatar-pop.open .avatar-pop-circle {
  transform: scale(1);
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

h1 a {
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}

h1 a:hover {
  opacity: 0.8;
}

.subtitle {
  margin: 6px 0 20px;
  color: var(--text-soft);
  font-size: .94rem;
}

.intro-link-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 8px;
}

.intro-link {
  text-decoration: none;
  color: #684f75;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #e6d5ef;
  background: rgba(255, 255, 255, 0.65);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.intro-link:hover,
.intro-link:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: #d7bce6;
  outline: none;
}

.section-title {
  font-size: 1.12rem;
  letter-spacing: 1.8px;
  margin: 32px 0 22px;
  text-transform: uppercase;
  color: #684f75;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 2px;
  width: clamp(60px, 18vw, 150px);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--pink-orchid), transparent);
}

.games {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  justify-items: center;
}

.game-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform .22s ease;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.game-thumb {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 18px rgba(59, 46, 66, 0.22);
  background-size: cover;
  background-position: center;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.game-name {
  font-weight: 700;
  letter-spacing: .6px;
  color: #4e3f57;
  font-size: 1rem;
}

.game-btn:hover .game-thumb,
.game-btn:focus-visible .game-thumb {
  transform: translateY(-4px) scale(1.05) rotate(-1deg);
  box-shadow: 0 14px 22px rgba(59, 46, 66, 0.26);
  filter: saturate(1.1);
}

.game-btn:focus-visible {
  outline: none;
}

.tea-party .game-thumb {
  background-image:
    url("./images/tea-party.png"),
    linear-gradient(145deg, #ffe6bf, #b8e9a2);
  background-size: 170%;
  background-position: center 56%;
}

.trick-or-boo .game-thumb {
  background-image:
    url("./images/trick-or-boo.png"),
    linear-gradient(145deg, #ffd0e1, #d6bdff);
}

.rey-dragon .game-thumb {
  background-image:
    url("./images/rey-dragon.png"),
    linear-gradient(145deg, #ffd9b6, #bde0fe);
}

.links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.social-link,
.btn {
  text-decoration: none;
  color: #2f2e47;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 118px;
  background: linear-gradient(90deg, #ebddf3, #d9edff);
  transition: transform .2s ease, background-color .2s ease;
}

.social-link:hover,
.social-link:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #f0e5f6, #e1f1ff);
  outline: none;
}

.game-title {
  margin: 24px 0 14px;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #684f75;
  text-transform: uppercase;
}

.text-block {
  text-align: left;
  background: #fff;
  border: 2px dashed #ead3f0;
  border-radius: 20px;
  padding: 18px;
  color: #51445c;
  line-height: 1.55;
}

.text-block p {
  margin: 0 0 1rem;
}

.text-block p:last-of-type {
  margin-bottom: 0;
}

.content-image {
  display: block;
  width: 100%;
  min-height: 220px;
  margin: 1.1rem 0 1.4rem;
  border-radius: 18px;
  border: 2px dashed #d7bce6;
  background: linear-gradient(135deg, rgba(205, 180, 219, 0.22), rgba(162, 210, 255, 0.3));
  object-fit: cover;
}

.content-image:last-child {
  margin-bottom: 0;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links {
  position: relative;
  margin-top: auto;
  padding: 20px 0 5px;
  text-align: center;
  width: 100%;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.legal-content h3 {
  font-size: 1rem;
  margin: 1.2rem 0 0.5rem;
  color: #684f75;
}

.legal-content p {
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

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

@media (min-width: 900px) {
  body { padding: 40px; }
  .card {
    width: min(980px, 92vw);
    padding: 36px 34px 32px;
    margin-top: 36px;
  }
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  h1 { font-size: 1.7rem; }
  .subtitle { font-size: 1.02rem; }
  .game-thumb {
    width: 168px;
    height: 168px;
  }
  .game-title { font-size: 1.7rem; }
  .text-block { padding: 24px; }
}
