.glo-game { width: min(100%, 540px); }
.glo-settings { display: grid; grid-template-columns: 180px minmax(160px, 1fr); gap: 20px; align-items: center; margin-bottom: 28px; }
.glo-difficulty-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.glo-difficulty-heading output { color: var(--green); font: 12px var(--mono); }
.glo-settings input, .glo-picker-content input[type='range'] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--green); cursor: pointer; }
.glo-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 14px; margin-bottom: 12px; color: var(--muted); font: 12px/1.7 var(--mono); }
.glo-count { white-space: nowrap; }
.glo-picker { position: relative; z-index: 16; }
.glo-picker > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--green); cursor: pointer; list-style: none; }
.glo-picker > summary::-webkit-details-marker { display: none; }
.glo-picker > summary::marker { content: ''; }
.glo-picker > summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.glo-picker[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.glo-picker-content { position: absolute; top: calc(100% + 8px); left: 0; width: 280px; max-width: calc(100vw - 32px); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 5px 20px #282e2914; font: 13px/1.7 var(--sans); }
.glo-number-entry { display: flex; gap: 10px; margin: 8px 0; }
.glo-number-entry input { flex: 1; width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.glo-book-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.glo-book-footer p { margin: 0; color: var(--muted); font: 12px/1.7 var(--mono); }
.glo-navigation { display: flex; gap: 6px; }
.glo-previous-icon { transform: rotate(180deg); }
.glo-status { min-height: 1.7em; margin: 0 0 12px; color: var(--green); font: 14px/1.7 var(--sans); }
.glo-actions { margin-top: 0; margin-bottom: 16px; }
.glo-actions .panel-help { position: static; }
.glo-actions .panel-help-content { left: 0; right: auto; width: min(320px, 100%); }
.glo-preference { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.glo-preference input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.glo-math-link { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0; color: var(--green) !important; font-size: 12px; }
.glo-math-link .icon { width: 16px; height: 16px; }
.glo-board-wrap { width: min(100%, 442px); margin: 0 auto; border-radius: 18px; background: color-mix(in srgb, var(--tint) 35%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 18%, var(--line)), inset 0 2px 5px #285b4610, 0 6px 18px #285b4608; }
.glo-board { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.glo-board > img { display: block; width: 100%; height: auto; }
.glo-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glo-edges path { stroke: #b6bfae; stroke-width: 1.3; vector-effect: non-scaling-stroke; fill: none; stroke-linecap: round; transition: stroke 150ms ease; }
.glo-edges path.is-preview { stroke: var(--green); stroke-width: 1.8; }
.puzzle-page .glo-light { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; transform: translate(-50%, -50%); background: transparent; border: 0; border-radius: 50%; color: var(--ink); opacity: 1; touch-action: manipulation; }
.glo-light-core { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #b6bfae; border-radius: 50%; background: var(--paper); color: var(--muted); font: 12px/1 var(--mono); transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.glo-light.is-on .glo-light-core { background: #e9bd63; border-color: #d8af60; color: #403116; box-shadow: 0 0 0 5px #e9bd631c; }
.glo-light.is-preview .glo-light-core { box-shadow: 0 0 0 5px #285b4620; border-color: var(--green); }
.glo-light.is-hint::after { position: absolute; inset: -2px; border: 1.5px dashed var(--green); border-radius: inherit; content: ''; pointer-events: none; }
.glo-hint-label { display: none; position: absolute; top: calc(100% + 2px); padding: 0 4px; background: var(--paper); color: var(--green); font-size: 11px; }
.glo-light.is-hint .glo-hint-label { display: block; }
.glo-game[data-numbers='false'] .glo-light-number { visibility: hidden; }
.glo-under-board { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: var(--muted); font: 12px/1.7 var(--mono); }
.glo-preview { min-height: 1.7em; margin: 6px 0 0; color: var(--muted); font: 12px/1.7 var(--mono); }
.glo-completed { margin: 8px 0 0; color: var(--muted); font: 12px/1.7 var(--mono); }
.glo-game[data-solved='true'] .glo-board-wrap { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, var(--line)), 0 6px 18px #285b4608; }
.glo-caption { margin-top: 16px; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) {
  .glo-settings { grid-template-columns: 1fr; gap: 0; margin-bottom: 20px; }
}
@media (max-width: 380px) {
  .glo-light-core { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .glo-light-core, .glo-edges path { transition: none; } }
@media (forced-colors: active) {
  .glo-board-wrap { border: 1px solid CanvasText; }
  .glo-light.is-on .glo-light-core { background: Highlight; color: HighlightText; border-color: Highlight; }
  .glo-light-core { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .glo-edges path { stroke: CanvasText; }
  .glo-light.is-preview .glo-light-core, .glo-light.is-hint::after { border-color: Highlight; }
}
