.game-sarmal-bulmaca {
  --g-bg: #eaf7f4;
  --g-surface: #fff;
  --g-ink: #10302c;
  --g-muted: #42645e;
  --g-accent: #0f766e;
  --g-line: #a9cdc5;
}
.game-sarmal-bulmaca .game-landing-preview { border: 2px solid var(--g-accent); padding: 6px; box-shadow: 0 4px 0 #baded5; }
.game-sarmal-bulmaca .game-player-bar { background: var(--g-accent); color: #fff; }
.game-sarmal-bulmaca .game-close { color: #fff; }
.game-sarmal-bulmaca .sb-reset { background: transparent; border-color: #82bbb2; color: #fff; padding-inline: 10px; font-size: 13px; }
.game-sarmal-bulmaca .game-player-content { padding-top: 8px; }
.sb-game { display: grid; gap: 6px; max-width: 384px; }
.sb-directions { display: flex; border: 1px solid var(--g-accent); border-radius: 24px; padding: 2px; scroll-margin-top: 76px; }
.sb-directions button { flex: 1; min-height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--g-ink); font: 800 15px var(--g-font); cursor: pointer; }
.sb-directions [aria-pressed="true"] { background: var(--g-accent); color: #fff; }
.sb-directions [data-direction="outward"][aria-pressed="true"] { background: #f28c6b; color: #10302c; }
.sb-clue-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
.sb-clue-nav button { padding: 0; font-size: 25px; background: transparent; border: 0; }
.sb-clue-nav p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.sb-board { position: relative; width: clamp(var(--sb-min), calc(100dvh - 492px), 300px); max-width: 100%; aspect-ratio: 1; margin: 2px auto; background: #fff; border: 1px solid var(--g-accent); border-radius: 12px; overflow: hidden; }
.sb-board svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sb-trail { fill: none; stroke: #b9dcd4; stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; }
.sb-active-path { fill: none; stroke: #0f766e; stroke-opacity: .28; stroke-width: .38; stroke-linecap: round; stroke-linejoin: round; }
[data-direction="outward"] .sb-active-path { stroke: #f28c6b; stroke-opacity: .75; }
.sb-center { fill: #f28c6b; }
.sb-grid { position: relative; display: grid; grid-template: repeat(var(--sb-size), 1fr) / repeat(var(--sb-size), 1fr); width: 100%; height: 100%; }
.sb-cell { position: relative; min-width: 44px; min-height: 44px; padding: 12px 0 0; border: 0; border-right: 1px solid #a9cdc5; border-bottom: 1px solid #a9cdc5; border-radius: 0; color: var(--g-ink); background: transparent; cursor: pointer; font: 800 24px/1 var(--g-font); touch-action: manipulation; }
.sb-cell.is-selected { background: rgb(15 118 110 / .06); }
.sb-cell.is-current { box-shadow: inset 0 0 0 3px var(--g-accent); }
[data-direction="outward"] .sb-cell.is-current { box-shadow: inset 0 0 0 3px #bf593d; }
.sb-cell.is-hinted .sb-letter { color: #0f766e; }
.sb-cell.is-wrong { background: #ffd3c8; color: #8e2b20; }
.sb-cell:focus-visible { outline: 2px solid #10302c; outline-offset: -5px; }
.sb-number { position: absolute; top: 3px; left: 4px; font: 700 13px/1 var(--g-font); color: #42645e; }
.sb-actions { display: flex; gap: 4px; }
.sb-actions button { flex: 1; padding-inline: 4px; font-size: 13px; }
.sb-keyboard { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 3px; margin-top: 2px; }
.sb-keyboard button { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #a9cdc5; border-bottom: 3px solid #79aaa0; border-radius: 7px; background: #fff; color: var(--g-ink); font: 800 20px var(--g-font); cursor: pointer; touch-action: manipulation; }
.sb-keyboard [data-letter="⌫"] { background: #ffdfd2; border-color: #cf8d76; }
.sb-keyboard button:disabled { opacity: .55; cursor: default; }
.sb-game button:active { transform: translateY(1px); }
.sb-status { min-height: 18px; margin: 0; font-size: 13px; line-height: 1.4; }
.sb-win { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 2px solid var(--g-accent); border-radius: 10px; background: #d0eee5; font-size: 15px; }
.sb-win button { font-size: 13px; }
.sb-clue-list { border-block: 1px solid var(--g-line); margin-top: 4px; }
.sb-clue-list summary { min-height: 44px; padding: 12px 2px; font-weight: 800; cursor: pointer; }
.sb-clues { display: grid; gap: 14px; padding-bottom: 12px; }
.sb-clues h3 { font-size: 16px; margin-bottom: 6px; }
.sb-clues ol { margin: 0; padding: 0; list-style: none; }
.sb-clues button { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px 15px; align-items: center; gap: 4px; width: 100%; min-height: 44px; padding: 7px; border: 0; border-radius: 6px; background: transparent; color: var(--g-ink); font: 15px var(--g-font); text-align: left; cursor: pointer; }
.sb-clues button.is-selected { background: #c9e8df; }
.sb-clues [data-outward] button.is-selected { background: #ffdfd2; }
.sb-clue-length { font-size: 13px; color: var(--g-muted); }
.sb-clue-done { color: var(--g-accent); font-weight: 800; }
.game-sarmal-bulmaca .game-levels { max-width: 384px; margin-top: 14px; }
.game-sarmal-bulmaca .game-levels-heading { gap: 4px; }
.game-sarmal-bulmaca .game-levels-heading h2 { font-size: 15px; }
.game-sarmal-bulmaca .game-level-list button { border-radius: 50%; }
.game-sarmal-bulmaca .game-how h2 { margin-top: 28px; }
@media (min-width: 720px) {
  .sb-game { max-width: 420px; }
  .sb-board { width: 300px; }
  .sb-clues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-keyboard button { min-height: 46px; }
  .game-sarmal-bulmaca .game-levels { max-width: 420px; }
}
@media (min-width: 1080px) {
  .game-sarmal-bulmaca .game-player { max-width: 660px; }
  .game-sarmal-bulmaca .game-level-list { flex-wrap: nowrap; }
}
