:root {
  --sky: #8fd0ff; --sky2: #c9ecff; --ink: #1d1a24; --paper: #fff8e1; --paper2: #f6ead0;
  --banana: #ffe14d; --banana2: #e9b52a; --leaf: #3fae4f; --leaf2: #2a8a3c;
  --wood: #c48d55; --wood2: #8a5a33; --eth: #6c7bff; --muted: #6b6273;
  --px: "Press Start 2P", monospace; --body: "VT323", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 22px; color: var(--ink); background: linear-gradient(var(--sky) 0, var(--sky2) 520px, #e6f6ff 100%); min-height: 100vh; }
img, svg { display: block; image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--px); font-weight: 400; margin: 0; line-height: 1.35; }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px 60px; display: grid; gap: 28px; }

/* buttons: chunky game buttons that press down */
.btn { font-family: var(--px); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); background: var(--banana); border: 4px solid var(--ink); border-radius: 0; padding: 12px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset -4px -4px 0 var(--banana2), 0 5px 0 var(--ink); transition: transform .06s, box-shadow .06s; }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: inset -4px -4px 0 var(--banana2), 0 1px 0 var(--ink); }
.btn:disabled { background: #d9d2c3; box-shadow: inset -4px -4px 0 #bdb4a3, 0 5px 0 var(--ink); color: #6b6273; cursor: not-allowed; }
.btn-wood { background: var(--wood); color: #fff8e1; box-shadow: inset -4px -4px 0 var(--wood2), 0 5px 0 var(--ink); }
.btn-wood:active:not(:disabled) { box-shadow: inset -4px -4px 0 var(--wood2), 0 1px 0 var(--ink); }
.btn-green { background: var(--leaf); color: #fff; box-shadow: inset -4px -4px 0 var(--leaf2), 0 5px 0 var(--ink); }
.btn-big { font-size: 14px; padding: 16px 22px; }
.btn-sm { font-size: 10px; padding: 9px 12px; }
.full { width: 100%; }

/* HUD */
.hud { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--ink); color: var(--paper); border-bottom: 4px solid #000; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--px); font-size: 11px; line-height: 1.4; color: var(--banana); }
.logo-art { width: 40px; height: 40px; border: 3px solid var(--paper); display: block; }
.logo-art svg { width: 100%; height: 100%; }
.hud-stats { display: flex; gap: 8px; margin-left: auto; }
.chip { background: #2b2736; border: 3px solid #3d3850; padding: 5px 10px; min-width: 96px; }
.chip small { display: block; font-size: 12px; color: #b9b0c9; text-transform: uppercase; letter-spacing: .05em; }
.chip b { font-family: var(--px); font-size: 12px; color: var(--banana); font-weight: 400; white-space: nowrap; }
.hud .btn { margin-left: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 40px 0 10px; }
.tag { display: inline-block; font-family: var(--px); font-size: 10px; background: var(--ink); color: var(--banana); padding: 7px 10px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.35; text-shadow: 4px 4px 0 #ffffff99; }
.hero h1 span { color: #fff; -webkit-text-stroke: 0; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 6px 7px 0 var(--banana2); }
.lede { font-size: 21px; line-height: 1.45; max-width: 30em; margin: 18px 0 24px; }
.hero-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.stage { position: relative; height: 440px; }
.isle { position: absolute; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 18px 0 rgba(29, 26, 36, .12)); }
.isle svg { width: 100%; height: 100%; }
.isle-main { width: 340px; height: 340px; left: 50%; top: 40px; transform: translateX(-50%); }
.isle-a { width: 150px; height: 150px; left: 0; top: 250px; animation-delay: -1.3s; }
.isle-b { width: 160px; height: 160px; right: 0; top: 10px; animation-delay: -2.4s; }
.isle-main { animation-name: bobc; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes bobc { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -12px); } }
.cloud { position: absolute; width: 96px; height: 24px; background: #fff; box-shadow: 24px -12px 0 #fff, 48px 0 0 #fff; animation: drift 38s linear infinite; opacity: .9; }
.c1 { top: 30px; left: -10%; } .c2 { top: 190px; left: -40%; animation-duration: 52s; animation-delay: -20s; } .c3 { top: 360px; left: -25%; animation-duration: 46s; animation-delay: -8s; }
@keyframes drift { to { transform: translateX(760px); } }
.pop { position: absolute; z-index: 2; font-family: var(--px); font-size: 11px; color: var(--ink); background: var(--banana); border: 3px solid var(--ink); padding: 5px 7px; opacity: 0; animation: pop 5s ease-out infinite; }
.p1 { left: 6%; top: -16px; } .p2 { right: 6%; bottom: -16px; top: auto; animation-delay: -2.5s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px); } 10%, 45% { opacity: 1; transform: translateY(0); } 60%, 100% { opacity: 0; transform: translateY(-24px); } }

/* panels: game windows */
.panel { background: var(--paper); border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #fff, inset -8px -8px 0 0 var(--paper2), 0 8px 0 var(--ink); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -22px -22px 20px; padding: 14px 22px; background: var(--leaf); border-bottom: 4px solid var(--ink); }
.panel-head h2 { font-size: 16px; color: #fff; text-shadow: 3px 3px 0 var(--leaf2); }
.badge { font-family: var(--px); font-size: 9px; background: var(--ink); color: var(--banana); padding: 7px 9px; white-space: nowrap; }
.shop .panel-head { background: #f08a3a; } .shop .panel-head h2 { text-shadow: 3px 3px 0 #b85a1d; }
.board .panel-head { background: #7a5cf0; } .board .panel-head h2 { text-shadow: 3px 3px 0 #4f37b5; }
h3 { font-size: 13px; margin-bottom: 8px; }
.panel p { margin: 0 0 14px; line-height: 1.45; }

/* shop */
.shop-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.shop-free, .shop-skip { border: 4px solid var(--ink); padding: 18px; background: #fff; display: flex; flex-direction: column; }
.shop-skip { background: #fff3d6; }
.shop-skip .btn { margin-top: auto; }
.meter { height: 18px; background: #e9e1cf; border: 3px solid var(--ink); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--leaf) 0 10px, #4fc25f 10px 20px); }
.meter.big { height: 24px; }
.meter.big i { background: repeating-linear-gradient(90deg, var(--banana) 0 12px, var(--banana2) 12px 24px); }
.block-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 15px; }
.block-meter b { font-family: var(--px); font-size: 11px; min-width: 34px; text-align: right; font-weight: 400; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-row div { border: 3px solid var(--ink); padding: 10px; background: var(--paper); }
.stat-row small, .fstat small { display: block; font-size: 14px; color: var(--muted); }
.stat-row b, .fstat b { font-family: var(--px); font-size: 18px; font-weight: 400; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin: 4px 0 16px; }
.stepper button { width: 52px; height: 52px; font-family: var(--px); font-size: 18px; background: #fff; border: 4px solid var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.stepper button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 84px; text-align: center; font-family: var(--px); font-size: 22px; }
.supply { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 18px; }
.supply span { font-size: 15px; }
.supply b { font-family: var(--px); font-size: 11px; font-weight: 400; white-space: nowrap; }
.note { min-height: 1em; margin: 10px 0 0 !important; font-size: 15px; }

/* my farm */
.farm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.my-isle { border: 4px solid var(--ink); background: var(--sky2); }
.my-isle svg { width: 100%; height: auto; }
.fstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.fstat { border: 3px solid var(--ink); padding: 10px; background: #fff; }
.fstat.eth { grid-column: 1 / -1; background: #eef0ff; }
.fstat.eth b { color: #3d4bd6; font-size: 22px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.card { border: 4px solid var(--ink); background: #fff; cursor: pointer; position: relative; padding: 0; text-align: left; font: inherit; box-shadow: 0 4px 0 var(--ink); }
.card svg { width: 100%; height: auto; }
.card .cap { padding: 6px 8px 8px; font-size: 14px; line-height: 1.25; }
.card .cap b { display: block; font-family: var(--px); font-size: 9px; font-weight: 400; margin-bottom: 3px; }
.card[aria-pressed="true"] { outline: 4px solid var(--banana); outline-offset: -10px; box-shadow: 0 4px 0 var(--ink), 0 0 0 4px var(--banana); }
.card[aria-pressed="true"]::after { content: "BURN"; position: absolute; top: 6px; right: 6px; font-family: var(--px); font-size: 8px; background: #e0473a; color: #fff; padding: 4px 5px; border: 2px solid var(--ink); }
.empty { border: 4px dashed #b9ad94; padding: 26px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 14px; }

/* tiers */
.sec-title { font-size: 18px; text-align: center; text-shadow: 3px 3px 0 #ffffffaa; }
.sec-sub { text-align: center; margin: 10px 0 18px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tier { border: 4px solid var(--ink); background: #fff; box-shadow: 0 6px 0 var(--ink); }
.tier svg { width: 100%; height: auto; border-bottom: 4px solid var(--ink); }
.tier div { padding: 10px; }
.tier h3 { font-size: 10px; margin-bottom: 8px; }
.tier .bn { font-family: var(--px); font-size: 16px; color: #b07a1f; }
.tier .od { font-size: 15px; color: var(--muted); margin-top: 6px; }
.tier.gmo { background: #f1ffe6; box-shadow: 0 6px 0 var(--ink), 0 0 0 4px #9dff5c; }

/* leaderboard */
.lb { width: 100%; border-collapse: collapse; font-size: 17px; }
.lb th { font-family: var(--px); font-size: 9px; font-weight: 400; text-align: left; padding: 8px; border-bottom: 4px solid var(--ink); }
.lb td { padding: 9px 8px; border-bottom: 2px dashed #d8ccb2; }
.lb td.r, .lb th.r { text-align: right; }
.lb tr.me td { background: #fff3c4; }
.lb .rank { font-family: var(--px); font-size: 11px; }
.lb tr:nth-child(1) .rank { color: #d99a17; } .lb tr:nth-child(2) .rank { color: #8a93a6; } .lb tr:nth-child(3) .rank { color: #b5643c; }

/* how */
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { border: 4px solid var(--ink); background: var(--paper); padding: 18px; box-shadow: 0 6px 0 var(--ink); }
.steps li > b { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--banana); border: 3px solid var(--ink); font-family: var(--px); font-size: 14px; margin-bottom: 12px; }
.steps p { margin: 8px 0 0; line-height: 1.4; }

/* wallet chooser (shared wallet.js) */
.wpick { position: fixed; inset: 0; background: rgba(29, 26, 36, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.wpick-card { background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); width: min(380px, 100%); padding: 18px; }
.wpick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wpick-head h3 { margin: 0; }
.wpick-x { background: none; border: 0; font-size: 28px; cursor: pointer; }
.wpick-list { display: grid; gap: 8px; }
.wpick-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 3px solid var(--ink); background: #fff; cursor: pointer; font: inherit; }
.wpick-item img, .wpick-item i { width: 28px; height: 28px; display: block; background: #ddd; }
.wmenu { position: absolute; z-index: 60; background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; min-width: 180px; }
.wmenu-addr { padding: 10px; font-family: var(--px); font-size: 9px; border-bottom: 3px solid var(--ink); }
.wmenu button { background: none; border: 0; border-bottom: 2px dashed #d8ccb2; padding: 10px; text-align: left; font: inherit; cursor: pointer; }
.muted { color: var(--muted); }

.foot { text-align: center; padding: 26px 16px 40px; font-size: 15px; }
.foot a, .foot span { margin: 0 10px; }

@media (max-width: 900px) {

  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .stage { height: 330px; }
  .isle-main { width: 260px; height: 260px; top: 30px; }
  .isle-a { width: 96px; height: 96px; top: 210px; } .isle-b { width: 90px; height: 90px; }
  .shop-grid, .farm-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tiers .tier.gmo { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hud { flex-wrap: wrap; gap: 8px; }
  .hud-stats { order: 3; width: 100%; margin-left: 0; }
  .chip { flex: 1; min-width: 0; padding: 4px 6px; }
  .chip small { font-size: 11px; }
  .chip b { font-size: 10px; }
  .hud .btn { margin-left: auto; }
  .panel { padding: 16px; }
  .panel-head { margin: -16px -16px 16px; padding: 12px 16px; }
  .panel-head h2 { font-size: 13px; }
  .lede { font-size: 19px; }
  .lb { font-size: 15px; }
  .lb .hide-s { display: none; }
  .supply { grid-template-columns: 1fr auto; }
  .supply .meter { grid-column: 1 / -1; grid-row: 2; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .isle, .cloud, .pop { animation: none; } .pop { opacity: 1; } }

/* ------------------------------------------------------------ the farm world */
.screen { border: 4px solid var(--ink); background: #68b93f; box-shadow: inset 0 0 0 3px #00000022; line-height: 0; }
.screen canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; outline: none; cursor: pointer; }
.screen canvas:focus-visible { box-shadow: 0 0 0 4px var(--banana); }
.stage { height: auto; display: grid; align-content: center; position: relative; }
.stage .screen { box-shadow: 0 8px 0 var(--ink); }
.farm-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; margin-bottom: 22px; }
.world-wrap { position: relative; }
.textbox { margin-top: 10px; background: #fff; border: 4px solid var(--ink); padding: 10px 12px; font-size: 16px; min-height: 48px; box-shadow: inset -4px -4px 0 #e9e1cf; }
.textbox::before { content: "▶ "; color: #e0473a; }
.dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; justify-content: end; margin-top: 10px; }
.dpad button { font-size: 16px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.dpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.dpad [data-k="up"] { grid-column: 2; grid-row: 1; }
.dpad [data-k="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-k="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-k="right"] { grid-column: 3; grid-row: 2; }
.back { position: absolute; top: 10px; left: 10px; }
.back[hidden] { display: none; }
.small { font-size: 15px; line-height: 1.4; margin: 14px 0 0 !important; }
.lb .visit { font-size: 8px; padding: 6px 8px; box-shadow: inset -3px -3px 0 var(--banana2), 0 3px 0 var(--ink); border-width: 3px; }
@media (hover: hover) and (pointer: fine) { .dpad { opacity: .8; } }
@media (max-width: 900px) { .farm-top { grid-template-columns: 1fr; } .dpad { justify-content: center; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 56px); } }

/* ------------------------------------------------------------ the quiet bonus item + Pokemon-style text box */
.odd { width: 28px; height: 14px; image-rendering: pixelated; display: inline-block; vertical-align: middle; }
.inv-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; border: 3px solid var(--ink); background: #fff; padding: 6px 10px; }
.inv-bar small { font-family: var(--px); font-size: 8px; color: var(--muted); }
.item { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 3px solid var(--ink); padding: 4px 8px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.item b { font-family: var(--px); font-size: 9px; font-weight: 400; }
.item .mini { width: 20px; height: 20px; image-rendering: pixelated; display: inline-block; border: 2px solid var(--ink); }
.item:hover { background: #fff3c4; }
.screen { position: relative; }
.dialog { position: absolute; left: 10px; right: 10px; bottom: 10px; line-height: 1.7; z-index: 5; background: #fff; border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #6b7fa8; padding: 14px 18px 16px; font-family: var(--px); font-size: 12px; line-height: 1.7; }
.dialog p { margin: 0; min-height: 1.7em; }
.dialog i { position: absolute; right: 14px; bottom: 8px; font-style: normal; font-size: 10px; animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dialog[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(29, 26, 36, .6); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); width: min(420px, 100%); padding: 22px 20px 14px; text-align: center; }
.modal-card h3 { font-size: 16px; color: var(--leaf2); }
.modal-card .big { font-family: var(--px); font-size: 13px; margin: 12px 0 16px; }
.modal-tiles { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-tiles svg { width: 64px; height: 64px; border: 3px solid var(--ink); }
.bonus { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 4px; }
.bonus .odd-btn { background: none; border: 0; padding: 2px; cursor: pointer; }
.dialog.in-modal { position: absolute; left: 12px; right: 12px; top: auto; bottom: 46px; text-align: left; }

/* ------------------------------------------------------------ next available plots */
.next .panel-head { background: #e9b52a; } .next .panel-head h2 { text-shadow: 3px 3px 0 #b07a1f; }
.badge .dot { display: inline-block; width: 7px; height: 7px; background: #7dff4f; margin-right: 6px; animation: blink 1.2s steps(2) infinite; }
.next-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.next-big { border: 4px solid var(--ink); background: #fff; box-shadow: 0 6px 0 var(--ink); }
.next-big svg { width: 100%; height: auto; display: block; border-bottom: 4px solid var(--ink); }
.next-big .info { padding: 12px 14px; }
.next-big .info h3 { font-size: 12px; margin: 0 0 6px; }
.next-big .tier-line { font-family: var(--px); font-size: 15px; margin-bottom: 8px; }
.next-big .tier-line em { font-style: normal; color: #b07a1f; }
.next-big dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 15px; }
.next-big dt { color: var(--muted); }
.next-big dd { margin: 0; }
.next-note { margin: 0 0 12px !important; font-size: 15px; }
.next-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nx { border: 3px solid var(--ink); background: #fff; position: relative; }
.nx svg { width: 100%; height: auto; display: block; }
.nx span { display: flex; justify-content: space-between; gap: 4px; padding: 3px 5px; font-size: 13px; border-top: 3px solid var(--ink); }
.nx span b { font-family: var(--px); font-size: 8px; font-weight: 400; align-self: center; }
.nx.t3 { box-shadow: 0 0 0 3px #f2b92a; } .nx.t4 { box-shadow: 0 0 0 3px #9dff5c; }
.nx.t3 span b, .nx.t4 span b { color: #b07a1f; }
.sold { border: 4px dashed #b9ad94; padding: 30px; text-align: center; font-family: var(--px); font-size: 14px; }
@media (max-width: 900px) { .next-grid { grid-template-columns: 1fr; } .next-big { max-width: 360px; } .next-row { grid-template-columns: repeat(4, 1fr); } .nx span { font-size: 11px; white-space: nowrap; padding: 3px 4px; } .nx span b { font-size: 7px; } }

/* ------------------------------------------------------------ tabs + intro */
.tabs { display: flex; gap: 4px; margin-left: 18px; }
.tabs a { font-family: var(--px); font-size: 10px; color: #b9b0c9; text-decoration: none; padding: 10px 12px; border: 3px solid transparent; }
.tabs a:hover { color: var(--paper); }
.tabs a[aria-current] { color: var(--ink); background: var(--banana); border-color: #000; box-shadow: inset -3px -3px 0 var(--banana2); }
.intro { padding: 26px 0 4px; }
.intro h1 { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.4; text-shadow: 3px 3px 0 #ffffff99; }
.intro h1 span { color: #fff; text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 4px 5px 0 var(--banana2); }
.intro p { margin: 10px 0 0; font-size: 19px; max-width: 46em; }
.tab { display: grid; gap: 28px; }
.tab[hidden] { display: none; }
.tab > .panel:first-child { margin-top: 26px; }
.tab .hero { padding-bottom: 0; }
@media (max-width: 900px) { .tabs { order: 4; width: 100%; margin: 4px 0 0; justify-content: space-between; } .tabs a { flex: 1; text-align: center; padding: 9px 4px; font-size: 9px; } .hud { flex-wrap: wrap; } }

.tip { margin: 12px 0 0 !important; font-size: 14px; line-height: 1.45; background: #fff3c4; border: 3px dashed #b07a1f; padding: 8px 10px; }
.tip b { font-family: var(--px); font-size: 9px; font-weight: 400; background: var(--ink); color: var(--banana); padding: 3px 6px; margin-right: 6px; }
.tip a { font-weight: 700; }
#connect { text-transform: none; }

/* VT323 body font: it runs small, so the small text steps up (clear digits: the 2 no longer reads as an S) */
.tip { font-size: 18px; } .tip b { font-size: 9px; }
.stat-row small, .fstat small { font-size: 17px; }
.block-meter, .supply span, .note { font-size: 18px; }
.next-note, .intro p { font-size: 21px; }
.nx span { font-size: 16px; }
.small { font-size: 18px; }
.tier .od { font-size: 18px; }
.lb { font-size: 20px; }
.textbox { font-size: 19px; }
.card .cap { font-size: 17px; }
.chip small { font-size: 14px; }
.next-big dl { font-size: 19px; }
.panel p { font-size: 21px; }
@media (max-width: 900px) { .nx span { font-size: 14px; } }
@media (max-width: 900px) { .p1 { top: 10px; left: 10px; } .p2 { bottom: 14px; right: 10px; } }
@media (max-width: 640px) { .shop .btn-big { font-size: 12px; padding: 15px 10px; } .tip { line-height: 1.3; } }

/* ------------------------------------------------------------ farm screen v2: overlays instead of boxes under it */
.farm-top { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
.game { position: relative; border-width: 4px; box-shadow: 0 8px 0 var(--ink); }
.game canvas { cursor: default; }
.loc { position: absolute; top: 10px; left: 10px; background: rgba(29, 26, 36, .88); color: #fff; font-family: var(--px); font-size: 10px; line-height: 1.4; padding: 8px 10px; border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a4560; max-width: calc(100% - 120px); }
.loc::before { content: "\25B6  "; color: var(--banana); }
.hudb { position: absolute; top: 10px; right: 10px; background: var(--banana); color: var(--ink); font-family: var(--px); font-size: 11px; padding: 8px 10px; border: 3px solid var(--ink); box-shadow: inset -3px -3px 0 var(--banana2); }
.keys { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; background: rgba(255, 248, 225, .92); border: 3px solid var(--ink); padding: 5px 8px; transition: opacity .6s; }
.keys kbd { font-family: var(--px); font-size: 9px; background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px; padding: 3px 5px; }
.keys span { font-size: 17px; margin-left: 4px; }
.keys.gone { opacity: 0; pointer-events: none; }
.pad { display: none; }
.back { top: auto; bottom: 10px; left: auto; right: 10px; }
.world-wrap .textbox, .world-wrap .dpad { display: none; }
@media (hover: none), (max-width: 700px) {
  .keys { display: none; }
  .pad { display: grid; position: absolute; right: 10px; bottom: 10px; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px); gap: 2px; }
  .pad button { background: rgba(255, 248, 225, .82); border: 3px solid var(--ink); font-size: 15px; touch-action: none; -webkit-user-select: none; user-select: none; box-shadow: 0 3px 0 var(--ink); }
  .pad button:active { background: var(--banana); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  .pad [data-k="up"] { grid-column: 2; grid-row: 1; } .pad [data-k="left"] { grid-column: 1; grid-row: 2; }
  .pad [data-k="right"] { grid-column: 3; grid-row: 2; } .pad [data-k="down"] { grid-column: 2; grid-row: 3; }
  .back { left: 10px; right: auto; }
  .loc { font-size: 9px; max-width: calc(100% - 100px); }
}
@media (max-width: 900px) { .farm-top { grid-template-columns: 1fr; } }

@media (hover: none), (max-width: 700px) {
  .pad { grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); right: 8px; bottom: 8px; opacity: .78; }
  .pad button { font-size: 12px; border-width: 2px; }
}
