@font-face {
  font-family: Fraunces;
  src: url("assets/display.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("assets/body.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #173f50;
  --muted: #627e85;
  --paper: #f2f7f4;
  --panel: #fffdf6;
  --sea: #bedde0;
  --grass: #718a50;
  --sun: #f5ca72;
  --red: #bf6551;
  --line: #d9e5df;
  --region-line: #70857c;
  --r0: #d4e2be;
  --r1: #f3deb0;
  --r2: #c4dfe5;
  --r3: #e8c9bc;
  --r4: #d4cfe6;
  --r5: #d2e6d9;
  --r6: #f1e8c8;
  --r7: #b6d5d2;
  --r8: #dbcab5;
  --r9: #d5dceb;
  color-scheme: light;
  font-family: Nunito, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:not(:disabled),
a {
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #b05e42;
  outline-offset: 4px;
}
button:hover:not(:disabled) {
  filter: brightness(0.98);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}
p {
  line-height: 1.65;
}
svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--panel);
  padding: 16px;
}
.skip:focus {
  top: 12px;
}
.header {
  max-width: 1320px;
  margin: auto;
  height: 108px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: 26px;
  letter-spacing: -0.045em;
}
.brand-symbol {
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--sun);
  border-radius: 14px 14px 20px 20px;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.brand-symbol .icon {
  width: 29px;
  height: 29px;
  transform: rotate(5deg);
}
.brand small {
  display: block;
  font:
    700 8px Nunito,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.2em;
  margin-top: 3px;
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.stat {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 15px;
}
.stat .icon {
  color: #b58034;
}
.shells {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 14px;
  border-radius: 30px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}
main {
  max-width: 1232px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 542px;
  position: relative;
}
.hero-copy {
  padding: 60px 0 44px 12px;
  z-index: 1;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.flag {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 16px;
  background:
    linear-gradient(
      90deg,
      transparent 6px,
      #2e536e 6px,
      #2e536e 12px,
      transparent 12px
    ),
    linear-gradient(
      transparent 5px,
      #2e536e 5px,
      #2e536e 11px,
      transparent 11px
    ),
    #fff;
}
.flag:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 8px,
      #b96456 8px,
      #b96456 10px,
      transparent 10px
    ),
    linear-gradient(transparent 7px, #b96456 7px, #b96456 9px, transparent 9px);
}
.hero h1 {
  font-size: clamp(42px, 4.6vw, 67px);
  line-height: 1.06;
  margin: 23px 0 20px;
  letter-spacing: -0.058em;
}
.hero h1 em {
  font-weight: 500;
  color: var(--grass);
  font-style: normal;
  position: relative;
}
.hero h1 em:after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -5px;
  height: 4px;
  background: var(--sun);
  border-radius: 50%;
  transform: rotate(-3deg);
}
.hero-copy > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 26px;
}
.primary {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fffdf0;
  font-weight: 750;
  border-radius: 12px;
  padding: 14px 23px;
  min-height: 48px;
  box-shadow: 0 4px 0 #0d2e3c;
  font-size: 14px;
}
.primary:hover {
  background: #255b6c;
  transform: translateY(-2px);
}
.primary.large {
  min-height: 55px;
  font-size: 15px;
  padding: 16px 25px;
}
.primary .icon {
  color: var(--sun);
}
.hero-caption {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 25px;
}
.journey-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
}
.mini-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e5ebd9;
}
.mini-avatar svg {
  width: 58px;
  height: 58px;
}
.journey-summary strong {
  display: block;
  font-size: 12px;
}
.journey-summary span {
  font-size: 10px;
  color: var(--muted);
}
.progress-track {
  height: 5px;
  background: #dce6df;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--grass);
  border-radius: 8px;
  min-width: 0;
}
.journey-summary .progress-track {
  width: 205px;
}
.map-scene {
  position: relative;
  margin: 22px -4px 16px -20px;
  border-radius: 48% 48% 36% 42%;
  background: radial-gradient(
    ellipse at 50% 50%,
    #c5e0df 5%,
    #d6e9e7 55%,
    #e6f0ec 72%,
    transparent 73%
  );
  min-height: 490px;
  isolation: isolate;
}
.map-scene:before,
.map-scene:after {
  content: "";
  position: absolute;
  border: 1px solid #90b6b82a;
  border-radius: 50%;
  inset: 55px 10px;
  transform: rotate(-18deg);
  z-index: -1;
}
.map-scene:after {
  inset: 88px -10px;
  transform: rotate(18deg);
}
.faroe-map {
  height: 440px;
  width: 100%;
  margin: 15px auto 0;
  overflow: visible;
}
.map-island {
  fill: #8c9d62;
  stroke: #e6e5b1;
  stroke-width: 0.65;
  stroke-linejoin: round;
}
.map-island.finished {
  fill: #b8b163;
}
.map-labels {
  font:
    9px Nunito,
    sans-serif;
  fill: #50737a;
  font-weight: 700;
}
.voyage-path {
  fill: none;
  stroke: #fdf8dc;
  stroke-width: 2;
  stroke-dasharray: 4 6;
  opacity: 0.9;
}
.compass {
  color: #5a8088;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.6;
}
.compass text {
  fill: currentColor;
  stroke: none;
  font:
    11px Nunito,
    sans-serif;
}
.map-caption {
  position: absolute;
  top: 22px;
  left: 25px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.19em;
  color: #739194;
}
.map-note {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: #fffdf5ee;
  box-shadow: 0 6px 22px #416a7612;
  backdrop-filter: blur(5px);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid #fff;
  border-radius: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}
.map-note > .icon:first-child {
  color: var(--grass);
}
.map-note small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.cloud {
  position: absolute;
  width: 105px;
  height: 21px;
  background: #fffdf6a8;
  border-radius: 100%;
  filter: blur(5px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.cloud:before {
  content: "";
  position: absolute;
  width: 60px;
  height: 26px;
  border-radius: 50%;
  background: inherit;
  left: 20px;
  top: -9px;
}
.cloud-one {
  top: 92px;
  right: 42px;
}
.cloud-two {
  top: 288px;
  left: 54px;
  animation-delay: -7s;
  opacity: 0.7;
}
.games-section {
  padding: 10px 0 35px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 30px;
  margin-top: 9px;
}
.text-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 750;
  min-height: 40px;
  padding: 5px 0;
}
.text-button .icon {
  width: 18px;
  height: 18px;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.game-card {
  background: var(--panel);
  border: 1px solid #dce5dc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 0 #c9d9ce33;
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--order) * 60ms);
}
.card-illustration {
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #c3e1e1;
}
.landscape {
  width: 100%;
  height: auto;
}
.card-illustration .landscape {
  transition: transform 0.5s;
}
.card-illustration:hover .landscape {
  transform: scale(1.04);
}
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 9px;
  font-weight: 800;
  background: #fffdf3df;
  border: 1px solid #fff8;
  padding: 5px 8px;
  border-radius: 12px;
}
.card-copy {
  padding: 19px 17px 16px;
}
.card-category {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-copy h3 {
  font-size: 23px;
  margin: 7px 0 8px;
  white-space: nowrap;
}
.card-copy p {
  font-size: 11px;
  line-height: 1.65;
  min-height: 55px;
  color: var(--muted);
}
.card-play {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 13px 0 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 12px;
}
.card-play .icon {
  width: 18px;
  height: 18px;
}
.daily-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #e4eddf;
  border: 1px solid #d1dfcf;
  border-radius: 18px;
  padding: 27px 32px;
  position: relative;
  overflow: hidden;
}
.daily-symbol {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f8d890;
  color: #6f7041;
}
.daily-symbol .icon {
  width: 32px;
  height: 32px;
}
.daily-strip h2 {
  font-size: 28px;
  margin: 4px 0;
}
.daily-strip p {
  font-size: 12px;
  color: var(--muted);
}
.daily-strip > .primary {
  margin-left: auto;
  white-space: nowrap;
}
.values-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  padding: 29px 4px;
}
.values-strip > span,
.values-strip > button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.values-strip .icon {
  width: 16px;
  height: 16px;
  color: var(--grass);
}
footer {
  max-width: 1232px;
  border-top: 1px solid var(--line);
  margin: 20px auto 0;
  padding: 25px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
footer > button {
  font-size: 10px;
}
.play-main {
  padding-bottom: 25px;
}
.play-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.level-picker {
  background: var(--panel);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
}
.level-picker span {
  font-weight: 500;
  color: var(--muted);
}
.level-picker .icon {
  width: 15px;
  height: 15px;
}
.play-heading {
  text-align: center;
  margin: 6px 0 26px;
}
.play-heading .eyebrow {
  justify-content: center;
}
.play-heading h1 {
  font-size: 43px;
  margin: 7px 0;
}
.play-heading p {
  font-size: 13px;
  color: var(--muted);
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 280px;
  gap: 32px;
  justify-content: center;
  align-items: start;
}
.board-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 0 #cadbd14a;
  border-radius: 23px;
  padding: 23px;
  min-width: 0;
}
.board-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
}
.difficulty {
  font-weight: 800;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: center;
}
.difficulty i {
  font-size: 9px;
  font-weight: 600;
  font-style: normal;
  background: #e9eee4;
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--muted);
}
.board-wrap {
  max-width: 530px;
  margin: auto;
}
.puzzle-grid {
  display: grid;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--region-line);
  width: 100%;
  background: #d1dad1;
  isolation: isolate;
}
.puzzle-grid.sums {
  border: 0;
  gap: 4px;
  background: none;
  border-radius: 0;
  overflow: visible;
}
.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  aspect-ratio: 1;
  background: var(--cell-bg, #edf1e7);
  border: 1px solid #ffffff70;
  border-radius: 0;
  min-width: 0;
  min-height: 0;
  color: #234552;
  font-family: Nunito, "Segoe UI", sans-serif;
  cursor: pointer;
  isolation: isolate;
  font-variant-numeric: tabular-nums;
}
.cell:hover:not(.fixed) {
  box-shadow: inset 0 0 0 3px #446b6d66;
  z-index: 2;
}
.cell:focus-visible {
  outline: 3px solid #173f50;
  outline-offset: -4px;
  z-index: 3;
}
.cell .animal {
  width: 84%;
  height: 84%;
  filter: drop-shadow(0 2px 1px #53634944);
  animation: pop 0.24s ease;
}
.cell .region-mark {
  font-size: 10px;
  opacity: 0.35;
  font-weight: 800;
  position: absolute;
  bottom: 6px;
  right: 8px;
}
.cell .cross {
  font-size: 36px;
  font-weight: 300;
  opacity: 0.6;
  line-height: 1;
}
.cell .cell-number {
  font-size: clamp(21px, 2.5vw, 33px);
  font-weight: 650;
  line-height: 1;
}
.puzzle-grid.sums .cell {
  border-radius: 9px;
  border: 1px solid #cedccf;
  box-shadow: 0 2px 0 #d5dfd1;
}
.puzzle-grid.sums .cell.chosen {
  background: #496d61 !important;
  color: #fff9e9;
  box-shadow: inset 0 0 0 2px #345448;
}
.cell.excluded .cell-number {
  opacity: 0.32;
}
.strike {
  position: absolute;
  height: 2px;
  width: 60%;
  background: #849a95;
  transform: rotate(-35deg);
}
.cell.fixed {
  cursor: default;
}
.cell.fixed .cell-number {
  font-weight: 900;
}
.fixed-dot {
  font-size: 15px;
  line-height: 1;
  position: absolute;
  bottom: 2px;
  right: 4px;
  color: currentColor;
  opacity: 0.6;
}
.cell.selected {
  box-shadow: inset 0 0 0 3px #244b61;
  z-index: 2;
}
.cell.conflict {
  background: #f1c5b9 !important;
  box-shadow: inset 0 0 0 2px #ba5845 !important;
  color: #80352b !important;
}
.cell.hinted {
  outline: 3px solid #cd9231;
  outline-offset: -4px;
  z-index: 4;
  animation: hint-pulse 1.5s ease-in-out 2;
}
.cage-label {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  color: #3c5e60;
  pointer-events: none;
}
.chosen .cage-label {
  color: #fcf5df;
}
.wool .cell-number {
  padding-top: 9px;
}
.sum-clue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: #e5ede4;
  border-radius: 9px;
  color: #3b6067;
  min-width: 0;
}
.sum-clue b {
  font-size: 18px;
}
.sum-clue small {
  font-size: 8px;
  margin-top: 5px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.sum-clue.met {
  background: #487365;
  color: #fff;
}
.sum-clue.over {
  background: #f1c5b9;
  color: #80352b;
}
.sums .sum-clue:nth-last-child(-n + 11) {
  min-height: 40px;
}
.sum-corner {
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--muted);
}
.dense .cell-number {
  font-size: 23px;
}
.dense .cage-label {
  font-size: 8px;
  top: 2px;
  left: 2px;
}
.sums .dense .cell-number {
  padding-top: 5px;
}
.mode-switch {
  display: flex;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: #e8eee6;
  padding: 4px;
  width: fit-content;
  margin: 22px auto 9px;
}
.mode-switch button {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 17px;
  border-radius: 9px;
  min-height: 40px;
}
.mode-switch .active {
  background: var(--panel);
  box-shadow: 0 2px 4px #36565118;
}
.mode-switch .icon {
  width: 17px;
  height: 17px;
}
.input-caption,
.board-caption {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0;
  line-height: 1.5;
}
.number-pad {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 22px 0 10px;
}
.number-pad button {
  flex: 1;
  max-width: 60px;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #e7ede3;
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 3px 0 #d0dcca;
}
.number-pad button:hover {
  background: #d7e4d1;
}
.notes-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px auto 0;
  font-size: 11px;
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 38px;
}
.notes-toggle.active {
  background: #e9ddb6;
}
.notes-toggle .icon {
  width: 16px;
  height: 16px;
}
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 80%;
  height: 75%;
  align-items: center;
  padding-top: 5px;
}
.notes i {
  font-size: 11px;
  font-style: normal;
  text-align: center;
  line-height: 1;
}
.board-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  min-height: 38px;
  padding: 0;
}
.tool .icon {
  width: 17px;
  height: 17px;
}
.autosave {
  font-size: 8px;
  color: var(--muted);
  margin-left: auto;
}
.play-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.companion-card {
  background: #e5eddf;
  border: 1px solid #d5e1cf;
  border-radius: 18px;
  padding: 18px;
  overflow: hidden;
}
.companion-art {
  margin: -18px -18px 15px;
  height: 142px;
  overflow: hidden;
}
.companion-art .landscape {
  margin-top: -25px;
}
.companion-card h2 {
  font-size: 25px;
  margin: 7px 0;
}
.companion-card p {
  font-size: 12px;
  color: var(--muted);
}
.island-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.island-dots button {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 11px;
  background: #f8f8ee;
  border: 1px solid #cad8c5;
  color: var(--muted);
}
.island-dots .done {
  background: #70884e;
  color: #fff;
}
.island-dots .active {
  background: var(--sun);
  color: var(--ink);
  border-color: #d6ae61;
}
.island-dots .icon {
  width: 15px;
  height: 15px;
}
.help-card {
  padding: 0 3px;
}
.help-card h3 {
  font-size: 20px;
  margin: 0 0 13px;
}
.help-tool {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}
.help-tool > .icon {
  color: #879d60;
  width: 20px;
  height: 20px;
}
.help-tool span {
  font-weight: 850;
}
.help-tool small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.help-tool b {
  font-size: 9px;
  margin-left: auto;
  display: flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
  font-weight: 750;
}
.help-tool b .icon {
  width: 13px;
  height: 13px;
  color: #a77a36;
}
.help-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 10px;
}
.hint-panel {
  border: 1px solid #e4ce93;
  border-radius: 12px;
  padding: 15px;
  background: #fff0c9;
  display: flex;
  gap: 10px;
  color: #66552e;
}
.hint-panel p {
  font-size: 12px;
}
.hint-panel[hidden] {
  display: none;
}
.bridge-board {
  width: 100%;
  background: #deece9;
  border: 1px solid #c8dcd7;
  border-radius: 14px;
}
.bridge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 28;
  cursor: pointer;
}
.bridge-guide {
  stroke: #9bb7af;
  stroke-width: 2;
  stroke-dasharray: 3 7;
  fill: none;
  pointer-events: none;
}
.bridge-line {
  stroke: #967346;
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 #d6c5a2);
}
.bridge-edge:focus-visible {
  outline: none;
}
.bridge-edge:focus-visible .bridge-hit,
.bridge-edge:hover:not(.fixed) .bridge-hit {
  stroke: #f3cb7255;
}
.bridge-edge.fixed .bridge-hit {
  cursor: default;
}
.bridge-edge.hinted .bridge-hit {
  stroke: #e8b74799;
}
.bridge-edge.conflict .bridge-line {
  stroke: #b25342;
}
.bridge-island {
  pointer-events: none;
}
.bridge-island circle {
  fill: #d1dcaa;
  stroke: #8c9f68;
  stroke-width: 2;
}
.bridge-island .island-base {
  fill: #829d84;
}
.bridge-island text {
  text-anchor: middle;
  fill: #294b4f;
  font:
    800 23px Nunito,
    sans-serif;
}
.bridge-island .island-count {
  font:
    10px Nunito,
    sans-serif;
  fill: #658087;
}
.bridge-island.met circle {
  fill: #829f61;
  stroke: #6c874b;
}
.bridge-island.met text:not(.island-count) {
  fill: #fff9df;
}
.fixed-edge-label {
  fill: #7f936f;
  font:
    16px Nunito,
    sans-serif;
  text-anchor: middle;
  pointer-events: none;
}
dialog {
  border: 1px solid #d9e3d7;
  border-radius: 24px;
  background: var(--panel);
  color: var(--ink);
  width: min(520px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 32px;
  box-shadow: 0 25px 100px #123b4d40;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #173f5070;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: rise 0.2s ease;
}
.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 33px;
  height: 33px;
  z-index: 2;
}
dialog h2 {
  font-size: 31px;
  margin: 0 33px 17px 0;
}
dialog h3 {
  font-size: 20px;
  margin: 22px 0 12px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.dialog-lead {
  font-size: 15px !important;
  font-weight: 750;
  color: var(--ink) !important;
}
.full {
  width: 100%;
  margin-top: 14px;
}
.centered {
  display: flex;
  justify-content: center;
  margin: 10px auto 0;
}
.rules-art {
  border-radius: 12px;
  overflow: hidden;
  max-height: 160px;
}
.rules-art .landscape {
  margin-top: -45px;
}
.rules-list {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  padding-left: 22px;
  margin: 20px 0;
}
.rules-list li {
  padding-left: 5px;
  margin-bottom: 12px;
}
.rules-list li::marker {
  color: var(--grass);
  font-weight: 900;
}
.example {
  border: 1px solid #dae1ce;
  padding: 13px 15px;
  border-radius: 12px;
  background: #eaf0df;
  font-size: 11px;
}
.example p {
  margin: 3px 0 0;
  font-size: 12px;
}
.keyboard-note {
  font-size: 10px !important;
  line-height: 1.65;
}
.levels-dialog {
  width: min(600px, calc(100% - 28px));
}
.level-list {
  display: grid;
  gap: 8px;
}
.level-list h3 {
  font-family: Nunito, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  margin: 15px 0 8px;
}
.level-list h3 > span {
  color: var(--muted);
  font-size: 10px;
  margin-right: 8px;
}
.level-list section > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.level-list section button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 61px;
  background: #edf1e7;
}
.level-list b {
  font-size: 17px;
}
.level-list button > span {
  font-size: 8px;
  color: var(--muted);
  height: 15px;
}
.level-list .icon {
  width: 12px;
  height: 12px;
}
.level-list .completed {
  background: #dfebcd;
  border-color: #bbcda9;
}
.level-list .completed > span {
  color: #a1782e;
  letter-spacing: 0.1em;
}
.level-list .current {
  box-shadow: inset 0 0 0 2px #607c5b;
}
.victory-dialog {
  text-align: center;
  padding: 35px;
}
.victory-dialog h2 {
  margin: 4px 0;
  font-size: 40px;
}
.victory-art {
  position: relative;
  width: 210px;
  margin: auto;
}
.victory-art > .animal {
  width: 150px;
  height: 150px;
  margin: auto;
  animation: celebrate 1s ease;
}
.celebration-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.celebration-stars .icon {
  width: 34px;
  height: 34px;
  fill: #dfe5d9;
  stroke: #ccd5c5;
}
.celebration-stars .earned .icon {
  fill: var(--sun);
  stroke: #c69845;
  animation: pop 0.6s ease both;
}
.celebration-stars span:nth-child(2) {
  transform: translateY(-9px);
}
.reward-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #eef0dc;
  border-radius: 10px;
  padding: 15px;
  font-size: 13px;
  font-weight: 850;
  margin-top: 20px;
  color: #7d6d3e;
}
.reward-line > span {
  font-size: 10px;
  font-weight: 500;
  margin-left: 5px;
}
.reward-line .icon {
  width: 18px;
  height: 18px;
}
.star-note {
  font-size: 10px !important;
}
.unlock-message {
  background: #e2eacd;
  border: 1px solid #c8d6ab;
  border-radius: 8px;
  padding: 10px;
  color: #4b6535 !important;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 13px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.setting-row input {
  accent-color: #55795b;
  width: 21px;
  height: 21px;
  cursor: pointer;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.theme-option {
  font-size: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  font-weight: 800;
}
.theme-option small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
.theme-option.active,
.mascot-options .active {
  box-shadow: inset 0 0 0 2px var(--grass);
}
.theme-preview {
  display: block;
  height: 39px;
  border-radius: 5px;
  margin-bottom: 8px;
  background: linear-gradient(160deg, #bfe2dd 60%, #85995b 61%);
}
.theme-preview.dusk {
  background: linear-gradient(160deg, #e5b6a4 60%, #65676a 61%);
}
.theme-preview.night {
  background: linear-gradient(160deg, #294656 60%, #4f7170 61%);
}
.mascot-options {
  display: flex;
  gap: 12px;
}
.mascot-options button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.mascot-options svg {
  width: 60px;
  height: 60px;
}
.mascot-options small {
  font-size: 9px;
  font-weight: 500;
  width: 100%;
  text-align: center;
}
.backup-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #cedbcd;
  border-radius: 10px;
  background: #e9efe3;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 750;
}
.secondary .icon {
  width: 17px;
  height: 17px;
}
.journey-list article {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.journey-list article > div {
  flex: 1;
}
.journey-list h3 {
  margin: 0;
  font-size: 17px;
}
.island-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 10px;
  background: #e3ebd8;
}
.journey-list article > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.journey-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.classroom-label {
  background: #e2eccf;
  padding: 7px 10px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 800;
}
.classroom-illustration {
  display: grid;
  place-items: center;
  height: 90px;
  background: #e5eddb;
  border-radius: 12px;
}
.classroom-illustration .icon {
  width: 48px;
  height: 48px;
  color: var(--grass);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #173f50;
  color: #fffdf2;
  padding: 13px 21px;
  border-radius: 12px;
  box-shadow: 0 6px 30px #12333b33;
  font-size: 12px;
  line-height: 1.5;
  z-index: 100;
  max-width: min(480px, calc(100% - 24px));
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 25px;
}
.loading h1 {
  font-size: 44px;
}
.loading-island {
  width: 70px;
  height: 28px;
  border-radius: 60% 40% 30% 30%;
  background: var(--grass);
  box-shadow:
    0 8px 0 #547c71,
    0 17px 0 #c2dce0;
  animation: drift 2s ease-in-out infinite alternate;
}
:root[data-theme="dusk"] {
  --paper: #f0e7df;
  --panel: #fff8eb;
  --line: #ddd8cc;
  --sea: #d4c9ba;
  --grass: #79805a;
  --muted: #7e7870;
}
:root[data-theme="dusk"] .map-scene {
  background: radial-gradient(ellipse, #dfc7b4 5%, #e9d6c7 55%, #f0e7df 73%);
}
:root[data-theme="night"] {
  --paper: #1d3541;
  --panel: #f2f2e5;
  --line: #d0dcd0;
  --muted: #6a807e;
}
:root[data-theme="night"] .header,
:root[data-theme="night"] .hero-copy,
:root[data-theme="night"] .section-heading,
:root[data-theme="night"] .play-navigation,
:root[data-theme="night"] .play-heading,
:root[data-theme="night"] footer,
:root[data-theme="night"] .values-strip {
  color: #e5ebdd;
}
:root[data-theme="night"] .hero-copy p,
:root[data-theme="night"] .hero-copy .eyebrow,
:root[data-theme="night"] .hero-caption,
:root[data-theme="night"] .play-heading p,
:root[data-theme="night"] .section-heading .eyebrow {
  color: #a7c1bf;
}
:root[data-theme="night"] .brand-symbol {
  background: #34515b;
}
:root[data-theme="night"] .shells,
:root[data-theme="night"] .icon-button,
:root[data-theme="night"] .level-picker {
  color: #173f50;
}
:root[data-theme="night"] .help-card {
  color: #e5ebdd;
}
:root[data-theme="night"] .help-tool small,
:root[data-theme="night"] .help-note {
  color: #adc0b8;
}
:root[data-theme="night"] .map-scene {
  background: radial-gradient(
    ellipse,
    #43626c 5%,
    #294b58 55%,
    transparent 73%
  );
}
:root[data-theme="night"] .map-labels {
  fill: #d1e3d7;
}
@keyframes drift {
  from {
    transform: translateX(-7px);
  }
  to {
    transform: translateX(10px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop {
  from {
    transform: scale(0.65);
  }
  to {
    transform: scale(1);
  }
}
@keyframes hint-pulse {
  50% {
    filter: brightness(1.12);
  }
}
@keyframes celebrate {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  35% {
    transform: translateY(-12px) rotate(-6deg);
  }
  65% {
    transform: translateY(-5px) rotate(6deg);
  }
}
@media (min-width: 1440px) {
  .hero {
    min-height: 565px;
  }
  .hero-copy {
    padding-top: 70px;
  }
  .map-scene {
    margin-top: 25px;
  }
  .faroe-map {
    height: 465px;
  }
}
@media (max-width: 1300px) {
  main,
  footer {
    margin-left: 35px;
    margin-right: 35px;
  }
  .header {
    padding: 0 35px;
  }
  .game-cards {
    gap: 12px;
  }
  .card-copy {
    padding: 16px 13px;
  }
  .card-copy h3 {
    font-size: 21px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero h1 {
    font-size: 58px;
  }
}
@media (max-width: 1050px) {
  main,
  footer {
    margin-left: 25px;
    margin-right: 25px;
  }
  .header {
    padding: 0 25px;
    height: 90px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-copy {
    padding-top: 50px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .map-scene {
    min-height: 465px;
  }
  .faroe-map {
    height: 415px;
  }
  .game-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-card:nth-child(n + 4) {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-column: span 1;
  }
  .game-card:nth-child(n + 4) {
    display: block;
  }
  .card-copy h3 {
    font-size: 24px;
  }
  .card-copy p {
    min-height: 37px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 590px) 245px;
    gap: 20px;
  }
  .board-panel {
    padding: 18px;
  }
  .companion-card {
    padding: 15px;
  }
  .companion-art {
    margin: -15px -15px 14px;
  }
  .companion-card h2 {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    min-height: 430px;
  }
  .hero-copy {
    padding: 34px 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .map-scene {
    min-height: 380px;
    margin-left: -20px;
    margin-right: -15px;
  }
  .faroe-map {
    height: 365px;
  }
  .map-labels {
    font-size: 10px;
  }
  .map-caption {
    font-size: 7px;
    left: 22px;
  }
  .map-note {
    bottom: 25px;
    left: 15px;
    padding: 10px;
    font-size: 10px;
    gap: 7px;
  }
  .map-note .icon {
    width: 17px;
  }
  .map-note small {
    font-size: 8px;
  }
  .hero-caption {
    font-size: 9px;
  }
  .journey-summary {
    gap: 8px;
  }
  .journey-summary strong {
    font-size: 10px;
  }
  .journey-summary span {
    font-size: 9px;
  }
  .journey-summary .progress-track {
    width: 165px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .game-cards {
    gap: 13px;
  }
  .daily-strip {
    padding: 22px;
  }
  .daily-strip h2 {
    font-size: 25px;
  }
  .daily-strip > .primary {
    font-size: 12px;
    gap: 10px;
    padding: 12px 16px;
  }
  .values-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 590px);
  }
  .play-aside {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
  }
  .companion-art {
    height: 105px;
  }
  .companion-art .landscape {
    margin-top: -70px;
  }
  .hint-panel {
    grid-column: 1/-1;
    order: -1;
  }
  .board-wrap {
    max-width: 510px;
  }
  .play-navigation {
    gap: 8px;
  }
  .play-navigation .text-button {
    font-size: 10px;
  }
  .play-heading {
    margin: 5px 0 20px;
  }
  .play-heading h1 {
    font-size: 37px;
  }
  .play-heading p {
    font-size: 12px;
  }
  .play-heading .eyebrow {
    font-size: 9px;
  }
  .cell .cell-number {
    font-size: 32px;
  }
  .dense .cell-number {
    font-size: 23px;
  }
  .sums .cell-number {
    font-size: 29px;
  }
  .sums .dense .cell-number {
    font-size: 21px;
  }
  .header-actions {
    gap: 11px;
  }
  .classroom-label {
    font-size: 8px;
  }
  .board-panel {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  main,
  footer {
    margin-left: 18px;
    margin-right: 18px;
  }
  .header {
    padding: 0 18px;
    height: 78px;
  }
  .brand {
    font-size: 23px;
    gap: 9px;
  }
  .brand-symbol {
    width: 36px;
    height: 39px;
    border-radius: 11px 11px 16px 16px;
  }
  .brand-symbol .icon {
    width: 25px;
    height: 25px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 0.14em;
  }
  .header-actions {
    gap: 10px;
  }
  .stat {
    font-size: 12px;
    gap: 4px;
  }
  .stat .icon {
    width: 18px;
    height: 18px;
  }
  .shells {
    padding: 7px 9px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
  }
  .icon-button .icon {
    width: 19px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-copy {
    padding: 31px 5px 0;
  }
  .hero h1 {
    font-size: 52px;
    margin: 19px 0 18px;
    line-height: 1.06;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .hero-copy > p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
  }
  .hero .primary {
    font-size: 14px;
    min-height: 50px;
    padding: 14px 21px;
  }
  .hero-caption {
    margin: 12px 0 18px;
    font-size: 10px;
  }
  .journey-summary {
    position: relative;
    z-index: 2;
  }
  .journey-summary .mini-avatar {
    width: 44px;
    height: 44px;
  }
  .journey-summary .mini-avatar svg {
    width: 44px;
    height: 44px;
  }
  .journey-summary .progress-track {
    width: 200px;
  }
  .journey-summary strong {
    font-size: 11px;
  }
  .map-scene {
    margin: -8px 0 0;
    height: 365px;
    min-height: 0;
    border-radius: 45%;
  }
  .faroe-map {
    height: 365px;
    margin: 0 auto;
    width: 91%;
  }
  .map-caption {
    top: 25px;
    left: 16px;
  }
  .map-note {
    left: 0;
    bottom: 10px;
    font-size: 11px;
    padding: 12px;
  }
  .map-note small {
    font-size: 9px;
  }
  .map-labels {
    font-size: 9px;
  }
  .games-section {
    padding: 27px 0;
  }
  .section-heading {
    align-items: start;
    margin-bottom: 20px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 27px;
    max-width: 230px;
    line-height: 1.15;
  }
  .section-heading > .text-button {
    font-size: 0;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    margin-top: 12px;
  }
  .section-heading > .text-button .icon:last-child {
    display: none;
  }
  .section-heading > .text-button .icon:first-child {
    width: 20px;
    height: 20px;
  }
  .game-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-badge {
    font-size: 8px;
    padding: 4px 7px;
    top: 9px;
    left: 9px;
  }
  .card-copy {
    padding: 14px 12px 12px;
  }
  .card-category {
    font-size: 7px;
    letter-spacing: 0.025em;
  }
  .card-copy h3 {
    font-size: 21px;
    margin: 6px 0;
  }
  .card-copy p {
    font-size: 10px;
    min-height: 49px;
    line-height: 1.6;
  }
  .card-play {
    font-size: 11px;
    padding-top: 12px;
    margin-top: 10px;
    min-height: 39px;
  }
  .game-card:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
  }
  .game-card:last-child .card-illustration {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #c3e1e1;
  }
  .game-card:last-child .landscape {
    height: 100%;
    width: auto;
    min-height: 160px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .game-card:last-child .card-copy p {
    min-height: auto;
  }
  .daily-strip {
    padding: 20px;
    gap: 13px;
    flex-wrap: wrap;
    border-radius: 16px;
  }
  .daily-symbol {
    width: 44px;
    height: 44px;
  }
  .daily-symbol .icon {
    width: 26px;
    height: 26px;
  }
  .daily-strip > div:nth-child(2) {
    flex: 1;
  }
  .daily-strip .eyebrow {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .daily-strip h2 {
    font-size: 25px;
    line-height: 1.2;
    margin: 6px 0;
  }
  .daily-strip p {
    font-size: 10px;
  }
  .daily-strip > .primary {
    width: 100%;
    margin-top: 4px;
  }
  .values-strip {
    font-size: 9px;
    gap: 15px;
    padding: 25px 0 10px;
  }
  .values-strip .icon {
    width: 14px;
    height: 14px;
  }
  footer {
    margin-top: 20px;
    font-size: 8px;
    padding: 21px 0;
    flex-wrap: wrap;
  }
  footer > span:last-child {
    width: 100%;
    text-align: center;
  }
  footer button {
    font-size: 9px;
  }
  .play-navigation {
    padding: 14px 0;
  }
  .play-navigation > .text-button span {
    display: none;
  }
  .play-navigation .text-button {
    font-size: 10px;
    gap: 4px;
  }
  .play-navigation .level-picker {
    font-size: 10px;
    padding: 8px 10px;
    gap: 4px;
  }
  .level-picker .icon {
    width: 12px;
  }
  .play-heading h1 {
    font-size: 33px;
  }
  .play-heading p {
    font-size: 11px;
    max-width: 290px;
    margin: auto;
  }
  .play-heading .eyebrow {
    font-size: 8px;
  }
  .board-panel {
    padding: 14px;
    border-radius: 17px;
    box-shadow: 0 5px 0 #cadbd14a;
  }
  .board-topline {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .difficulty {
    gap: 5px;
  }
  .difficulty i {
    font-size: 8px;
    padding: 3px 5px;
  }
  .play-layout {
    gap: 23px;
  }
  .cell .cell-number {
    font-size: 28px;
  }
  .sums .cell-number {
    font-size: 25px;
  }
  .dense .cell-number {
    font-size: 21px;
  }
  .sums .dense .cell-number {
    font-size: 19px;
  }
  .puzzle-grid.sums {
    gap: 3px;
  }
  .puzzle-grid.sums .cell {
    border-radius: 5px;
    box-shadow: 0 1px 0 #d5dfd1;
  }
  .sum-clue {
    border-radius: 5px;
  }
  .sum-clue b {
    font-size: 15px;
  }
  .sum-clue small {
    font-size: 7px;
    margin-top: 3px;
  }
  .sums .sum-clue:nth-last-child(-n + 11) {
    min-height: 30px;
  }
  .dense .cage-label {
    font-size: 7px;
    top: 2px;
    left: 2px;
  }
  .cage-label {
    font-size: 9px;
  }
  .dense .fixed-dot {
    font-size: 11px;
    bottom: 1px;
    right: 2px;
  }
  .cell .region-mark {
    font-size: 8px;
    bottom: 3px;
    right: 4px;
  }
  .cell .cross {
    font-size: 28px;
  }
  .mode-switch {
    margin-top: 17px;
  }
  .mode-switch button {
    font-size: 11px;
    min-height: 38px;
    padding: 8px 15px;
  }
  .input-caption,
  .board-caption {
    font-size: 9px;
    margin: 9px 0;
  }
  .board-bottom {
    gap: 12px;
    margin-top: 16px;
    padding-top: 10px;
  }
  .tool {
    font-size: 9px;
    gap: 5px;
  }
  .autosave {
    font-size: 7px;
  }
  .play-aside {
    display: flex;
    gap: 20px;
  }
  .companion-card {
    display: none;
  }
  .help-card {
    padding: 0 3px;
  }
  .help-card h3 {
    font-size: 22px;
  }
  .help-tool {
    font-size: 13px;
    padding: 14px 0;
    gap: 13px;
  }
  .help-tool small {
    font-size: 10px;
  }
  .help-tool b {
    font-size: 10px;
  }
  .help-tool > .icon {
    width: 23px;
    height: 23px;
  }
  .help-note {
    font-size: 10px;
  }
  .hint-panel {
    order: -1;
    position: relative;
  }
  .number-pad {
    gap: 4px;
    margin-top: 16px;
  }
  .number-pad button {
    font-size: 21px;
    height: 43px;
    border-radius: 7px;
  }
  .notes {
    width: 90%;
    height: 90%;
  }
  .notes i {
    font-size: 9px;
  }
  .notes-toggle {
    font-size: 10px;
  }
  .classroom-label {
    display: none;
  }
  .bridge-line {
    stroke-width: 5;
  }
  .bridge-hit {
    stroke-width: 36;
  }
  dialog {
    padding: 25px 21px;
    border-radius: 20px;
    max-height: 92dvh;
  }
  dialog h2 {
    font-size: 28px;
  }
  .dialog-close {
    top: 12px;
    right: 12px;
    width: 31px;
    height: 31px;
  }
  .rules-art {
    max-height: 130px;
  }
  .rules-art .landscape {
    margin-top: -30px;
  }
  .backup-actions {
    flex-wrap: wrap;
  }
  .backup-actions .secondary {
    flex: 1;
    white-space: nowrap;
    font-size: 10px;
  }
  .level-list section > div {
    gap: 5px;
  }
  .level-list section button {
    min-height: 57px;
  }
  .victory-dialog {
    padding: 29px 22px;
  }
  .victory-dialog h2 {
    font-size: 35px;
  }
  .stat > svg {
    width: 16px !important;
  }
  .theme-options {
    gap: 6px;
  }
  .theme-option {
    padding: 7px;
    font-size: 11px;
  }
  .theme-option small {
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  main,
  footer {
    margin-left: 12px;
    margin-right: 12px;
  }
  .header {
    padding: 0 12px;
  }
  .header-actions {
    gap: 7px;
  }
  .brand {
    font-size: 21px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .card-copy h3 {
    font-size: 19px;
  }
  .card-category {
    font-size: 6.5px;
  }
  .board-panel {
    padding: 10px;
  }
  .sums .dense .cell-number {
    font-size: 17px;
  }
  .sums .dense .cage-label {
    font-size: 6px;
  }
  .dense .notes i {
    font-size: 8px;
  }
  .number-pad button {
    font-size: 18px;
  }
  .board-bottom {
    gap: 10px;
  }
  .autosave {
    width: 100%;
    text-align: right;
  }
  .play-navigation .level-picker {
    font-size: 9px;
  }
  .play-navigation .text-button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion="off"] *,
:root[data-motion="off"] *:before,
:root[data-motion="off"] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.map-scene {
  overflow: clip;
  border-radius: 0;
}
.zoom-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -5px 0 12px;
  font-size: 9px;
  color: var(--muted);
}
.zoom-button {
  font-size: 10px;
  font-weight: 800;
  background: #e5ecdf;
  border: 1px solid #cedac7;
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 38px;
  white-space: nowrap;
}
.board-wrap.zoomed {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 9px;
  scrollbar-color: #97b09a #e4ebe2;
  scrollbar-width: thin;
}
.board-wrap.zoomed .puzzle-grid,
.board-wrap.zoomed .bridge-board {
  min-width: 530px;
}
.board-wrap.zoomed .sum-clue {
  position: sticky;
  right: 0;
  z-index: 5;
  box-shadow: -3px 0 5px #314b4d15;
}
.board-wrap.zoomed .cell-number {
  font-size: 26px;
}
.board-wrap.zoomed .cage-label {
  font-size: 10px;
  top: 3px;
  left: 3px;
}
.board-wrap.zoomed.sums .cell-number {
  padding-top: 10px;
}
.board-wrap.zoomed .cell {
  min-height: 44px;
}
.board-wrap.zoomed .sum-corner {
  position: sticky;
  right: 0;
  background: var(--panel);
  z-index: 6;
}
.board-wrap.zoomed .notes i {
  font-size: 12px;
}
.board-wrap.zoomed .board-caption {
  position: sticky;
  left: 0;
}
.puzzle-grid.sums .cell:has(.cage-label) .cell-number {
  padding-top: 8px;
}
.puzzle-grid.sums .cell:has(.cage-label) {
  align-items: center;
}
.zoomed .puzzle-grid.sums .cell:has(.cage-label) .cell-number {
  padding-top: 12px;
}
@media print {
  .header-actions,
  .play-navigation,
  .help-card,
  .board-bottom,
  .number-pad,
  .mode-switch,
  .notes-toggle,
  footer,
  dialog,
  .skip,
  #toast {
    display: none !important;
  }
  .header {
    height: 70px;
  }
  .play-layout {
    display: block;
  }
  .play-aside {
    display: none;
  }
  .board-panel {
    max-width: 650px;
    margin: auto;
    box-shadow: none;
  }
  .cell {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body {
    background: white;
  }
}

.portal-breadcrumb { width:min(1180px,calc(100% - 32px)); margin:12px auto 0; display:flex; justify-content:space-between; gap:12px; font-size:.76rem; color:var(--muted); }
.portal-breadcrumb a { padding:8px 0; text-decoration:none; font-weight:800; }
.portal-breadcrumb span { padding:8px 0; }
