/* Public-home presentation only. Two materials: framed artwork and quiet controls. */
:root {
  --home-panel-edge: #aecddd36;
  --home-panel-top: #1a344a;
  --home-panel-bottom: #102337;
  --home-surface: linear-gradient(145deg, var(--home-panel-top), var(--home-panel-bottom) 78%);
  --home-soft-shadow: 0 20px 45px -24px #000b, inset 0 1px 0 #e1f1ff0b;
  --home-radius: 18px;
}

.hero-description { font-size: 17px; line-height: 1.7; }
.hero-actions .text-link, .collection-directory-link, .team-actions .text-link { font-size: 14px; }
.signin-note, .play-note, .purchase-note { font-size: 12px; line-height: 1.65; }
.hero-content .purchase-note { margin-top: 4px; }
.hero-card strong { font-size: 18px; line-height: 1.3; }
.hero-card .creature-rarity { font-size: 11px; letter-spacing: .9px; }
.creature-card { box-shadow: var(--home-soft-shadow); }
.creature-card figcaption { padding: 13px 9px 12px; }
.creature-card strong { line-height: 1.35; }
.creature-rarity { font-size: 10px; letter-spacing: .8px; }
.collection .section-heading > p { font-size: 16px; }
.welcome-gift small { font-size: 12px; }
.welcome-gift p:not(.eyebrow) { font-size: 14px; }

.button { transition: transform 180ms var(--home-ease, ease-out), box-shadow 180ms ease, background 180ms ease; }
.button > span { transition: transform 200ms var(--home-ease, ease-out), box-shadow 200ms ease; }
.button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff8, 0 3px 0 #7b542a, 0 7px 14px #0003; }

/* The battle artwork reads as a scene, distinct from the growth specimen viewer. */
.team-section { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; padding-bottom: 76px; }
.team-visual {
  isolation: isolate;
  border: 1px solid var(--home-panel-edge);
  border-bottom: 0;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  background: #0b2440;
}
.team-visual img { aspect-ratio: 2.35; object-position: 50% 46%; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.team-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, #d5ecff13 43%, #fff1 46%, transparent 66%);
  transform: translateX(-110%);
}
.team-visual p { padding: 65px 28px 21px; font-size: 14px; background: linear-gradient(0deg,#102337,#102337b3 30%,transparent); }
.team-copy {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  column-gap: 48px;
  row-gap: 20px;
  padding: 31px 30px 34px;
  border: 1px solid var(--home-panel-edge);
  border-top: 0;
  border-radius: 0 0 var(--home-radius) var(--home-radius);
  background: var(--home-surface);
  box-shadow: 0 24px 38px -30px #000c;
}
.team-copy h2 { grid-row: 1 / 3; max-width: none; }
.team-copy > p { margin: 0; max-width: 530px; font-size: 16px; line-height: 1.75; }
.team-actions { margin: 0; gap: 15px 25px; }
.team-actions .button { min-height: 52px; }

.platforms { gap: 30px; }
.platforms .platform-badge {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 16px 13px;
  gap: 10px;
  background: linear-gradient(150deg, #19314775, #10223545);
  border: 1px solid #aecddd25;
  border-radius: 13px;
}
.platforms .platform-symbol { flex: 0 0 30px; width: 30px; color: #b6ccd9; margin: 0; }
.platforms .platform-badge small { font-size: 11px; }
.platforms .platform-list { gap: 12px; }

/* Editorial and community panels use the same edges without competing with creatures. */
.home-guides { padding-top: 30px; }
.home-guides .home-guide-grid { gap: 22px; }
.home-guides .home-guide-card {
  border: 1px solid var(--home-panel-edge);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  box-shadow: var(--home-soft-shadow);
  transition: transform 240ms var(--home-ease, ease-out), border-color 240ms ease, box-shadow 240ms ease;
}
.home-guide-card img { border-radius: 0; transition: transform 500ms ease; }
.home-guides .home-guide-copy { padding: 21px 21px 17px; }
.home-guide-category { font-size: 12px; letter-spacing: .2px; margin-bottom: 9px; }
.home-guide-read { font-size: 13px; min-height: 40px; padding-top: 8px; }
.home-guide-read > span { transition: transform 200ms ease; }
.home-guide-copy h3 { font-size: 19px; line-height: 1.45; }

.community-card[data-network] {
  min-height: 268px;
  padding: 23px 21px 18px;
  border: 1px solid var(--home-panel-edge);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  box-shadow: var(--home-soft-shadow);
  transition: transform 240ms var(--home-ease, ease-out), border-color 240ms ease, box-shadow 240ms ease;
}
.community-card::before {
  display: block;
  left: 20px;
  right: 20px;
  height: 1px;
  opacity: .65;
  background: linear-gradient(90deg,transparent,var(--network),transparent);
}
.community-brand { margin-bottom: 11px; min-height: 42px; }
.community-logo { width: 42px; height: 42px; padding: 0; flex: 0 0 42px; }
.community-logo img, .community-logo-symbol > svg { width: 34px; height: 34px; object-fit: contain; }
.community-card[data-network="youtube"] .community-logo img { width: 41px; height: 41px; }
.community-card[data-network="tiktok"] .community-logo img { width: 31px; height: 35px; }
.community-card[data-network="facebook"] .community-logo img { width: 33px; height: 33px; }
.community-handle { font-size: 12px; }
.community-audience { margin-top: 21px; margin-bottom: 19px; }
.community-audience strong { font-size: 38px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.community-audience > span { font-size: 12px; }
.community-action { font-size: 12px; min-height: 37px; }
.community-outbound { width: 27px; height: 27px; font-size: 14px; }
.community-snapshot { font-size: 11px; }
.provider-mark > img { width: 22px; height: 24px; object-fit: contain; }

.home-inspector { background: var(--home-surface); border-color: var(--home-panel-edge); border-radius: 22px; }
.home-inspector[open] { animation: home-inspector-reveal 180ms ease-out; }
.home-inspector-art { border-color: var(--home-panel-edge); border-radius: 15px; }
.home-inspector-copy { padding-top: 20px; }
.home-inspector-rarity { font-size: 11px; letter-spacing: .7px; }
.home-inspector-type { font-size: 14px; }
.home-inspector-strength { font-size: 14px; }
.home-inspector-link { min-height: 47px; font-size: 14px; background: #142e4055; }
.home-card-flight {
  position: fixed;
  inset: auto;
  z-index: 20;
  max-width: none;
  pointer-events: none;
  object-fit: cover;
  transform-origin: 0 0;
  will-change: transform, opacity;
  border-radius: 14px;
  box-shadow: 0 12px 40px #0005;
}
.home-inspector[data-flight] { animation: none; overflow: auto; transform: none; }
.home-inspector[data-flight] .home-inspector-art > img:not(.home-card-flight) { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .team-visual:hover img { transform: scale(1.025); }
  .team-visual:hover::after { animation: home-scene-light 850ms ease-out both; }
  .home-guides .home-guide-card:hover, .community-card[data-network]:hover {
    transform: translateY(-4px);
    border-color: #b4d4e86b;
    box-shadow: 0 24px 38px -22px #000d, inset 0 1px 0 #e1f1ff15;
  }
  .home-guide-card:hover img { transform: scale(1.025); }
  .home-guide-card:hover .home-guide-read > span { transform: translate(3px,-2px); }
  .button:hover > span { box-shadow: 0 0 0 4px #14243514; }
}
@keyframes home-scene-light { to { transform: translateX(110%); } }
@keyframes home-inspector-reveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1050px) {
  .platforms { grid-template-columns: minmax(0,1fr); }
  .platforms .platform-list { max-width: 700px; width: 100%; }
}
@media (max-width: 800px) {
  .hero-content h1 { font-size: clamp(34px,8.7vw,48px); }
  .hero-description { font-size: 15px; line-height: 1.65; margin-top: 14px; }
  .hero-actions .text-link { font-size: 12px; }
  .signin-note, .play-note, .purchase-note { font-size: 11px; }
  .hero-card .creature-rarity { font-size: 9px; letter-spacing: .45px; }
  .home-interactive .hero-card .creature-rarity { font-size: 9px; }
  .hero-card strong { font-size: clamp(12px,3.15vw,16px); line-height: 1.35; }
  .hero-card figcaption { padding: 8px 6px 9px; min-height: 62px; }
  .site-header nav a { font-size: 12px; }
  .collection .section-heading > p { font-size: 14px; }
  .collection-directory-link { font-size: 13px; }
  .creature-gallery .creature-card strong { font-size: 12px; line-height: 1.35; }
  .creature-gallery .creature-rarity { font-size: 9px; letter-spacing: .25px; }
  .creature-gallery .creature-card figcaption { padding: 10px 5px 9px; min-height: 67px; }
  .welcome-gift small { font-size: 11px; }
  .welcome-gift p:not(.eyebrow) { font-size: 13px; }
  .team-section { padding-top: 16px; padding-bottom: 48px; }
  .team-visual img { aspect-ratio: 1.6; }
  .team-visual p { font-size: 12px; padding: 50px 19px 15px; }
  .team-copy { grid-template-columns: minmax(0,1fr); padding: 23px 19px 25px; row-gap: 18px; }
  .team-copy h2 { grid-row: auto; font-size: 32px; }
  .team-copy > p { font-size: 14px; line-height: 1.75; }
  .team-actions { gap: 15px 22px; }
  .team-actions .text-link { font-size: 13px; }
  .platforms .platform-badge { flex-direction: column; align-items: flex-start; padding: 14px 12px; gap: 8px; min-height: 117px; }
  .platforms .platform-symbol { height: 28px; flex-basis: 28px; }
  .platforms .platform-badge strong { font-size: 13px; line-height: 1.4; }
  .platforms .platform-badge small { font-size: 10px; }
  .platforms .platform-list { gap: 9px; }
  .home-guides .home-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-guides .home-guide-copy { padding: 15px 13px; }
  .home-guide-copy h3 { font-size: 16px; line-height: 1.5; }
  .home-guide-category { font-size: 11px; }
  .home-guide-read { font-size: 12px; padding-top: 5px; min-height: 35px; }
  .community-card[data-network] { padding: 16px 14px; min-height: 248px; }
  .community-card::before { left: 14px; right: 14px; }
  .community-platform h3 { font-size: 18px; }
  .community-handle { font-size: 11px; }
  .community-audience strong { font-size: 33px; }
  .community-audience > span { font-size: 11px; }
  .community-action { font-size: 11px; }
  .community-snapshot { font-size: 11px; }
  .community-logo, .community-logo img, .community-logo-symbol > svg { width: 31px; height: 31px; }
  .community-logo { flex-basis: 34px; }
  .community-card[data-network="youtube"] .community-logo img { width: 38px; height: 38px; }
  .home-interactive .community-logo { width: 36px; height: 36px; padding: 0; background: none; }
  .home-interactive .community-logo img, .home-interactive .community-logo-symbol > svg { width: 27px; height: 27px; }
  .home-interactive .community-card[data-network="youtube"] .community-logo img { width: 34px; height: 34px; }
  .home-interactive .community-card[data-network="tiktok"] .community-logo img { width: 25px; height: 29px; }
  .home-interactive .community-card[data-network="facebook"] .community-logo img { width: 27px; height: 27px; }
  .home-inspector-copy { padding-top: 0; }
  .home-inspector-strength { font-size: 13px; }
}
@media (max-width: 360px) {
  .site-header nav a { font-size: 11px; }
  .hero-actions { gap: 10px; }
  .hero-actions .text-link { font-size: 11px; }
  .creature-gallery .creature-card strong { font-size: 13px; }
  .platforms .platform-badge { padding: 12px 9px; }
}
@media (max-width: 620px) {
  .home-inspector { border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-inspector[open] { animation: none; }
  .home-card-flight { display: none; }
  .team-visual img, .home-guide-card img, .home-guide-read > span,
  .button, .button > span, .home-guides .home-guide-card, .community-card[data-network] { transition: none; }
  .team-visual:hover img, .home-guide-card:hover img,
  .home-guides .home-guide-card:hover, .community-card[data-network]:hover,
  .home-guide-card:hover .home-guide-read > span { transform: none; }
  .team-visual::after { display: none; animation: none; }
}
