/* Hiko Games · neutral anthracite, off-white and the account accent color. */
.hb{--hb-accent:var(--accent,#a8a8ae);--hb-accent-light:color-mix(in srgb,var(--hb-accent) 66%,white);--hb-accent-dark:color-mix(in srgb,var(--hb-accent) 70%,#17181d);--hb-ink:#1b1b20;--hb-surface:#292a30;--hb-line:color-mix(in srgb,var(--hb-accent) 32%,#33343b);--hb-muted:#bcb7b1;max-width:1150px;margin:0 auto 28px;color:#f6f1e7}
.hb *{box-sizing:border-box}
.hb button{font:inherit;transition:transform .14s ease,filter .14s ease,border-color .14s ease}
.hb button:hover:not(:disabled){filter:brightness(1.09)}
.hb button:active:not(:disabled){transform:translateY(1px)}
.hb button:focus-visible{outline:3px solid var(--hb-accent-light);outline-offset:3px}
/* Compact header, inspired by the original HU Blocks game. Keep the board visible immediately. */
.hb-classic-heading{padding:2px 0 20px}
.hb-classic-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px}
.hb-link{background:#27272c!important;color:#f2eee8!important;border:1px solid color-mix(in srgb,var(--hb-accent) 48%,#32333a)!important;border-radius:999px!important;padding:10px 18px!important;font-weight:550!important;font-size:14px!important}
.hb-category{color:var(--hb-accent-light);font-size:14px;letter-spacing:.03em}
.hb-classic-title{text-align:center;padding:9px 0 0}
.hb-classic-title h1{margin:4px 0 9px;font-family:inherit;font-size:clamp(29px,4vw,49px);font-weight:760;letter-spacing:-.025em;line-height:1.16;color:#f6f1e7}
.hb-classic-title p{margin:0;color:#c4beb4;font-size:clamp(12px,1.3vw,15px);line-height:1.5}
.hb-content{display:grid;grid-template-columns:minmax(330px,1fr) minmax(235px,300px);gap:18px;align-items:start}
.hb-game-card{background:linear-gradient(160deg,#2b2b31,#222329);border:1px solid var(--hb-line);border-radius:23px;padding:23px 19px;min-width:0;box-shadow:0 16px 40px #0003;display:flex;flex-direction:column;align-items:center}
.hb-board-frame{position:relative;width:max-content;max-width:100%;padding:10px;border-radius:15px;border:1px solid color-mix(in srgb,var(--hb-accent) 45%,transparent);background:#17171b;box-shadow:0 0 0 5px color-mix(in srgb,var(--hb-accent) 6%,transparent),0 15px 35px #0007}
.hb-board{--hb-cell:clamp(16px,2.65vh,27px);display:grid;grid-template-columns:repeat(10,var(--hb-cell));grid-template-rows:repeat(20,var(--hb-cell));gap:2px;background:#111115;border-radius:8px;overflow:hidden}
.hb-cell{display:block;background:linear-gradient(150deg,#26262b,#202126);border:1px solid #ffffff08;border-radius:3px}
.hb-cell-locked,.hb-cell-active{background:linear-gradient(135deg,var(--hb-accent-light) 0%,var(--hb-accent) 46%,var(--hb-accent-dark) 100%);border:1px solid color-mix(in srgb,var(--hb-accent-light) 60%,transparent);border-radius:4px;box-shadow:inset 1px 1px 1px #ffffff82,inset -2px -3px 3px #0007,0 0 9px color-mix(in srgb,var(--hb-accent) 38%,transparent)}
.hb-cell-locked{filter:none}
.hb-cell-ghost{background:color-mix(in srgb,var(--hb-accent) 20%,transparent);border:1px solid color-mix(in srgb,var(--hb-accent-light) 65%,transparent);box-shadow:inset 0 0 4px color-mix(in srgb,var(--hb-accent) 22%,transparent)}
.hb-overlay{position:absolute;inset:10px;border-radius:8px;z-index:3;display:grid;place-items:center;background:linear-gradient(145deg,#15151bfa,#222027ed);padding:15px;text-align:center}
.hb-overlay[hidden]{display:none}
.hb-overlay-card{max-width:250px}
.hb-seal{font-size:46px;line-height:1;color:var(--hb-accent);text-shadow:0 0 29px color-mix(in srgb,var(--hb-accent) 48%,transparent);display:block;margin-bottom:13px}
.hb-overlay h2{font:500 29px/1.12 Georgia,serif;margin:0 0 12px;color:#f4e8d3}
.hb-overlay p{font-size:13px;color:#bfb8ab;line-height:1.6;margin:0 0 22px}
.hb-button-primary{border:1px solid var(--hb-accent-light)!important;border-radius:12px!important;color:#17181b!important;background:linear-gradient(120deg,var(--hb-accent),var(--hb-accent-light) 52%,var(--hb-accent))!important;box-shadow:0 5px 18px color-mix(in srgb,var(--hb-accent) 24%,transparent);padding:11px 17px!important;font-size:13px!important;font-weight:750!important}
.hb-button-secondary{border:1px solid var(--hb-line)!important;border-radius:12px!important;color:#f0efec!important;background:#35343a!important;padding:11px 17px!important;font-size:13px!important;font-weight:650!important}
.hb button:disabled{opacity:.43;cursor:not-allowed}
.hb-touch{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:min(100%,380px);margin:16px auto 0;touch-action:manipulation}
.hb-touch button{min-width:0;min-height:48px;border-radius:12px;border:1px solid var(--hb-line)!important;background:#38353a!important;color:var(--hb-accent-light)!important;font-size:24px!important;font-weight:500!important;padding:7px 3px!important}
.hb-touch button:last-child{background:var(--hb-accent)!important;color:#17181b!important}
.hb-keys{text-align:center;color:#b1a89a;font-size:11px;margin:12px 0 2px;line-height:1.7}
.hb-side{display:grid;gap:12px}
.hb-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.hb-stat{padding:13px 9px;background:linear-gradient(150deg,#343138,#292a30);border:1px solid var(--hb-line);border-radius:15px;text-align:center;min-width:0}
.hb-stat span{display:block;text-transform:uppercase;font-size:9px;letter-spacing:.12em;color:#c4bcb0;margin:0 0 7px}
.hb-stat strong{font:500 clamp(18px,2.4vw,27px) Georgia,serif;color:var(--hb-accent-light);font-variant-numeric:tabular-nums}
.hb-panel{border:1px solid var(--hb-line);background:#2b2b31;border-radius:17px;padding:18px}
.hb-panel-heading{display:flex;align-items:center;justify-content:space-between;color:#f3e7d2;font-size:13px;font-weight:650;letter-spacing:.02em}
.hb-panel-heading span:last-child{color:var(--hb-accent);font-size:17px}
.hb-next{display:grid;grid-template-columns:repeat(4,23px);grid-template-rows:repeat(4,23px);gap:3px;width:max-content;margin:19px auto 3px}
.hb-next-cell{border:1px solid #ffffff0c;border-radius:4px;background:#212126}
.hb-next-cell-on{background:linear-gradient(130deg,var(--hb-accent-light),var(--hb-accent-dark));box-shadow:inset 1px 1px 2px #ffffff80,0 0 8px color-mix(in srgb,var(--hb-accent) 38%,transparent)}
.hb-best{padding:0;margin:12px 0 10px;list-style:none}
.hb-best li{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;padding:9px 2px}
.hb-best li:last-child{border-bottom:0}
.hb-best li span{font:500 12px Georgia,serif;color:var(--hb-accent-light)}
.hb-best li strong{font-weight:700;color:#f2e5d1;font-variant-numeric:tabular-nums}
.hb-detail{font-size:11px;color:#aba397;line-height:1.6;margin:11px 0 0}
.hb-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@media(max-width:900px){.hb-content{grid-template-columns:1fr}.hb-side{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-stat-row{grid-column:1/-1}.hb-buttons{grid-column:1/-1}}
@media(max-width:580px){.hb-content{gap:12px}.hb-game-card{padding:15px 10px}.hb-board{--hb-cell:clamp(15px,6.2vw,23px)}.hb-keys{display:none}.hb-touch{width:100%}.hb-side{grid-template-columns:1fr}.hb-stat-row{grid-column:auto}.hb-buttons{grid-column:auto}.hb-panel{padding:15px}.hb-next{margin-top:12px}.hb-detail{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hb button{transition:none}}

@media(max-width:580px){.hb-classic-heading{padding-bottom:13px}.hb-classic-title{padding-top:8px}.hb-classic-title h1{font-size:32px}.hb-classic-title p{font-size:12px}.hb-link{padding:8px 12px!important}.hb-category{font-size:12px}}

/* Align the already-approved Hiko Blocks gameplay with the other Hiko Games cards. */
.hb{max-width:1120px;color:#f3f1ec}
.hb-classic-heading{padding-bottom:17px}
.hb-classic-title h1{font-size:clamp(32px,4.7vw,52px);font-weight:760;letter-spacing:-.025em}
.hb-classic-title p{color:#bbb9b7;font-size:14px}
.hb-content{grid-template-columns:minmax(0,1fr) minmax(220px,270px);gap:16px}
.hb-game-card{border-radius:20px;padding:20px 15px;background:linear-gradient(155deg,#292a30,#222329)}
.hb-board-frame{border:1px solid var(--hb-line);background:#17181e;box-shadow:0 15px 35px #0005}
.hb-panel{background:#292a30;border:1px solid var(--hb-line);border-radius:15px;padding:15px}
.hb-stat{background:#292a30;border-radius:14px;padding:13px 10px}
.hb-stat strong{font:650 clamp(18px,2.2vw,25px)/1.2 Inter,system-ui,-apple-system,sans-serif}
.hb-overlay{background:linear-gradient(145deg,#17181ef5,#25262df0)}
.hb-overlay h2{font:760 clamp(22px,2.4vw,28px)/1.17 Inter,system-ui,-apple-system,sans-serif;color:#f3f1ec}
.hb-seal{font:700 30px/1 Inter,system-ui,-apple-system,sans-serif;margin-bottom:11px;text-shadow:0 0 12px color-mix(in srgb,var(--hb-accent) 37%,transparent)}
.hb-overlay p{color:#bdb9b5;font-size:13px}
.hb-best li span{font:650 11px Inter,system-ui,-apple-system,sans-serif;letter-spacing:.05em;color:var(--hb-accent-light)}
.hb-panel-heading{color:#f3f1ec}
.hb-touch button{border-radius:12px!important;background:#34353c!important}
.hb-touch button:last-child{background:var(--hb-accent)!important}
@media(max-width:900px){.hb-content{grid-template-columns:1fr}.hb-panel{padding:13px}}
@media(max-width:650px){.hb-classic-title h1{font-size:31px}.hb-classic-title p{font-size:12px}.hb-game-card{padding:13px 9px}}


/* On-board mobile gestures complement the existing touch controls. */
.hb-board{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.hb-touch-hint{display:none;color:#bdb9b4;text-align:center;font-size:12px;line-height:1.5;margin:7px 12px 3px}
@media(pointer:coarse){.hb-touch-hint{display:block}}

/* Identical landed and falling cells; motion is communicated by position, not dulling. */
.hb-board{position:relative}
.hb-board-frame{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hb-board .hb-cell{touch-action:none}
.hb-line-effects{position:absolute;inset:0;pointer-events:none;z-index:4}
.hb-line-flash{position:absolute;border:1px solid var(--hb-accent-light);border-radius:5px;
 background:linear-gradient(90deg,transparent,var(--hb-accent-light),#fff, var(--hb-accent-light),transparent);
 box-shadow:0 0 12px var(--hb-accent),0 0 23px color-mix(in srgb,var(--hb-accent) 45%,transparent);
 transform-origin:center;animation:hb-clear-line .39s ease-out both}
@keyframes hb-clear-line{0%{opacity:.15;transform:scaleY(1)}25%{opacity:.94;transform:scaleY(1.65)}
 80%{opacity:.72;transform:scaleY(.7)}100%{opacity:0;transform:scaleY(.15)}}
@media(prefers-reduced-motion:reduce){.hb-line-flash{animation:none;opacity:.35}}
