:root{--blank-size:64px;--tile-size:64px;color:#344e51}
body{background:radial-gradient(ellipse at 90% 85%,#e4ede470,transparent 45%),#f7f4ec;color:#344e51;padding-top:56px;padding-bottom:112px;min-height:100svh}
.mecc-global-nav{height:56px;background:#f7f4ecf5;border-bottom:1px solid #d9d7cb;box-shadow:none;padding:0 24px;backdrop-filter:blur(8px)}
.mecc-nav-title{font-size:17px;font-weight:500;letter-spacing:.1em;color:#65786b;text-shadow:none}
.mecc-nav-back{left:24px;color:#738073;background:transparent;padding:5px 0;border-radius:0;font-size:14px;font-weight:400}
.mecc-nav-back:hover{background:transparent;color:#9b5949;transform:none}
.mecc-nav-back svg{background:transparent;color:inherit;padding:0;width:20px;height:20px}
.nav-controls{right:24px}.btn-refresh{color:#647b68;border:1px solid #cbd4c0;background:#f6f8ef;border-radius:9px;font-size:13px;font-weight:400;padding:7px 12px}
.btn-refresh:hover{background:#e5edde;border-color:#a5b69c}.btn-refresh svg{width:16px;height:16px}
.stage{max-width:1180px;padding:16px 24px 18px}
.hint-banner{display:flex;align-items:center;justify-content:center;padding:0;margin-bottom:12px;flex-shrink:0}
.hint-char-circle{display:flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;border-radius:12px;cursor:pointer;transition:transform .2s}
.hint-char-circle:hover{transform:scale(1.04)}
.hint-picture{display:block;width:160px;height:128px;object-fit:contain}.hint-picture[hidden]{display:none}
.cards-grid{gap:14px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}
.word-card{border:1px solid #ddd8c7;background:#fffdf5b3;border-radius:14px;box-shadow:0 5px 16px #77694c08;padding:12px 14px;gap:7px;min-width:0}
.word-card.card-solved{background:#edf2e6;border-color:#a8bd9c;box-shadow:none}
.word-image{width:100%;height:180px;object-fit:contain;border:0;border-radius:0;background:transparent}
.word-row{gap:6px;max-width:100%;min-height:var(--blank-size);flex-wrap:wrap}
.fixed-char{font-size:29px;font-weight:400;line-height:1.3;width:auto;height:auto;min-width:0;max-width:100%;text-align:center;overflow-wrap:anywhere;color:#38565a}
.blank-slot{border:1px dashed #b59b73;border-radius:8px;background:#eee9d92e;box-shadow:inset 0 0 0 5px #fffdf555}
body.locked-empty .blank-slot{animation:paper-slot-glow 2.2s ease-in-out infinite}
@keyframes paper-slot-glow{50%{border-color:#839e7c;background:#e6eddf66}}
.blank-slot.filled{border-color:#98b28d;background:#e2ecd8}
.card-audio-btn{width:28px;height:28px;border:1px solid #cad5c0;background:#edf3e6;color:#607d69;margin-top:0;flex-shrink:0}
.card-audio-btn:hover{background:#e0ebd8}.card-audio-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tile-tray{height:112px;min-height:112px;border-top:1px solid #d9d7cb;background:#f7f4ecf5;backdrop-filter:blur(8px)}
.tray-label{font-size:12px;color:#92947c;top:7px}
.tile-chip{border:1px solid #bfccb2;border-radius:10px;color:#38565a;font-size:36px;font-weight:400;box-shadow:0 3px 0 #a3ac972e,0 5px 12px #686d5712}
.tile-chip.locked{border:0;background:transparent!important;border-radius:7px;color:#466b50}
.empty-msg{color:#9b8569;font-size:15px;padding:34px 20px}
.modal-overlay{background:#354d4866;backdrop-filter:blur(6px)}
.modal-box{background:#fffdf5;border:1px solid #c3cfb9;border-radius:20px;box-shadow:0 14px 50px #354d4826;padding:36px}
.modal-title{color:#506e59;font-weight:400;font-size:27px}.m-btn{font-weight:400;font-size:17px;border-radius:9px;padding:11px 23px}
.m-btn.play{background:#e3ecd9;color:#526e58;border:1px solid #b9caaa;box-shadow:none}.m-btn.exit{background:#f2eee3;color:#86745a;border:1px solid #d9cdb5;box-shadow:none}
button:focus-visible,a:focus-visible{outline:3px solid #ac7256;outline-offset:4px}
@media(min-width:900px) and (min-height:640px){
  .stage{height:calc(100svh - 168px);display:flex;flex-direction:column}
  .hint-banner{flex-shrink:0}.cards-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}
  .word-card{min-height:0}.word-image{flex:1;min-height:32px;height:0;max-height:240px}.word-row{flex-shrink:0}
}
@media(max-width:899px){.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.word-card{min-height:225px}.fixed-char{font-size:24px}}
@media(max-width:600px){
  :root{--blank-size:52px;--tile-size:48px}
  .mecc-global-nav{padding:0 12px}.mecc-nav-back{left:12px;font-size:12px;max-width:29%;gap:4px}.mecc-nav-back span{display:inline!important;font-size:11px}.mecc-nav-back svg{width:16px;height:16px}
  .mecc-nav-title{font-size:14px;max-width:36vw;letter-spacing:0}.nav-controls{right:12px}.btn-refresh{font-size:11px;padding:6px;gap:4px}.btn-refresh svg{width:12px;height:12px}
  .stage{padding:10px 12px 14px}.hint-banner{margin-bottom:10px}.hint-picture{width:120px;height:96px}
  .cards-grid{gap:9px}.word-card{padding:10px 8px;min-height:220px}.word-image{width:100%;height:100px}.fixed-char{font-size:23px}
  .tile-chip{font-size:29px}.tile-tray{height:104px;min-height:104px}body{padding-bottom:104px}.tray-label{font-size:11px}
}
@media(max-width:350px){.cards-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.locked-empty .blank-slot{animation:none}.tile-chip,.modal-overlay,.modal-box{transition:none;animation:none}}
