:root {
  --bg: #0b0b0b;
  --surface: #131313;
  --surface2: #1a1a1a;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #8c8c8c;
  --accent: #19e6ff;
  --accent-ink: #031014;
  --alert: #ff4d6d;
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --pad: clamp(16px, 4vw, 32px);
  --r: 12px;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  overflow-x: hidden;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
}
button,
input {
  font-family: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
section {
  padding-block: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--line);
}
.sec-head {
  margin-bottom: clamp(24px, 4vw, 40px);
  max-width: 56ch;
}
.num {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 5.5vw, 46px);
  font-weight: 800;
  margin-bottom: 10px;
}
.sub {
  color: var(--muted);
}

/* icons */
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i.fill {
  fill: currentColor;
  stroke: none;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.15s,
    border-color 0.15s;
}
.btn:hover {
  opacity: 0.88;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--muted);
  opacity: 1;
}
.btn.danger {
  background: var(--alert);
  border-color: var(--alert);
  color: #1c040a;
  font-weight: 700;
}
.btn.big {
  min-height: 54px;
  font-size: 16px;
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(11, 11, 11, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo .mk {
  width: 28px;
  height: 28px;
  flex: none;
}
.logo b {
  color: var(--accent);
  font-weight: 800;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: 16px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}
.nav a:hover {
  color: var(--text);
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rescue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.dots {
  display: flex;
  gap: 4px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s;
}
.dots i.on {
  background: var(--accent);
}
.rescue b {
  color: var(--text);
  font-weight: 600;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.drawer.open {
  display: block;
}
.drawer a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 17px;
}

/* hero */
.hero {
  border-top: 0;
  text-align: center;
  padding-block: clamp(36px, 7vw, 84px) clamp(48px, 8vw, 84px);
}
.hero .mk {
  width: clamp(120px, 24vw, 190px);
  margin: 0 auto clamp(18px, 3vw, 28px);
  display: block;
}
.hero h1 {
  font-size: clamp(38px, 9.5vw, 88px);
  font-weight: 800;
  max-width: 14ch;
  margin: 18px auto 18px;
}
.hero .story {
  font-size: clamp(16px, 2.3vw, 20px);
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 26px;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.ca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.ca code {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.strip3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: clamp(36px, 6vw, 64px);
  text-align: left;
}
.strip3 div {
  background: var(--bg);
  padding: 16px 20px;
}
.strip3 dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}
.strip3 dd {
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: -0.02em;
}

.robot {
  display: block;
  height: auto;
  width: 100%;
  animation: float 4s ease-in-out infinite;
}
.robot .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: eyes 5s infinite;
}
.robot .bulb {
  animation: blink 1.6s infinite;
}
.robot[data-mood="panic"] {
  animation: shake 0.12s infinite;
}
.robot.glitch {
  animation: glitch 0.35s steps(2) infinite;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes eyes {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.1);
  }
}
@keyframes shake {
  0% {
    transform: translate(2px, 0);
  }
  50% {
    transform: translate(-2px, 1px);
  }
  100% {
    transform: translate(1px, -1px);
  }
}
@keyframes glitch {
  0% {
    transform: translate(-5px, 0) skewX(7deg);
    filter: drop-shadow(-6px 0 var(--alert)) drop-shadow(6px 0 var(--accent));
  }
  100% {
    transform: translate(5px, 2px) skewX(-7deg);
    filter: drop-shadow(6px 0 var(--alert)) drop-shadow(-6px 0 var(--accent));
  }
}

/* lore timeline */
.tl {
  border-top: 1px solid var(--line);
}
.tl li {
  display: grid;
  grid-template-columns: clamp(96px, 22vw, 190px) minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.tl b {
  font-weight: 600;
  color: var(--muted);
  font-size: 15px;
}
.tl span {
  font-size: clamp(17px, 2.6vw, 22px);
  letter-spacing: -0.02em;
}
.tl li.hot b {
  color: var(--accent);
}
.tl li.hot span {
  color: var(--accent);
}

/* token */
.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.how {
  display: grid;
  gap: 0;
  counter-reset: s;
  margin-top: 28px;
}
.how li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.how li:last-child {
  border-bottom: 1px solid var(--line);
}
.how li::before {
  content: counter(s);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.how b {
  display: block;
  font-weight: 600;
}
.how span {
  color: var(--muted);
  font-size: 0.95em;
}
.rows {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
}
.rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.rows div:last-child {
  border-bottom: 0;
}
.rows dt {
  color: var(--muted);
}
.rows dd {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.rows dd.ph {
  color: #666;
  font-weight: 400;
}
.note {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}
.note b {
  color: var(--text);
}

/* chat */
.pbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.pbar::-webkit-scrollbar {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14.5px;
  padding: 0 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.chip:hover {
  border-color: var(--muted);
}
.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.chatbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head .mk {
  width: 34px;
  height: 34px;
  flex: none;
}
.chat-head b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.chat-head span {
  font-size: 12.5px;
  color: var(--muted);
}
.log {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: clamp(260px, 50dvh, 420px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.msg {
  max-width: min(88%, 540px);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.msg.bot {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}
.msg.me {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 5px;
  align-self: flex-end;
  font-weight: 500;
}
.msg.typing {
  color: var(--muted);
}
.suggest {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}
.suggest::-webkit-scrollbar {
  display: none;
}
.suggest .chip {
  font-size: 13.5px;
  min-height: 36px;
  padding: 0 14px;
}
.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.composer input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 16px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 16px;
}
.composer input:focus {
  outline: none;
  border-color: var(--accent);
}

/* uninstaller */
.uni {
  display: grid;
  grid-template-columns: clamp(150px, 22vw, 220px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.uni .mk {
  width: 100%;
}
.pct {
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.bar {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 14px 0;
  overflow: hidden;
}
.bar div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}
.say {
  min-height: 3.2em;
  display: flex;
  align-items: center;
  font-size: clamp(16px, 3vw, 20px);
  color: #d4d4d4;
  margin-bottom: 16px;
}
.say.loud {
  color: var(--alert);
  font-weight: 800;
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: -0.02em;
}
.tries {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.err {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  z-index: 3;
  text-align: center;
}
.err.show {
  display: flex;
}
.err .code {
  font-weight: 800;
  font-size: clamp(52px, 15vw, 104px);
  letter-spacing: -0.05em;
  color: var(--alert);
  line-height: 1;
}
.err .m {
  font-weight: 800;
  font-size: clamp(18px, 4.6vw, 28px);
  letter-spacing: -0.02em;
}

/* meme */
.meme-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
.pad label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.pad input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 16px;
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 14px;
}
.pad input:focus {
  outline: none;
  border-color: var(--accent);
}
.pad .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pad .row .btn {
  flex: 1 1 150px;
}
.smallnote {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.meme {
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4cqw;
  overflow: hidden;
  text-align: center;
}
.meme p {
  position: relative;
  z-index: 2;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(14px, 6.2cqw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
}
.meme .mr {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.meme .mr .mk {
  width: 46%;
}
.meme .robot {
  animation: none;
}

/* feed + board */
.feed {
  border-top: 1px solid var(--line);
}
.feed li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feed .ic {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
  font-size: 17px;
}
.feed li:first-child .ic {
  border-color: var(--accent);
}
.feed time {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.board {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.board .h,
.board .r {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.board .h {
  font-size: 13px;
  color: var(--muted);
  padding-block: 10px;
  background: var(--bg);
}
.board .r:last-child {
  border-bottom: 0;
}
.board .r.you {
  background: var(--surface2);
  box-shadow: inset 3px 0 var(--accent);
}
.board .pts {
  font-weight: 600;
}
.msg-final {
  margin-top: 18px;
  font-weight: 800;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: -0.02em;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 32px calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 13.5px;
}
footer .wrap {
  display: flex;
  gap: 16px 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer p {
  max-width: 62ch;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

/* breakpoints */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .token-grid,
  .meme-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .uni {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .uni .mk {
    width: min(46%, 170px);
  }
  .uni > div:nth-child(2) {
    width: 100%;
  }
  .say {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .rescue .lbl {
    display: none;
  }
  .cta .btn {
    flex: 1 1 100%;
  }
  .btn {
    min-height: 48px;
  }
  .rows div {
    padding-inline: 14px;
  }
  .feed li {
    align-items: flex-start;
  }
  .feed time {
    display: none;
  }
  .board .h,
  .board .r {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }
  .tl li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }
  .composer .t {
    display: none;
  }
  .composer .btn {
    padding: 0 16px;
  }
}
@media (max-width: 360px) {
  .logo span.w {
    display: none;
  }
  .dots {
    display: none;
  }
}
@media (min-width: 1500px) {
  .wrap {
    max-width: 1120px;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  .log {
    height: 180px;
  }
  section {
    padding-block: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
