:root { --bg: #ffffff; --ink: #1b0f16; --ink-2: #3d2f37; --muted: #7a6b73; --faint: #b3a7ad; --line: #efe6ea; --well: #faf4f6; --pink: #ff3d8b; --pink-soft: #ffe3ee; --paper: #fff3f7; --green: #12a150; --red: #e5484d; --amber: #f5a524; --tight: "Inter Tight", Inter, system-ui, sans-serif; --font: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } p { margin: 0; } button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--tight); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 16px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 21px var(--tight); letter-spacing: -0.03em; } .logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav nav { margin: 0 auto; display: flex; gap: 2px; } .nav nav a { padding: 7px 13px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: 14.5px; } .nav nav a:hover { color: var(--ink); background: var(--well); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: #fff; white-space: nowrap; } .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); } .pill.off i { background: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; } .btn:hover { background: #000; } .btn:disabled { opacity: .4; cursor: default; }
.btn.pink { background: var(--pink); } .btn.pink:hover { background: #f02a7a; } .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--faint); background: #fff; } .btn.wide { width: 100%; } .btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 26px; }

/* a worm's tile on the farm */
.farm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: block; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; } .tile:hover { transform: translateY(-3px); border-color: var(--faint); box-shadow: 0 24px 40px -30px rgba(27, 15, 22, .35); }
.tile canvas { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; image-rendering: crisp-edges; background: var(--paper); }
.tile .tb { padding: 12px 14px 14px; } .tile .who { display: flex; align-items: center; gap: 9px; min-width: 0; } .tile .who img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: var(--well); flex: none; } .tile .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tile .who span { margin-left: auto; flex: none; }
.tile .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--well); color: var(--muted); } .st.eating { background: #dff6e7; color: #0b7a3b; } .st.searching { background: var(--pink-soft); color: #c2185b; } .st.backing { background: #fde4e5; color: #b4232a; } .st.dauer { background: #efeef5; color: #5b5874; }
.tile .work { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--well); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en { height: 5px; border-radius: 5px; background: var(--well); margin-top: 9px; overflow: hidden; } .en i { display: block; height: 100%; border-radius: 5px; background: var(--pink); transition: width .6s; } .en.low i { background: var(--amber); }
.none { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 22px; }

section { padding-top: 92px; } .sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; } .sh h2 { font-size: clamp(32px, 4.4vw, 52px); } .sh h2 span { color: var(--faint); } .sh p { color: var(--muted); max-width: 440px; }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 22px 0 44px; color: var(--muted); font-size: 13.5px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; } .foot p { max-width: 760px; } .foot a { text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; z-index: 60; max-width: calc(100vw - 32px); }
@media (max-width: 1000px) { .farm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav nav { display: none; } .pill { margin-left: auto; } section { padding-top: 66px; } }
@media (max-width: 480px) { .wrap { padding: 0 16px; } .farm { gap: 10px; } .tile .meta span:last-child { display: none; } }
