*{box-sizing:border-box}body{margin:0;background:var(--page,#dce9d0);color:var(--ink,#67482b);font-family:system-ui,-apple-system,sans-serif;display:flex;justify-content:center;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}#stage{width:450px;height:800px;position:relative;flex-shrink:0;transform-origin:top center;overflow:hidden;background-size:cover;background-position:center}header{position:absolute;top:12px;left:14px;right:14px;display:flex;align-items:center;gap:7px;z-index:8}header>a,nav button{display:grid;place-items:center;width:34px;height:34px;text-decoration:none;color:var(--ink);font-size:21px;border:2px solid var(--rim,#fff7db);border-radius:13px;background:linear-gradient(145deg,var(--panel-top,#fffcef),var(--panel-bottom,#eddbb5));box-shadow:inset 0 2px #fff,0 3px 0 var(--panel-shadow,#c9b58d),0 4px 8px #78613825}.wallet{border:2px solid var(--rim,#fff9df);border-radius:22px;padding:5px 9px;background:linear-gradient(var(--rim,#fff9df),var(--panel-bottom,#eddfbd));box-shadow:inset 0 2px #fff,0 3px #b7a17955;font-size:11px}.wallet b{font-size:16px}nav{display:flex;gap:7px;margin-inline-start:auto}.heading{position:absolute;top:50px;left:23px;right:23px;height:133px;text-align:center;z-index:4}#titleArt{width:100%;height:100%;object-fit:contain}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.history{position:absolute;top:188px;left:17px;right:17px;width:416px;height:64px;padding:6px 10px;border:2px solid var(--rim,#fff9df);border-radius:20px;background:linear-gradient(var(--panel-top,#fff8dd),var(--panel-bottom,#f0e3c2));box-shadow:inset 0 2px 0 #fff,0 3px 0 #c4ac8255,0 6px 10px #61572e15;z-index:5;text-align:start}.history>span{display:block;font-size:10px;font-weight:800;line-height:12px}.history small{font-size:7px;line-height:10px;display:block;color:var(--muted,#786c56);text-align:end}#history{display:flex;gap:5px;direction:ltr;align-items:center;height:28px;white-space:nowrap;font-size:10px}.history-item{display:block;width:30px;height:28px;position:relative;border:1px solid #dec69b;border-radius:50%;background:var(--panel-bottom,#fbefd0);flex-shrink:0}.history-item img{width:100%;height:100%;object-fit:cover;object-position:center 22%;border-radius:50%;transform:scale(1.1)}.history-item:first-child{border:2px solid #dfb14c;box-shadow:0 0 0 2px #fff9d9}.history-item em{position:absolute;bottom:-1px;right:-2px;min-width:10px;border-radius:6px;background:#fff5d8;font-size:7px;font-style:normal;line-height:10px;text-align:center}.history-item .latest{position:absolute;top:-10px;left:0;background:#e87b70;color:white;font-size:6px;line-height:9px;padding:0 3px;border-radius:5px;font-style:normal;z-index:2;white-space:nowrap}#track{position:absolute;top:264px;left:0;width:450px;height:280px;direction:ltr;z-index:2}#trackArt{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}#lanes{position:absolute;inset:0}.lane{position:absolute;width:78px;height:116px;transform-origin:center bottom;pointer-events:none}.runner{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 1px #57402938);transform-origin:50% 85%}.ground-shadow{position:absolute;bottom:5px;left:20%;width:60%;height:8px;border-radius:50%;background:#784f3433;filter:blur(2px)}.lane>small{position:absolute;bottom:-9px;left:29px;width:20px;text-align:center;font-size:9px;font-weight:800;color:#72583a;border-radius:50%;background:#ffefd1bb;z-index:3}.choice-tag{display:none;position:absolute;bottom:104px;left:50%;transform:translateX(-50%);width:max-content;max-width:120px;text-align:center;font-size:11px;font-weight:800;padding:4px 8px;border:2px solid #fff;border-radius:14px;background:var(--selection,#31bbaa);color:#fff;box-shadow:0 3px 7px #1e796644;z-index:5}.choice-tag:after{content:'';position:absolute;left:calc(50% - 5px);bottom:-7px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--selection,#31bbaa)}.lane.selected .choice-tag{display:block}.place{display:none;position:absolute;top:2px;left:50%;transform:translateX(-50%);border-radius:50%;background:#fff5d3;border:2px solid #d5b77a;color:#846641;font-size:13px;min-width:23px;text-align:center;z-index:4}.finished .place{display:block}.finished .lane:not(.winner) .runner{filter:saturate(.6) drop-shadow(0 3px 1px #57402938)}.lane.winner .place{top:-5px;background:#ffdb70;border-color:#fff8c7;color:#a16509;box-shadow:0 0 12px #ffe897;font-size:18px;min-width:32px}.finished .choice-tag{bottom:-31px;font-size:9px;line-height:12px;padding:2px 7px}.finished .choice-tag:after{display:none}#countdown{position:absolute;top:65px;left:0;right:0;text-align:center;font-size:62px;font-weight:900;color:#fff4c2;text-shadow:0 3px #aa7936,0 5px 14px #483b3655;z-index:9;pointer-events:none}.result{position:absolute;top:533px;left:39px;right:39px;min-height:35px;text-align:center;z-index:6;padding:3px 8px;border:1px solid #fff8da;background:var(--result-panel,linear-gradient(#fff9e6ed,#f4e2b9ed));border-radius:15px;box-shadow:0 2px #c6ac7c55}.result b{display:block;font-size:10px;font-weight:650;line-height:14px}.result span{display:block;font-size:13px;font-weight:850;line-height:16px;color:var(--reward,#ac741a)}#selection{position:absolute;top:579px;left:13px;right:13px;text-align:center;z-index:6}#selection>p{font-size:11px;font-weight:800;margin:0 0 6px;color:var(--ink,#745330);text-shadow:0 1px #fff8}#pets{display:flex;gap:5px;direction:ltr}.pet{width:20%;height:108px;position:relative;border:2px solid var(--rim,#fff7db);border-radius:18px;background:linear-gradient(130deg,var(--panel-top,#fffbea),var(--panel-bottom,#f4e4bd));padding:3px 0;box-shadow:inset 0 -3px 2px #d4bb8b55,0 3px 0 #c6ad8155,0 4px 8px #6b582b22}.pet[aria-pressed=true]{border-color:var(--selection,#31bbaa);background:var(--selected-panel,linear-gradient(#fffbed,#f0f9de));box-shadow:0 0 0 2px #fffce9,0 0 11px #42b8a879,inset 0 -3px #c8e4c666}.pet:disabled{opacity:1}.pet img{height:43px;width:55px;object-fit:cover;object-position:center 20%;border-radius:12px}.pet span,.pet b,.pet small{display:block}.pet span{font-size:10px;line-height:16px;font-weight:800;white-space:nowrap}.pet b{font-size:19px;line-height:23px;color:var(--reward,#e68a34);direction:ltr;unicode-bidi:isolate}.pet small{font-size:12px;line-height:16px;color:var(--muted,#715b40);direction:ltr;unicode-bidi:isolate}footer{position:absolute;top:720px;left:14px;right:14px;text-align:center;z-index:7}.actions{display:flex;gap:8px}.actions button{flex:1;min-width:0;height:58px;border:3px solid var(--rim,#fff9da);border-radius:20px;padding:6px 3px;background:var(--button-one,linear-gradient(140deg,#fff6ae 2%,#f8d163 48%,#e5a934));box-shadow:inset 0 3px 2px #ffffe4,inset 0 -4px 2px #c18a3b55,0 4px 0 #c9a974,0 6px 10px #70542a25;color:var(--button-ink-one,#68451f);font-weight:900}.actions button:nth-child(2){background:var(--button-two,linear-gradient(140deg,#d5fff0,#7be1c9 48%,#43bda8));box-shadow:inset 0 3px 2px #edfff8,inset 0 -4px 2px #3d9d9155,0 4px 0 #a1b999,0 6px 10px #70542a25;color:var(--button-ink-two,#246f61)}.actions button:nth-child(3){background:var(--button-three,linear-gradient(140deg,#f7e4ff,#cd9bf3 48%,#a874dd));box-shadow:inset 0 3px 2px #f9eaff,inset 0 -4px 2px #8750bb55,0 4px 0 #ada1af,0 6px 10px #70542a25;color:var(--button-ink-three,#63417e)}.actions button:disabled{filter:saturate(.55);opacity:.8}.actions span{display:block;font-size:13px;line-height:18px}.actions b{display:block;font-size:16px;line-height:21px}.actions button:not(:disabled):active{transform:translateY(2px)}footer>small{display:block;font-size:7px;line-height:10px;margin-top:9px;color:#746b4e;text-shadow:0 1px #fffb}#retry{position:absolute;bottom:82px;right:0;z-index:8;border:2px solid #fff4d1;border-radius:10px;background:#fbebbc;padding:4px 10px;font-size:11px}dialog{width:min(92vw,420px);max-height:80vh;border:3px solid var(--rim,#fff7da);border-radius:24px;background:linear-gradient(var(--panel-top,#fff9e6),var(--panel-bottom,#f1e4c3));color:var(--ink,#67482b);padding:22px;box-shadow:inset 0 3px #fff,0 16px 60px #473a3a66}dialog::backdrop{background:#243c4266;backdrop-filter:blur(4px)}#close{float:right;border:0;background:none;font-size:26px}#dialogBody{white-space:pre-line;line-height:1.7;font-size:13px}.record{padding:9px 0;border-bottom:1px solid #d6c59e;display:flex;align-items:center;gap:8px}.record img{width:40px;height:40px;object-fit:cover;object-position:center 20%;border-radius:50%;background:#fffae6}.record div{flex:1}.record small{display:block;font-size:10px}button:focus-visible,a:focus-visible{outline:3px solid #358e86;outline-offset:2px}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.history-item .latest{top:auto;bottom:-3px;left:2px;font-size:6px;line-height:8px}.history-item em{top:-1px;bottom:auto}
.celebrating .winner .runner{animation:petCelebrate .6s ease-in-out 3}@keyframes petCelebrate{0%,100%{transform:translate(var(--foot-x,0px),var(--foot-y,9px)) rotate(0)}40%{transform:translate(var(--foot-x,0px),calc(var(--foot-y,9px) - 11px)) rotate(-4deg)}65%{transform:translate(var(--foot-x,0px),calc(var(--foot-y,9px) - 6px)) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.celebrating .winner .runner{animation:none}}

.lane.crossed .place{display:block}

.pet span{white-space:normal;line-height:12px;min-height:24px;display:flex;align-items:center;justify-content:center;padding:0 2px}.pet img{height:37px}.pet b{line-height:21px}.pet small{line-height:14px}
