/*! (c) 2026 taproute.io. All rights reserved. Doodle Checkers is proprietary: no licence to copy, host, modify or reuse. https://doodlecheckers.com/terms.html */
:root { --ink: #2a2438; --edge: #4e4868; --paper: #fffdf3; --muted: #5b5470; --yellow: #ffd23f; --green: #8be28b; --blue: #9bdcff; --purple: #b07cff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
font: 21px/1.25 'Patrick Hand', 'Comic Sans MS', cursive, system-ui, sans-serif; font-weight: 600; color: var(--ink);
background-color: #fffbea;
background-image: linear-gradient(90deg, transparent 58px, rgba(230,80,80,.35) 58px, rgba(230,80,80,.35) 60px, transparent 60px), repeating-linear-gradient(0deg, transparent 0 31px, rgba(90,150,220,.25) 31px 32px);
padding: max(12px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}
main { max-width: 540px; margin: 0 auto; }
.marker { font-family: 'Permanent Marker', 'Comic Sans MS', cursive; font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.doodle-btn { border: 2.5px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); background: #fff; border-radius: 16px; padding: .4rem 1rem; transition: transform .08s, box-shadow .08s; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; }
.doodle-btn:hover:not(:disabled) { transform: translate(-1px,-2px) rotate(-1deg); box-shadow: 4px 5px 0 var(--edge); }
.doodle-btn:active:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--edge); }
.doodle-btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,253,243,.95); border: 2.5px solid var(--edge); border-radius: 999px; padding: .1rem .9rem; box-shadow: 3px 3px 0 var(--edge); }
.card { background: var(--paper); border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 3px 3px 0 var(--edge); padding: 14px 16px; margin-top: 16px; }
.ico { display: block; flex: none; }
header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h1 { font-size: 34px; margin: 0; line-height: 1; transform: rotate(-1.5deg); text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 5px 0 rgba(78,72,104,.35); animation: wob 2.8s ease-in-out infinite; }
h1 span { color: var(--purple); }
h2 { font-size: 24px; margin: 0 0 2px; font-weight: 400; }
@keyframes wob { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(2deg) } }
#stageCard { position: relative; padding: 0; overflow: hidden; border-radius: 22px; background: var(--paper); }
#stage svg { display: block; width: 100%; height: auto; }
#stage .pet-body, #stage .egg { transform-box: fill-box; transform-origin: 50% 100%; }
#stage .pet-body { animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(78,72,104,.35)); cursor: pointer; }
#stage .pet-body.happy { animation: hop 1.15s ease-in-out infinite; }
#stage .pet-body.sad { animation: bob 4.2s ease-in-out infinite; filter: saturate(.6) drop-shadow(0 4px 0 rgba(78,72,104,.35)); transform: rotate(-3deg); }
#stage .egg { animation: eggw 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(78,72,104,.35)); }
#stage .egg-1 { animation-duration: 2s; } #stage .egg-2 { animation-duration: 1.4s; } #stage .egg-3 { animation-duration: .9s; } #stage .egg-4 { animation-duration: .5s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes hop { 0%,100% { transform: translateY(0) scale(1,1) } 25% { transform: translateY(-9px) scale(.97,1.04) } 50% { transform: translateY(0) scale(1.04,.95) } 70% { transform: translateY(-2px) scale(1,1) } }
@keyframes eggw { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
#stage.cheer .pet-body { animation: cheer .6s ease-out; }
@keyframes cheer { 0% { transform: translateY(0) scale(1,1) } 30% { transform: translateY(-26px) scale(.94,1.1) } 60% { transform: translateY(0) scale(1.1,.88) } 100% { transform: translateY(0) scale(1,1) } }
#stage.shake .egg { animation: eggshake .12s linear infinite; }
@keyframes eggshake { 0% { transform: rotate(-7deg) translateX(-3px) } 50% { transform: rotate(7deg) translateX(3px) } 100% { transform: rotate(-7deg) translateX(-3px) } }
#stage.pop .pet-body { animation: pop .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.2) } 60% { transform: scale(1.18,.9) } 100% { transform: scale(1) } }
#flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; display: flex; align-items: center; justify-content: center; }
#flash svg { width: 90%; }
#flash.go { animation: flash 1s ease-out; }
@keyframes flash { 0% { opacity: 0; transform: scale(.3) rotate(0) } 25% { opacity: 1 } 100% { opacity: 0; transform: scale(1.5) rotate(40deg) } }
.nm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nm b { font-size: 30px; line-height: 1.1; }
.muted { color: var(--muted); }
.bar { height: 26px; margin-top: 8px; } .bar svg { width: 100%; height: 100%; display: block; } .bar svg path { vector-effect: non-scaling-stroke; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.row.c { justify-content: center; }
.big { font-size: 24px; padding: .5rem 1.3rem; border-radius: 20px; }
.th { width: 100%; height: 64px; object-fit: contain; object-position: 50% 100%; display: block; }
.th.locked { filter: grayscale(1) opacity(.45); } .th.mystery { filter: brightness(0) opacity(.2); }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.step { position: relative; background: #fff; border: 2.5px solid var(--edge); border-radius: 14px; padding: 6px 2px 6px; text-align: center; font-size: 15px; line-height: 1.05; box-shadow: 2px 2px 0 var(--edge); }
.step .nmx { font-family: 'Permanent Marker', cursive; font-size: 13px; margin-top: 2px; display: block; }
.step.locked { background: #f1ecdd; box-shadow: none; border-style: dashed; }
.step.now { background: var(--yellow); transform: rotate(-2deg) scale(1.06); }
.step .ck { position: absolute; right: -6px; top: -8px; background: var(--green); border: 2px solid var(--edge); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { flex-direction: column; gap: 0; min-width: 84px; padding: 4px 6px; border-radius: 14px; font-size: 15px; line-height: 1.05; }
.chip .ic { font-size: 28px; line-height: 1.1; } .chip small { font-size: 14px; color: var(--muted); }
.chip.locked { background: #f1ecdd; box-shadow: none; border-style: dashed; } .chip.locked .ic { filter: grayscale(1); opacity: .6; }
#stage .pet-body.hungry { animation: bob 4.6s ease-in-out infinite; filter: saturate(.7) drop-shadow(0 4px 0 rgba(78,72,104,.35)); transform: scaleY(.95); }
#stage .pet-body.sleepy { animation: bob 6s ease-in-out infinite; filter: saturate(.8) brightness(.95) drop-shadow(0 4px 0 rgba(78,72,104,.35)); transform: rotate(4deg); }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.team { flex-direction: column; padding: 6px 2px 6px; gap: 0; border-radius: 14px; font-size: 16px; line-height: 1.05; }
.team.on { background: var(--green); } .team.locked, .item.locked { background: #f1ecdd; }
.shophead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.shophead h2 { font-size: 28px; margin: 0; transform: rotate(-1deg); }
.gems { background: #fff; font-size: 22px; min-height: 44px; } .gems .di { width: 1.1em; height: 1.1em; }
.tabs { display: flex; gap: 8px; margin-top: 14px; }
.tab { flex: 1; min-height: 44px; padding: .3rem .4rem; font-size: 19px; }
.tab[aria-selected="true"] { background: var(--yellow); transform: rotate(-1deg); }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.item { position: relative; background: #fff; border: 2.5px solid var(--edge); border-radius: 14px; box-shadow: 2px 2px 0 var(--edge); padding: 6px 4px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 16px; line-height: 1.1; }
.item.owned { background: #e9f9e4; } .item.locked { box-shadow: none; border-style: dashed; }
.item .pair { display: flex; width: 100%; justify-content: center; } .item .pair .th { width: 50%; height: 56px; }
.item .sw { width: 60px; height: 60px; display: block; } .item.locked .sw { filter: grayscale(1) opacity(.5); }
.item .nmx { font-family: 'Permanent Marker', cursive; font-size: 14px; font-weight: 400; min-height: 2.2em; display: flex; align-items: center; }
.item small { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.item .price { font-size: 18px; color: var(--ink); }
.item .get { min-height: 44px; padding: .2rem .9rem; font-size: 18px; background: var(--yellow); margin-top: 2px; }
.item .neednote { max-width: 100%; margin: 2px 0 0; padding: 4px 6px; min-height: 44px; background: var(--yellow); border: 2px solid var(--edge); border-radius: 12px; font-size: 14px; line-height: 1.2; color: var(--ink); text-align: center; }
.item .neednote img { display: inline-block; vertical-align: -.15em; } .item .neednote span { white-space: nowrap; }
.missions { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.mis { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; font-size: 18px; }
.mis .bar { grid-column: 1 / -1; height: 20px; margin: 0; }
.mis .rw { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.mis.done .rw { color: var(--ink); }
#money { margin-top: 18px; border-top: 2.5px dashed var(--edge); padding-top: 10px; }
#money h3 { font-size: 24px; font-weight: 400; margin: 10px 0 0; transform: rotate(-1deg); }
.grownup { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pack { flex-direction: column; gap: 2px; padding: 8px 4px; border-radius: 14px; min-height: 96px; background: #fff; }
.pack .di { width: 1.6em; height: 1.6em; } .pack b { font-family: 'Permanent Marker', cursive; font-weight: 400; font-size: 22px; line-height: 1; }
.pack .cost { font-size: 18px; background: var(--yellow); border: 2px solid var(--edge); border-radius: 999px; padding: 0 .6rem; margin-top: 2px; }
.club { margin-top: 16px; background: #f3ecff; border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 2px 2px 0 var(--edge); padding: 6px 12px 10px; }
.perks { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 18px; }
.perks li { display: flex; align-items: center; gap: 6px; } .perks .di, .perks img { width: 1.1em; height: 1.1em; flex: none; }
.clubbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.clubbtns .doodle-btn { flex-direction: column; gap: 0; min-height: 60px; background: var(--yellow); font-size: 20px; line-height: 1.1; }
.clubbtns small { font-family: 'Patrick Hand', cursive; font-size: 15px; color: var(--ink); }
.clubon { margin: 8px 0 0; font-size: 19px; }
.fine { font-size: 15px; color: var(--muted); margin: 8px 0 0; line-height: 1.25; text-align: center; }
.fine.links a { color: #5a2fbf; display: inline-block; min-height: 44px; line-height: 44px; padding: 0 6px; }
.moneymsg { min-height: 1.3em; margin: 8px 0 0; text-align: center; font-size: 18px; }
@media (max-width: 359px) { .packs { grid-template-columns: 1fr 1fr; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 10px 0; }
.team small { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.mys { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; }
.mys .th { height: 40px; }
#toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(140px); transition: transform .25s; pointer-events: none; z-index: 9; max-width: 92vw; width: max-content; text-align: center; background: var(--yellow); }
#toast.show { transform: translateX(-50%) translateY(0); }
.center { text-align: center; }
input { font: inherit; min-height: 44px; border: 2.5px solid var(--edge); border-radius: 14px; padding: .4rem .9rem; width: 12em; max-width: 100%; background: #fff; color: var(--ink); text-align: center; box-shadow: 3px 3px 0 var(--edge); }
.egghead { font-size: 28px; margin: 0 0 4px; transform: rotate(-1deg); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3.5px solid #2a2438; outline-offset: 3px; }
input::placeholder, ::placeholder { color: #6b6580; opacity: 1; }