:root {
  --cream: #fff4e2;
  --cream-2: #ffebd0;
  --paper: #fffbf4;
  --coral: #ff7b6b;
  --coral-dark: #e0584a;
  --sunny: #ffc94a;
  --mint: #46c9a7;
  --sky: #5bb8f5;
  --pink: #ff7bb0;
  --purple: #a98bff;
  --plum: #4a2f4e;
  --plum-soft: #6e5470;
  --plum-2: #8c7390;
  --line: rgba(74, 47, 78, 0.12);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(74, 47, 78, 0.12);
  --title: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --body: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.15; letter-spacing: 0.2px; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 14px; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 244, 226, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font-family: var(--title); font-size: 26px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--plum-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--coral-dark); }
@media (max-width: 640px) { .nav { gap: 12px; font-size: 14px; } .nav .hide-sm { display: none; } .brand { font-size: 22px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(closest-side, rgba(255, 201, 74, 0.35), transparent 70%),
              radial-gradient(closest-side at 80% 30%, rgba(255, 123, 176, 0.22), transparent 70%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--plum-soft); max-width: 34ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #fff; box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--plum); }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(70, 201, 167, 0.2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: linear-gradient(#8be26a, #4db832); color: #fff; font-family: var(--title); font-size: 20px;
  padding: 12px 22px; border-radius: 16px; box-shadow: 0 5px 0 #2f8a1d, 0 12px 24px rgba(47, 138, 29, 0.25);
  text-shadow: 0 2px 0 rgba(47, 122, 31, 0.6);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--plum); text-shadow: none; box-shadow: 0 5px 0 #d6c3aa, 0 12px 24px rgba(74, 47, 78, 0.1); }
.hero-art { position: relative; aspect-ratio: 1 / 0.9; }
.hero-art img { position: absolute; filter: drop-shadow(0 16px 18px rgba(74, 47, 78, 0.18)); animation: bob 3.2s ease-in-out infinite; }
.hero-art .a { width: 58%; left: 22%; top: 6%; z-index: 3; }
.hero-art .b { width: 40%; left: -2%; top: 38%; z-index: 2; animation-delay: -1.1s; }
.hero-art .c { width: 40%; right: -2%; top: 36%; z-index: 2; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } .hero-art { max-width: 460px; margin: 0 auto; width: 100%; } }

/* ---------------------------------------------------------------- sections */
section { padding: 48px 0; }
.center { text-align: center; }
.sub { color: var(--plum-soft); max-width: 60ch; margin: 0 auto 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 2px solid #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 10px; }
.card p { color: var(--plum-soft); margin: 0; }
.roster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(3, 1fr); } }
.pet { background: linear-gradient(180deg, #e8f5ff, #fff 70%); border: 2px solid #fff; border-radius: 20px; padding: 10px 8px 12px; text-align: center; box-shadow: var(--shadow); }
.pet img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pet b { display: block; font-family: var(--title); font-weight: 400; font-size: 18px; }
.pet span { font-size: 13px; color: var(--plum-2); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.rare { background: var(--sky); } .epic { background: var(--purple); } .legendary { background: #f0a51e; }
.pet.r-epic { background: linear-gradient(180deg, #efe8ff, #fff 70%); }
.pet.r-legendary { background: linear-gradient(180deg, #fff0cc, #fff 70%); }
.band { background: linear-gradient(135deg, #ffe3a8, #ffc2d6); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.band ul { margin: 0; padding-left: 20px; }

/* ---------------------------------------------------------------- documents */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc h2 { font-size: 26px; margin-top: 34px; }
.doc h3 { font-size: 20px; margin-top: 22px; }
.doc .meta { color: var(--plum-2); font-weight: 600; margin-bottom: 20px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--cream-2); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.callout { background: #effff7; border: 2px solid #c9f1e3; border-radius: 18px; padding: 16px 18px; margin: 16px 0 22px; }
.callout.warn { background: #fff4f0; border-color: #ffd4ca; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 12px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--title); display: grid; place-items: center; }
details { background: var(--paper); border: 2px solid #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-family: var(--title); color: var(--coral); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details > div { margin-top: 10px; color: var(--plum-soft); }
.mail { font-family: var(--title); font-size: 24px; text-decoration: none; }
kbd { font-family: var(--body); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; padding: 1px 7px; font-size: 15px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--plum-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--plum-soft); text-decoration: none; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
