.hm-shell{--hm-ink:#152e45;--hm-accent:#f2b632;--hm-card-back:#164e73;max-width:920px;margin:0 auto;color:var(--hm-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden}.hm-shell *{box-sizing:border-box}.hm-card{position:relative;max-width:780px;margin:auto;background:#fff;border:1px solid #dae4eb;border-radius:22px;overflow:hidden;box-shadow:0 16px 42px #0b2b4426}.hm-header{min-height:68px;padding:9px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(120deg,#102f4c,#176786);color:#fff}.hm-brand{display:flex;align-items:center;gap:11px;min-width:0}.hm-logo{width:49px;height:49px;flex:0 0 49px;border:3px solid #ffd66b;border-radius:15px;display:grid;place-items:center;font-size:30px;background:#ffffff17;box-shadow:inset 0 0 0 2px #ffffff16}.hm-brand small{display:block;font-size:9px;letter-spacing:1.4px;color:#cceaf6;font-weight:900}.hm-brand h1{font-size:27px;line-height:1.05;margin:3px 0 0;color:#fff}.hm-icons{display:flex;gap:7px}.hm-icons button,.hm-actions button,.hm-modal button{border:1px solid #d4e0e7;background:#fff;color:#17354a;border-radius:12px;min-height:39px;padding:7px 13px;font-weight:800;cursor:pointer;touch-action:manipulation}.hm-icons button{width:42px;padding:0;background:#ffffff14;color:#fff;border-color:#ffffff35;font-size:18px}.hm-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:9px 15px;background:#f8f0df;border-bottom:1px solid #e1d4b9}.hm-controls label{font-size:10px;font-weight:900;letter-spacing:.3px}.hm-controls select{display:block;width:100%;height:35px;margin-top:3px;border:1px solid #cdbf9e;border-radius:9px;background:#fff;padding:0 8px;font-weight:750;color:#273b48}.hm-status{min-height:56px;display:grid;grid-template-columns:repeat(4,1fr);text-align:center;border-bottom:1px solid #dce5e9}.hm-status>div{display:grid;place-content:center;padding:5px;border-right:1px solid #e5ebee}.hm-status>div:last-child{border-right:0}.hm-status small,.hm-players span{font-size:8px;font-weight:900;letter-spacing:.65px;color:#71818c}.hm-status b{font-size:20px;line-height:1.15}.hm-message{min-height:34px;display:grid;place-items:center;text-align:center;padding:5px 12px;font-size:12px;font-weight:800;color:#664c0a;background:#fffaf0;border-bottom:1px solid #eadfc5}.hm-board-wrap{position:relative;padding:12px;background:linear-gradient(145deg,#d8e9f2,#accada)}.hm-board{--cols:6;--rows:4;width:min(100%,610px);margin:auto;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:7px;padding:9px;border:5px solid #123c59;border-radius:17px;background:linear-gradient(145deg,#0f4565,#0b2e48);box-shadow:0 9px 22px #00182e4d}.hm-tile{position:relative;min-width:0;aspect-ratio:.82;border:0;background:transparent;padding:0;perspective:700px;cursor:pointer;touch-action:manipulation}.hm-tile:focus-visible{outline:3px solid #ffe266;outline-offset:2px;border-radius:11px}.hm-tile:disabled{cursor:default}.hm-tile-inner{position:absolute;inset:0;border-radius:11px;transform-style:preserve-3d;transition:transform .38s cubic-bezier(.2,.72,.25,1)}.hm-tile.open .hm-tile-inner,.hm-tile.matched .hm-tile-inner{transform:rotateY(180deg)}.hm-tile-front,.hm-tile-back{position:absolute;inset:0;display:grid;place-items:center;border-radius:11px;backface-visibility:hidden;-webkit-backface-visibility:hidden}.hm-tile-front{border:2px solid #ffffff72;background:var(--hm-card-back);background:linear-gradient(145deg,color-mix(in srgb,var(--hm-card-back),#fff 8%),var(--hm-card-back));box-shadow:inset 0 0 0 3px #ffffff14,0 3px 7px #00192f62;color:#fff}.hm-tile-front:before{content:"?";font-size:clamp(17px,4.4vw,30px);font-weight:950;color:#ffffffd9;text-shadow:0 2px 4px #0005}.hm-tile-front:after{content:"";position:absolute;inset:13%;border:1px solid #ffffff38;border-radius:8px}.hm-tile-back{transform:rotateY(180deg);border:2px solid #d9e0df;background:linear-gradient(145deg,#fff,#f1eee5);box-shadow:inset 0 -5px 10px #b9b29a32,0 3px 7px #00182e38;font-size:clamp(21px,6vw,42px);line-height:1}.hm-tile.matched .hm-tile-back{border-color:var(--hm-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--hm-accent),transparent 57%),0 3px 8px #0003;animation:hmMatch .5s ease}.hm-tile.wrong .hm-tile-back{animation:hmWrong .38s ease}.hm-preview{position:absolute;z-index:8;left:50%;top:20px;transform:translateX(-50%);padding:9px 18px;border-radius:22px;background:#fff3bd;color:#604600;font-weight:900;box-shadow:0 7px 22px #0004;white-space:nowrap}.hm-players{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px 12px;background:#f7f9fa;border-top:1px solid #dce5e9}.hm-players>div{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border:2px solid transparent;border-radius:11px;background:#e8eef2}.hm-players>div.active{border-color:var(--hm-accent);background:#fff6d9}.hm-players b{font-size:22px}.hm-actions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;padding:9px;border-top:1px solid #dce5e9}.hm-actions button{min-height:35px;padding:5px 13px;font-size:12px}.hm-actions button:disabled{opacity:.42;cursor:not-allowed}.hm-actions .primary,.hm-modal .primary{background:linear-gradient(135deg,var(--hm-accent),#d88808);border-color:#cb830c;color:#2e2100}.hm-overlay{position:absolute;z-index:30;inset:0;background:#092b428f;display:grid;place-items:center;padding:20px}.hm-overlay[hidden]{display:none}.hm-modal{width:min(450px,94%);max-height:90%;overflow:auto;background:#fff;border-radius:18px;padding:22px;text-align:center;box-shadow:0 20px 55px #0005}.hm-modal>span{font-size:10px;letter-spacing:1.6px;font-weight:900;color:#a87300}.hm-modal h2{margin:5px 0 8px}.hm-modal p,.hm-rules li{font-size:14px;line-height:1.5}.hm-rules{text-align:left}.hm-rules button{display:block;margin:auto}.hm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.hm-stats div{padding:10px 3px;border-radius:11px;background:#edf3f6}.hm-stats b,.hm-stats small{display:block}.hm-stats b{font-size:20px}.hm-stats small{font-size:8px;font-weight:900}.hm-seo{max-width:840px;margin:24px auto;padding:0 16px;line-height:1.65}.hm-seo h2{font-size:23px}.hm-shell[data-theme="purple"] .hm-header{background:linear-gradient(120deg,#342353,#704a8d)}.hm-shell[data-theme="purple"] .hm-board-wrap{background:linear-gradient(145deg,#e4d9ed,#bfa9d2)}.hm-shell[data-theme="purple"] .hm-board{border-color:#452d61;background:linear-gradient(145deg,#5a3972,#35214b)}.hm-shell[data-theme="wood"] .hm-header{background:linear-gradient(120deg,#4b2c16,#935b2d)}.hm-shell[data-theme="wood"] .hm-board-wrap{background:linear-gradient(145deg,#eed2a0,#c38b52)}.hm-shell[data-theme="wood"] .hm-board{border-color:#633b1e;background:linear-gradient(145deg,#9b6538,#633b22)}.hm-shell.no-animation .hm-tile-inner{transition:none}@keyframes hmMatch{50%{transform:rotateY(180deg) scale(1.08)}}@keyframes hmWrong{35%,75%{transform:rotateY(180deg) translateX(-4px)}55%{transform:rotateY(180deg) translateX(4px)}}
@media(max-height:780px) and (min-width:651px){.hm-header{min-height:56px}.hm-logo{width:40px;height:40px;flex-basis:40px;font-size:24px}.hm-board{width:min(100%,520px)}.hm-status{min-height:46px}.hm-board-wrap{padding:8px}}
@media(max-width:650px){.hm-shell,.hm-card,.hm-board-wrap,.hm-board{max-width:100%;min-width:0}.hm-card{border-radius:12px;overflow-x:clip}.hm-header{min-height:54px;padding:6px 9px}.hm-logo{width:38px;height:38px;flex-basis:38px;font-size:23px;border-radius:11px}.hm-brand h1{font-size:22px}.hm-brand small{display:none}.hm-icons{gap:4px}.hm-icons button{width:35px;min-height:35px}.hm-controls{grid-template-columns:1fr 1fr;gap:5px;padding:5px 7px}.hm-controls label:last-child{grid-column:1/-1}.hm-controls select{height:32px;font-size:12px}.hm-status{min-height:48px;grid-template-columns:repeat(4,minmax(0,1fr))}.hm-status>div{padding:4px 2px}.hm-status b{font-size:16px}.hm-status small{font-size:7px}.hm-message{min-height:30px;font-size:11px}.hm-board-wrap{padding:6px}.hm-board{width:100%;gap:4px;padding:5px;border-width:4px;border-radius:12px}.hm-tile-inner,.hm-tile-front,.hm-tile-back{border-radius:7px}.hm-tile-front,.hm-tile-back{border-width:1px}.hm-tile-front:after{border-radius:5px}.hm-actions{padding:6px 4px;gap:4px}.hm-actions button{min-height:34px;padding:4px 9px;font-size:11px}.hm-players{padding:5px 7px}.hm-seo{margin-top:18px}.hm-stats{grid-template-columns:repeat(2,1fr)}.hm-preview{top:12px;font-size:12px;padding:7px 12px}}
@media(max-width:360px){.hm-brand h1{font-size:19px}.hm-icons button{width:32px}.hm-board{gap:3px;padding:4px}.hm-status b{font-size:14px}.hm-actions button{font-size:10px}}
