@font-face{font-family:HikesRubik;src:url('./hikes-game-rubik.ttf') format('truetype');font-style:normal;font-weight:300 900;font-display:swap}
:root{color-scheme:light;--hg-paper:#f1f1e9;--hg-ink:#333}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--hg-ink)}body{font-family:HikesRubik,Rubik,Arial,sans-serif;color:var(--hg-ink)}
.hg-shell{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;overflow:hidden;outline:0}
.hg-fit{position:relative;flex:none}.hg-board{width:375px;height:694px;position:absolute;left:0;top:0;transform:scale(var(--hg-scale,1));transform-origin:top left;background:var(--hg-paper);border-radius:25px;outline:0;overflow:hidden;touch-action:none;user-select:none;isolation:isolate}
.hg-board::after{content:"";position:absolute;inset:0;border:2px dotted var(--hg-ink);border-radius:25px;pointer-events:none;z-index:8}
.hg-scene{position:absolute;inset:0}.hg-shell [hidden]{display:none!important}.hg-shell button,.hg-shell a{-webkit-tap-highlight-color:transparent}.hg-shell button{font:inherit;cursor:pointer;color:inherit}.hg-shell button:focus-visible,.hg-shell a:focus-visible{outline:2px solid #618eb7;outline-offset:5px}.hg-shell button:disabled{cursor:wait;opacity:.65}
.hg-title{position:absolute;max-width:none;pointer-events:none;left:50%;transform:translateX(-50%);top:34px}.hg-shade{position:absolute;left:0;pointer-events:none;max-width:none}.hg-shade-top{top:0}.hg-shade-bottom{bottom:0;transform:rotate(180deg)}
.hg-large-shoe{position:absolute;width:79px;height:43px}.hg-large-shoe img{display:block;max-width:none;width:auto;height:auto;pointer-events:none}
.hg-intro-top{left:208px;top:191px;transform:rotate(36.38deg) scale(-2.4,2.4)}.hg-intro-bottom{left:87px;top:295px;transform:rotate(-28.18deg) scale(2.48)}
.hg-action{position:absolute;left:34px;top:445px;width:307px;height:112px;padding:0;border:0;border-radius:56px;background:var(--hg-ink);isolation:isolate}
.hg-action img{display:block;max-width:none;pointer-events:none;position:absolute;left:0;top:0}
.hg-action .hg-pressed{left:-5px;opacity:0;transform:rotate(-10.3deg);transform-origin:50% 50%;transition:opacity 70ms}.hg-action:active img:first-child{opacity:0}.hg-action:active .hg-pressed{opacity:1}
.hg-claim-action .hg-pressed{transform:rotate(-5.47deg)}.hg-result [data-action="again"] .hg-pressed{transform:rotate(-7.32deg)}
.hg-description{position:absolute;left:20px;bottom:29px;width:335px;text-align:center;font-size:24px;font-weight:400;line-height:1.16;letter-spacing:-.96px;margin:0;white-space:normal}
.hg-win-shoe{left:148px;top:266px;transform:rotate(-16deg) scale(3.5)}.hg-claim-action{top:416px}.hg-win-description{bottom:28px;line-height:1.17}
.hg-new-game{position:absolute;bottom:8px;left:126px;border:0;background:none;text-decoration:underline;font-size:15px}.hg-result .hg-description{bottom:36px}
.hg-bricks{position:absolute;left:0;top:0;width:375px;height:346px;will-change:transform;clip-path:inset(0)}
.hg-brick{position:absolute;width:58.5px;height:22px;border-radius:6px;transition:opacity 100ms,scale 120ms;box-shadow:inset 0 -1px 2px #0000000d}
.hg-brick-gone{opacity:0;scale:.7;pointer-events:none}.hg-playfield{overflow:hidden;clip-path:inset(0 round 25px)}
.hg-hud{position:absolute;left:0;top:0;width:375px;height:93px;padding:10px 14px 0;display:grid;grid-template-columns:83px 50px 1fr;align-content:start;font-size:24px;z-index:3;pointer-events:none}
.hg-hud-shade{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}
.hg-variant{text-align:right;font-size:24px;white-space:nowrap;align-self:center;letter-spacing:-.7px}
.hg-paddle{position:absolute;left:0;top:638px;width:144px;height:22px;border-radius:56px;background:var(--hg-ink);will-change:transform}
.hg-flying-shoe{position:absolute;left:0;top:0;width:79px;height:43px;transform-origin:center;will-change:transform;z-index:2;pointer-events:none}.hg-flying-shoe img{display:block;width:auto;height:auto;max-width:none}
.hg-pause-button,.hg-help-button{position:absolute;bottom:10px;z-index:4;border:0;background:transparent;font-size:18px;width:30px;height:28px;line-height:28px;padding:0;opacity:.65}.hg-pause-button{right:12px}.hg-help-button{left:12px}
.hg-hit{position:absolute;width:58.5px;height:22px;border-radius:6px;background:#fff9;z-index:2;pointer-events:none;animation:hg-pop 280ms ease-out forwards}@keyframes hg-pop{to{opacity:0;transform:scale(1.4)}}
.hg-curtain{position:absolute;inset:0;background:#0008;z-index:10;display:flex;align-items:center;justify-content:center;touch-action:none}.hg-dialog{width:330px;color:var(--hg-paper);text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px 8px}.hg-dialog h2{font-size:28px;font-weight:400;line-height:1.2;margin:0}.hg-dialog p{font-size:20px;line-height:1.3;margin:0}.hg-onboarding-motion{display:none}.hg-onboarding-shade{display:none}.hg-small-button{padding:10px 16px;border:1.5px dotted currentColor;border-radius:24px;background:transparent;color:inherit;text-decoration:none;font-size:18px;display:inline-block}
.hg-countdown{position:absolute;inset:0;z-index:11;display:grid;place-items:center;background:#f1f1e988;font-size:90px;pointer-events:none}.hg-orientation{position:absolute;inset:0;z-index:15;background:var(--hg-paper);display:grid;place-items:center;text-align:center;font-size:26px}
.hg-prize{position:absolute;left:25px;right:25px;top:412px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center;text-align:center}.hg-prize-label{width:100%;font-size:21px;margin:0}.hg-prize-code{width:100%;font-size:27px;user-select:text;letter-spacing:1px}.hg-prize-note{font-size:17px;margin:0;width:100%}
.hg-underboard{display:flex;align-items:center;gap:12px;justify-content:center;color:var(--hg-paper);font-size:10px;padding-top:10px;max-width:100%;line-height:1.3}.hg-underboard a{font-size:18px;color:inherit;text-decoration:none}.hg-announcement{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media(min-width:768px){html,body{background:var(--hg-paper)}.hg-underboard{color:var(--hg-ink)}.hg-board::after{border-width:1.6px}}
@media(prefers-reduced-motion:reduce){.hg-hit{animation:none;display:none}.hg-action .hg-pressed,.hg-brick{transition:none}}

.hg-underboard button{color:inherit;border:0;background:none;padding:0;font:inherit;text-decoration:underline}.hg-dialog p{white-space:pre-line;max-height:280px;overflow:auto;user-select:text}

/* Figma WIP 1714:7913 / OUTPUT 1714:9951: inline platform onboarding. */
.hg-curtain[data-kind="tutorial"],.hg-curtain[data-kind="ready"]{background:rgba(0,0,0,.32);display:block}
.hg-curtain[data-kind="tutorial"] .hg-dialog,.hg-curtain[data-kind="ready"] .hg-dialog{position:absolute;left:44px;top:319px;width:286px;height:58px;padding:0;gap:0;display:block;color:#fff;pointer-events:none}
.hg-curtain[data-kind="tutorial"] h2,.hg-curtain[data-kind="ready"] h2{position:absolute;left:50%;top:8.5px;transform:translate(-50%,-50%);font-size:24px;line-height:normal;white-space:nowrap;text-box-trim:trim-both;text-box-edge:cap alphabetic}
.hg-curtain[data-kind="tutorial"] [data-dialog-copy],.hg-curtain[data-kind="ready"] [data-dialog-copy],.hg-curtain[data-kind="tutorial"] [data-action="continue"],.hg-curtain[data-kind="ready"] [data-action="continue"]{display:none}
.hg-curtain[data-kind="tutorial"] .hg-onboarding-motion,.hg-curtain[data-kind="ready"] .hg-onboarding-motion{display:block;position:absolute;left:56px;top:42.636px;width:173px;height:14.738px}
.hg-onboarding-arrows{position:absolute;left:0;top:0;max-width:none;pointer-events:none}
.hg-onboarding-platform,.hg-onboarding-trail{position:absolute;left:45px;top:1.364px;width:85px;height:12px;border-radius:21px;background:#fff}
.hg-onboarding-trail{opacity:.51}.hg-trail-left-far{left:38px}.hg-trail-left{left:41px}.hg-trail-right{left:49px}.hg-trail-right-far{left:52px}
.hg-curtain[data-kind="tutorial"] .hg-onboarding-shade,.hg-curtain[data-kind="ready"] .hg-onboarding-shade{display:block;position:absolute;left:0;bottom:0;transform:rotate(180deg);max-width:none;pointer-events:none}
.hg-shell[data-dialog="tutorial"] .hg-paddle,.hg-shell[data-dialog="tutorial"] .hg-flying-shoe,.hg-shell[data-dialog="ready"] .hg-paddle,.hg-shell[data-dialog="ready"] .hg-flying-shoe{z-index:12}
.hg-shell[data-dialog="tutorial"] .hg-pause-button,.hg-shell[data-dialog="tutorial"] .hg-help-button,.hg-shell[data-dialog="ready"] .hg-pause-button,.hg-shell[data-dialog="ready"] .hg-help-button{visibility:hidden}

.hg-game-equipment{pointer-events:none}

/* Owner-requested motion; exact cell geometry from WIP Group 7. */
.hg-intro-cells{position:absolute;inset:0;pointer-events:none}
.hg-intro-cell{position:absolute;border-radius:2px;animation:hg-cell-colours 3s steps(1,end) infinite;animation-play-state:paused}
.hg-shell[data-scene="intro"] .hg-intro-cell{animation-play-state:running}
@keyframes hg-cell-colours{0%,100%{background-color:var(--cell-a)}20%{background-color:var(--cell-b)}40%{background-color:var(--cell-c)}60%{background-color:var(--cell-d)}80%{background-color:var(--cell-e)}}
.hg-intro-top{left:207px;top:347px}.hg-intro-bottom{left:96px;top:427px;transform:rotate(-24.36deg) scale(2.33)}
.hg-scene[data-scene="intro"] .hg-action,.hg-claim-action{top:548px}
.hg-offer-copy{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.hg-win-shoe{left:156.9565px;top:302.42px;transform:rotate(20.51deg) scale(3.6489);transform-origin:center}
.hg-win-description:not([data-error]){display:none}.hg-win-description[data-error]{top:466px;bottom:auto;font-size:17px;line-height:1.2}
.hg-prize{top:466px;gap:8px}.hg-prize .hg-small-button{font-size:15px;padding:8px 10px}.hg-prize-note{font-size:15px;line-height:1.2}.hg-new-game{bottom:5px}
.hg-shell[data-transition="win"] .hg-claim-action,.hg-shell[data-transition="win"] .hg-new-game,.hg-shell[data-transition="win"] .hg-win-description{visibility:hidden}
/* Palette cycling stays active with Reduce Motion; cell geometry stays fixed. */

/* Native WIP loss tear: Vector 1735:2809, unchanged exported path. */
.hg-loss-tear{position:absolute;inset:0;pointer-events:none;max-width:none}
.hg-scene[data-scene="lost"] .hg-action{top:548px}
.hg-loss-copy{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}

/* Viewport-filling mobile stage; native assets retain uniform scale. */
html,body{height:100%;background:var(--hg-paper);overflow:hidden}
.hg-shell{height:100dvh;min-height:100dvh;padding:0}
.hg-board{height:var(--hg-stage-height,694px);border-radius:0}
.hg-board::after{border-radius:0}
.hg-playfield{clip-path:inset(0)}
.hg-intro-art{position:absolute;inset:0;transform:scale(var(--hg-art-scale,1));transform-origin:top center}
.hg-bricks{height:calc(var(--hg-wall-height,274px) * var(--hg-y-scale,1))}
.hg-brick,.hg-hit{height:calc(22px * var(--hg-y-scale,1))}
.hg-paddle{top:calc(638px * var(--hg-y-scale,1));height:calc(22px * var(--hg-y-scale,1))}
.hg-scene[data-scene="intro"] .hg-action,.hg-claim-action,.hg-scene[data-scene="lost"] .hg-action{top:calc(var(--hg-stage-height,694px) - 146px)}
.hg-win-shoe{top:calc(var(--hg-stage-height,694px) * .4667435159 - 21.5px);transform:rotate(20.51deg) scale(calc(3.6489 * var(--hg-art-scale,1)))}
.hg-win-description[data-error]{top:calc(var(--hg-stage-height,694px) - 228px)}
.hg-prize{top:calc(var(--hg-stage-height,694px) * .6714697406)}
.hg-loss-tear{transform:scaleY(var(--hg-y-scale,1));transform-origin:top left}
.hg-curtain[data-kind="tutorial"] .hg-dialog,.hg-curtain[data-kind="ready"] .hg-dialog{top:calc(var(--hg-stage-height,694px) / 2 - 28px)}
.hg-prizes-button{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:4;border:0;background:none;text-decoration:underline;font-size:13px;padding:0}
.hg-shell[data-scene="won"] .hg-prizes-button{display:none}
@media(min-width:768px){.hg-board,.hg-board::after{border-radius:25px}.hg-playfield{clip-path:inset(0 round 25px)}}

/* Owner-requested frame, HUD controls and selection behaviour. */
.hg-board::after{inset:3px;border-width:2px}
.hg-shell,.hg-shell *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hg-shell img{-webkit-user-drag:none}
.hg-prize-code,.hg-dialog[data-codes] p{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;touch-action:auto}
.hg-shell .hg-pause-button,.hg-shell .hg-help-button{width:44px;height:32px;bottom:2px;font-family:HikesRubik,Rubik,Arial,sans-serif;font-size:24px;font-weight:400;line-height:32px;opacity:1}
.hg-help-button{left:6px}.hg-pause-button{right:6px}
.hg-shell .hg-prizes-button{font-family:HikesRubik,Rubik,Arial,sans-serif;font-size:24px;font-weight:400;line-height:32px;height:32px;bottom:2px;padding:0 12px}
.hg-hud{height:calc(var(--hg-ceiling,44px) * var(--hg-y-scale,1))}
.hg-game-equipment{clip-path:inset(calc(var(--hg-ceiling,44px) * var(--hg-y-scale,1)) 0 0)}

@media(min-width:768px){.hg-board::after{border-radius:22px}}

/* Sound uses the HUD ink and stays out of active play controls. */
.hg-sound-button{position:absolute;top:6px;right:6px;width:44px;height:44px;z-index:7;padding:10px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center}
.hg-sound-button svg{display:block;pointer-events:none}.hg-sound-waves{display:none}
.hg-shell[data-audio="on"] .hg-sound-waves{display:inline}.hg-shell[data-audio="on"] .hg-sound-slash{display:none}
.hg-shell[data-scene="game"] .hg-sound-button{display:none}
.hg-shell[data-scene="game"][data-dialog="paused"] .hg-sound-button{display:grid;background:var(--hg-paper);z-index:12}

.hg-offer-copy[data-error],.hg-loss-copy[data-error]{clip-path:none;width:335px;height:auto;left:20px;bottom:4px;overflow:visible;white-space:normal;font-size:16px;line-height:1.2;text-align:center}
