:root {
  --bg: #121412; --bg-2: #171a17; --panel: #1b1e1b; --panel-2: #22262a;
  --line: #2a2f2b; --line-2: #384038;
  --txt: #ffffff; --muted: #a3aaa4; --muted-2: #7d857e;
  --lime: #a8e63d; --lime-2: #dbf242; --orange: #f39c12; --orange-2: #f7b733;
  --on-orange: #1a1200; --on-lime: #101600;
  --radius: 16px; --shadow: 0 20px 60px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--lime) 10%, transparent), transparent 60%), var(--bg);
  color: var(--txt); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.ico { width: 34px; height: 34px; color: var(--lime); }
.ico.big { width: 44px; height: 44px; flex: none; }
.ico-sm { width: 18px; height: 18px; vertical-align: -3px; }

/* background decor */
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.leaf { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .55; }
.leaf-l { left: -220px; top: -60px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 28%, transparent), transparent 65%); }
.leaf-r { right: -240px; top: 220px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 24%, transparent), transparent 65%); }
.chip { position: absolute; opacity: var(--decor-opacity, .55); filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.chip-a { width: 96px; left: 3%; top: 60px; transform: rotate(-25deg); }
.chip-b { width: 120px; right: 4%; top: 150px; transform: rotate(18deg); opacity: calc(var(--decor-opacity, .55) * .9); }
.chip-c { width: 70px; right: 20%; top: 640px; transform: rotate(35deg); opacity: calc(var(--decor-opacity, .55) * .45); }
.bgimg { position: absolute; inset: 0; background-image: var(--bg-image, none); background-size: var(--bg-size, cover); background-repeat: var(--bg-repeat, no-repeat); background-position: center top; opacity: var(--decor-opacity, .55); }
body[data-fixed="1"] .bgimg { position: fixed; }
body[data-decor="chips"] .bgimg, body[data-decor="none"] .bgimg { display: none; }
body[data-decor="image"] .chip, body[data-decor="none"] .chip { display: none; }
body[data-glow="0"] .leaf { display: none; }
@media (max-width: 820px) { .chip-a, .chip-c { display: none; } .chip-b { width: 80px; right: -20px; top: 100px; } }

/* header */
.top { position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-weight: 900; font-size: 26px; letter-spacing: -.5px; font-style: italic; }
.logo span { color: var(--lime); }
.top-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.top-nav a:hover { color: var(--txt); }
@media (max-width: 640px) { .top-nav a:first-child { display: none; } }

/* hero */
.hero { text-align: center; padding: 26px 0 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); background: color-mix(in srgb, var(--lime) 8%, transparent); color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.hero h1 { font-size: clamp(42px, 7vw, 66px); font-weight: 800; letter-spacing: -2px; margin: 18px 0 10px; line-height: 1.02; }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 26px; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .08s, filter .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.orange { background: var(--orange); color: var(--on-orange); box-shadow: 0 8px 26px color-mix(in srgb, var(--orange) 28%, transparent); }
.btn.orange:hover { filter: brightness(1.08); }
.btn.lime { background: var(--lime); color: var(--on-lime); }
.btn.ghost { background: var(--panel); border-color: var(--line-2); color: var(--txt); }
.btn.sm { padding: 11px 18px; font-size: 14px; border-radius: 10px; }

/* category cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 8px 0 26px; }
.card { flex: 0 1 calc(33.333% - 15px); min-width: 250px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 24px; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--lime) 50%, transparent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 22px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; }
.card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.more { color: var(--lime); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.card:hover .more .ico-sm { transform: translateX(3px); }
.more .ico-sm { transition: transform .15s; }
@media (max-width: 640px) { .card { flex-basis: 100%; } }

/* banners */
.banners { display: grid; gap: 14px; margin: 0 0 26px; }
.banner { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); }
.banner-body { flex: 1; min-width: 0; }
.banner b { display: block; font-size: 16px; }
.banner p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.banner-lime { border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 14%, transparent), color-mix(in srgb, var(--lime) 3%, transparent)); }
.banner-orange { border-color: color-mix(in srgb, var(--orange) 50%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 20%, transparent), color-mix(in srgb, var(--orange) 4%, transparent)); }
.banner-orange b { color: var(--orange-2); }
.banner-dark { background: var(--panel-2); }
.banner-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.banner-img { padding: 0; border: none; background: none; overflow: hidden; border-radius: 14px; }
.banner-img img { display: block; width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 640px) { .banner { flex-wrap: wrap; } .banner .btn { width: 100%; justify-content: center; } }

/* still stuck */
.still { position: relative; overflow: hidden; text-align: center; margin: 10px 0 40px; padding: 40px 24px 42px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.still h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.still p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; font-size: 16px; }
.chip-still { position: absolute; width: 110px; right: 40px; bottom: -22px; transform: rotate(20deg); opacity: calc(var(--decor-opacity, .55) * .9); }
@media (max-width: 640px) { .chip-still { width: 70px; right: -10px; } }

/* category & article pages */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin: 10px 0 24px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--lime); }
.crumbs span { color: var(--txt); }
.cat-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.cat-head h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -1.2px; line-height: 1.1; }
.cat-head .lead { margin: 0; max-width: 620px; }
.sec { font-size: 13px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted-2); font-weight: 700; margin: 30px 0 12px; }
.subcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.subcard { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .15s; }
.subcard:hover { border-color: color-mix(in srgb, var(--lime) 50%, transparent); }
.subcard .ico { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.subcard div { flex: 1; }
.subcard h3 { margin: 0 0 4px; font-size: 16px; }
.subcard p { margin: 0; color: var(--muted); font-size: 13.5px; }
.subcard .count { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.arts { display: grid; gap: 10px; }
.art { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .15s, background .15s; }
.art:hover { border-color: color-mix(in srgb, var(--lime) 50%, transparent); background: var(--panel-2); }
.art div { flex: 1; }
.art h4 { margin: 0; font-size: 16px; font-weight: 600; }
.art p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.art .ico-sm { color: var(--lime); flex: none; }
.empty { color: var(--muted); padding: 30px 0; }

.article { max-width: 760px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.2px; line-height: 1.1; margin: 0 0 8px; }
.article .meta { color: var(--muted-2); font-size: 13px; margin: 0 0 28px; }
.prose { font-size: 16.5px; color: color-mix(in srgb, var(--txt) 90%, var(--muted)); }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; letter-spacing: -.5px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--txt); }
.prose code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.prose blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--orange); background: color-mix(in srgb, var(--orange) 8%, transparent); border-radius: 0 10px 10px 0; color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.related { margin-top: 30px; max-width: 760px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 20px; position: relative; z-index: 1; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; font-size: 13px; color: var(--muted-2); }
.foot a { color: var(--muted); } .foot a:hover { color: var(--lime); }

/* topics + accordion (home) */
.topics { display: grid; gap: 26px; margin: 10px 0 30px; }
.topic { scroll-margin-top: 24px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 22px; }
.topic-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.topic-head .ico { flex: none; margin-top: 2px; }
.topic-head h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.6px; line-height: 1.15; }
.topic-head p { margin: 0; color: var(--muted); font-size: 15px; }
.subtopic { scroll-margin-top: 24px; margin-top: 22px; }
.subtopic h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--lime); font-weight: 700; }
.qa-list { display: grid; gap: 8px; }
.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; scroll-margin-top: 24px; }
.qa[open] { border-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 600; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex: 1; }
.qa summary .chev { color: var(--lime); flex: none; transition: transform .18s; }
.qa[open] summary .chev { transform: rotate(90deg); }
.qa summary:hover { background: var(--panel-2); }
.qa-body { padding: 4px 18px 16px; border-top: 1px solid var(--line); font-size: 15.5px; }
.qa-body > :first-child { margin-top: 14px; }
.qa-link { font-size: 13px; margin: 0 !important; }
.qa-link a { color: var(--muted-2); text-decoration: none !important; }
.qa-link a:hover { color: var(--lime); }
@media (max-width: 640px) { .topic { padding: 20px 16px 16px; } .topic-head h2 { font-size: 22px; } }

/* chip game */
.chip-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
body.chip-hover, body.chip-hover * { cursor: pointer; }
body[data-decor="game"] .chip { display: none; }
.chip-game { position: fixed; right: 14px; bottom: 0; z-index: 4; width: 210px; pointer-events: none; }
.chip-game .elephant { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.chip-game .basket { position: absolute; left: 56%; bottom: 20%; width: 44%; aspect-ratio: 96 / 78; }
.chip-game .basket svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.chip-game .basket.pop { animation: basket-pop .35s ease; }
@keyframes basket-pop { 30% { transform: scale(1.12) rotate(-4deg); } 100% { transform: none; } }
.basket-score { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--lime); color: var(--lime); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 100px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.basket-score.full { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.game-hint { position: absolute; right: 0; bottom: 100%; margin: 0 0 4px; max-width: 230px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--bg) 85%, transparent); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.game-hint b { color: var(--lime); }
.game-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 20px; pointer-events: auto; }
.game-modal[hidden] { display: none; }
.game-modal-in { background: var(--panel); border: 1px solid var(--lime); border-radius: var(--radius); padding: 30px 28px; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.game-modal-in h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.6px; }
.game-modal-in p { margin: 0 0 20px; color: var(--muted); }
.game-modal-in .row { gap: 10px; }
@media (max-width: 640px) {
  .chip-game { width: 130px; right: 6px; }
  .basket-score { font-size: 11px; top: -12px; }
  .game-hint { font-size: 11px; max-width: 160px; }
}

/* claim flow */
.claim-form { display: flex; gap: 8px; margin: 0 0 8px; }
.claim-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); color: var(--txt); outline: none; }
.claim-form input:focus { border-color: var(--lime); }
.claim-form .btn { white-space: nowrap; padding: 12px 18px; font-size: 14px; }
.claim-err { color: #ff5c6c; font-size: 13px; min-height: 18px; margin: 0 0 8px; }
.claim-code { font-size: 34px; font-weight: 900; letter-spacing: 4px; color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, transparent); border: 1px dashed var(--lime); border-radius: 12px; padding: 12px 16px; margin: 4px 0 12px; user-select: all; }
.claim-note { font-size: 13px !important; }
@media (max-width: 480px) { .claim-form { flex-direction: column; } }

/* neon footer sign */
.foot-in { align-items: center; }
.neon { font-weight: 800; font-size: 15px; letter-spacing: 1.5px; text-transform: lowercase; color: #fff !important;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--lime), 0 0 22px var(--lime), 0 0 42px var(--lime);
  animation: neon-flicker 3.2s infinite; }
.neon:hover { text-shadow: 0 0 4px #fff, 0 0 10px var(--orange), 0 0 22px var(--orange), 0 0 42px var(--orange); animation: none; }
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px var(--lime), 0 0 22px var(--lime), 0 0 42px var(--lime); }
  20%, 24%, 55% { opacity: .35; text-shadow: none; }
  70% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) { .neon { animation: none; } }

/* elephant speech bubble */
.game-tip { position: absolute; right: calc(100% - 26px); bottom: 62%; width: 210px; pointer-events: auto; background: var(--txt); color: #14170f; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 10px 24px 10px 12px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.45); animation: tip-in .5s ease .8s both; }
.game-tip::after { content: ""; position: absolute; right: -10px; bottom: 16px; border: 8px solid transparent; border-left-color: var(--txt); border-right: 0; }
.tip-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: #14170f; opacity: .55; padding: 2px 4px; }
.tip-x:hover { opacity: 1; }
.game-tip.hide { display: none; }
@keyframes tip-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .game-tip { right: calc(100% - 14px); bottom: 58%; width: 165px; font-size: 11.5px; padding: 8px 22px 8px 10px; } }
