.ghmm-game{--ghmm-lime:#a3e635;--ghmm-ink:#eef4ff;--ghmm-muted:#9aabc0;--ghmm-line:rgba(148,163,184,.18);font-family:inherit;color:var(--ghmm-ink);background:#08111e;border-radius:22px;padding:clamp(16px,3vw,32px);max-width:1000px;margin:24px auto;overflow:hidden;box-sizing:border-box}
.ghmm-game *{box-sizing:border-box}
.ghmm-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.ghmm-brand{display:flex;align-items:center;gap:13px}
.ghmm-brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#a3e635,#22c55e);color:#102016;font-weight:900;font-size:18px}
.ghmm-eyebrow{margin:0 0 5px;color:var(--ghmm-lime);font-size:10px;font-weight:800;letter-spacing:1.8px}
.ghmm-header h2{margin:0;color:#fff;font-size:clamp(21px,3vw,30px);line-height:1.15}
.ghmm-subtitle{margin:5px 0 0;color:var(--ghmm-muted);font-size:13px}
.ghmm-status{white-space:nowrap;color:#c4d2e2;font-size:9px;letter-spacing:1px;font-weight:800}
.ghmm-status span{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#84cc16;box-shadow:0 0 10px #84cc16}
.ghmm-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--ghmm-line);border-radius:15px;background:#101c2b}
.ghmm-difficulty{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.ghmm-difficulty label{font-size:9px;letter-spacing:1.4px;font-weight:900;color:#9eb0c5}
.ghmm-difficulty select{width:100%;max-width:380px;min-height:42px;border:1px solid #33465d;border-radius:9px;background:#0c1725;color:#f1f5f9;padding:8px 12px;font:inherit;font-size:13px}
.ghmm-start-button{border:0;border-radius:9px;background:var(--ghmm-lime);color:#14220e;padding:12px 18px;font-weight:900;font-size:13px;cursor:pointer;white-space:nowrap}
.ghmm-start-button:hover{background:#bef264}
.ghmm-start-button span{margin-left:8px;font-size:16px}
.ghmm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.ghmm-stat{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--ghmm-line);border-radius:12px;background:#101c2b;min-width:0}
.ghmm-stat span{color:#8fa2b9;font-size:8px;letter-spacing:1.3px;font-weight:900}
.ghmm-stat strong{color:#fff;font-size:clamp(17px,2.5vw,22px);font-variant-numeric:tabular-nums}
.ghmm-stat .ghmm-time-warning{color:#fb7185;animation:ghmm-pulse .8s infinite alternate}
.ghmm-board-wrap{position:relative;min-height:300px;padding:clamp(12px,3vw,24px);border:1px solid var(--ghmm-line);border-radius:18px;background:radial-gradient(circle at 50% 0,rgba(59,130,246,.12),transparent 42%),linear-gradient(145deg,#142438,#0b1624)}
.ghmm-board{display:grid;grid-template-columns:repeat(var(--ghmm-columns,4),minmax(0,1fr));gap:clamp(7px,1.5vw,13px);max-width:690px;margin:0 auto}
.ghmm-card{position:relative;aspect-ratio:1;min-width:0;border:1px solid rgba(148,163,184,.25);border-radius:clamp(8px,1.4vw,14px);background:linear-gradient(145deg,#203750,#112136);color:#fff;cursor:pointer;display:grid;place-items:center;overflow:hidden;transition:transform .16s,border-color .16s,background .16s}
.ghmm-card:hover:not(.is-matched){transform:translateY(-2px);border-color:rgba(163,230,53,.65)}
.ghmm-card:focus-visible{outline:3px solid #bef264;outline-offset:3px}
.ghmm-card-back,.ghmm-card-face{position:absolute;inset:0;display:grid;place-items:center;font-weight:900}
.ghmm-card-back{font-size:clamp(14px,2.5vw,23px);letter-spacing:-1px;color:rgba(163,230,53,.85)}
.ghmm-card-face{font-size:clamp(23px,5vw,43px);opacity:0;transform:scale(.65);transition:opacity .15s,transform .15s}
.ghmm-card.is-flipped,.ghmm-card.is-matched{background:linear-gradient(145deg,#29442e,#142b27);border-color:rgba(163,230,53,.7)}
.ghmm-card.is-flipped .ghmm-card-face,.ghmm-card.is-matched .ghmm-card-face{opacity:1;transform:scale(1)}
.ghmm-card.is-flipped .ghmm-card-back,.ghmm-card.is-matched .ghmm-card-back{opacity:0}
.ghmm-card.is-matched{cursor:default;box-shadow:inset 0 0 0 1px rgba(163,230,53,.2)}
.ghmm-overlay{position:absolute;z-index:5;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;border-radius:18px;background:rgba(5,13,23,.86);backdrop-filter:blur(7px);overflow:hidden}
.ghmm-overlay[hidden]{display:none}
.ghmm-overlay-content{position:relative;z-index:2;width:min(100%,420px);text-align:center;padding:clamp(18px,4vw,32px);border:1px solid rgba(163,230,53,.25);border-radius:18px;background:linear-gradient(145deg,#172b40,#0b1725);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.ghmm-overlay-icon{display:block;font-size:48px;margin-bottom:12px}
.ghmm-overlay-content h3{margin:0 0 9px;color:#fff;font-size:clamp(22px,4vw,30px)}
.ghmm-overlay-content p{margin:0 auto 18px;color:#b5c4d5;font-size:13px;line-height:1.6;max-width:330px}
.ghmm-result-overlay.ghmm-won{background:rgba(5,13,23,.88)}
.ghmm-trophy{font-size:clamp(62px,10vw,92px);line-height:1;margin-bottom:10px;filter:drop-shadow(0 8px 18px rgba(250,204,21,.3));animation:ghmm-trophy-pop .65s cubic-bezier(.2,1.4,.4,1) both}
.ghmm-result-kicker{font-size:9px!important;letter-spacing:2px;font-weight:900;color:#bef264!important;margin-bottom:7px!important}
.ghmm-result-content h3{font-size:clamp(27px,5vw,38px)}
.ghmm-result-summary{display:flex;justify-content:center;gap:12px;margin:16px 0 20px}
.ghmm-result-summary span{display:flex;flex-direction:column;gap:3px;min-width:100px;padding:10px;border:1px solid var(--ghmm-line);border-radius:10px;background:rgba(255,255,255,.04)}
.ghmm-result-summary strong{font-size:20px;color:#fff;font-variant-numeric:tabular-nums}
.ghmm-result-summary small{font-size:9px;color:#9aabc0;text-transform:uppercase;letter-spacing:1px}
.ghmm-result-overlay.ghmm-lost .ghmm-trophy{display:none}
.ghmm-result-overlay.ghmm-lost .ghmm-result-kicker{color:#fbbf24!important}
.ghmm-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ghmm-confetti i{position:absolute;top:-15px;width:8px;height:14px;border-radius:2px;background:#a3e635;animation:ghmm-confetti-fall 2.8s linear infinite}
.ghmm-confetti i:nth-child(1){left:8%;animation-delay:.1s;background:#fbbf24}.ghmm-confetti i:nth-child(2){left:18%;animation-delay:.8s;background:#60a5fa}.ghmm-confetti i:nth-child(3){left:29%;animation-delay:.4s;background:#f472b6}.ghmm-confetti i:nth-child(4){left:41%;animation-delay:1.2s;background:#a3e635}.ghmm-confetti i:nth-child(5){left:53%;animation-delay:.2s;background:#fbbf24}.ghmm-confetti i:nth-child(6){left:64%;animation-delay:1s;background:#c084fc}.ghmm-confetti i:nth-child(7){left:75%;animation-delay:.5s;background:#60a5fa}.ghmm-confetti i:nth-child(8){left:87%;animation-delay:1.4s;background:#f472b6}.ghmm-confetti i:nth-child(9){left:96%;animation-delay:.7s;background:#a3e635}.ghmm-confetti i:nth-child(10){left:35%;animation-delay:1.7s;background:#fbbf24}.ghmm-confetti i:nth-child(11){left:70%;animation-delay:1.9s;background:#60a5fa}.ghmm-confetti i:nth-child(12){left:12%;animation-delay:2.1s;background:#c084fc}
.ghmm-footer{display:flex;justify-content:space-between;gap:12px;padding:15px 4px 0;color:#71849b;font-size:10px}.ghmm-footer span:first-child{color:#a3e635;font-weight:800}
@keyframes ghmm-pulse{from{opacity:1}to{opacity:.55}}
@keyframes ghmm-trophy-pop{0%{transform:scale(.2) rotate(-18deg);opacity:0}70%{transform:scale(1.15) rotate(5deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes ghmm-confetti-fall{0%{transform:translateY(-10px) rotate(0);opacity:0}10%{opacity:1}100%{transform:translateY(430px) rotate(620deg);opacity:0}}
@media(max-width:650px){.ghmm-header{align-items:flex-start;flex-direction:column}.ghmm-toolbar{align-items:stretch;flex-direction:column}.ghmm-difficulty select{max-width:none}.ghmm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ghmm-board{gap:7px}.ghmm-footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){.ghmm-game *{animation:none!important;transition:none!important}}
