/* MeawCafe preview additions (loaded after styles.css) */
.socials-nav { display: flex; }
.socials-nav a { width: 36px; height: 36px; }
@media (max-width: 1100px) { .socials-nav { display: none; } }

/* Pixelify Sans draws "ы" and "ь" badly, Tiny5 keeps Cyrillic readable */
html:lang(ru) { --font-body: "Tiny5", system-ui, sans-serif; }

.soon {
  display: inline-block; margin: 6px 0 34px; padding: 14px 22px; text-decoration: none; cursor: pointer;
  font-family: var(--font-head); font-size: clamp(14px, 2vw, 20px); color: #1c1203; background: var(--gold);
  box-shadow: 0 0 0 4px #000, 6px 6px 0 4px rgba(0, 0, 0, .45); animation: rise .9s .3s var(--ease-pop) both, soonPulse 1.6s steps(2) infinite;
  transition: transform .12s steps(2), box-shadow .12s steps(2), filter .12s steps(2);
}
.soon:hover { transform: translateY(-3px); filter: brightness(1.08); }
.soon:active { transform: translateY(4px); box-shadow: 0 0 0 4px #000, 2px 2px 0 4px rgba(0, 0, 0, .45); }
.soon:focus-visible { outline: 4px solid var(--pink); outline-offset: 6px; }
@keyframes soonPulse { 50% { background: #fde68a; } }

/* story before / after */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 48px; }
.ba-side { margin: 0; background: var(--card); padding: 16px; box-shadow: 0 0 0 4px #000, 10px 10px 0 0 var(--gold); }
.ba-before { box-shadow: 0 0 0 4px #000, 10px 10px 0 0 #475569; }
.ba-scene { position: relative; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 4px #000; background: #000; }
.ba-scene > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes idle { 50% { transform: translateY(-3%) scaleY(1.02); } }
.ba figcaption { margin-top: 14px; display: grid; gap: 4px; }
.ba figcaption b { font-family: var(--font-head); font-weight: 400; font-size: 12px; color: var(--gold); }
.ba figcaption span { color: var(--fg-dim); font-size: 16px; }
.ba-arrow { font-family: var(--font-head); font-size: 28px; color: var(--pink); animation: blink 1s steps(1) infinite; }
.story-pick { margin-top: 56px; max-width: 70ch; color: var(--fg-dim); border-left: 4px solid var(--pink); padding-left: 16px; }

/* gameplay steps / paths */
.steps { grid-template-columns: repeat(3, 1fr); }
.sub-h { font-size: clamp(14px, 2vw, 20px); color: var(--gold); margin-top: 72px; }
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px; }
.path { background: var(--card); padding: 22px; box-shadow: 0 0 0 4px #000; transition: transform .25s var(--ease-pop), box-shadow .25s; }
.path:hover { transform: translateY(-8px); box-shadow: 0 0 0 4px #000, 0 12px 0 0 var(--pink); }
.path-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; background: #0b1020; box-shadow: 0 0 0 4px #000; font-size: 32px; animation: idle 2.4s steps(2) infinite; }
.path h3 { font-size: 12px; }
.path p { color: var(--fg-dim); font-size: 17px; margin: 0; }

/* cat class cards */
.cards .card img.sprite { background: radial-gradient(circle at 50% 70%, #3a2f52, #1b2036 70%); padding: 6px; animation: idle 2.4s steps(2) infinite; }
.card .spark { position: absolute; width: 8px; height: 8px; background: #fde68a; animation: blink 1.2s steps(1) infinite; pointer-events: none; }
.card .yield img { width: 18px; margin: 0; box-shadow: none; animation: spin 1.4s steps(6) infinite; }
.card p.desc { color: var(--fg-dim); font-size: 15px; margin: 0 0 4px; min-height: 3.1em; }
.card .variants { display: flex; gap: 8px; margin: 0 0 14px; }
.card .variants button { width: 40px; height: 40px; padding: 2px; background: #0b1020; border: 0; cursor: pointer; box-shadow: 0 0 0 3px #000; opacity: .55; transition: transform .2s var(--ease-pop), opacity .2s steps(2); }
.card .variants button:hover, .card .variants button:focus-visible { opacity: 1; transform: translateY(-3px); }
.card .variants button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--rc); }
.card .variants img { width: 100%; margin: 0; box-shadow: none; }
.card .cat-name { font-size: 15px; color: var(--rc); margin: 0 0 6px; }

/* breeding */
.breeding { background: var(--bg-2); border-block: 4px solid #000; }
.breed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.breeding p { color: var(--fg-dim); }
.breeding .checks { margin-top: 24px; }
.breed-pair { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-size: 20px; }
.breed-pair img { width: 88px; box-shadow: 0 0 0 4px #000; background: #0b1020; }
.egg { display: grid; place-items: center; width: 88px; height: 88px; background: var(--pink); color: #1a0510; box-shadow: 0 0 0 4px #000; animation: bob 3s ease-in-out infinite; }
.breed-ex { text-align: center; font-size: 15px; margin: 12px 0 22px; }
#breed-bars i::after { background: repeating-linear-gradient(90deg, var(--pink) 0 12px, #db2777 12px 16px); }
.alloc.in i::after { width: calc(var(--p) * 2%); }

/* upgrade case */
.upgrade { background: radial-gradient(900px 500px at 50% 0%, #2a1f3d 0%, transparent 70%), var(--bg); }
.case { margin-top: 40px; background: var(--card); padding: 24px; box-shadow: 0 0 0 4px #000, 12px 12px 0 0 var(--purple); }
.reel-wrap { position: relative; }
.reel { overflow: hidden; background: #0b1020; box-shadow: 0 0 0 4px #000; padding: 14px 0; }
.reel-strip { display: flex; gap: 14px; width: max-content; will-change: transform; padding-left: 14px; }
.reel-item { --rc: var(--r-common); flex: none; width: 124px; background: var(--card); padding: 0; box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--rc); margin: 3px 0; }
.reel-item[data-r="uncommon"] { --rc: var(--r-uncommon); }
.reel-item[data-r="rare"] { --rc: var(--r-rare); }
.reel-item[data-r="epic"] { --rc: var(--r-epic); }
.reel-item[data-r="legendary"] { --rc: var(--r-legendary); }
.reel-item img { width: 100%; }
.reel-marker { position: absolute; left: 50%; top: -10px; bottom: -10px; width: 4px; margin-left: -2px; background: var(--gold); z-index: 2; box-shadow: 0 0 0 2px #000, 0 0 14px var(--gold); pointer-events: none; }
.reel-marker::before, .reel-marker::after { content: ""; position: absolute; left: -8px; width: 20px; height: 10px; background: var(--gold); box-shadow: 0 0 0 2px #000; }
.reel-marker::before { top: 0; }
.reel-marker::after { bottom: 0; }
.case-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin: 30px 0 8px; }
.case-ctl .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.odds { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.odds li { --rc: var(--r-common); display: flex; gap: 8px; align-items: center; background: #0b1020; padding: 8px 12px; font-size: 15px; box-shadow: inset 4px 0 0 var(--rc); }
.odds li[data-r="uncommon"] { --rc: var(--r-uncommon); }
.odds li[data-r="rare"] { --rc: var(--r-rare); }
.odds li[data-r="epic"] { --rc: var(--r-epic); }
.odds li[data-r="legendary"] { --rc: var(--r-legendary); }
.odds b { font-family: var(--font-head); font-weight: 400; font-size: 11px; color: var(--rc); }

.result { --rc: var(--r-common); position: relative; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 32px; align-items: center; margin: 56px auto 0; max-width: 780px; background: var(--card); padding: 24px; box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--rc), 0 20px 50px -14px var(--rc); animation: rise .6s var(--ease-pop) both; }
.result[hidden] { display: none; }
.result[data-r="uncommon"] { --rc: var(--r-uncommon); }
.result[data-r="rare"] { --rc: var(--r-rare); }
.result[data-r="epic"] { --rc: var(--r-epic); }
.result[data-r="legendary"] { --rc: var(--r-legendary); }
.result[data-r="legendary"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) 45%, transparent 60%) -200% 0 / 300% 100% no-repeat; animation: shine 3.5s ease-in-out infinite; }
.result img { width: 100%; box-shadow: 0 0 0 4px #000; }
.result .tag { display: inline-block; font-family: var(--font-head); font-size: 9px; padding: 6px 8px; background: var(--rc); color: #0b1020; margin-bottom: 12px; }
.result h3 { font-size: 14px; color: var(--rc); }
.attrs { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.attrs li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: 16px; border-bottom: 4px dotted var(--line); padding-bottom: 6px; }
.attrs span { color: var(--fg-dim); }
.attrs em { font-style: normal; font-family: var(--font-head); font-size: 10px; color: var(--gold); }
.attrs b { font-weight: 600; text-align: right; }
.fx { position: fixed; width: 8px; height: 8px; pointer-events: none; z-index: 80; animation: fx 1s steps(10) forwards; }
@keyframes fx { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* NFT gallery */
.gallery { grid-template-columns: repeat(4, 1fr); margin-top: 40px; gap: 22px; }
.g-tile { --rc: var(--r-common); box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--rc); }
.g-tile[data-r="uncommon"] { --rc: var(--r-uncommon); }
.g-tile[data-r="rare"] { --rc: var(--r-rare); }
.g-tile[data-r="epic"] { --rc: var(--r-epic); }
.g-tile[data-r="legendary"] { --rc: var(--r-legendary); }
.g-tile:hover { box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--rc), 0 12px 0 0 var(--rc); }
.g-tile figcaption span { color: var(--rc); font-family: var(--font-head); font-size: 9px; align-self: center; }
.g-secret { position: relative; background: #0b1020; text-align: center; --rc: var(--gold); }
.g-secret img { filter: brightness(0); }
.g-secret .q { position: absolute; top: 22%; left: 0; right: 0; font-family: var(--font-head); font-size: clamp(28px, 5vw, 56px); color: var(--gold); text-shadow: 4px 4px 0 #000; animation: bob 3s ease-in-out infinite; }
.g-secret figcaption { display: block; font-size: 15px; }

/* economy */
.eco { background: var(--card); padding: 30px; box-shadow: 0 0 0 4px #000, 10px 10px 0 0 var(--gold); }
.eco-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 26px; font-family: var(--font-head); font-size: 22px; }
.eco-ic { display: grid; place-items: center; width: 64px; height: 64px; background: #0b1020; box-shadow: 0 0 0 4px #000; font-size: 32px; font-family: var(--font-body); animation: idle 2.4s steps(2) infinite; }
.eco-ic img, .path-ic img { width: 40px; }
.eco .alloc i::after { background: repeating-linear-gradient(90deg, var(--gold) 0 12px, var(--gold-d) 12px 16px); }
.eco .alloc li:nth-child(3) i::after { background: repeating-linear-gradient(90deg, var(--green) 0 12px, #15803d 12px 16px); }

/* roadmap with 6 items */
.timeline { grid-template-columns: repeat(3, 1fr); }

/* waitlist */
.cta-cat { background: transparent; box-shadow: none; filter: drop-shadow(4px 4px 0 #000); }
.built { display: flex; align-items: center; gap: 8px; }
.sol { width: 20px; height: 20px; fill: var(--green); }

@media (max-width: 1080px) {
  .paths, .steps { grid-template-columns: repeat(2, 1fr); }
  .breed-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .result { grid-template-columns: 1fr; }
  .result img { max-width: 260px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .paths, .steps { grid-template-columns: 1fr; }
  .reel-item { width: 100px; }
  .breed-pair img, .egg { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-arrow, .egg, .path-ic, .eco-ic, .card img.sprite, .soon { animation: none; }
}

.token-grid > *, .breed-grid > *, .mission-grid > * { min-width: 0; }
@media (max-width: 1100px) { .token-grid, .breed-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .eco-row { gap: 8px; font-size: 16px; } .eco-ic { width: 52px; height: 52px; } }

/* hero numbers: the three facts we want people to notice */
.hero-stats { gap: 18px; }
.hero-stats li { flex: 1 1 140px; max-width: 190px; padding: 14px 16px; background: var(--card); box-shadow: 0 0 0 4px #000, 6px 6px 0 4px rgba(0, 0, 0, .45); }
.hero-stats li:nth-child(1) { border-top: 4px solid var(--green); }
.hero-stats li:nth-child(2) { border-top: 4px solid var(--blue); }
.hero-stats li:nth-child(3) { border-top: 4px solid var(--pink); }
.hero-stats b { font-size: 28px; color: var(--gold); text-shadow: 3px 3px 0 #000; margin-bottom: 8px; }
.hero-stats span { display: block; color: var(--fg); font-size: 15px; line-height: 1.3; }

/* estimated NFT value in USD */
.attrs li.price b { font-family: var(--font-head); font-weight: 400; font-size: 16px; color: var(--green); text-shadow: 2px 2px 0 #000; display: inline-block; }
.price-note { margin: -10px 0 0; font-size: 13px; color: var(--fg-dim); }
.g-tile { position: relative; }
.g-price { position: absolute; top: 8px; right: 8px; padding: 4px 6px; background: rgba(11, 16, 32, .85); box-shadow: 0 0 0 2px #000; font-family: var(--font-head); font-weight: 400; font-size: 9px; color: var(--green); }

/* upgrade case: three stages and the assembled NFT */
.stages { list-style: none; padding: 0; margin: 0 0 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.stages li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: #0b1020; box-shadow: 0 0 0 3px #000; font-family: var(--font-head); font-size: 10px; color: var(--fg-dim); transition: transform .2s var(--ease-pop); }
.stages li.on { color: #1c1203; background: var(--gold); transform: translateY(-3px); animation: blink 1s steps(1) infinite; }
.stages li.done { color: var(--green); box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--green); }
.stages img { width: 32px; height: 32px; box-shadow: 0 0 0 2px #000; background: radial-gradient(circle at 50% 70%, #3a2f52, #1b2036 70%); }
.reel-item[data-k="cat"] img, .reel-item[data-k="acc"] img { background: radial-gradient(circle at 50% 70%, #3a2f52, #1b2036 70%); }
.nft-build { position: relative; aspect-ratio: 1; box-shadow: 0 0 0 4px #000; overflow: hidden; }
.result .nft-build img { position: absolute; inset: 0; width: 100%; height: 100%; box-shadow: none; }
@media (max-width: 760px) { .nft-build { max-width: 260px; width: 100%; margin-inline: auto; } }

.stages img[hidden] { display: none; }   /* global img{display:block} would show an empty icon */
.member .handle { display: inline-block; margin: 4px 0 10px; font-family: var(--font-head); font-size: 9px; color: var(--blue); text-decoration: none; }
.member .handle:hover { color: var(--gold); }
.member img[src$=".jpg"] { image-rendering: auto; }

.eco-choice { padding-left: 14px; box-shadow: inset 4px 0 0 var(--pink); }

/* language dropdown */
.lang { position: relative; padding: 4px; }
.lang .lang-btn { font-family: "Press Start 2P", monospace; font-size: 10px; min-width: 64px; min-height: 36px; padding: 0 10px; background: var(--gold); color: #1c1203; border: 0; cursor: pointer; }
.lang .lang-btn:hover { filter: brightness(1.08); background: var(--gold); color: #1c1203; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 4px; min-width: 190px; background: #000; box-shadow: 0 0 0 4px #000, 6px 6px 0 4px rgba(0, 0, 0, .45); }
.lang-list[hidden] { display: none; }
.lang-list li { display: flex; gap: 12px; align-items: center; padding: 9px 12px; cursor: pointer; color: var(--fg); font-size: 16px; }
.lang-list li b { font-family: var(--font-head); font-weight: 400; font-size: 9px; color: var(--fg-dim); min-width: 22px; }
.lang-list li:hover, .lang-list li:focus-visible { background: var(--card); outline: none; }
.lang-list li[aria-selected="true"] { background: var(--gold); color: #1c1203; }
.lang-list li[aria-selected="true"] b { color: #1c1203; }

/* pixel fonts have no CJK glyphs: DotGothic16 keeps the pixel look for Chinese/Japanese, Korean falls back to the system */
html:lang(zh), html:lang(ja), html:lang(ko) { --font-head: "DotGothic16", "Press Start 2P", system-ui, sans-serif; --font-body: "DotGothic16", system-ui, sans-serif; }
html:lang(zh) .nav-links a, html:lang(ja) .nav-links a, html:lang(ko) .nav-links a, html:lang(zh) .kicker, html:lang(ja) .kicker, html:lang(ko) .kicker { font-size: 13px; }

/* legal links */
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; padding-top: 20px; border-top: 2px dashed var(--line); }
.legal a { color: var(--fg-dim); font-size: 14px; text-decoration: none; }
.legal a:hover { color: var(--gold); text-decoration: underline; }

/* Solana / Web3 block right after the hero */
.web3 { padding-block: 56px 72px; background: var(--bg-2); border-block: 4px solid #000; }
.w3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.w3-grid .path-ic .sol { width: 32px; height: 32px; fill: var(--green); }
.w3-grid .path-ic img[src$="token.png"] { width: 36px; }
@media (max-width: 900px) { .w3-grid { grid-template-columns: 1fr; } }
