.lighthouse-page,.games-library{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.game-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:8px;font-size:14px;font-weight:650;text-decoration:none}
.game-back:hover{text-decoration:underline;text-underline-offset:4px}
.lighthouse-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}
.lighthouse-heading h1,.games-library h1{font-size:clamp(28px,3.5vw,40px);letter-spacing:-.04em;font-weight:750;line-height:1.16}
.lighthouse-heading .eyebrow{font-size:12px;letter-spacing:1.5px}
.course-progress-count{font-size:14px;line-height:1.5;white-space:nowrap;padding:8px 13px;background:#e0e7e7;border-radius:8px;font-variant-numeric:tabular-nums}
.course-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.course-toolbar label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:650;min-width:0}
.course-toolbar select{font:inherit;font-size:16px;color:var(--navy);background:#fffdf7;border:1px solid #adbfc1;border-radius:8px;min-height:45px;padding:9px 10px;max-width:100%;min-width:0}
.course-toolbar>span{font-size:14px;color:#465e64}
.course-toolbar select:focus-visible{outline:3px solid #ca721b;outline-offset:3px}
.lighthouse-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:26px;align-items:start}
.lighthouse-workspace>*{min-width:0}
.course-chart{background:#163543;color:#f1f6f2;border-radius:12px;padding:22px;box-shadow:0 8px 24px #16354312}
.chart-heading{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:2px;color:#bed6db;margin:1px 0 17px}
.chart-heading>span:last-child{letter-spacing:1px}
.course-map{display:grid;grid-template-columns:22px repeat(var(--map-size),minmax(0,1fr));gap:4px}
.course-map-row{display:contents}
.map-coordinate{display:grid;place-items:center;font-size:12px;color:#a7c3cb;min-height:21px;font-variant-numeric:tabular-nums}
.course-cell{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#224754;border:1px solid #a6c1c41f;border-radius:4px}
.course-cell.is-rock{background:#556873;border:1px solid #77909c}
.course-cell.is-goal{border:2px solid #e5c575;background:#4c584b}
.course-cell.is-trail{background:#286566;border-color:#4b8f8c}
.course-cell.is-trail.is-goal{border-color:#e5c575}
.map-rock{font-size:clamp(22px,4vw,32px);font-weight:300;line-height:1;color:#d4e0e3}
.map-lighthouse{display:grid;place-items:center;background:#e5c575;color:#203d44;border-radius:4px;width:60%;height:60%;font-size:clamp(16px,3vw,24px);font-weight:800;line-height:1}
.map-buoy{display:grid;place-items:center;border:2px solid #c7ddeb;border-radius:50%;width:55%;height:55%;font-size:15px;color:#e3eff4;line-height:1;font-weight:700}
.map-buoy.visited{background:#447d72;border-color:#b8e0cb;color:#ecfff3}
.map-ship{position:absolute;display:grid;place-items:center;z-index:2;border:1px solid #bce3d6;background:#d8f0e6;color:#134f52;border-radius:50%;width:69%;height:69%;font-size:clamp(20px,3.5vw,29px);line-height:1;transform:rotate(var(--heading))}
.map-start{position:absolute;top:2px;left:4px;font-size:12px;color:#c3d9dc;line-height:1.3}
.course-cell.is-hit{background:#854d43;border:2px solid #ffc29f}
.course-legend{display:flex;flex-wrap:wrap;gap:10px 18px;padding:19px 0 17px 22px;color:#d7e5e7}
.course-legend>span{display:flex;align-items:center;gap:7px;font-size:14px}
.course-legend b{display:inline-grid;place-items:center;font-size:17px;min-width:17px;font-weight:600;line-height:1}
.course-legend .legend-goal{color:#e5c575;font-size:15px}
.course-legend .legend-ship{color:#c3ecd9;font-size:15px}
.course-legend .legend-rock{font-size:23px;color:#c0d0d5}
.course-chart-footer{border-top:1px solid #dae7e524;display:flex;justify-content:space-between;gap:12px;padding-top:14px;color:#bcd2d6;font-size:14px;flex-wrap:wrap}
.course-chart-footer strong{color:#eff8f1;font-weight:650}
.course-plan{border:1px solid #ccd6d2;background:#fdfdf8;border-radius:12px;padding:24px}
.course-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.course-plan-heading h2{font-size:22px;letter-spacing:-.5px;margin:0}
.course-plan-heading>span{font-size:14px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.course-instruction{font-size:14px;color:#4c646b;line-height:1.55;margin-bottom:18px}
.course-directions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:17px}
.course-directions button{display:grid;place-items:center;gap:4px;padding:9px 3px;border:1px solid #9fbdba;border-radius:8px;background:#e5efeb;color:#194d55;min-height:66px}
.course-directions button:hover{background:#d5e5df}
.course-directions button>span{font-size:28px;line-height:1}
.course-directions small{font-size:12px;font-weight:600}
.course-directions button:disabled{opacity:.4}
.course-sequence{min-height:102px;border:1px dashed #a0b7b6;background:#f0f3ef;border-radius:8px;padding:10px}
.course-sequence>p{color:#5b7378;font-size:14px;margin:16px 8px;line-height:1.5}
.course-sequence>ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:0;margin:0;list-style:none}
.course-sequence li{min-width:0}
.course-sequence button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;min-width:0;min-height:51px;border:1px solid #b4c6c1;background:#fffef8;color:#234953;padding:2px;border-radius:6px;font-variant-numeric:tabular-nums}
.course-sequence button small{font-size:11px;line-height:1.2;color:#496a70}
.course-sequence button>span{font-size:25px;line-height:1}
.course-sequence button.played-step{background:#deebe2}
.course-sequence button.current-step{outline:2px solid #267f7a;outline-offset:0;background:#c2e0d2}
.course-sequence button:disabled{cursor:default}
.course-sequence:focus-visible{outline:3px solid #ca721b;outline-offset:3px}
.course-edit-tools{display:flex;align-items:center;flex-wrap:wrap;gap:0 7px;margin:3px 0 13px}
.course-edit-tools .text-button{font-size:14px;padding-left:0;padding-right:8px}
.course-edit-tools>span{font-size:12px;color:#567077}
.course-plan .text-button:disabled{opacity:.4;text-decoration:none}
.course-run-tools{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}
.course-run-tools .button{font-size:14px;gap:6px;padding:12px 10px;border-radius:8px}
.course-run-tools>.text-button{grid-column:1/-1;justify-self:center;margin-top:-3px}
.course-run-tools .button:disabled{opacity:.4}
.course-result{background:#e9efea;border-left:3px solid #86a99e;padding:12px 14px;margin-top:8px;border-radius:0 6px 6px 0}
.course-result>p{font-size:14px;line-height:1.55;margin:0}
.course-result.success{background:#dceee1;border-color:#368665}
.course-result.retry{background:#f5eade;border-color:#b9814b}
.course-result>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:15px}
.course-result .button{font-size:14px;text-decoration:none;padding:10px 14px;border-radius:8px}
.course-result>div>span{font-size:13px}
.course-result:focus{outline:0}
.course-hint{margin-top:13px}
.course-hint summary{font-size:14px}
.course-hint p{font-size:14px;color:#4c646b;line-height:1.6}
.course-footer{display:flex;justify-content:space-between;gap:24px;margin-top:20px}
.course-footer p{font-size:13px;color:#4b6269;line-height:1.6;max-width:490px}
.games-library .heading{margin-bottom:22px}
.games-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.game-choice{padding:28px;border:1px solid #c4d1cd;border-radius:12px;text-decoration:none;display:flex;flex-direction:column;background:#fffdf7}
.game-choice.course-choice{background:#163543;color:#f4f8f4;border-color:#163543}
.game-choice h2{font-size:29px;line-height:1.2;margin:21px 0 13px;letter-spacing:-.8px}
.game-choice-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;letter-spacing:1px;font-weight:650;text-transform:uppercase}
.game-choice-top>b{font-size:12px;letter-spacing:0;text-transform:none;background:#d6eae0;color:#184a4c;border-radius:5px;padding:5px 8px;font-weight:600}
.course-choice .game-choice-top{color:#bad6dc}
.game-choice>p{font-size:16px;color:#4f686e;line-height:1.6;max-width:340px}
.course-choice>p{color:#c6dde0}
.game-choice-progress{font-size:14px;margin-top:6px;margin-bottom:25px;color:#385c64}
.course-choice .game-choice-progress{color:#cae5d9}
.game-choice-action{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #1c465222;padding-top:17px;margin-top:auto;font-size:16px;font-weight:650}
.course-choice .game-choice-action{border-color:#c0d5d332}
.game-choice-action span:last-child{font-size:24px}
.game-choice:hover .game-choice-action{text-decoration:underline;text-underline-offset:5px}
.games-library .sudoku-local-note{margin:23px 0 0}
.lighthouse-board-link{background:#163543;color:#f3f7f3;border-color:#163543}
.lighthouse-board-link .eyebrow{color:#bcd9d7}
.lighthouse-board-link>b{background:#e6c879;color:#163543}
@media(max-width:700px){
  .lighthouse-heading{align-items:flex-start;gap:12px;margin-bottom:16px}
  .lighthouse-heading h1{font-size:30px}
  .lighthouse-heading .eyebrow{font-size:12px;letter-spacing:.8px}
  .course-progress-count{padding:6px 8px;font-size:12px}
  .course-toolbar{gap:9px;margin-bottom:16px}
  .course-toolbar label{width:100%;font-size:14px}
  .course-toolbar select{flex:1;font-size:15px;width:0}
  .course-toolbar>span{font-size:14px}
  .lighthouse-workspace{grid-template-columns:minmax(0,1fr);gap:17px}
  .course-chart{padding:17px 14px}
  .chart-heading{margin-bottom:10px}
  .course-map{grid-template-columns:18px repeat(var(--map-size),minmax(0,1fr));gap:3px}
  .course-legend{padding:14px 0 13px 18px;gap:8px 15px}
  .course-legend>span{font-size:14px}
  .course-chart-footer{font-size:13px;padding-top:12px}
  .map-ship{font-size:clamp(16px,5vw,24px)}
  .map-buoy{font-size:12px}
  .map-start{font-size:10px;left:3px;top:1px}
  .course-plan{padding:20px 17px}
  .course-plan-heading h2{font-size:21px}
  .course-directions{gap:8px}
  .course-sequence>ol{gap:5px}
  .course-footer{display:block;margin-top:18px}
  .games-list{grid-template-columns:minmax(0,1fr);gap:18px}
  .game-choice{padding:24px}
  .game-choice h2{font-size:27px;margin-top:17px}
  .game-choice-progress{margin-bottom:18px}
}
