.ym-puzzles{--ym-ink:#315846;--ym-mint:#dfebda;--ym-peach:#f4decd;--ym-cream:#fffaf0;color:var(--ym-ink);padding:12px 14px 16px;background:var(--ym-cream);width:100%;box-sizing:border-box}.ym-puzzles *{box-sizing:border-box}.ym-puzzles [hidden]{display:none!important}.ym-puzzle-header h2{font-size:21px;letter-spacing:-.5px;margin:0 0 5px}.ym-puzzle-help{font-size:12px;line-height:1.6;margin:0;color:#5b7162;max-width:none!important}.ym-puzzle-stats{display:flex;justify-content:space-between;padding:10px 3px;gap:12px}.ym-puzzle-stats span{display:flex;gap:7px;align-items:baseline}.ym-puzzle-stats small{font-size:11px;color:#617766}.ym-puzzle-stats strong{font-size:18px}.ym-puzzle-boardwrap{position:relative;padding:14px;max-width:410px;margin:auto}.ym-puzzle-board{display:grid;grid-template-columns:repeat(var(--ym-cols,4),minmax(0,1fr));gap:5px}.ym-puzzle-board.ym-merge{touch-action:none;background:#dbe6d4;border:5px solid #dbe6d4;border-radius:15px;gap:6px}.ym-number{aspect-ratio:1;display:grid;place-items:center;border-radius:10px;font-size:clamp(22px,6vw,36px);font-weight:850;background:#edf1e6;transition:background .14s}.ym-number[data-power="1"]{background:#fff8e9}.ym-number[data-power="2"]{background:#f4e5c7}.ym-number[data-power="3"]{background:#efd2b9}.ym-number[data-power="4"]{background:#eab9aa}.ym-number[data-power="5"]{background:#d6dcb4}.ym-number[data-power="6"]{background:#bad2b4}.ym-number[data-power="7"]{background:#66866c;color:white}.ym-puzzles button.ym-tile{padding:0;aspect-ratio:1;min-height:44px;min-width:0;width:100%;border-radius:11px;font-size:25px;background:#edf0df;color:var(--ym-ink);box-shadow:0 3px 0 #cbd5c1;border:2px solid transparent;touch-action:manipulation}.ym-puzzles button.ym-tile:nth-child(3n){background:#f7e6d8}.ym-puzzles button.ym-tile:nth-child(3n+1){background:#e6e7f1}.ym-puzzles button.ym-tile.ym-selected{border-color:#375c47;transform:translateY(-3px);box-shadow:0 5px 0 #809b75}.ym-puzzles button.ym-tile.ym-removed{visibility:hidden;pointer-events:none}.ym-puzzles button:disabled:not(.ym-removed){opacity:.65;cursor:default}.ym-puzzles button:focus-visible{outline:3px solid #ad734a;outline-offset:3px}.ym-puzzle-tray{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:9px 7px;gap:4px;background:#dae6d2;border-radius:12px;margin:10px auto 0;max-width:400px}.ym-slot{display:grid;place-items:center;aspect-ratio:1;background:#fffdf4;border-radius:7px;font-size:23px;min-height:36px}.ym-puzzle-tray.ym-warning{background:#efd4bd;border:2px solid #ae7750}.ym-puzzle-directions{display:grid;grid-template-columns:repeat(3,62px);grid-template-rows:48px 48px;justify-content:center;gap:5px;margin:3px auto}.ym-puzzles .ym-direction{padding:0;min-height:48px;border-radius:12px;font-size:24px;background:#dce8d4;color:#315846}.ym-direction-up{grid-area:1/2}.ym-direction-left{grid-area:2/1}.ym-direction-down{grid-area:2/2}.ym-direction-right{grid-area:2/3}.ym-puzzle-status{min-height:22px;font-size:12px;font-weight:700;text-align:center;line-height:1.5;margin:10px 0 4px;color:#42664c}.ym-puzzle-status[data-error="true"]{color:#9b4839}.ym-puzzle-fair{font-size:10px;line-height:1.5;color:#6e7869;text-align:center;margin:8px 0 0}.ym-puzzle-result{padding:14px;border-radius:14px;background:#e1ebd9;text-align:center}.ym-puzzle-result strong{display:block;margin-bottom:12px;font-size:17px}.ym-puzzles .ym-puzzle-retry{min-height:48px;min-width:160px;background:#315846;color:white;border-radius:12px;padding:10px 18px}.ym-path{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);pointer-events:none;overflow:visible}.ym-path polyline{fill:none;stroke:#54765c;stroke-width:.09;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 2px #fff)}@media(max-width:360px){.ym-puzzles{padding-left:7px;padding-right:7px}.ym-puzzle-boardwrap{padding:9px}.ym-puzzle-board{gap:4px}.ym-puzzles button.ym-tile{font-size:21px;min-height:40px;border-radius:9px}.ym-puzzle-help{font-size:11px}.ym-slot{font-size:20px;min-height:32px}}@media(prefers-reduced-motion:reduce){.ym-puzzles *{transition:none!important;animation:none!important}}

@media(max-width:360px){.ym-path{inset:9px;width:calc(100% - 18px);height:calc(100% - 18px)}}

.ym-stack{display:flex;flex-direction:column;min-width:0;align-items:stretch;min-height:170px}.ym-stack-label{font-size:10px;text-align:center;margin-bottom:8px}.ym-puzzles .ym-stack button.ym-tile{aspect-ratio:auto;height:48px;min-height:48px;position:relative;font-size:26px;margin-top:-19px;box-shadow:0 3px 0 #c1cdb8;border:2px solid #fffaf0}.ym-puzzles .ym-stack .ym-stack-label+button.ym-tile{margin-top:0}.ym-puzzles .ym-stack button.ym-covered{background:repeating-linear-gradient(135deg,#e2e7dc,#e2e7dc 6px,#d6decf 6px,#d6decf 12px);color:#778771;opacity:1;font-size:15px}.ym-puzzles .ym-stack button.ym-tile:not(.ym-covered){z-index:2;background:#f6dfc8}

/* UI palette aligned with existing YOUME brand-site; ingredient/tile colours retained. */
.ym-puzzles{--ym-ink:#573c46;--ym-mint:#fae5e8;--ym-peach:#fae5e8;--ym-cream:#fffaf6}.ym-puzzle-help,.ym-puzzle-stats small,.ym-puzzle-fair{color:#806670}.ym-puzzles .ym-direction{background:#fae5e8;color:#a63860}.ym-puzzles .ym-puzzle-retry{background:#a63860}.ym-puzzle-result{background:#fae5e8}.ym-puzzles button:focus-visible{outline-color:#80becb}
