:root {
  color-scheme: light;
  --maple-page-sage: #e8efe6;
  --maple-paper: #fffdf7;
  --maple-header-a: #faf2dc;
  --maple-header-b: #fdfbf4;
  --maple-green: #245947;
  --maple-green-dark: #163f31;
  --maple-ink: #27352d;
  --maple-muted: #68736b;
  --maple-surface-a: #dce5d7;
  --maple-surface-b: #eef1e6;
  --maple-toolbar: #eef3eb;
  --maple-gold: #efb64f;
  --maple-gold-light: #f4c45e;
  --maple-border: #d7dfd2;
  --maple-surface-border: #ccd7c7;
  --maple-white: #ffffff;
  --maple-orange: #e58a2a;
  --maple-red: #b95642;
  --maple-shadow: 0 18px 46px rgba(42, 73, 57, 0.17);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--maple-page-sage);
  color: var(--maple-ink);
  font-family: "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  padding: 22px 14px;
}

button,
select {
  font: inherit;
}

button,
select,
[tabindex="0"] {
  outline: none;
}

button:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 4px solid var(--maple-gold);
  outline-offset: 3px;
}

button {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

.daily-shell {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--maple-border);
  border-radius: 26px;
  background: var(--maple-paper);
  box-shadow: var(--maple-shadow);
}

.daily-header {
  min-height: 119px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  background: linear-gradient(135deg, var(--maple-header-a), var(--maple-header-b));
  border-bottom: 1px solid var(--maple-border);
}

.daily-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.daily-icon {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(26, 71, 52, 0.18));
}

.daily-heading {
  min-width: 0;
}

.daily-title {
  margin: 0;
  color: var(--maple-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.daily-subtitle {
  margin: 7px 0 0;
  color: var(--maple-muted);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
}

.daily-counters {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.daily-counter {
  min-width: 92px;
  min-height: 38px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--maple-border);
  border-radius: 999px;
  background: var(--maple-toolbar);
  white-space: nowrap;
}

.daily-counter-label {
  color: var(--maple-muted);
  font-size: 13px;
  font-weight: 700;
}

.daily-counter-value {
  color: var(--maple-green);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.daily-content {
  padding: 18px 26px 26px;
}

.daily-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.daily-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--maple-border);
  border-radius: 12px;
  background: var(--maple-paper);
  color: var(--maple-green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.daily-tab-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(38, 53, 45, 0.18));
}

.daily-tab[aria-selected="true"] {
  border-color: var(--maple-green);
  background: var(--maple-green);
  color: var(--maple-white);
}

.daily-tab.is-complete::after {
  content: "★";
  flex: 0 0 auto;
  margin-left: 3px;
  color: #f2b632;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 1px 0 #8b5a05, 0 2px 4px rgba(65, 44, 7, 0.25);
}

.daily-tab:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.daily-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--maple-border);
  border-radius: 15px;
  background: var(--maple-toolbar);
}

.daily-difficulty-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.daily-label {
  color: var(--maple-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

#platform-puzzle-mount {
  width: 100%;
  min-height: 320px;
}

.daily-select {
  min-width: 205px;
  height: 40px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--maple-surface-border);
  border-radius: 12px;
  background: var(--maple-paper);
  color: var(--maple-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}











.daily-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.daily-button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.daily-button-primary {
  background: var(--maple-green);
  color: var(--maple-white);
}

.daily-button-preview {
  border-color: #d79d34;
  background: var(--maple-gold-light);
  color: #4c3817;
}

.daily-button-clue,
.daily-button-secondary {
  border-color: #ca8e32;
  background: #fff1cf;
  color: #5b3b15;
}

.daily-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
}

.daily-play-surface {
  position: relative;
  min-height: 520px;
  margin-top: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--maple-surface-border);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--maple-surface-a), var(--maple-surface-b));
}

.puzzle-panel {
  width: min(100%, 850px);
  margin: 0 auto;
}

.puzzle-heading {
  margin: 2px 0 0;
  color: var(--maple-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  text-align: center;
}

.puzzle-intro {
  margin: 6px 0 0;
  color: var(--maple-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.puzzle-instruction {
  margin: 11px 0 0;
  color: var(--maple-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.puzzle-clue-row {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px auto;
}

.word-clue,
.groups-clue-note {
  width: fit-content;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--maple-green-dark);
  font-size: 14px;
  font-weight: 900;
}

.word-clue[hidden],
.groups-clue-note[hidden] {
  display: none;
}

.word-board {
  display: grid;
  gap: 7px;
  justify-content: center;
}

.word-row {
  display: grid;
  gap: 7px;
}

.word-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--maple-surface-border);
  border-radius: 11px;
  background: var(--maple-white);
  color: var(--maple-ink);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.word-tile.is-correct,
.word-tile.is-locked {
  border-color: var(--maple-green);
  background: var(--maple-green);
  color: var(--maple-white);
}

.word-tile.is-close {
  border-color: var(--maple-orange);
  background: var(--maple-orange);
  color: #3e2707;
}

.word-tile.is-miss {
  border-color: #b8c0bc;
  background: #d9ddda;
  color: #66706a;
}

.word-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--maple-muted);
  font-size: 12px;
  font-weight: 800;
}

.word-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.word-swatch {
  width: 15px;
  height: 15px;
  border: 1px solid var(--maple-surface-border);
  border-radius: 4px;
  background: var(--maple-white);
}

.word-swatch.is-correct {
  border-color: var(--maple-green);
  background: var(--maple-green);
}

.word-swatch.is-close {
  border-color: var(--maple-orange);
  background: var(--maple-orange);
}

.word-swatch.is-miss {
  border-color: #b8c0bc;
  background: #d9ddda;
}

.word-keyboard {
  max-width: 640px;
  display: grid;
  gap: 6px;
  margin: 0 auto;
}

.word-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.word-key {
  min-width: 34px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--maple-surface-border);
  border-radius: 9px;
  background: var(--maple-paper);
  color: var(--maple-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.word-key.is-wide {
  min-width: 66px;
  font-size: 12px;
}

.word-key.is-correct {
  border-color: var(--maple-green);
  background: var(--maple-green);
  color: var(--maple-white);
}

.word-key.is-close {
  border-color: var(--maple-orange);
  background: var(--maple-orange);
  color: #3e2707;
}

.word-key.is-miss {
  border-color: #aeb7b2;
  background: #d3d7d4;
  color: #6b746f;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 1;
}

.connections-groups {
  display: grid;
  gap: 8px;
  margin: 15px 0 9px;
}

.connections-group {
  padding: 10px 14px;
  border-radius: 12px;
  background: #cfe1d2;
  color: var(--maple-green-dark);
  text-align: center;
}

.connections-group strong {
  display: block;
  margin-bottom: 2px;
}

.connections-group-answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
}

.connections-group-answer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.connections-group-emoji {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 89, 71, 0.14);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 14px;
}

.connections-tile {
  min-height: 70px;
  padding: 8px 6px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: var(--maple-paper);
  color: var(--maple-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 3px 9px rgba(52, 72, 61, 0.1);
}

.connections-tile .connections-emoji {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border: 1px solid rgba(36, 89, 71, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(39, 53, 45, 0.12);
}

.connections-emoji-glyph {
  display: block;
  white-space: nowrap;
}

.connections-object-drawing {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connections-tile[aria-pressed="true"] {
  border-color: var(--maple-green);
  background: #dce9dc;
  transform: translateY(-2px);
}

.connections-tile.is-hinted {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 9px rgba(52, 72, 61, 0.16);
}

.connections-tile.is-group-clue-0:not([aria-pressed="true"]) {
  border-color: #4d86c6;
  background: #dcecff;
  color: #173f6d;
}

.connections-tile.is-group-clue-1:not([aria-pressed="true"]) {
  border-color: #8b5db1;
  background: #eee1f8;
  color: #56316f;
}

.connections-tile.is-group-clue-2:not([aria-pressed="true"]) {
  border-color: #dc7d18;
  background: #ffead0;
  color: #6d3905;
}

.connections-tile[aria-pressed="true"].is-selection-clue-0 {
  border-color: #2f6eaf;
  background: #b8d6f5;
  color: #123a64;
}

.connections-tile[aria-pressed="true"].is-selection-clue-1 {
  border-color: #714194;
  background: #d9bee9;
  color: #45205d;
}

.connections-tile[aria-pressed="true"].is-selection-clue-2 {
  border-color: #bd6206;
  background: #f8c77f;
  color: #5e2f00;
}

.connections-check {
  min-width: 230px;
  display: block;
  margin: 0 auto;
}

.puzzle-panel-jigsaw {
  width: min(100%, 920px);
}

.jigsaw-wrap {
  width: 100%;
  min-height: 420px;
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid #c9b99d;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.58), transparent 18rem),
    #e8dfce;
  box-shadow: 0 10px 24px rgba(34, 70, 53, 0.16);
}

#jigsaw-canvas {
  width: 100%;
  height: 650px;
  display: block;
  outline: none;
  cursor: grab;
  touch-action: none;
}

#jigsaw-canvas.dragging {
  cursor: grabbing;
}

.puzzle-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.daily-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 53, 43, 0.58);
}

.daily-modal {
  width: min(100%, 470px);
  padding: 28px;
  border: 1px solid var(--maple-border);
  border-radius: 22px;
  background: var(--maple-paper);
  box-shadow: 0 24px 60px rgba(20, 49, 39, 0.26);
  text-align: center;
}

.daily-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.daily-modal h2 {
  margin: 0;
  color: var(--maple-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.daily-modal p {
  margin: 10px 0 20px;
  color: var(--maple-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.daily-modal .daily-button {
  width: 100%;
  min-height: 46px;
}

.daily-modal-actions {
  width: min(100%, 330px);
  display: grid;
  gap: 9px;
  margin: 0 auto;
}

.daily-modal-summary {
  margin-top: -8px !important;
  color: var(--maple-green-dark) !important;
}

.is-shaking {
  animation: maple-shake 0.28s ease;
}

@keyframes maple-shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 760px) {
  body {
    padding: 0;
  }

  .daily-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .daily-header {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px;
  }

  .daily-brand {
    gap: 12px;
  }

  .daily-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .daily-title {
    font-size: clamp(23px, 8vw, 31px);
  }

  .daily-subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  .daily-counters {
    justify-content: flex-start;
  }

  .daily-counter {
    min-width: 82px;
    min-height: 34px;
    padding: 5px 11px;
  }

  .daily-content {
    padding: 12px;
  }

  .daily-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .daily-tab {
    min-height: 40px;
  }

  .daily-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .daily-difficulty-wrap {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }




  .daily-select {
    width: 100%;
    min-width: 0;
  }

  .daily-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .daily-button {
    min-height: 42px;
    padding: 0 12px;
  }

  .daily-play-surface {
    min-height: 520px;
    padding: 8px;
  }

  .word-tile {
    width: 45px;
    height: 45px;
    font-size: 21px;
  }

  .word-row.word-length-4 {
    grid-template-columns: repeat(4, 45px) !important;
  }

  .word-row.word-length-5 {
    grid-template-columns: repeat(5, 45px) !important;
  }

  .word-row.word-length-6 {
    grid-template-columns: repeat(6, 45px) !important;
  }

  .word-key {
    min-width: 27px;
    min-height: 42px;
    padding: 0 5px;
  }

  .word-key.is-wide {
    min-width: 52px;
  }

  .connections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .connections-tile {
    min-height: 62px;
    font-size: 13px;
  }

  .daily-tab-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .jigsaw-wrap {
    min-height: 580px;
  }

  #jigsaw-canvas {
    height: 760px;
  }
}

@media (max-width: 390px) {
  .daily-brand {
    align-items: flex-start;
  }

  .daily-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .daily-counter {
    min-width: 0;
  }

  .daily-play-surface {
    min-height: 500px;
  }

  .word-keyboard-row {
    gap: 3px;
  }

  .word-tile {
    width: 40px;
    height: 40px;
  }

  .word-row.word-length-4 {
    grid-template-columns: repeat(4, 40px) !important;
  }

  .word-row.word-length-5 {
    grid-template-columns: repeat(5, 40px) !important;
  }

  .word-row.word-length-6 {
    grid-template-columns: repeat(6, 40px) !important;
  }

  .word-key {
    min-width: 25px;
    padding: 0 4px;
  }

  .word-key.is-wide {
    min-width: 48px;
  }

  .connections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .connections-tile[aria-pressed="true"] {
    transform: none;
  }
}

/* Compact embed: the platform supplies its own navigation and page branding. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
  border: 0;
}
html, body { background: #faf5eb; }
body { min-height: 0; padding: 10px; }
.puzzle-viewer { width: 100%; }
.daily-shell { width: 100%; max-width: 1240px; border-radius: 18px; box-shadow: 0 5px 22px rgba(42,73,57,.09); }
.daily-content { padding: 10px 14px 14px; }
.daily-toolbar {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 62px 8px 8px;
}
.daily-tabs { flex: 1 1 430px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; }
.daily-tab { min-width: 0; min-height: 46px; padding: 6px 9px; gap: 6px; line-height: 1.15; }
.daily-tab span { overflow-wrap: anywhere; }
.daily-tab-icon { width: 28px; height: 28px; flex-basis: 28px; }
.daily-actions { display: flex; flex: 0 0 auto; gap: 6px; margin-left: auto; }
.daily-toolbar .daily-button { min-height: 44px; padding: 0 12px; }
.daily-difficulty-wrap { width: auto; flex-direction: row; flex: 0 0 auto; }
.daily-select { width: auto; min-width: 128px; height: 44px; padding-left: 10px; font-size: 13px; }
.daily-toolbar .daily-fullscreen {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--maple-paper); color: var(--maple-green); border: 1px solid var(--maple-border);
}
.daily-fullscreen:hover { background: #e2ecdf; }
.daily-counters { display: flex; justify-content: flex-end; gap: 14px; margin: 6px 4px; }
.daily-counter { display: flex; min-width: 0; min-height: 20px; gap: 5px; padding: 0; border: 0; background: transparent; }
.daily-counter-label { font-size: 12px; }
.daily-counter-value { font-size: 13px; }
.daily-play-surface { min-height: 0; margin-top: 0; padding: 10px 14px; border-radius: 16px; }
.puzzle-heading { font-size: clamp(23px,2.4vw,29px); margin: 0; }
.puzzle-intro { margin-top: 4px; }
.puzzle-clue-row { min-height: 40px; margin: 7px auto; gap: 7px; }
.puzzle-instruction { margin-top: 7px; font-size: 12px; }
.word-board, .word-row { gap: 5px; }
.word-row.word-length-4 { grid-template-columns: repeat(4,46px) !important; }
.word-tile { width: 46px; height: 46px; font-size: 23px; }
.word-legend { gap: 10px; margin: 8px 0; }
.word-key { min-height: 42px; }
.connections-groups { margin: 8px 0; gap: 6px; }
.connections-groups:empty { margin: 0; }
.connections-grid { margin: 10px 0; }
.jigsaw-wrap { min-height: 0; margin-top: 10px; }
.daily-modal-layer { overflow-y: auto; }
.puzzle-viewer:fullscreen, .puzzle-viewer.is-expanded {
  width: 100%; height: 100%; min-height: 100%; overflow: auto;
  background: #faf5eb; padding: 10px; overscroll-behavior: contain;
}
.puzzle-viewer.is-expanded { position: fixed; inset: 0; z-index: 10000; height: 100dvh; }
.puzzle-viewer::backdrop { background: #faf5eb; }
.puzzle-viewer:fullscreen .daily-shell, .puzzle-viewer.is-expanded .daily-shell { max-width: 1440px; }
@media (max-width: 760px) {
  body { padding: 0; }
  .daily-shell { border-radius: 0; border-left: 0; border-right: 0; }
  .daily-content { padding: 8px; }
  .daily-tabs { flex-basis: 100%; }
  .daily-tab { flex-direction: column; min-height: 66px; font-size: 12px; padding: 5px 3px; gap: 4px; position: relative; }
  .daily-tab.is-complete::after { position: absolute; right: 2px; top: 2px; font-size: 22px; }
  .daily-toolbar { padding-right: 58px; }
  .daily-toolbar .daily-fullscreen { right: 7px; }
  .daily-actions { margin-left: 0; flex-wrap: wrap; }
  .daily-toolbar .daily-button { font-size: 12px; padding: 0 10px; }
  .daily-toolbar .daily-fullscreen { padding: 0; }
  .daily-select { min-width: 124px; }
  .daily-play-surface { padding: 10px 6px; }
  .daily-counters { margin: 5px 3px; }
  .connections-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .connections-tile { overflow-wrap: anywhere; }
  .word-clue, .groups-clue-note { border-radius: 12px; font-size: 13px; }
  .word-legend { gap: 6px 10px; font-size: 11px; }
  .puzzle-viewer:fullscreen, .puzzle-viewer.is-expanded { padding: 0; }
}
@media (max-width: 360px) {
  .daily-content { padding: 5px; }
  .daily-toolbar { padding-left: 5px; }
  .daily-tab { font-size: 11px; }
  .word-key { min-width: 24px; padding: 0 3px; }
  .word-key.is-wide { min-width: 45px; }
}

/* Puzzle navigation is a separate, compact icon group. */
.daily-toolbar { gap: 16px; }
.daily-tabs {
  display: flex; flex: 0 0 auto; gap: 7px; margin: 0;
  padding: 5px; border: 1px solid #c9d5c2; border-radius: 14px; background: #fffdf7;
}


.daily-tab {
  position: relative; display: grid; place-items: center; flex: 0 0 46px;
  width: 46px; height: 46px; min-height: 46px; padding: 6px;
}
.daily-tab-icon { width: 32px; height: 32px; }
.daily-tab.is-complete::after {
  position: absolute; right: -5px; top: -7px; margin: 0; font-size: 23px;
}
.daily-puzzle-options {
  display: flex; flex: 1 1 250px; flex-wrap: wrap; align-items: center; gap: 8px;
  border-left: 1px solid #bdcbb6; padding-left: 16px; min-height: 46px;
}
.daily-puzzle-options .daily-actions { margin-left: 0; }
@media (max-width: 760px) {
  .daily-toolbar { gap: 9px; }
  .daily-tabs { flex-basis: auto; }
  .daily-puzzle-options {
    flex-basis: 100%; border-left: 0; border-top: 1px solid #bdcbb6;
    padding: 9px 0 0; min-height: 0;
  }
  .daily-tab { min-height: 46px; }
}

/* Streamlined controls: icon navigation left, all actions grouped right. */
.daily-toolbar {
  display: grid; grid-template-columns: auto minmax(0,1fr) 44px;
  gap: 12px; padding: 8px; align-items: center;
}
.daily-puzzle-options { justify-content: flex-end; min-width: 0; }
.daily-puzzle-options .daily-actions { justify-content: flex-end; flex-wrap: wrap; }
.daily-toolbar .daily-fullscreen { position: static; justify-self: end; }
.daily-play-surface { margin-top: 8px; }
.word-board { margin-top: 12px; }
.word-clue, .groups-clue-note { margin: 8px auto; }
@media (max-width: 760px) {
  .daily-tabs { grid-column: 1; grid-row: 1; }
  .daily-toolbar .daily-fullscreen { grid-column: 3; grid-row: 1; }
  .daily-puzzle-options {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-end;
    border-left: 0; border-top: 1px solid #bdcbb6; padding: 8px 0 0;
  }
}