button, input, select { font: inherit; font-weight: 800; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.page-container { max-width: 1440px; width: 100%; margin: 0 auto; padding: 48px 40px 64px; }
.eyebrow { margin: 0 0 16px; color: var(--lime); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -.045em; font-style: italic; }
h1 span { color: var(--lime); }
h2 { font-size: 24px; letter-spacing: -.02em; font-style: italic; }
.intro { max-width: 620px; margin-bottom: 0; color: #a5a5a5; font-size: 15px; line-height: 1.8; }
.index-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.search-field { display: flex; flex: 0 1 320px; align-items: center; gap: 12px; min-width: 0; padding: 0 14px; border: 2px solid var(--stroke); border-radius: 8px; background: #171717; }
.search-field > svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.search-field input { min-width: 0; width: 100%; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 13px; box-shadow: none; }
.element-select { width: 170px; height: 48px; padding: 0 14px; border: 2px solid var(--stroke); border-radius: 8px; background: #171717; color: #fff; font-size: 13px; font-weight: 800; }
.element-options { background: #171717; color: #fff; border: 2px solid var(--stroke); border-radius: 8px; font-family: Rubik, sans-serif; font-weight: 800; z-index: 100; }
.global-forms { display: flex; gap: 0; padding: 4px; border: 2px solid var(--stroke); border-radius: 8px; background: #171717; }
.global-forms button { height: 36px; min-width: 92px; padding: 0 14px; border: 0; border-radius: 4px; color: #aaa; background: transparent; font-size: 13px; font-weight: 800; }
.global-forms button[data-state='on'] { color: #080808; background: var(--lime); }
.global-forms button:hover:not(:disabled) { color: #fff; background: #292929; }
.global-forms button[data-state='on']:hover { color: #080808; background: var(--lime); }
.global-forms svg { width: 15px; height: 15px; }
.aurimal-grid { display: grid; grid-template-columns: repeat(auto-fill, 152px); gap: 16px; }
.aurimal-card { min-width: 0; }
.aurimal-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 0; width: 152px; height: 152px; aspect-ratio: 1; padding: 12px; border: 2px solid var(--stroke); border-radius: 9px; background: #151515; color: #fff; transition: border-color 60ms ease-out, transform 60ms ease-out; white-space: normal; }
.aurimal-tile:hover { border-color: var(--lime); color: #fff; background: #191b13; transform: scale(1.035); }
.id-label { align-self: flex-start; color: #a5a5a5; font-size: 10px; letter-spacing: .06em; }
.tile-name { width: 100%; text-align: center; font-size: 14px; line-height: 1.2; font-style: italic; overflow-wrap: anywhere; }
.aurimal-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 88px; aspect-ratio: 1; }
.aurimal-image { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.aurimal-image[data-placeholder='true'] { width: 40px; height: 40px; opacity: .2; }
[data-selected-form='Shiny'] .aurimal-tile { background: #1b1a12; }
[data-selected-form='Shiny'] .aurimal-image[data-placeholder='true'] { opacity: .35; }
.empty-state { padding: 48px 0; color: #a5a5a5; }
.detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.back-link { display: inline-block; color: #b6b6b6; font-size: 13px; }
.back-link:hover, .text-link { color: var(--lime); }
.detail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.detail-art-panel { padding: 20px; border: 2px solid var(--stroke); border-radius: 10px; background: #151515; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.element { display: inline-flex; padding: 6px 12px; border: 1px solid #534723; border-radius: 5px; color: #f7da00; background: #262212; font-size: 12px; }
.detail-art-panel .aurimal-art { width: 100%; aspect-ratio: 1; margin-top: 16px; }
.detail-art-panel .aurimal-image:not([data-placeholder='true']) { width: 85%; height: 85%; }
.detail-art-panel .aurimal-image[data-placeholder='true'] { width: 64px; height: 64px; }
.detail-copy h1 { font-size: clamp(34px, 4.3vw, 60px); margin-bottom: 10px; overflow-wrap: anywhere; }
.species-title { color: #aaa; font-size: 16px; margin-bottom: 28px; }
.description { color: #b5b5b5; font-size: 15px; line-height: 1.8; }
.long-description { margin: 40px 0 0; max-width: 1000px; }
.species-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px 0 28px; margin: 0 0 30px; border-top: 2px solid var(--stroke); border-bottom: 2px solid var(--stroke); }
.species-facts dt { color: #999; font-size: 11px; margin-bottom: 8px; }
.species-facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.stats-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.stats-heading h2 { margin: 0; }
.stats-heading > span { color: #999; font-size: 12px; }
.stats-heading strong { color: var(--lime); margin-left: 6px; }
.stat-list { display: grid; gap: 14px; }
.stat-row { display: grid; grid-template-columns: 100px 32px 1fr; gap: 14px; align-items: center; font-size: 12px; }
.stat-row > span { color: #aaa; }
.stat-row meter { width: 100%; height: 10px; border: 0; background: #282828; border-radius: 2px; }
.stat-row meter::-webkit-meter-bar { background: #282828; border: 0; border-radius: 2px; }
.stat-row meter::-webkit-meter-optimum-value { background: var(--lime); border-radius: 2px; }
.stat-row meter::-moz-meter-bar { background: var(--lime); }
.evolution-section { margin-top: 32px; padding-top: 32px; border-top: 2px solid var(--stroke); }
.evolution-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.evolution-member { display: grid; gap: 10px; flex: 1; min-width: 140px; padding: 24px; border: 2px solid var(--stroke); border-radius: 8px; background: #151515; }
.evolution-member > span { color: #999; font-size: 11px; }
.evolution-member.is-current, .evolution-member:hover { border-color: var(--lime); }
.evolution-member strong { font-size: 18px; font-style: italic; overflow-wrap: anywhere; }
.evolution-step { display: grid; gap: 8px; text-align: center; color: #a5a5a5; font-size: 11px; }
.evolution-step span:last-child { color: var(--lime); font-size: 24px; }
.legal-page h1 { max-width: 950px; }
.placeholder-label { display: inline-block; margin: 12px 0 24px; padding: 10px 14px; border: 1px solid var(--lime); border-radius: 5px; color: var(--lime); font-size: 12px; }
.legal-page > p:last-child { max-width: 680px; font-size: 15px; line-height: 1.9; color: #a5a5a5; }
.api-section { max-width: 900px; margin-top: 48px; }
.api-section h2 { margin: 40px 0 16px; }
.api-section p { font-size: 14px; line-height: 1.9; color: #aaa; }
.code-link { display: block; padding: 18px 20px; border: 2px solid var(--stroke); border-radius: 8px; color: var(--lime); font-size: 14px; overflow-wrap: anywhere; }
.api-section pre { padding: 24px; overflow: auto; border: 2px solid var(--stroke); border-radius: 8px; background: #171717; font-size: 12px; line-height: 2; }
.api-section code { font-family: Rubik, sans-serif; font-weight: 800; }
.catalog-notice { padding: 20px 40px; background: #282212; color: var(--yellow); font-size: 13px; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 76px 24px 48px; border-top: 2px solid var(--stroke); text-align: center; }
.footer-aurimals { width: min(520px, 100%); }
.footer-aurimals img { display: block; width: 100%; height: auto; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 32px; margin: 4px 0 12px; }
.site-footer nav a { color: #b8b8b8; font-size: 13px; }
.site-footer nav a:hover { color: var(--lime); }
.footer-real-labs { display: block; width: 96px; height: auto; }
.site-footer > p { margin: 0; color: #888; font-size: 11px; line-height: 1.8; }
@media (max-width: 1000px) {
  .page-container { padding: 40px 24px 56px; }
  .detail-layout { gap: 32px; }
}
@media (max-width: 760px) {
  .page-container { padding: 32px 20px 48px; }
  .index-toolbar { gap: 12px; }
  .search-field { flex: 1 1 100%; }
  .element-select { width: 150px; }
  .global-forms button { min-width: 82px; padding: 0 10px; }
  .aurimal-grid { grid-template-columns: repeat(auto-fill, 140px); gap: 14px; }
  .aurimal-tile { width: 140px; height: 140px; }
  .aurimal-art { width: 76px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-art-panel { width: min(260px, 100%); }
  .evolution-chain { gap: 12px; }
  .evolution-member { padding: 18px; }
  .site-footer { padding: 56px 20px 36px; gap: 30px; }
}
@media (max-width: 430px) {
  .detail-topbar { align-items: flex-start; flex-direction: column; }
  .element-select { width: 100%; }
  .aurimal-grid { grid-template-columns: repeat(2, minmax(0, 140px)); gap: 12px; }
  .aurimal-tile { width: 100%; height: auto; aspect-ratio: 1; min-height: 124px; }
  .aurimal-art { width: 66px; }
  .tile-name { font-size: 13px; }
  .evolution-chain { flex-direction: column; align-items: stretch; }
  .evolution-step { gap: 0; }
  .evolution-step span:last-child { transform: rotate(90deg); }
  .stat-row { grid-template-columns: 86px 28px 1fr; gap: 8px; }
}
