/* Holly's game: House of Holly look, with a little Christmas. Everything is inside .hhg so the shop's theme doesn't change it. */
.hhg{--bg:#faf8f3;--card:#fff;--ink:#3e4c6b;--soft:#56617c;--muted:#8a8f9b;--line:#e7e1d5;--line2:#d4ccbd;--accent:#9e9583;--red:#8a2432;--pine:#2f5d50;--gold:#c9a36b;--display:Cardo,Georgia,"Times New Roman",serif;--label:Cinzel,Georgia,"Times New Roman",serif;--ease:cubic-bezier(.22,.61,.36,1);
	position:relative;box-sizing:border-box;max-width:780px;margin:8px auto 48px;padding:40px 40px 34px;background:var(--bg);border:1px solid var(--line);color:var(--ink);font:400 16px/1.6 var(--display);text-align:center;overflow:hidden}
.hhg *,.hhg *::before,.hhg *::after{box-sizing:border-box}
.hhg [hidden]{display:none!important}
.hhg p{margin:0}
.hhg h2,.hhg h3{font-family:var(--display);font-weight:400;color:var(--ink);text-transform:none;letter-spacing:0;margin:0;padding:0;border:0}
.hhg em{font-style:italic}
.hhg button{font-family:inherit;text-transform:none;letter-spacing:0;box-shadow:none;text-shadow:none;margin:0;min-height:0;line-height:1.2}
.hhg input{font-family:inherit;box-shadow:none;margin:0}

/* Lights along the top */
.hhg-garland{position:absolute;left:0;right:0;top:0;height:18px;pointer-events:none;
	background:
		radial-gradient(circle at 50% 70%,#c6413f 0 2.6px,transparent 3.2px) 0 0/72px 18px repeat-x,
		radial-gradient(circle at 50% 70%,#d9ad5b 0 2.6px,transparent 3.2px) 24px 0/72px 18px repeat-x,
		radial-gradient(circle at 50% 70%,#3f7a63 0 2.6px,transparent 3.2px) 48px 0/72px 18px repeat-x}
@media (prefers-reduced-motion:no-preference){.hhg-garland{animation:hhg-twinkle 2.8s steps(2,end) infinite}}
@keyframes hhg-twinkle{50%{filter:brightness(1.25) saturate(1.2)}}

/* Heading */
.hhg-k{font-family:var(--label);font-size:11px;letter-spacing:.26em;text-transform:uppercase;color:var(--red);padding-left:.26em}
.hhg-k span{color:var(--gold);padding:0 .4em}
.hhg-title{font-size:clamp(30px,5vw,42px)!important;line-height:1.1!important;margin:10px 0 0!important}
.hhg-title em{color:var(--red)}
.hhg-intro{max-width:470px;margin:10px auto 0!important;font-size:16px;line-height:1.6;color:var(--soft)}
.hhg-note{max-width:470px;margin:14px auto 0!important;padding:10px 14px;border:1px dashed var(--line2);font-size:14.5px;color:var(--ink)}
.hhg-goal{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px auto 0}
.hhg-goal p{font-size:15.5px;color:var(--soft)}
.hhg-goal b{font-family:var(--label);font-weight:500;color:var(--ink);font-variant-numeric:lining-nums}
.hhg-goal em{color:var(--red)}
.hhg-bar{display:block;width:min(280px,70%);height:4px;background:var(--line);border-radius:4px;overflow:hidden}
.hhg-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--red),var(--gold));border-radius:4px;transition:width .25s linear}
.hhg-goal.got p::before{content:"\2726  ";color:var(--gold)}
.hhg-goal.got .hhg-bar{display:none}

/* The game */
.hhg-stage{position:relative;width:100%;height:clamp(200px,42vw,320px);margin:22px 0 0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;outline:none;border:1px solid var(--line);background:#f3f5f6;overflow:hidden}
/* The same view of the road on every screen (a phone sees as far ahead as a computer): 400 by 210, scaled. */
@supports (aspect-ratio:1/1){.hhg-stage{height:auto;aspect-ratio:40/21;max-height:420px}}
.hhg-stage:focus-visible{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--ink)}
.hhg-stage canvas{display:block;width:100%;height:100%}
.hhg-start{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0 16px 40px;pointer-events:none;transition:opacity .35s var(--ease);background:radial-gradient(ellipse 46% 42% at 50% 44%,rgba(250,248,243,.92),rgba(250,248,243,.6) 55%,rgba(250,248,243,0) 100%)}
.hhg-start strong{font-family:var(--display);font-weight:400;font-style:italic;font-size:clamp(24px,4vw,30px);line-height:1.1;color:var(--ink)}
.hhg-start>span:last-child{font-family:var(--label);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--soft);background:rgba(250,248,243,.82);padding:4px 10px;border-radius:999px}
.hhg-play{display:flex;align-items:center;justify-content:center;width:54px;height:54px;margin-bottom:4px;border-radius:50%;background:var(--red);box-shadow:0 6px 18px -6px rgba(138,36,50,.55)}
.hhg-play svg{width:22px;height:22px;fill:#fff;margin-left:3px}
@media (prefers-reduced-motion:no-preference){.hhg-play{animation:hhg-pulse 2.2s var(--ease) infinite}}
@keyframes hhg-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
.hhg.run .hhg-start,.hhg.over .hhg-start{opacity:0}

.hhg-hud{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 0;font-family:var(--label);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.hhg-hud b{font-weight:600;color:var(--ink);letter-spacing:.06em;font-size:13px}
.hhg .hhg-snd{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--line2);border-radius:999px;background:transparent;color:var(--soft);font:500 10px/1 var(--label);letter-spacing:.18em;text-transform:uppercase;cursor:pointer}
.hhg-snd svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.hhg-snd .w{display:none}.hhg-snd.on .w{display:inline}.hhg-snd.on .x{display:none}
.hhg .hhg-snd.on{color:var(--ink);border-color:var(--ink)}
.hhg .hhg-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px;max-width:620px;margin:16px auto 0;padding:0;list-style:none;font-size:13.5px;line-height:1.45;color:var(--soft);text-align:left}
.hhg .hhg-legend li{display:flex;align-items:flex-start;gap:9px;margin:0;padding:0}
.hhg .hhg-legend li::before{content:none}
.hhg-legend b{font-weight:700;color:var(--ink)}
.lg{flex:none;display:inline-block;width:11px;height:11px;margin-top:4px;border-radius:50%}
.lg-g{background:#c98a4b}.lg-s{background:#e2b04f;box-shadow:0 0 0 3px rgba(226,176,79,.25)}
.lg-b{background:#e2b04f;border-radius:50% 50% 30% 30%}
.lg-r{background:#d9583b;box-shadow:inset 0 0 0 2.5px #7a5638}
.lg-k{background:transparent;border:1.5px solid #3e4c6b}
.lg-c{background:repeating-linear-gradient(135deg,#d23b3b 0 3px,#fff 3px 6px);border:1px solid #e7c9c9}
.hhg-staff{margin:12px 0 0!important;font-size:12.5px;color:var(--muted)}
.hhg-staff button{background:none;border:0;padding:0 6px;color:var(--ink);text-decoration:underline;cursor:pointer;font-size:12.5px}

/* Buttons and fields */
.hhg .hhg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;border:1px solid var(--ink);border-radius:0;background:transparent;color:var(--ink);font:500 11px/1 var(--label);letter-spacing:.2em;text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .25s var(--ease),color .25s var(--ease)}
.hhg .hhg-btn:hover,.hhg .hhg-btn:focus-visible{background:var(--ink);color:#fff;outline:none}
.hhg .hhg-btn-p{background:var(--ink);color:#fff}
.hhg .hhg-btn-p:hover,.hhg .hhg-btn-p:focus-visible{background:#2d3a57;border-color:#2d3a57}
.hhg .hhg-btn-s{min-height:34px;padding:0 14px;font-size:10px}
.hhg .hhg-btn:disabled{opacity:.6;cursor:default}
.hhg-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.hhg-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.hhg-row input{flex:1 1 200px;min-width:0;height:46px;padding:0 14px;border:1px solid var(--line2);border-radius:0;background:#fff;color:var(--ink);font:400 16px/1.2 var(--display);-webkit-appearance:none;appearance:none}
.hhg-row input:focus{outline:none;border-color:var(--ink)}
.hhg label{display:block;margin:0 0 8px;font-family:var(--label);font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);text-align:left}
.hhg .hhg-check{display:flex;align-items:flex-start;gap:9px;margin:12px 0 0;font-family:var(--display);font-size:14px;letter-spacing:0;text-transform:none;color:var(--soft);cursor:pointer}
.hhg-check input{width:17px;height:17px;margin:2px 0 0;accent-color:var(--ink);flex:none}
.hhg-err{margin:10px 0 0!important;font-size:14px;color:var(--red);text-align:left}
.hhg-msg{margin:10px 0 0!important;font-size:14px;color:var(--soft)}
.hhg-msg:empty{display:none}

/* After a run */
.hhg-after{margin:18px 0 0;padding:18px 18px 16px;border:1px solid var(--line);background:#fff;animation:hhg-rise .5s var(--ease) both}
.hhg-after-t{font-size:17px;line-height:1.55;color:var(--ink)}
.hhg-after-t:empty{display:none}
.hhg-name{margin:14px 0 0;text-align:left}
.hhg-acts{margin:16px 0 0}

/* The code */
.hhg-reward{position:relative;margin:18px 0 0;padding:26px 22px 20px;border:1px dashed var(--red);background:#fff;animation:hhg-rise .7s var(--ease) both}
.hhg-reward::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--red)}
.hhg-reward-k{display:block;font-family:var(--label);font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;color:var(--red);padding-left:.26em}
.hhg-reward-t{display:block;font-family:var(--display);font-weight:400;font-style:italic;font-size:38px;line-height:1.1;margin:6px 0 6px;color:var(--ink)}
.hhg-reward-p{max-width:420px;margin:0 auto!important;font-size:15.5px;line-height:1.55;color:var(--soft)}
.hhg-claim{max-width:460px;margin:16px auto 0;text-align:left}
.hhg-codes{display:grid;gap:10px;max-width:480px;margin:16px auto 0}
.hhg-code-row{display:flex;align-items:center;justify-content:center;gap:10px 14px;flex-wrap:wrap;padding:14px 14px;border:1px dashed var(--line2);background:var(--bg)}
.hhg-code-k{flex:1 1 100%;font-family:var(--label);font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--red)}
.hhg-code-row strong{font-family:var(--display);font-weight:400;font-size:26px;letter-spacing:.14em;color:var(--ink)}
.hhg-code-p{max-width:460px;margin:12px auto 0!important;font-size:14.5px;line-height:1.55;color:var(--soft)}
.hhg-code-p:empty{display:none}
.hhg-next{max-width:440px;margin:16px auto 0!important;padding:10px 14px;border-radius:999px;background:#f6efe2;font-size:14.5px;color:var(--ink)}
.hhg .hhg-shop{margin:16px 0 0}
.hhg-fine{margin:16px auto 0!important;max-width:460px;font-size:12.5px;line-height:1.55;color:var(--muted)}

/* Leaderboard */
.hhg-board{margin:30px 0 0;text-align:left}
.hhg-board-h{display:flex;align-items:center;gap:14px;margin:0 0 12px}
.hhg-board-h .hhg-k{color:var(--muted);padding:0}
.hhg-board-h h3{font-size:24px;line-height:1.2;margin:2px 0 0}
.hhg-board-h h3 em{color:var(--red)}
.hhg-board-ic{flex:none;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f4ead6}
.hhg-board-ic svg{width:20px;height:20px;fill:var(--gold)}
.hhg-board ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.hhg-goal-prize{margin:2px 0 0!important;font-size:14.5px;font-style:italic;color:var(--red)}
.hhg-board-prize{display:flex;align-items:flex-start;gap:10px;margin:14px 0 4px!important;padding:12px 14px;border:1px solid #eadfca;background:#fbf7ee;font-size:15px;line-height:1.5;color:var(--ink)}
.hhg-board-prize svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linejoin:round}
.hhg-board li.win .bs::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-1px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a36b' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5h17v3.5h-17zM5 13h14v7.5H5zM12 9.5v11M12 9.5c-1.5-3.8-6.4-4.6-6.4-1.9 0 1.6 3 1.9 6.4 1.9zM12 9.5c1.5-3.8 6.4-4.6 6.4-1.9 0 1.6-3 1.9-6.4 1.9z'/%3E%3C/svg%3E") no-repeat center/contain}
.hhg-bm-note{margin:8px 0 0!important;font-size:13px;line-height:1.5;color:var(--muted)}
.hhg-board li{display:flex;align-items:center;gap:12px;margin:0;padding:8px 4px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.35}
.hhg-board li::before{content:none}
.hhg-board .bn{flex:none;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-family:var(--label);font-size:12px;color:var(--muted)}
.hhg-board .bn.m1,.hhg-board .bn.m2,.hhg-board .bn.m3{color:#fff;font-weight:600;box-shadow:inset 0 -2px 0 rgba(0,0,0,.12)}
.hhg-board .bn.m1{background:#d4ab4f}.hhg-board .bn.m2{background:#a9b0b8}.hhg-board .bn.m3{background:#bf8657}
.hhg-board .bw{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hhg-board .bs{font-family:var(--label);font-weight:500;font-variant-numeric:lining-nums tabular-nums}
.hhg-board li.me{background:#fbf3e6}
.hhg-board li.me .bw::after{content:"you";margin-left:8px;font-family:var(--label);font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--red)}
.hhg-board li.open{color:var(--muted);font-style:italic}
.hhg-board li.open .bn{opacity:.5}
.hhg-board-me{margin:10px 0 0!important;font-size:14px;color:var(--soft);text-align:center}

.hhg-rest{padding:56px 32px}

@keyframes hhg-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hhg-after,.hhg-reward{animation:none}}
@media (hover:none){.hhg-keys{display:none}}
@media (max-width:600px){
	.hhg .hhg-legend{grid-template-columns:1fr;max-width:340px}
	.hhg-start{padding:0 12px 46px;gap:3px}
	.hhg-play{width:40px;height:40px;margin-bottom:2px}
	.hhg-play svg{width:18px;height:18px}
	.hhg-start strong{font-size:22px}
	.hhg-start>span:last-child{font-size:9px;letter-spacing:.14em;line-height:1.5}
	.hhg{margin:0 -4px 36px;padding:32px 16px 26px;border-left:0;border-right:0}
	.hhg-stage{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;border-left:0;border-right:0}
	.hhg-intro{font-size:15px}
	.hhg-hud{font-size:9.5px;letter-spacing:.16em}
	.hhg .hhg-snd span{display:none}
	.hhg .hhg-snd{padding:0 9px}
	.hhg-reward{padding:24px 16px 18px}
	.hhg-reward-t{font-size:34px}
	.hhg-code-row strong{font-size:24px}
	.hhg-row .hhg-btn{flex:1 1 auto}
}
