:root {
  --page-blue: #eaf6ff;
  --soft-blue: #c9e7fa;
  --tab-blue: #bfdff6;
  --active-yellow: #f8e6a6;
  --active-yellow-border: #e7bf63;

  --panel-white: #fffdf8;
  --panel-cream: #fff8ec;
  --warm-beige: #e8d1af;

  --soft-pink: #f4b2c1;
  --light-pink: #fad7df;

  --text-brown: #3d281f;
  --muted-brown: #71594c;

  --blue-heart: #91c7ee;
  --pink-heart: #f3a6b7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family:
    ui-rounded,
    "Arial Rounded MT Bold",
    "Trebuchet MS",
    "Hiragino Maru Gothic ProN",
    system-ui,
    sans-serif;
  color: var(--text-brown);
  background-color: var(--page-blue);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.36) 0,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(205, 231, 248, 0.2) 50%,
    rgba(205, 231, 248, 0.2) 100%
  );
  background-size: 72px 72px;
}

.lace-top {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.side-charms {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.charm {
  position: absolute;
  width: 34px;
  height: auto;
  opacity: 0.85;
}

.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

.landing__panel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  min-height: 860px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid var(--soft-blue);
  border-radius: 36px;
  box-shadow:
    0 24px 48px rgba(93, 68, 50, 0.14),
    0 4px 10px rgba(93, 68, 50, 0.06);
}

.panel-corner {
  position: absolute;
  width: 190px;
  height: auto;
  opacity: 0.9;
}

.panel-corner--bl {
  bottom: 6px;
  left: 6px;
}

.panel-corner--br {
  bottom: 6px;
  right: 6px;
}

.landing__inner {
  padding: 44px 56px 40px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0 0 40px;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-brown);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.tab--active {
  width: 500px;
  height: 92px;
  font-size: 30px;
  background: var(--active-yellow);
  border: 2px solid var(--active-yellow-border);
  box-shadow: 0 10px 22px rgba(93, 68, 50, 0.16);
}

.tab--active::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1.5px dotted var(--muted-brown);
  opacity: 0.5;
  pointer-events: none;
}

.tab--active:hover {
  background: #f9edb0;
}

.tab--active:focus-visible {
  outline: 3px solid rgba(95, 153, 198, 0.55);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .tab--active:active {
    transform: translateY(1px);
  }
}

.tab--inactive {
  width: 420px;
  height: 92px;
  font-size: 28px;
  background: var(--tab-blue);
  border: 2px solid rgba(191, 223, 246, 0.6);
  box-shadow: 0 4px 10px rgba(93, 68, 50, 0.08);
  opacity: 0.9;
  cursor: not-allowed;
}

.tab__bow {
  position: absolute;
  width: 46px;
  height: auto;
  top: -20px;
}

.tab--active .tab__bow {
  left: -16px;
}

.tab--inactive .tab__bow {
  right: -16px;
}

.tab__flag {
  width: 44px;
  height: auto;
  border-radius: 6px;
}

.hero {
  position: relative;
  text-align: center;
  margin: 0 0 20px;
}

.hero__ornament {
  display: block;
  width: 200px;
  height: 4px;
  margin: 0 auto 10px;
  border-top: 2px dotted var(--active-yellow-border);
  opacity: 0.8;
}

.hero__bow {
  width: 60px;
  height: auto;
  margin-bottom: 4px;
}

.hero__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero__flag {
  width: 64px;
  height: auto;
  border-radius: 8px;
}

.hero__title {
  margin: 0;
  font-size: clamp(58px, 6vw, 76px);
  font-weight: 800;
  color: var(--text-brown);
}

.hero__flourish {
  width: 70px;
  height: auto;
  opacity: 0.9;
}

.hero::before,
.hero::after {
  content: "\2661";
  position: absolute;
  top: -6px;
  font-size: 20px;
  opacity: 0.65;
}

.hero::before {
  left: 22%;
  color: var(--pink-heart);
}

.hero::after {
  right: 22%;
  color: var(--blue-heart);
}

.greeting {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 158px;
  background: var(--panel-cream);
  border: 2px solid var(--warm-beige);
  border-radius: 32px;
  padding: 0 32px;
  box-shadow: 0 8px 20px rgba(93, 68, 50, 0.08);
  margin: 0 0 44px;
}

.greeting__mascot {
  position: absolute;
  left: 18px;
  bottom: -6px;
  width: 165px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(93, 68, 50, 0.18));
}

.greeting__label {
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.02em;
}

.greeting::before,
.greeting::after {
  content: "\2661";
  position: absolute;
  font-size: 18px;
  opacity: 0.55;
}

.greeting::before {
  top: 16px;
  right: 24px;
  color: var(--pink-heart);
}

.greeting::after {
  bottom: 16px;
  right: 48px;
  color: var(--blue-heart);
}

.bottom-bow {
  display: block;
  width: 60px;
  height: auto;
  margin: 0 auto 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  column-gap: 24px;
  height: 158px;
  background: var(--panel-white);
  border: 1.5px solid var(--warm-beige);
  border-radius: 28px;
  padding: 20px 28px;
  box-shadow: 0 8px 24px rgba(93, 68, 50, 0.08);
  color: var(--text-brown);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 28px rgba(93, 68, 50, 0.14);
    border-color: var(--soft-pink);
  }
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__label {
  font-weight: 700;
  font-size: 36px;
}

.card__accent {
  font-size: 1rem;
  color: var(--pink-heart);
  opacity: 0.65;
  letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .landing__panel {
    min-height: 0;
  }

  .landing__inner {
    padding: 32px 24px;
  }

  .tab--active,
  .tab--inactive {
    width: 100%;
    max-width: 420px;
    height: 72px;
    font-size: 22px;
  }

  .hero__title {
    font-size: clamp(34px, 8vw, 52px);
  }

  .hero__flag,
  .hero__flourish {
    width: 44px;
  }

  .greeting {
    height: auto;
    min-height: 150px;
    flex-direction: column;
    text-align: center;
    padding: 24px 20px 20px;
  }

  .greeting__mascot {
    position: static;
    width: 130px;
    margin-bottom: 8px;
  }

  .greeting__label {
    font-size: 30px;
  }

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

  .card {
    grid-template-columns: 90px 1fr;
    height: auto;
    padding: 16px 20px;
  }

  .card__icon {
    width: 90px;
    height: 90px;
  }

  .card__label {
    font-size: 26px;
  }

  .charm {
    display: none;
  }
}
