.gwm-game { --ink:#172b3a; --teal:#087e79; --line:#d7dfd6; --muted:#52656d; color:var(--ink); background:#fffefa; border:1px solid var(--line); border-radius:24px; box-shadow:0 16px 45px rgba(23,43,58,.06); max-width:660px; margin:28px auto 40px; padding:clamp(14px,4vw,30px); box-sizing:border-box; font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.5; }
.gwm-game *, .gwm-game *::before, .gwm-game *::after { box-sizing:border-box; }
.gwm-game [hidden] { display:none !important; }
.gwm-game__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; }
.gwm-game .gwm-game__heading h2 { font-size:clamp(1.2rem,3.8vw,1.65rem); line-height:1.2; letter-spacing:-.035em; margin:6px 0 0; }
.gwm-game__tag { color:#056762; font-size:.7rem; font-weight:800; letter-spacing:.075em; text-transform:uppercase; }
.gwm-game__badge { flex:none; display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:#e6f2cf; color:#174f40; font-weight:850; font-size:1.3rem; transform:rotate(5deg); }
.gwm-game__badge--coral { background:#ffe2d8; color:#884231; transform:rotate(-5deg); }
.gwm-game__toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.gwm-game__toolbar label { display:flex; align-items:center; gap:8px; font-size:.9rem; font-weight:700; }
.gwm-game select { width:auto; max-width:100%; min-height:44px; padding:8px 28px 8px 10px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:12px; font:inherit; }
.gwm-game button { cursor:pointer; touch-action:manipulation; }
.gwm-game button:disabled { opacity:.5; cursor:default; }
.gwm-game__button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; color:var(--ink); font:inherit; font-size:.9rem; font-weight:750; border:1px solid var(--line); border-radius:12px; background:#f8faf3; line-height:1.3; }
.gwm-game__button:hover:not(:disabled) { background:#eaf1e4; border-color:#9eafa4; }
.gwm-game__button--primary { border-color:var(--teal); background:var(--teal); color:#fff; }
.gwm-game__button--primary:hover:not(:disabled) { border-color:#056762; background:#056762; }
.gwm-game__button[aria-pressed="true"] { background:#d8f36a; border-color:#9ab346; color:#172b3a; }
.gwm-game :focus-visible { outline:3px solid #ff8066; outline-offset:3px; }
.gwm-game__stats { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:14px 0 12px; font-size:.8rem; color:var(--muted); font-weight:650; }
.gwm-game .gwm-game__feedback { min-height:48px; display:flex; align-items:center; margin:14px 0; padding:11px 13px; background:#edf4e9; border-radius:12px; color:#264938; font-size:.9rem; overflow-wrap:anywhere; }
.gwm-game__feedback[data-status="error"] { color:#8b301f; background:#fff0e8; border-left:3px solid #b83c26; }
.gwm-game__feedback[data-status="success"] { color:#184b37; background:#e7f6cc; border-left:3px solid #087e79; }
.gwm-game__actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.gwm-game .gwm-game__tip { font-size:.84rem; color:var(--muted); margin:12px 0; }
.gwm-game .gwm-game__save { border-top:1px solid #e6e8e0; margin:22px 0 0; padding-top:14px; color:var(--muted); font-size:.76rem; }
.gwm-sudoku__board { width:min(100%,450px); margin:0 auto; border:2px solid #254348; border-radius:8px; overflow:hidden; background:#254348; }
.gwm-sudoku__row { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); }
.gwm-sudoku__cell { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:1; min-width:0; border:0; border-right:1px solid #d5ddd7; border-bottom:1px solid #d5ddd7; padding:0; margin:0; border-radius:0; background:#fffefa; color:#056762; font:inherit; font-weight:650; font-size:clamp(1rem,3.8vw,1.65rem); line-height:1; }
.gwm-sudoku__cell:nth-child(3n):not(:last-child) { border-right:2px solid #254348; }
.gwm-sudoku__cell:last-child { border-right:0; }
.gwm-sudoku__row:nth-child(3n):not(:last-child) .gwm-sudoku__cell { border-bottom:2px solid #254348; }
.gwm-sudoku__row:last-child .gwm-sudoku__cell { border-bottom:0; }
.gwm-sudoku__cell.is-given { color:#172b3a; font-weight:850; }
.gwm-sudoku__cell.is-peer { background:#f0f4ea; }
.gwm-sudoku__cell.is-same { background:#e0efcb; }
.gwm-sudoku__cell.is-selected { background:#d8f36a; box-shadow:inset 0 0 0 2px #087e79; }
.gwm-sudoku__cell.is-error { color:#a72e1d; background:#ffe8df; }
.gwm-sudoku__cell.is-error::after { content:"!"; position:absolute; right:3px; top:2px; font-size:.52rem; font-weight:900; }
.gwm-sudoku__cell:focus-visible { z-index:1; outline:0; box-shadow:inset 0 0 0 3px #087e79; }
.gwm-sudoku__notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; height:100%; padding:3px; font-size:clamp(.5rem,1.7vw,.74rem); font-weight:600; line-height:1; }
.gwm-sudoku__notes span { display:grid; place-items:center; }
.gwm-sudoku__keypad { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:5px; }
.gwm-sudoku__keypad button { min-width:0; min-height:44px; padding:8px 0; background:#f0f5e8; color:#174f40; border:1px solid #c9d8bf; border-radius:10px; font-size:1.2rem; font-weight:800; }
.gwm-sudoku__keypad button:hover:not(:disabled) { background:#d8f36a; }
.gwm-words__letters { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; margin:8px 0 22px; padding:20px 10px; background:#f8f2e7; border-radius:18px; }
.gwm-words__letter { display:grid; place-items:center; width:44px; height:50px; background:#fffefa; border:1px solid #ead5bd; border-bottom:4px solid #d9c19c; border-radius:10px; color:#172b3a; font-weight:850; font-size:1.4rem; line-height:1; }
.gwm-words__form { margin:18px 0 0; }
.gwm-words__form label { display:block; font-size:.85rem; font-weight:750; margin-bottom:7px; }
.gwm-words__input-row { display:flex; gap:8px; }
.gwm-words__form input { display:block; flex:1; min-width:0; width:100%; min-height:48px; border:1px solid #b8c8bf; border-radius:12px; padding:10px 14px; background:#fff; color:var(--ink); font:inherit; font-size:1rem; }
.gwm-words__form input[aria-invalid="true"] { border-color:#b83c26; }
.gwm-words__progress { margin-top:24px; }
.gwm-words__progress label { display:block; margin:0 0 8px; font-size:.84rem; font-weight:750; }
.gwm-words__progress progress { display:block; width:100%; height:8px; border:0; border-radius:10px; overflow:hidden; background:#e6eadf; accent-color:#087e79; }
.gwm-words__progress progress::-webkit-progress-bar { background:#e6eadf; }
.gwm-words__progress progress::-webkit-progress-value { background:#087e79; border-radius:10px; }
.gwm-words__progress progress::-moz-progress-bar { background:#087e79; }
.gwm-words .gwm-words__answers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; margin:16px 0; padding:0; gap:8px; }
.gwm-words__answers li { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0; padding:10px 12px; border:1px dashed #d6ddd0; border-radius:10px; background:#fafbf6; color:#637168; font-size:.88rem; min-height:42px; overflow-wrap:anywhere; }
.gwm-words__answers .is-found { background:#ecf5dd; border:1px solid #c7dcaf; color:#22573c; font-weight:750; }
.gwm-words__answers .is-revealed { background:#fff1e8; border:1px solid #e8cdbd; color:#884231; }
.gwm-words__answers small { font-size:.65rem; font-weight:650; white-space:nowrap; }
.gwm-words__bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.gwm-words__bottom .gwm-game__tip { max-width:340px; }
.gwm-words__bottom button { flex:none; }
@media (max-width: 440px) {
  .gwm-game { border-radius:18px; }
  .gwm-game__heading { gap:8px; margin-bottom:18px; }
  .gwm-game__badge { width:42px; height:42px; font-size:1rem; border-radius:13px; }
  .gwm-game__tag { font-size:.6rem; letter-spacing:.04em; }
  .gwm-game__toolbar { align-items:center; }
  .gwm-game__toolbar label { font-size:.8rem; }
  .gwm-game__toolbar .gwm-game__button { font-size:.78rem; padding:10px; }
  .gwm-sudoku__keypad { grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .gwm-sudoku__keypad button { min-height:44px; }
  .gwm-game__actions .gwm-game__button { flex:1 0 auto; font-size:.8rem; padding:10px; }
  .gwm-words__input-row { flex-direction:column; }
  .gwm-words__input-row button { min-height:46px; }
  .gwm-words__letters { padding:14px 5px; gap:5px; }
  .gwm-words__letter { width:37px; height:43px; font-size:1.2rem; }
  .gwm-words .gwm-words__answers { gap:6px; }
  .gwm-words__answers li { padding:10px 8px; font-size:.78rem; flex-wrap:wrap; }
  .gwm-words__bottom { flex-direction:column; align-items:stretch; gap:5px; }
}
@media (prefers-reduced-motion: reduce) { .gwm-game *, .gwm-game *::before { scroll-behavior:auto; } }
.gwm-sudoku__daily { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:18px; padding:14px; background:#edf4e9; border-radius:14px; }
.gwm-sudoku__daily > div { flex:1 1 220px; min-width:0; }
.gwm-sudoku__daily strong { display:block; font-size:.92rem; }
.gwm-sudoku__daily p { margin:5px 0 0; font-size:.77rem; color:var(--muted); }
.gwm-sudoku__streak { padding:12px 0 0; color:#175d45; }
.gwm-sudoku__extras { border-top:1px solid var(--line); margin-top:20px; padding-top:14px; }
.gwm-sudoku__extras summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:.9rem; font-weight:750; }
.gwm-sudoku-print { display:none; }
@media print {
  @page { size:A4 portrait; margin:16mm; }
  body.gwm-printing { margin:0 !important; padding:0 !important; background:white !important; }
  body.gwm-printing > :not(.gwm-sudoku-print) { display:none !important; }
  body.gwm-printing > .gwm-sudoku-print { display:block !important; color:#000; font:12pt/1.4 sans-serif; }
  .gwm-sudoku-print__page { break-after:page; page-break-after:always; }
  .gwm-sudoku-print__page:last-child { break-after:auto; page-break-after:auto; }
  .gwm-sudoku-print h1 { font-size:24pt; margin:0 0 5mm; }
  .gwm-sudoku-print p { margin:5mm 0; max-width:170mm; }
  .gwm-sudoku-print table { border-collapse:collapse; width:162mm; height:162mm; table-layout:fixed; border:1mm solid #000; margin:10mm 0; }
  .gwm-sudoku-print td { border:.25mm solid #555; width:18mm; height:18mm; text-align:center; vertical-align:middle; padding:0; font-size:21pt; }
  .gwm-sudoku-print td:nth-child(3n) { border-right:.8mm solid #000; }
  .gwm-sudoku-print tr:nth-child(3n) td { border-bottom:.8mm solid #000; }
}
