.mh { max-width: 520px; margin: 0 auto; padding-bottom: 60px; --gold: #D4AF7C; }
.mh-top { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; margin-bottom: 8px; }
.mh .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.mh .chip { font-family: inherit; }
.mh .chip[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.mh-sub { color: var(--muted); text-align: center; font-size: .95rem; margin: 8px 0 12px; min-height: 1.4em; }
.mh-rank { margin: 0 auto 6px; max-width: 420px; }
.mh-rank-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mh-rank-line strong { font-family: var(--font-heading, inherit); letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.mh-rank-line span { color: var(--muted); font-size: .92rem; }
.mh-track { position: relative; height: 6px; background: var(--line); border-radius: 3px; margin: 0 6px; }
.mh-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.mh-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #2a2c30; border: 2px solid var(--line); }
.mh-dot.on { background: var(--accent); border-color: var(--accent); }
.mh-dot.now { box-shadow: 0 0 0 3px rgba(212, 175, 124, .35); }
.mh-toast { min-height: 40px; text-align: center; padding-top: 6px; }
.mh-toast span { display: inline-block; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 8px; }
.mh-toast span.good { background: var(--accent); }
.mh-toast span.pan { background: #fff; color: #7a5a1f; box-shadow: 0 0 0 2px var(--accent); }
.mh-entry { min-height: 48px; display: flex; justify-content: center; align-items: center; font: 700 clamp(1.5rem, 7vw, 2rem)/1 var(--font-heading, inherit); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.mh-entry .c { color: var(--accent); }
.mh-entry .x { color: #6b6659; }
.mh-entry .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 3px; animation: mh-blink 1s steps(1) infinite; }
.mh-hive { position: relative; width: 264px; height: 300px; margin: 6px auto 10px; }
.mh-hex { position: absolute; width: 84px; height: 96px; border: 0; padding: 0; cursor: pointer; background: #3a3732; color: var(--text); font: 700 1.9rem/1 var(--font-heading, inherit); text-transform: uppercase; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .08s, background .15s; }
.mh-hex:hover { background: #46423b; }
.mh-hex.center { background: var(--gold); color: #1a1408; }
.mh-hex.center:hover { background: #e2c18f; }
.mh-hex:active { transform: scale(.94); }
.mh-hex:focus-visible { outline: none; background: #5a554c; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.mh-actions .btn-ghost { margin-left: 0; }
.mh button.btn { cursor: pointer; font-family: inherit; }
.mh button.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.mh-found { margin: 18px 0 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.mh-found-head { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: 600 .95rem/1.2 inherit; padding: 14px 18px; cursor: pointer; text-align: left; }
.mh-found-head i { font-style: normal; transition: transform .2s; color: var(--muted); }
.mh-found-head[aria-expanded="false"] i { transform: rotate(-90deg); }
.mh-words { list-style: none; padding: 0 18px 14px; margin: 0; columns: 2; column-gap: 20px; }
.mh-words[hidden] { display: none; }
.mh-words li { padding: 5px 0; border-bottom: 1px solid var(--line); text-transform: capitalize; break-inside: avoid; font-size: .98rem; }
.mh-words li.pangram { color: var(--accent); font-weight: 700; }
.mh-words li.missed { color: var(--muted); }
.mh-words li.new { animation: mh-new .9s ease; }
.mh-more { margin-top: 14px; }
.mh-panel { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.mh-panel[hidden], .mh [hidden] { display: none !important; }
.mh-panel h2 { font-family: var(--font-heading, inherit); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.mh-panel p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.mh-small { font-size: .88rem; }
.mh-grid { overflow-x: auto; margin: 10px 0; }
.mh-grid table { border-collapse: collapse; font-size: .9rem; min-width: 100%; text-align: center; }
.mh-grid th, .mh-grid td { padding: 6px 9px; border-bottom: 1px solid var(--line); }
.mh-grid th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.mh-grid td.z { color: #55524b; }
.mh-grid td:first-child { font-weight: 700; text-transform: uppercase; color: var(--accent); }
@keyframes mh-blink { 50% { opacity: 0; } }
@keyframes mh-new { 0% { background: rgba(212, 175, 124, .35); } 100% { background: transparent; } }
@keyframes mh-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.mh-entry.shake { animation: mh-shake .45s; }
@media (prefers-reduced-motion: reduce) { .mh-entry.shake, .mh-words li.new, .mh-entry .caret { animation: none; } .mh-fill { transition: none; } }
@media (max-width: 420px) { .mh-words { columns: 2; } }
