.hh-game-cover {
    --cover: #4f3b21;
    --light: #ffd583;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    color: var(--light);
    background: radial-gradient(circle at 50% 35%, var(--cover), #221c2a 78%);
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    position: relative;
}
.hh-game-cover::before,
.hh-game-cover::after {
    content: "";
    position: absolute;
    width: 56%;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    transform: rotate(45deg);
    border-radius: 22%;
    opacity: .25;
    z-index: -1;
}
.hh-game-cover::after { width: 68%; opacity: .12; }
.hh-game-cover span { font: 700 clamp(40px, 9vw, 84px)/1 system-ui, sans-serif; text-shadow: 0 0 28px var(--light); }
.hh-game-cover--teal { --cover: #15585b; --light: #a7f0d2; }
.hh-game-cover--blue { --cover: #244b7a; --light: #b8dcff; }
.hh-game-cover--red { --cover: #784129; --light: #ffbc87; }
.hh-game-cover--plum { --cover: #634167; --light: #f5b8ed; }
.hh-game-play { display: inline-block; }

.hh-game-page {
    width: min(100% - 32px, 920px);
    margin: 28px auto 52px;
    font: 16px/1.6 system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.hh-back { display: inline-block; margin-block-end: 14px; }
.hh-game-intro { display: grid; grid-template-columns: minmax(126px, 220px) 1fr; align-items: center; gap: 20px; margin-bottom: 24px; }
.hh-game-intro h2 { margin: 0 0 8px; font-size: clamp(23px, 5vw, 40px); line-height: 1.1; }
.hh-game-intro p { margin: 0; }
.hh-game {
    background: #201d28;
    color: #fff6e8;
    border: 1px solid #4e414b;
    border-radius: 18px;
    padding: clamp(14px, 5vw, 30px);
}
.hh-instructions { margin: 0; color: #f1e7e5; }
.hh-status { min-height: 1.6em; margin: 10px 0 16px; color: #ffdb93; font-weight: 650; }
.hh-toolbar { margin-top: 18px; }
.hh-toolbar button {
    min-height: 44px;
    padding: 9px 18px;
    background: #f3c276;
    color: #221a22;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.hh-toolbar button:focus-visible { outline: 3px solid #fff0c9; outline-offset: 3px; }
.hh-demo-frame {
    display: block;
    width: 100%;
    height: clamp(380px, 72vh, 680px);
    border: 0;
    border-radius: 10px;
    margin-top: 16px;
    background: #161520;
}
@media (max-width: 500px) {
    .hh-game-intro { grid-template-columns: 1fr; }
    .hh-game-intro .hh-game-cover { max-height: 160px; aspect-ratio: 2.5; }
}

.hh-demo-cover {
    overflow: hidden;
    border-radius: 11px;
    background: #221c2a;
}
.hh-demo-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.hh-game-intro .hh-demo-cover {
    aspect-ratio: 16 / 9;
}
@media (max-width: 500px) {
    .hh-game-intro .hh-demo-cover { aspect-ratio: 2.3 / 1; }
}
