body {
  min-width: 320px;
  min-height: 100vh;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 28px);
  place-items: center;
}

.welcome {
  position: relative;
  width: min(100%, 1120px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 34px;
  background: var(--bg-welcome);
  box-shadow: var(--shadow);
  text-align: center;
}

.welcome-hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px) clamp(26px, 6vw, 64px) clamp(30px, 5vw, 56px);
  isolation: isolate;
  background: var(--bg-welcome);
}

.welcome-hero::after {
  position: absolute;
  top: -145px;
  right: -130px;
  z-index: 0;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(168, 149, 76, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(168, 149, 76, 0.05);
  content: "";
  pointer-events: none;
}

.welcome-hero > * {
  position: relative;
  z-index: 1;
}

.welcome-hero__copy {
  max-width: 720px;
  justify-self: center;
}

.brand-signature {
  display: block;
  width: min(100%, 335px);
  height: auto;
  margin: 0 auto 30px;
}

.eyebrow {
  justify-content: center;
}

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

h1,
h2,
h3 {
  color: var(--text-title);
  font-family: var(--serif);
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.intro {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  padding: clamp(14px, 3vw, 28px);
  background: var(--bg-options);
  text-align: left;
}

.game-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-option-card);
  border-radius: clamp(14px, 2vw, 20px);
  background: var(--bg-option-card);
  box-shadow: 0 7px 15px rgba(81, 64, 20, 0.16);
}

.game-option--cubos {
  border-color: var(--border-option-card-cubos);
  background: var(--bg-option-card-cubos);
  box-shadow: 0 12px 24px rgba(6, 27, 49, 0.16), 0 0 0 3px rgba(184, 170, 96, 0.2);
}

.game-option--cubos .game-kicker {
  color: #6e5e26;
}

.game-option--cubos .button {
  color: #fff7ce;
  background: linear-gradient(90deg, var(--navy), #173a56);
  box-shadow: 0 6px 12px rgba(6, 27, 49, 0.24);
}

.game-option--cubos .button:hover {
  filter: saturate(1.06) brightness(1.06);
  box-shadow: 0 9px 16px rgba(6, 27, 49, 0.3);
}

.game-option--logic {
  border-color: var(--border-option-card-logic);
  background: var(--bg-option-card-logic);
  box-shadow: 0 12px 22px rgba(24, 83, 77, 0.14), 0 0 0 3px rgba(143, 174, 158, 0.18);
}

.game-option--logic .game-kicker {
  color: #27685e;
}

.game-option--logic .button {
  color: #fffdf6;
  background: linear-gradient(90deg, #0d4a55, #7d944b);
  box-shadow: 0 6px 12px rgba(13, 74, 85, 0.22);
}

.game-option--logic .button:hover {
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 9px 16px rgba(13, 74, 85, 0.28);
}

.game-option--words {
  border-color: var(--border-option-card-words);
  background: var(--bg-option-card-words);
  box-shadow: 0 10px 20px rgba(27, 88, 84, 0.14);
}

.game-option--words .game-kicker {
  color: #24615a;
}

.game-option--words .button {
  color: #fffdf6;
  background: linear-gradient(90deg, #0d4a55, #4d8f64);
  box-shadow: 0 6px 12px rgba(13, 74, 85, 0.22);
}

.game-option--words .button:hover {
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 9px 16px rgba(13, 74, 85, 0.28);
}

.game-option--rhythm {
  border-color: var(--border-option-card-rhythm);
  background: var(--bg-option-card-rhythm);
  box-shadow: 0 12px 22px rgba(6, 27, 49, 0.14), 0 0 0 3px rgba(155, 184, 173, 0.16);
}

.game-option--rhythm .game-kicker {
  color: #27685e;
}

.game-option--rhythm .button {
  color: #fffdf6;
  background: linear-gradient(90deg, var(--navy), #27685e);
  box-shadow: 0 6px 12px rgba(6, 27, 49, 0.22);
}

.game-option--rhythm .button:hover {
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 9px 16px rgba(6, 27, 49, 0.28);
}

.game-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #173448;
}

.game-option--cubos .game-visual::after {
  position: absolute;
  inset: 38% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 27, 49, 0), rgba(6, 27, 49, 0.76));
  content: "";
  pointer-events: none;
}

.game-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.level-ribbon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.level-ribbon span {
  min-width: 0;
  padding: 5px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff7ce;
  background: rgba(6, 27, 49, 0.88);
  font: 900 clamp(0.53rem, 1.2vw, 0.64rem) / 1 var(--sans);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-option__content {
  display: flex;
  min-height: 154px;
  flex: 1;
  flex-direction: column;
  padding: clamp(13px, 2.3vw, 20px);
}

.game-kicker {
  margin: 0 0 6px;
  color: #948039;
  font: 800 0.56rem/1 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-option h3 {
  margin: 0 0 5px;
  font-size: clamp(1rem, 2.2vw, 1.42rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.game-option__content > p:not(.game-kicker) {
  margin-bottom: 12px;
  color: var(--text-muted-2);
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  font-weight: 600;
  line-height: 1.18;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: #172435;
  background: linear-gradient(90deg, #b6a34b, #d2c778, #a8943d);
  box-shadow: 0 5px 9px rgba(114, 93, 25, 0.2);
  font-size: clamp(0.67rem, 1.3vw, 0.83rem);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 8px 13px rgba(114, 93, 25, 0.28);
  transform: translateY(-2px);
}

.notice {
  margin: 0;
  padding: 0 22px 24px;
  color: var(--text-muted-3);
  background: var(--border-color);
  font-size: 0.73rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 760px) {
  .welcome {
    width: min(100%, 930px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding: 8px;
  }

  .welcome {
    border-radius: 22px;
  }

  .welcome-hero {
    padding: 30px 20px;
  }

  .brand-signature {
    width: min(100%, 280px);
    margin-bottom: 24px;
  }

  .intro {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.25rem);
  }

  .game-options {
    gap: 10px;
    padding: 11px 19px 19px;
  }

  .game-option--cubos {
    grid-column: 1 / -1;
  }

  .game-option--rhythm {
    grid-column: 1 / -1;
  }

  .game-option__content {
    min-height: 114px;
    padding: 12px 12px 11px;
  }

  .game-option h3 {
    font-size: 0.94rem;
  }

  .game-option__content > p:not(.game-kicker) {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .game-kicker {
    display: none;
  }

  .button {
    min-height: 31px;
    padding: 7px 8px;
    font-size: 0.64rem;
  }

  .notice {
    padding: 0 20px 18px;
    font-size: 0.65rem;
  }
}
