:root {
  --ink: #26263a;
  --desk: #b98a5a;
  --paper: #fdfbf3;
  --yellow: #fff27a;
  --blue: #c7e6ff;
  --red: #e8414f;
  --sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: 18px;
  background-color: var(--desk);
  background-image:
    repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(88deg, rgba(255,255,255,.04) 0 1px, transparent 1px 23px),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.18), transparent 60%);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 4px;
  max-width: 1240px;
  margin: 0 auto;
}
h1 {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(30px, 5vw, 48px);
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
  letter-spacing: 1px;
  white-space: nowrap;
}
h1 span { color: #ffd43b; }
button.wallet { cursor: pointer; font: inherit; color: var(--ink); }
button.wallet span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
button.wallet small { font-family: "Permanent Marker", cursive; font-size: 12px; color: var(--red); margin-top: 3px; letter-spacing: .5px; }
.wd-card { width: min(440px, 94vw); text-align: left; }
.wd-card h3 { text-align: center; }
.wd-balance { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; padding: 8px 12px; background: var(--yellow); transform: rotate(-.6deg); }
.wd-balance b { display: block; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 22px; }
.wd-balance small { font-size: 14px; color: #555; }
.wd-field { display: block; margin-bottom: 10px; }
.wd-field > span:first-child { display: block; font-size: 15px; color: #555; margin-bottom: 2px; }
.wd-field input { width: 100%; font: inherit; font-size: 18px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: var(--sketch); background: #fff; color: var(--ink); }
.wd-amount-row { display: flex; gap: 8px; }
.wd-amount-row input { flex: 1; }
.wd-calc { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 16px; margin-bottom: 6px; }
.wd-calc .recv { color: #2d7a43; }
.wd-calc .wd-tiers { grid-column: 1 / -1; color: #666; }
.card p.wd-rules { font-size: 14px; color: #555; margin: 4px 0 8px; line-height: 1.25; }
.card p.wd-cooldown { font-size: 15px; background: #ffe0e0; padding: 6px 10px; margin: 0 0 8px; }
.card p.wd-msg { font-size: 15px; min-height: 20px; margin: 6px 0; color: #8a3a55; }
#wdList h4 { margin: 6px 0 4px; font-family: "Permanent Marker", cursive; font-weight: normal; }
.wd-item { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; font-size: 14px; padding: 4px 0; border-bottom: 2px dashed rgba(38,38,58,.2); }
.wd-item b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 12px; }
.wd-item b.paid { color: #2d7a43; }
.wd-item b.pending, .wd-item b.processing { color: #b07a00; }
.wd-close { display: block; margin: 10px auto 0; }
.wd-ask { text-align: center; }
.card p.wd-ask-q { font-size: 18px; line-height: 1.3; margin: 4px 0 14px; padding: 10px 12px; background: var(--yellow); transform: rotate(.5deg); }
.wd-ask button.big { display: block; width: 100%; margin: 0 0 10px; }
.wd-ask button.big small { display: block; font-family: inherit; font-size: 14px; opacity: .75; margin-top: 2px; }
.wd-ask button.alt { background: #fff; }
.wd-ask #wdOtherBox { text-align: left; margin-top: 4px; }
.wd-back { display: block; margin: 0 auto; }
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) rotate(-1deg);
  z-index: 30;
  max-width: min(520px, 92vw);
  padding: 10px 16px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 6px 0 rgba(0,0,0,.25);
  font-size: 18px;
  text-align: center;
}
.side-top { display: flex; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.side-top .wallet { flex: 1; justify-content: center; font-size: 30px; padding: 8px 14px; }
.side-top .wallet .ink-drop { width: 22px; height: 22px; }
.side-top button { font-size: 18px; padding: 6px 12px; }
.side-top .addr { font-size: 17px; }
.wallet {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 6px 16px;
  font-size: 22px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.25);
  transform: rotate(1deg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet b { font-family: "Permanent Marker", cursive; font-weight: normal; }
.ink-drop { 
  width: 16px; height: 16px;
  position: relative;
  background: radial-gradient(circle at 34% 34%, #8a8aa0 0 16%, #26263a 24%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-block;
  flex: none;
  margin-top: 3px;
}
.ink-drop::before { 
  content: ''; position: absolute; width: 38%; height: 38%; right: -16%; top: -34%;
  border-top: 2px solid #9b5a2b; border-right: 2px solid #9b5a2b; border-radius: 0 90% 0 0;
}
.ink-drop::after { 
  content: ''; position: absolute; width: 34%; height: 34%; right: -34%; top: -52%;
  background: #ffb238; border-radius: 50%; box-shadow: 0 0 0 1.5px #e8414f;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px 40px;
  align-items: start;
}
.notebook {
  position: relative;
  background: var(--paper);
  padding: 34px 16px 10px;
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 2px 0 #e6e1d2, 0 4px 0 #ddd6c4, 0 6px 0 #d2cab6, 8px 14px 24px rgba(0,0,0,.35);
  transform: rotate(-.5deg);
}
.spiral {
  position: absolute;
  top: -12px; left: 18px; right: 18px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 70%, #9a8f7e 0 5px, transparent 6px) 0 0 / 34px 30px repeat-x,
    linear-gradient(transparent 0 0);
}
.spiral::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 13px, #555 13px 17px, transparent 17px 34px);
  -webkit-mask: linear-gradient(#000 0 60%, transparent 60%);
  mask: linear-gradient(#000 0 60%, transparent 60%);
  border-radius: 6px;
}
#board {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.page-foot {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 20px;
  color: #6b6b80;
}
#pageLabel { font-family: "Permanent Marker", cursive; color: var(--red); }
.note {
  position: relative;
  padding: 18px 18px 16px;
  margin-bottom: 22px;
  box-shadow: 4px 8px 14px rgba(0,0,0,.3);
}
.note::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 90px; height: 26px;
  margin-left: -45px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  transform: rotate(-3deg);
}
.note.yellow { background: var(--yellow); transform: rotate(.8deg); }
.note h2 {
  margin: 0 0 10px;
  font-family: "Permanent Marker", cursive;
  font-weight: normal;
  font-size: 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.note h2 small { font-family: "Patrick Hand", cursive; font-size: 20px; }
.note p { margin: 0 0 8px; line-height: 1.25; }
button {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform .08s;
}
button:hover { transform: rotate(-1.5deg) scale(1.03); }
button:active { transform: translate(2px, 3px); box-shadow: none; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.big {
  width: 100%;
  font-family: "Permanent Marker", cursive;
  font-size: 19px;
  padding: 10px;
  background: #ffd43b;
}
button.small { font-size: 16px; padding: 3px 10px; }
.row { display: flex; gap: 8px; margin: 10px 0 6px; }
.row button { flex: 1; }
.hero-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 52vh;
  overflow-y: auto;
}
.hero-list li {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 2px dashed rgba(38,38,58,.25);
}
.hero-list li.resting { opacity: .6; }
.hero-list canvas { width: 46px; height: 46px; }
.hname { font-size: 19px; line-height: 1; }
.hname em { font-style: normal; font-size: 14px; margin-left: 4px; }
.hstats { font-size: 14px; color: #555; }
.bar {
  height: 10px;
  margin-top: 3px;
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  overflow: hidden;
  background: #fff;
}
.bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #3aa856 0 4px, #6fd08a 4px 7px);
  transition: width .25s;
}
.hero-list li.resting .bar i { background: repeating-linear-gradient(-45deg, #2f7de1 0 4px, #7fb0f0 4px 7px); }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30,20,10,.55);
  display: grid;
  place-items: center;
  z-index: 10;
}
.modal.hidden { display: none; }
.card {
  position: relative;
  width: min(320px, 90vw);
  background: var(--paper);
  padding: 22px 22px 18px;
  text-align: center;
  box-shadow: 8px 14px 30px rgba(0,0,0,.45);
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
  transform: rotate(-1.5deg);
}
.tape {
  position: absolute;
  top: -14px; left: 50%;
  width: 110px; height: 28px;
  margin-left: -55px;
  background: rgba(255,240,150,.75);
  transform: rotate(4deg);
}
#cardCanvas { width: 160px; height: 160px; }
.card h3 { margin: 4px 0 0; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 28px; }
.card p { margin: 0 0 8px; font-size: 20px; }
.card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 18px; text-align: left; }
.tag {
  font-family: "Permanent Marker", cursive;
  font-size: 13px;
  padding: 2px 7px;
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.tag.on { background: #b9f0c6; }
.tag.ready { background: #ffd43b; }
.tag.nap { background: #c7e6ff; }
.bench-note {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: #ffc6d9;
  transform: rotate(-.6deg);
  box-shadow: 4px 8px 14px rgba(0,0,0,.3);
}
.bench-note:hover { transform: rotate(.6deg) scale(1.02); }
.bench-note:active { transform: translate(2px, 3px); box-shadow: 2px 4px 8px rgba(0,0,0,.3); }
.bench-note p { margin: 0; }
.open-hint { display: block; margin-top: 4px; font-size: 15px; color: #8a3a55; }
.tag.boost { background: #ffe680; }
.tag.home { background: #c9f2c7; }
.note.green, .bench-note.green { background: #c9f2c7; transform: rotate(.7deg); }
#houseMini { display: block; width: 100%; max-width: 320px; height: auto; margin: -2px 0 4px; }
.house-card { width: min(720px, 95vw); }
.house-card h3 { text-align: center; }
.house-grid {
  list-style: none;
  padding: 0;
  margin: 6px 0 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
}
.house-grid li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(70,130,220,.15) 23px 24px);
}
.house-grid canvas { width: 120px; height: 100px; align-self: center; }
.house-grid h4 { margin: 0; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 19px; text-align: center; }
.hfacts { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 16px; }
.hfacts .boost { color: #b07a00; font-weight: bold; }
.hmeta { font-size: 14px; color: #666; text-align: center; }
.house-grid .mint-btn { flex-direction: row; justify-content: space-between; margin-top: 4px; font-size: 16px; }
.house-grid .mint-btn b { color: inherit; }
.bench-card { width: min(520px, 94vw); text-align: left; }
.bench-card h3 { text-align: center; }
.autopilot {
  background: var(--yellow);
  padding: 8px 12px 6px;
  margin: 8px 0 10px;
  transform: rotate(-.6deg);
  box-shadow: 2px 3px 6px rgba(0,0,0,.18);
  font-size: 15px;
  line-height: 1.25;
}
.autopilot > b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 17px; }
.autopilot p { margin: 2px 0 4px; font-size: 15px; }
.card .autopilot ul { display: block; margin: 0; padding-left: 18px; list-style: disc; font-size: 15px; }
.autopilot li { margin-bottom: 2px; }
.bench-card h3 small { font-family: "Patrick Hand", cursive; font-size: 20px; }
#benchList { display: block; max-height: 58vh; margin: 0 0 14px; overflow-x: hidden; }
.mint-area { display: flex; gap: 10px; align-items: stretch; }
.mint-btns { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mint-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: #ffd43b;
  font-family: "Permanent Marker", cursive;
  font-size: 18px;
}
.mint-btn.alt { background: #fff; }
.mint-btn span { white-space: nowrap; }
@media (min-width: 901px) {
  .mint-btn { flex-direction: column; justify-content: center; gap: 3px; padding: 6px; }
}
.mint-btn b { font-weight: normal; color: var(--red); }
.mint-btn em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-family: "Patrick Hand", cursive;
  font-size: 17px;
  background: rgba(255,255,255,.75);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 8px;
}
.mint-btn .ink-drop { width: 10px; height: 10px; border-width: 1.5px; }
.odds-note {
  flex: 0 0 118px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  padding: 5px 8px;
  transform: rotate(2deg);
  box-shadow: 2px 3px 0 rgba(0,0,0,.2);
  background-image: repeating-linear-gradient(transparent 0 15px, rgba(70,130,220,.2) 15px 16px);
}
.odds-note h4 { margin: 0 0 2px; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 13px; }
#odds { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 16px; }
#odds li { display: flex; align-items: center; gap: 4px; }
#odds i { width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; }
#odds b { margin-left: auto; font-weight: normal; font-family: "Permanent Marker", cursive; }
.note h2 small { font-size: 16px; }
.modal .multi { display: none; }
.modal.pack .single { display: none; }
.modal.pack .multi { display: block; }
.modal.pack .card { width: min(560px, 94vw); }
#packGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
  text-align: center;
  margin: 8px 0 14px;
}
#packGrid li { display: flex; flex-direction: column; align-items: center; font-size: 14px; line-height: 1.1; }
#packGrid canvas { width: 56px; height: 56px; }
#packGrid b { font-weight: normal; font-size: 15px; }
@media (max-width: 500px) { #packGrid { grid-template-columns: repeat(3, 1fr); } }
#cardRar .pop, #packGrid li.pop b, #packGrid li.pop span { display: inline-block; }
#cardName.pop, #cardRar .pop, #packGrid li.pop b, #packGrid li.pop span { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
#cardStats { min-height: 84px; }
#packGrid span { min-height: 15px; }
.board-wrap { position: relative; perspective: 2400px; }
.page-head {
  height: 64px;
  margin: -6px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid rgba(232,65,79,.5);
}
.ca {
  font-family: "Permanent Marker", cursive;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-1deg);
}
.ca:hover { text-decoration: underline; }
.flip-sheet {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  animation: pageflip .9s cubic-bezier(.5, .05, .45, .95) forwards;
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
  overflow: hidden;
}
.flip-front canvas.snap { display: block; width: 100%; height: 100%; }
.flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.18), transparent 60%);
  opacity: 0;
  animation: flipshade .9s forwards;
}
.flip-back {
  transform: rotateX(180deg);
  background-color: #f4f0e4;
  background-image:
    linear-gradient(rgba(70,130,220,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,130,220,.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.12), transparent 40%);
  background-size: 12px 12px, 12px 12px, 100% 100%;
}
.flip-overlay { position: absolute; inset: 0; }
.flip-overlay.login { display: flex; align-items: center; justify-content: center; }
.flip-overlay.picker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(253,251,243,.82); }
@keyframes pageflip {
  0% { transform: rotateX(0deg); }
  85% { opacity: 1; }
  100% { transform: rotateX(176deg); opacity: 0; }
}
@keyframes flipshade { 50% { opacity: 1; } 100% { opacity: .4; } }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.hidden { display: none !important; }
.login { display: none; }
body.locked .login {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box { text-align: center; max-width: 380px; transform: rotate(-2deg); }
.login-box h2 {
  margin: 0 0 6px;
  font-family: "Permanent Marker", cursive;
  font-weight: normal;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  color: var(--ink);
}
.login-box p { margin: 0 0 16px; font-size: 20px; color: #555; }
.login-box button.big { font-size: 24px; padding: 14px; }
body.locked .side > :not(.side-top), body.hub .side > :not(.side-top) { opacity: .45; filter: grayscale(.4); pointer-events: none; }
body.locked .page-foot, body.locked .wallet, body.hub .page-foot, body.hub .wallet { visibility: hidden; }
.picker { display: none; }
body.hub .picker {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(253,251,243,.82);
}
.picker h2 { margin: 0; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: clamp(26px, 3vw, 40px); transform: rotate(-1.5deg); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, min(220px, 28cqh))); gap: 16px 22px; width: 100%; justify-content: center; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 10px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 3px 4px 0 var(--ink);
  font: inherit;
  color: var(--ink);
}
.game-card:nth-child(2) { transform: rotate(1.2deg); }
.game-card:nth-child(3) { transform: rotate(-1deg); }
.game-card:nth-child(4) { transform: rotate(.8deg); }
.game-card canvas { width: 100%; aspect-ratio: 200 / 130; height: auto; border: 2px solid rgba(38,38,58,.25); border-radius: 4px; }
.game-card b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 22px; line-height: 1.1; }
.game-card.locked { opacity: .6; box-shadow: none; cursor: not-allowed; }
button.game-card { background: #fff27a; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 130px)); gap: 8px 12px; }
  .picker h2 { font-size: 22px; }
  .game-card { padding: 5px 5px 6px; }
  .game-card b { font-size: 16px; }
  .game-card .tag { font-size: 10px; }
}
.addr { font-family: "Permanent Marker", cursive; font-size: 15px; white-space: nowrap; }
.wallet-card { width: min(380px, 92vw); }
#walletList { display: block; list-style: none; padding: 0; margin: 10px 0; text-align: left; }
#walletList li { margin-bottom: 8px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 2px 3px 0 var(--ink);
}
.wallet-opt.off { opacity: .6; box-shadow: none; }
.wallet-opt canvas { width: 34px; height: 34px; flex: none; }
.wallet-opt span { flex: 1; text-align: left; }
#walletMsg { min-height: 22px; font-size: 16px; color: #8a3a55; }
@media (max-width: 900px) {
  .login-box { background: rgba(253,251,243,.88); padding: 12px; }
}
.side-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: end; }
#houseNote { padding-top: 16px; padding-bottom: 14px; box-shadow: 6px 10px 18px rgba(0,0,0,.35), 0 0 0 3px rgba(58,168,86,.35); }
#houseNote h2 { font-size: 26px; }
#houseNote .open-hint { font-family: "Permanent Marker", cursive; font-size: 16px; color: #2d7a43; }
@media (prefers-reduced-motion: no-preference) {
  #houseNote { animation: houseWiggle 4s ease-in-out infinite; }
}
@keyframes houseWiggle { 0%, 88%, 100% { transform: rotate(.7deg); } 92% { transform: rotate(-1.5deg) scale(1.03); } 96% { transform: rotate(1.8deg) scale(1.03); } }
.side-row .bench-note { margin: 0; padding: 12px 12px 10px; }
.side-row .bench-note h2 { font-size: 22px; margin-bottom: 4px; }
.side-row .bench-note p { font-size: 15px; line-height: 1.15; }
@media (min-width: 901px) {
  body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .top { flex: none; width: 100%; max-width: none; padding: 8px 28px 0; }
  h1 { font-size: 38px; }
  main {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    grid-template-columns: auto 360px;
    grid-template-rows: minmax(0, 1fr);
    justify-content: center;
    gap: 24px;
    padding: 18px 28px 20px;
    align-items: stretch;
    container-type: size;
  }
  .board-col { min-height: 0; display: flex; align-items: center; }
  .notebook { width: min(calc(100cqw - 384px), calc((100cqh - 150px) * 720 / 564 + 32px)); }
  .side { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .side-top { flex: none; margin: 0; }
  .side .note { margin: 0; padding: 14px 14px 12px; }
  .note.yellow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .note.yellow .hero-list { flex: 1; min-height: 0; max-height: none; }
  .side-row { flex: none; }
}
@media (max-width: 900px) {
  main { grid-template-columns: 1fr; padding: 10px 16px 30px; }
  .top { padding: 12px 16px 4px; }
  .notebook { padding: 28px 8px 8px; transform: none; }
  .page-head { height: 44px; }
  .ca { font-size: 15px; }
  .hero-list { max-height: none; }
}
.ref-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 10px;
  background: #ffd43b;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(1.5deg);
  text-align: left;
  animation: ref-wiggle 3.2s ease-in-out infinite;
}
.ref-btn span:last-child { display: flex; flex-direction: column; line-height: 1.05; font-family: "Permanent Marker", cursive; font-size: 19px; }
.ref-btn b { font-weight: normal; color: var(--red); font-size: 20px; }
.ref-btn small { font-family: "Patrick Hand", cursive; font-size: 14px; }
.ref-gift { font-size: 30px; line-height: 1; }
@keyframes ref-wiggle { 0%, 82%, 100% { transform: rotate(1.5deg); } 86% { transform: rotate(-3deg) scale(1.06); } 90% { transform: rotate(4deg) scale(1.06); } 94% { transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .ref-btn { animation: none; } }
.login-ref {
  display: block; width: 100%; margin-top: 14px; padding: 10px 12px;
  background: #ffd43b; border: 3px dashed var(--ink); box-shadow: none;
  transform: rotate(1deg); text-align: center;
}
.login-ref b { display: block; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 19px; line-height: 1.15; }
.login-ref span { display: block; font-size: 16px; margin-top: 2px; }
.login-invited { margin: 8px 0 0 !important; font-size: 17px !important; color: #2f8a3a !important; font-weight: bold; }
.ref-card { width: min(460px, 94vw); text-align: left; }
.ref-card h3 { text-align: center; }
.ref-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 10px; }
.ref-level { padding: 8px 10px; background: #ffd43b; border: 2px solid var(--ink); border-radius: var(--sketch); text-align: center; transform: rotate(-1deg); }
.ref-level.l2 { background: var(--blue); transform: rotate(1deg); }
.ref-level b { display: block; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 38px; line-height: 1; color: var(--red); }
.ref-level.l2 b { color: #3557c9; }
.ref-level span { font-size: 15px; line-height: 1.15; display: block; }
.ref-how { font-size: 16px; margin: 0 0 12px; }
.ref-out { text-align: center; }
.ref-out p { margin: 4px 0 10px; }
#refLink { font-size: 15px; }
.ref-code { margin: -4px 0 10px; font-size: 16px; }
.ref-code b { font-family: "Permanent Marker", cursive; font-weight: normal; letter-spacing: 1px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; text-align: center; }
.ref-stats div { padding: 6px 4px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--sketch); }
.ref-stats b { display: block; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 22px; }
.ref-stats small { font-size: 13px; color: #555; }
.ref-by { font-size: 16px; color: #2f8a3a; margin: 0 0 6px; }
@media (max-width: 600px) {
  .ref-btn { padding: 4px 10px 4px 6px; gap: 6px; }
  .ref-btn span:last-child { font-size: 15px; }
  .ref-btn b { font-size: 13px; }
  .ref-btn span:last-child { min-width: 0; }
  h1 { font-size: 26px; }
  .ref-btn small { display: none; }
  .ref-gift { font-size: 22px; }
  .ref-level b { font-size: 30px; }
}
.mint-area { position: relative; }
.start-arrow { display: none; fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.start-hint { display: none; text-align: center; margin: 4px 0 6px; }
.start-hint b { display: block; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 26px; color: var(--red); transform: rotate(-2deg); }
.start-hint span { display: block; font-size: 17px; line-height: 1.2; margin-top: 4px; }
.start-hint em { font-style: normal; font-family: "Permanent Marker", cursive; }
body.first-hero .start-hint { display: block; }
body.first-hero .start-arrow { display: block; }
.start-arrow.up { width: 110px; height: 82px; margin: 0 auto -4px; }
.start-arrow.side { position: absolute; left: -64px; top: 22%; width: 62px; height: 40px; z-index: 3; }
body.first-hero #mint, body.first-hero #mintPack { animation: mint-call 1.6s ease-in-out infinite; }
body.first-hero #mintPack { animation-delay: .8s; }
@keyframes mint-call { 0%, 100% { box-shadow: 2px 3px 0 var(--ink); } 50% { box-shadow: 2px 3px 0 var(--ink), 0 0 0 5px rgba(232,65,79,.55); } }
@media (prefers-reduced-motion: no-preference) {
  .start-arrow.up { animation: arrow-up 1.2s ease-in-out infinite; }
  .start-arrow.side { animation: arrow-side 1.2s ease-in-out infinite; }
}
@keyframes arrow-up { 50% { transform: translateY(-8px); } }
@keyframes arrow-side { 50% { transform: translateX(8px); } }
@media (max-width: 900px) { .start-arrow.side { display: none !important; } }
@media (min-width: 901px) {
  .note.yellow .start-hint { flex: 0 1 auto; min-height: 0; overflow: hidden; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .start-arrow.up { width: 70px; height: 50px; }
  .start-hint b { font-size: 21px; }
  .start-hint span { display: none; }
}
.side-top { flex-wrap: wrap; }
.side-top .ref-btn { flex: 1 0 100%; order: -1; justify-content: center; padding: 6px 12px; font-size: inherit; }
.side-top .ref-btn span:last-child { font-size: 18px; }
.side-top .ref-btn b { font-size: 18px; }
.game-card.locked.soon { opacity: .9; background: #e9f7df; }
.game-card b small { font-family: "Patrick Hand", cursive; font-size: .62em; color: #3f8f3a; white-space: nowrap; }
.top { justify-content: flex-start; }
.back-btn { display: none; font-family: "Permanent Marker", cursive; font-size: 18px; padding: 6px 14px; transform: rotate(-1.5deg); }
body:not(.locked):not(.hub) .back-btn { display: inline-block; }
@media (max-width: 600px) { .back-btn { font-size: 15px; padding: 4px 10px; } }
.socials { position: fixed; left: 18px; bottom: 18px; z-index: 8; display: flex; flex-direction: column; gap: 12px; }
.social {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 9px;
  color: #fff; text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform .08s;
}
.social.discord { background: #5865F2; transform: rotate(-2deg); }
.social.telegram { background: #229ED9; transform: rotate(1.5deg); }
.social:hover { transform: rotate(-1deg) scale(1.06); }
.social svg { width: 32px; height: 32px; flex: none; }
.social span { display: flex; flex-direction: column; line-height: 1; }
.social b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 21px; letter-spacing: .5px; text-shadow: 2px 2px 0 var(--ink); }
.social small { font-size: 14px; margin-top: 2px; }
@media (min-width: 901px) { main { padding-left: 200px; } }
@media (max-width: 900px) {
  .socials { left: 10px; bottom: 10px; flex-direction: row; gap: 8px; }
  .social { padding: 4px 10px 4px 6px; gap: 5px; box-shadow: 3px 4px 0 var(--ink); }
  .social svg { width: 24px; height: 24px; }
  .social b { font-size: 16px; }
  .social small { display: none; }
  main { padding-bottom: 80px; }
}
.launch-timer {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 16px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-1deg);
  font-family: "Permanent Marker", cursive;
}
.launch-timer span { font-size: 19px; }
.launch-timer em { font-style: normal; }
.launch-timer b { font-weight: normal; font-size: 28px; color: var(--red); letter-spacing: 1px; font-variant-numeric: tabular-nums; min-width: 6.2ch; }
.launch-timer.live { background: #7be38a; }
@media (prefers-reduced-motion: no-preference) { .launch-timer.live { animation: ref-wiggle 1.6s ease-in-out infinite; } }
@media (max-width: 600px) {
  .launch-timer { gap: 8px; padding: 2px 10px; }
  .launch-timer span { font-size: 14px; }
  .launch-timer b { font-size: 20px; }
}
.garden, .seed-note { display: none; }
body.in-garden .garden {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px 12px;
  background: rgba(253,251,243,.94);
  overflow: hidden;
}
body.in-garden .seed-note { display: block; }
body.in-garden .side .note.yellow, body.in-garden .side-row, body.in-garden .page-foot span { display: none; }
body.in-garden .side .seed-note { flex: 1; min-height: 0; overflow-y: auto; }
.garden-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; }
.garden-bar h2 { margin: 0; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 26px; transform: rotate(-1.5deg); }
.garden-bar h2 small { font-family: "Patrick Hand", cursive; font-size: 16px; color: #3f8f3a; }
.g-test { font-family: "Permanent Marker", cursive; font-size: 12px; padding: 1px 8px; background: #ffd0e2; border: 2px dashed var(--ink); transform: rotate(2deg); }
.g-spacer { flex: 1; }
.garden-bar button { font-size: 16px; padding: 4px 12px; }
.garden-bar button.hot { background: var(--yellow); animation: mint-call 1.4s ease-in-out infinite; }
.g-plots { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; align-content: start; padding: 4px 4px 8px; }
.plot {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 8px 8px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  box-shadow: 3px 4px 0 var(--ink);
}
.plot:nth-child(3n+1) { transform: rotate(-.6deg); }
.plot:nth-child(3n+2) { transform: rotate(.5deg); }
.plot.empty { background: #f6f1e4; border-style: dashed; box-shadow: none; }
.plot.ready { background: #fff8c9; }
.plot.thirsty { background: #e9f4ff; }
.p-head { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.p-num { font-family: "Permanent Marker", cursive; font-size: 11px; padding: 0 6px; background: #f0956a; border: 1.5px solid var(--ink); transform: rotate(-4deg); flex: none; }
.p-tag { flex: none; }
.p-tag .p-rar { margin: 0; }
.p-rar.seed { background: #c9a36a; }
.p-pay { margin-left: auto; font-size: 13px; color: #3f8f3a; white-space: nowrap; }
.p-name { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 16px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plot canvas { width: 100%; aspect-ratio: 200 / 130; height: auto; }
.p-info { display: flex; flex-direction: column; gap: 2px; }
.plot.empty .p-info { visibility: hidden; }
.p-row { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.1; }
.p-ico { width: 16px; text-align: center; flex: none; }
.p-lbl { color: #555; white-space: nowrap; }
.p-row b { margin-left: auto; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-bar { height: 8px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; overflow: hidden; margin-bottom: 3px; }
.p-bar i { display: block; height: 100%; background: #7fd36b; transition: width .3s; }
.p-wbar i { background: #7cc4ff; }
.plot.thirsty .p-bar:not(.p-wbar) i { background: #9ab0c4; }
.plot.ready .p-bar:not(.p-wbar) i { background: #ffd43b; }
.plot.ready .p-time { color: #b07a00; }
.plot.dry .p-water { color: #d6336c; }
.plot.thirsty .p-time { color: #2e6fb5; }
.p-acts { display: flex; gap: 6px; }
.p-main { flex: 1; font-size: 15px; padding: 3px 6px; }
.plot.ready .p-main { background: var(--yellow); }
.plot.thirsty .p-main { background: var(--blue); }
.plot.empty .p-main { background: #c9f2c7; }
.p-x { font-size: 13px; padding: 3px 8px; }
.plot.empty .p-x { display: none; }
.seed-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.seed-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: rgba(255,255,255,.6); border: 2px solid var(--ink); border-radius: var(--sketch); text-align: left; }
.seed-list canvas { width: 54px; height: 54px; flex: none; }
.seed-list li div { flex: 1; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.seed-list b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 16px; }
.seed-list small { font-size: 13px; color: #555; }
.seed-list small em { font-style: normal; color: #2f8a3a; font-weight: bold; }
.seed-list .mint-btn { flex: none; padding: 4px 8px; font-size: 15px; }
.g-expand, .g-faucet { display: block; width: 100%; margin-bottom: 8px; font-size: 16px; }
.g-faucet { background: #ffd0e2; border-style: dashed; }
.g-help { font-size: 13px; color: #555; margin: 0; line-height: 1.3; }
.g-help summary { cursor: pointer; font-weight: bold; color: #2f8a3a; }
.seed-card { width: min(420px, 94vw); }
.seed-card .seed-list { display: flex; max-height: 60vh; overflow-y: auto; }
@media (max-width: 900px) {
  .g-plots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .garden-bar h2 { font-size: 20px; }
  .garden-bar button { font-size: 14px; padding: 3px 8px; }
}
body.in-garden #balance, body:not(.in-garden) #gWallet { display: none; }
#gWallet { cursor: default; }
.pvd-fruit { font-style: normal; font-size: 26px; line-height: 1; flex: none; }
.mint-btn .pvd-fruit { font-size: 13px; }
.fuse-btn { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 4px 10px; font-family: "Permanent Marker", cursive; font-size: 17px; background: #e7d4ff; transform: rotate(-.6deg); }
.fuse-btn small { font-family: "Patrick Hand", cursive; font-size: 14px; }
.fuse-card { width: min(520px, 94vw); }
.fuse-how { font-size: 16px !important; line-height: 1.25; margin-bottom: 12px !important; }
.card ul.fuse-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.fuse-list li { display: grid; grid-template-columns: 1fr auto 1fr 64px auto; align-items: center; gap: 6px; padding: 6px 8px; background: #fff; border: 2px solid var(--ink); border-radius: var(--sketch); opacity: .75; }
.fuse-list li.ready { opacity: 1; background: #fff8c9; box-shadow: 2px 3px 0 var(--ink); }
.fz-from, .fz-to { font-family: "Permanent Marker", cursive; font-size: 14px; color: var(--c); text-shadow: 1px 1px 0 rgba(38,38,58,.25); white-space: nowrap; }
.fz-arrow { font-size: 14px; white-space: nowrap; }
.fz-have { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fz-have i { display: block; width: 100%; height: 8px; border: 2px solid var(--ink); border-radius: 5px; overflow: hidden; background: #fff; }
.fz-have b { display: block; height: 100%; background: #9b4dde; }
.fz-have small { font-size: 13px; }
.fuse-list .mint-btn { padding: 3px 8px; font-size: 14px; }
@media (max-width: 500px) {
  .fuse-list li { grid-template-columns: 1fr auto 1fr; }
  .fz-have { grid-column: 1 / 3; }
}
.game-card.locked.soon.counting { opacity: 1; }
.game-card.locked.soon.counting canvas { opacity: .75; }
.game-card.locked.soon.counting .tag { display: none; } 
.pvd-count { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 3px 10px 4px; background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--sketch); box-shadow: 2px 2px 0 var(--ink); transform: rotate(1.5deg); font-family: "Permanent Marker", cursive; font-size: 19px; color: var(--red); font-variant-numeric: tabular-nums; }
.pvd-count small { font-family: "Patrick Hand", cursive; font-size: 12px; color: var(--ink); }
.pvd-count.live { background: #7be38a; color: var(--ink); }
@media (max-width: 900px) { .pvd-count { font-size: 14px; padding: 2px 6px 3px; } .pvd-count small { font-size: 10px; } }
.p-pay.lucky { color: #c98a00; font-weight: bold; }
.g-draw { margin-bottom: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g-draw .mint-btn { padding: 3px 4px; font-size: 15px; min-width: 0; flex-wrap: wrap; justify-content: center; }
.g-draw .mint-btn em { white-space: nowrap; }
.g-odds { font-size: 13px; color: #555; margin: 0 0 8px; line-height: 1.3; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.g-odds span { white-space: nowrap; }
.g-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.g-extra button { margin: 0; font-size: 14px; padding: 4px 6px; }
.pick-head { margin: 4px 0 6px; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 17px; text-align: left; }
.g-odds b { font-weight: normal; }
.g-bag { display: block; width: 100%; margin-bottom: 6px; font-size: 16px; background: #fff3b0; }
.p-rar { font-family: "Patrick Hand", cursive; font-size: 12px; padding: 0 5px; margin-right: 4px; border: 1.5px solid var(--ink); border-radius: 6px; color: #fff; vertical-align: 2px; }
.seed-list li.bag-row { background: #fff8d6; }
.seed-list li .free { background: #c9f2c7; }
.plot .p-main:not(:disabled) { background: var(--yellow); }
.plot.empty .p-main { background: #c9f2c7; }
.p-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-main { font-size: 14px; }
.plot .p-main.water:not(:disabled) { background: var(--blue); animation: mint-call 1.4s ease-in-out infinite; }
.p-gain b { color: #2f8a3a; }
.plot.dry .p-gain b { color: #888; }
.g-houses { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; margin: 2px 0 8px; padding: 4px 10px 5px;
  background: linear-gradient(#fff4a8, #ffd84a); border-width: 3px; box-shadow: 3px 4px 0 var(--ink); transform: rotate(-.6deg); }
.g-houses:hover { transform: rotate(-.6deg) translateY(-2px); }
.g-houses-top { display: flex; justify-content: space-between; align-items: baseline; }
.g-houses b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 22px; }
.g-houses em { font-style: normal; font-weight: bold; color: #b07a00; font-size: 14px; }
.g-houses canvas { width: 80%; align-self: center; height: auto; aspect-ratio: 6 / 1; }
.farm-card { width: min(1000px, 96vw); }
.farm-card .house-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-height: none; overflow: visible; }
.farm-card .house-grid li { padding: 6px 6px 8px; gap: 3px; }
.farm-card .house-grid canvas { width: 100%; max-width: 132px; height: auto; aspect-ratio: 6 / 5; }
.farm-card .house-grid h4 { font-size: 16px; }
.farm-card .hfacts { font-size: 14px; flex-direction: column; align-items: center; gap: 0; }
.farm-card .hmeta { font-size: 12px; }
.farm-card .house-grid .mint-btn { font-size: 14px; padding: 4px 6px; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.farm-card .house-grid .mint-btn em { white-space: nowrap; }
@media (max-width: 760px) { .farm-card .house-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .farm-card .house-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-house { margin-left: 4px; font-size: 12px; font-weight: bold; color: #b07a00; white-space: nowrap; }
.g-house-note { text-align: center; font-size: 14px; color: #555; margin: 0 0 8px; }
.g-rowlbl { margin: 0 0 3px; font-size: 13px; font-weight: bold; color: #555; }
.g-rowlbl.best { color: #1f6b2b; }
.g-rowlbl span { font-weight: normal; font-size: 12px; color: #2f8a3a; }
.g-draw4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.g-buy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 4px 6px; line-height: 1.1; }
.g-buy b { font-family: "Permanent Marker", cursive; font-weight: normal; color: var(--ink); font-size: 14px; }
.g-buy em { white-space: nowrap; font-size: 14px; }
.g-buy .g-db { color: #2f5fc9; font-size: 12px; }
.g-buy .g-usd { font-size: 13px; font-weight: bold; color: #1f6b2b; }
.g-buy.alt .g-usd { color: #888; }
.g-best { background: linear-gradient(#bff5b8, #7fdc72); box-shadow: 3px 4px 0 var(--ink); }
.g-best .g-save { position: absolute; top: -9px; right: -2px; font-style: normal; font-weight: bold; font-size: 12px; background: #e8414f; color: #fff;
  border: 2px solid var(--ink); border-radius: 10px; padding: 0 5px; transform: rotate(8deg); }
.g-payinfo { font-size: 12px; color: #555; margin: -2px 0 6px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-buy { display: flex; flex-direction: column; gap: 6px; flex: none; }
.seed-list .sd-buy .g-buy { padding: 2px 8px; font-size: 13px; }
.seed-card .g-payinfo { text-align: left; }
.g-odds { grid-template-columns: repeat(3, auto); font-size: 12px; margin-bottom: 6px; }
.garden-bar { position: relative; }
.garden-bar .g-help { position: relative; font-size: 13px; }
.garden-bar .g-help[open] { position: absolute; z-index: 6; top: 40px; left: 12px; right: 12px; background: #fffdf3; border: 2px solid var(--ink); border-radius: var(--sketch); padding: 8px 10px; box-shadow: 3px 4px 0 rgba(0,0,0,.2); }
.seed-note h2 { margin-bottom: 4px; }
.seed-card .g-payinfo { font-size: 12px; }
.g-buy { padding: 3px 6px; gap: 0; }
.g-buy .g-l1 { display: flex; gap: 6px; align-items: baseline; }
.g-rowlbl { margin-bottom: 2px; font-size: 12px; }
.g-draw4 { margin-bottom: 4px; }
.g-oddsbox { font-size: 12px; margin: 0 0 6px; }
.g-oddsbox summary { cursor: pointer; color: #2f8a3a; font-weight: bold; }
.g-oddsbox .g-odds { margin: 4px 0 0; }
.g-houses canvas { width: 72%; }
.g-bag { padding-top: 3px; padding-bottom: 3px; }
.g-rowlbl.best { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-rowlbl .g-payinfo { display: inline; margin: 0; font-weight: normal; }
body.in-garden .side { overflow-x: clip; }
body.in-garden .side, body.in-garden .seed-note { min-width: 0; } .g-rowlbl.best { max-width: 100%; }
.g-db .ink-drop, .g-rowlbl .ink-drop { width: 10px; height: 10px; border-width: 1.5px; margin: 0 1px 0 0; vertical-align: -1px; }
.g-buy .g-usd { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0; color: #1f6b2b; }
.g-buy.alt .g-usd { color: #444; }
.g-extra { grid-template-columns: 1fr; }
#pvdWdModal .wd-balance .pvd-fruit { font-size: 30px; }
#gWallet { cursor: pointer; }
.market-btn { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 4px 10px; font-family: "Permanent Marker", cursive; font-size: 17px; background: #ffe680; transform: rotate(.5deg); }
.market-btn small { font-family: "Patrick Hand", cursive; font-size: 14px; }
.market-card { width: min(760px, 96vw); }
.mk-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.mk-tabs button { font-size: 15px; padding: 3px 12px; background: #fff; box-shadow: none; }
.mk-tabs button.on { background: #ffd84a; box-shadow: 2px 2px 0 var(--ink); font-weight: bold; }
.mk-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.mk-bar select { font: inherit; padding: 2px 4px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.mk-bar small { color: #555; margin-left: auto; }
.card ul.mk-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; max-height: 58vh; overflow-y: auto; }
.mk-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; background: #fff; border: 2px solid var(--ink); border-radius: var(--sketch); text-align: center; }
.mk-list li.sold { opacity: .6; }
.mk-list canvas { width: 80px; height: 80px; }
.mk-list b.mk-name { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 15px; }
.mk-list .mk-rar { font-size: 12px; font-weight: bold; color: #fff; padding: 0 6px; border-radius: 8px; border: 1.5px solid var(--ink); }
.mk-list .mk-stats { font-size: 12px; color: #444; line-height: 1.2; }
.mk-list .mk-who { font-size: 11px; color: #777; }
.mk-list .mk-price { font-size: 13px; }
.mk-list .mint-btn { width: 100%; padding: 3px 6px; font-size: 14px; flex-direction: row; justify-content: center; gap: 6px; }
.mk-list input { width: 100%; font: inherit; padding: 2px 4px; border: 2px solid var(--ink); border-radius: 6px; text-align: center; }
.mk-list .mk-get { font-size: 12px; color: #1f6b2b; min-height: 15px; }
.mk-empty { grid-column: 1 / -1; text-align: center; color: #666; padding: 20px; }
.side { overflow-x: clip; }
body.locked #caLink, body.hub #caLink { display: none; } 
.ref-level.pvd { grid-column: 1 / -1; background: #c9f2c7; transform: rotate(-.5deg); }
.ref-level.pvd b { color: #1f6b2b; }
.ref-stats { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.game-card.locked.soon.car { background: #ffe6d6; }
.game-card.car b small { color: #d9532b; }
#payModal { z-index: 20; } 
.garage, .car-note { display: none; }
body.in-dcar .garage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px 12px;
  background: rgba(253,251,243,.94);
  overflow: hidden;
}
body.in-dcar .car-note { display: block; }
body.in-dcar .side .note.yellow, body.in-dcar .side-row, body.in-dcar .page-foot span { display: none; }
body.in-dcar .side .car-note { flex: 1; min-height: 0; overflow-y: auto; }
body.in-dcar #balance, body:not(.in-dcar) #cWallet { display: none; }
.garage .garden-bar h2 small { color: #2f7de1; }
.c-count { font-family: "Permanent Marker", cursive; font-size: 14px; color: rgba(38,38,58,.6); }
.dcar-ico { font-style: normal; font-size: 26px; line-height: 1; flex: none; }
.mint-btn .dcar-ico { font-size: 13px; margin-right: 2px; }
.note.blue { background: #cfe6ff; transform: rotate(-.6deg); }
.car-note .mint-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-rules { font-size: 15px; margin: 10px 0 6px !important; line-height: 1.2 !important; }
.c-oddsh { margin: 8px 0 4px; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 13px; }
.c-odds { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.c-odds li { display: grid; grid-template-columns: 1.3fr .6fr 1.1fr 1.7fr; gap: 4px; padding: 2px 0; border-bottom: 1px dashed rgba(38,38,58,.2); }
.c-odds li span:last-child { text-align: right; }
.c-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; align-content: start; padding: 6px 4px 10px; }
.c-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 10px; text-align: center; }
.c-empty canvas { width: 240px; height: 120px; }
.c-empty b { font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 22px; }
.c-empty span { max-width: 360px; font-size: 17px; }
.car-card {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 8px 10px 10px; background: #fffef8;
  border: 2.5px solid var(--ink); border-radius: 10px 14px 9px 12px;
  box-shadow: 3px 4px 0 rgba(38,38,58,.18), inset 0 0 0 3px color-mix(in srgb, var(--rc) 35%, transparent);
}
.car-card:nth-child(2n) { transform: rotate(.5deg); }
.car-card:nth-child(3n) { transform: rotate(-.5deg); }
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-id { font-family: "Permanent Marker", cursive; font-size: 13px; color: rgba(38,38,58,.55); border: 1.5px solid rgba(38,38,58,.3); border-radius: 6px; padding: 0 6px; }
.cc-plate { font-family: "Permanent Marker", cursive; font-size: 14px; background: #ffd43b; border: 2px solid var(--ink); border-radius: 4px; padding: 0 8px; transform: rotate(-2deg); }
.car-card canvas { width: 100%; aspect-ratio: 2 / 1; height: auto; }
.cc-name { display: flex; align-items: stretch; gap: 6px; }
.cc-type { display: grid; place-items: center; padding: 2px 8px; background: var(--rc); color: #fff; border: 2px solid var(--ink); border-radius: 8px; font-family: "Permanent Marker", cursive; font-size: 12px; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.cc-name b { flex: 1; min-width: 0; padding: 2px 8px; border: 2px solid rgba(38,38,58,.25); border-radius: 8px; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 19px; color: #2f5fa8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-stats { list-style: none; margin: 0; padding: 6px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 14px; border: 2px solid rgba(38,38,58,.15); border-radius: 8px; }
.cc-stats li { white-space: nowrap; }
.cc-stats b { font-family: "Permanent Marker", cursive; font-weight: normal; }
.cc-fuelbar { height: 8px; border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; overflow: hidden; }
.cc-fuelbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffa94d, #69db7c); transition: width .5s; }
.cc-go { font-size: 16px; padding: 6px 8px; background: #a8e06a; }
.cc-go:disabled { background: #eceae4; color: rgba(38,38,58,.55); }
.cc-earn { font-size: 13px; color: rgba(38,38,58,.7); text-align: center; line-height: 1.15; }
.cc-earn b { color: var(--ink); }
.race-card { width: min(620px, 96vw); max-height: 94vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 12px; transform: rotate(-.4deg); }
#raceTrack { width: 100%; height: auto; aspect-ratio: 280 / 90; border: 2px solid var(--ink); border-radius: 6px; flex: none; }
#raceTitle { margin: 4px 0 0; font-family: "Permanent Marker", cursive; font-weight: normal; font-size: 38px; line-height: 1; }
.race-prize { margin: 0; font-size: 20px; min-height: 24px; }
.race-prize b { color: #9b4dde; }
.race-table { position: relative; list-style: none; margin: 4px 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1 1 auto; max-height: 52vh; }
.race-row {
  position: absolute; left: 0; right: 0; top: 0; height: 52px;
  display: grid; grid-template-columns: 44px 76px 1fr 62px 62px 62px; align-items: center; gap: 4px;
  padding: 0 8px; background: #fffef8; border: 2px solid rgba(38,38,58,.25); border-radius: 10px;
  transition: transform .55s cubic-bezier(.4,1.4,.5,1);
}
.race-row.static { position: relative; transform: none; margin-bottom: 6px; }
.race-row.me { border-color: var(--ink); background: #fff7c2; box-shadow: 2px 3px 0 rgba(38,38,58,.2); z-index: 1; }
.rr-place { font-family: "Permanent Marker", cursive; font-size: 12px; color: #fff; border-radius: 5px; padding: 1px 0; text-align: center; border: 1.5px solid var(--ink); }
.race-row canvas { width: 74px; height: 40px; }
.rr-name { font-family: "Permanent Marker", cursive; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 rgba(38,38,58,.25); }
.rr-name i { font-family: "Patrick Hand", cursive; font-style: normal; color: var(--ink); font-size: 13px; text-shadow: none; }
.rr-st { display: flex; flex-direction: column; align-items: center; font-family: "Permanent Marker", cursive; font-size: 14px; line-height: 1.05; }
.rr-st small { font-family: "Patrick Hand", cursive; font-size: 12px; color: rgba(38,38,58,.6); }
.race-btns { display: flex; gap: 8px; justify-content: center; align-items: center; flex: none; }
.race-skip { font-size: 15px; padding: 4px 12px; white-space: nowrap; flex: none; }
#raceModal.done .race-skip { display: none; }
@media (max-width: 600px) {
  .race-row { grid-template-columns: 38px 56px 1fr 46px 46px 46px; padding: 0 4px; }
  .race-row canvas { width: 56px; height: 30px; }
  .rr-name { font-size: 13px; }
  .rr-st { font-size: 12px; }
}
.c-buyinfo { font-size: 13px; margin: 6px 0 0 !important; color: rgba(38,38,58,.7); text-align: center; }
.c-buy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; padding: 3px 6px; line-height: 1.1; }
.c-buy .g-l1 { display: flex; gap: 6px; align-items: baseline; }
.c-buy b { font-family: "Permanent Marker", cursive; font-weight: normal; color: var(--ink); font-size: 14px; }
.c-buy em { white-space: nowrap; font-size: 14px; }
.c-buy .g-db { color: #2f5fc9; font-size: 12px; }
.c-buy .g-usd { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 0; color: #1f6b2b; }
.c-buy.alt .g-usd { color: #444; }
.car-note .g-rowlbl.best { color: #1f4f9b; }
.game-card.locked.soon.plane { background: #dcecff; }
.game-card.plane b small { color: #2f7de1; }
