/*
 * Aesthetic Studio 03
 * Bright dragon-boat festival CMF for relaxed color-sort players.
 * Lotus lake, ivory porcelain panels, cinnabar action, jade accents, and brushed gold.
 */

:root {
  --swiss-white: rgba(255, 254, 246, 0.94);
  --swiss-paper: rgba(245, 239, 217, 0.9);
  --swiss-ink: #123f46;
  --swiss-muted: #4f6d70;
  --swiss-faint: #76979b;
  --swiss-line: rgba(214, 165, 68, 0.38);
  --swiss-line-strong: rgba(190, 126, 28, 0.72);
  --swiss-accent: #cf3d27;
  --swiss-accent-dark: #972b1f;
  --swiss-success: #07856f;
  --swiss-focus: #ffd36b;
  --swiss-radius: 8px;
  --swiss-font: "Trebuchet MS", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

html {
  background: #8fe2ed;
  color-scheme: light;
}

body.theme-swiss-gallery {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #8fe2ed;
  background-image:
    radial-gradient(circle at 47% 7%, rgba(255, 249, 214, 0.6), transparent 34%),
    linear-gradient(90deg, rgba(12, 80, 84, 0.18), transparent 22% 78%, rgba(12, 80, 84, 0.18)),
    url("./images/lumi-lotus-lake-gameplay-bg-v2.png");
  background-position: center 50%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--swiss-ink);
  font-family: var(--swiss-font);
}

body.theme-swiss-gallery::before {
  background:
    radial-gradient(circle at 18% 92%, rgba(255, 139, 173, 0.22), transparent 19%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 149, 164, 0.08));
  opacity: 0.9;
}

body.theme-swiss-gallery::after {
  display: none;
}

body.theme-swiss-gallery button,
body.theme-swiss-gallery input,
body.theme-swiss-gallery select {
  font-family: var(--swiss-font);
  letter-spacing: 0;
}

body.theme-swiss-gallery button:focus-visible,
body.theme-swiss-gallery a:focus-visible {
  outline: 3px solid var(--swiss-focus);
  outline-offset: 3px;
}

/* Loading reads like a title card, not a second game theme. */
.theme-swiss-gallery .boot-screen {
  justify-items: start;
  gap: 18px;
  padding: 8vw;
  background:
    linear-gradient(90deg, rgba(255, 254, 246, 0.96) 0 42%, rgba(255, 254, 246, 0.62) 42% 100%),
    url("./images/lumi-lotus-lake-gameplay-bg-v2.png") center / cover no-repeat;
  color: var(--swiss-ink);
  text-align: left;
}

.theme-swiss-gallery .boot-screen strong {
  max-width: 560px;
  font: 800 48px / 0.92 var(--swiss-font);
  letter-spacing: 0;
  text-shadow: none;
}

.theme-swiss-gallery .boot-screen > span {
  width: min(260px, 62vw);
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #dedfdf;
}

.theme-swiss-gallery .boot-screen > span > i {
  background: var(--swiss-accent);
}

.theme-swiss-gallery .app-shell {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: 0;
  place-items: center;
}

.theme-swiss-gallery .game-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 318px) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-swiss-gallery .game-panel::before {
  display: none !important;
  content: "" !important;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 5px;
  height: auto;
  background: linear-gradient(180deg, #e2b55a, var(--swiss-accent) 42%, #e2b55a);
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.theme-swiss-gallery .game-panel > * {
  z-index: 2;
}

.theme-swiss-gallery .topbar,
.theme-swiss-gallery .journey-strip,
.theme-swiss-gallery .scorebar,
.theme-swiss-gallery .hint-line,
.theme-swiss-gallery .goal-strip,
.theme-swiss-gallery .goal-strip > div {
  min-width: 0;
}

.theme-swiss-gallery .action-row {
  grid-column: 1;
  width: 100%;
}

.theme-swiss-gallery .topbar {
  grid-row: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: start;
  gap: 12px;
  min-height: 92px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--swiss-line);
  background:
    linear-gradient(135deg, rgba(255, 254, 246, 0.97), rgba(245, 239, 217, 0.74)),
    var(--swiss-white);
}

.theme-swiss-gallery .title-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
}

.theme-swiss-gallery .title-block .kicker {
  max-width: 100%;
  overflow: visible;
  color: var(--swiss-ink);
  font: 800 15px / 1.12 var(--swiss-font);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal;
}

.theme-swiss-gallery .title-block h1 {
  display: flex;
  min-height: 0;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--swiss-accent);
  box-shadow: none;
  font: 900 30px / 0.9 var(--swiss-font);
}

.theme-swiss-gallery .title-block h1::before {
  content: "LEVEL";
  color: var(--swiss-ink);
  font: 700 10px / 1 var(--swiss-font);
}

.theme-swiss-gallery .title-block h1::after {
  content: "/" attr(data-total);
  color: var(--swiss-faint);
  font: 600 11px / 1 var(--swiss-font);
}

.theme-swiss-gallery .timer-pill {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--swiss-muted);
  box-shadow: none;
  font: 650 11px / 1 var(--swiss-font);
}

.theme-swiss-gallery .timer-pill::before {
  display: none;
}

.theme-swiss-gallery .icon-button,
.theme-swiss-gallery .icon-button.is-on {
  display: grid;
  min-width: 52px;
  min-height: 44px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--swiss-line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.96), rgba(235, 224, 194, 0.88));
  color: var(--swiss-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 3px 8px rgba(22, 37, 32, 0.12);
  backdrop-filter: none;
}

.theme-swiss-gallery .icon-button span {
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.theme-swiss-gallery .icon-button.is-on {
  border-color: var(--swiss-accent);
  color: var(--swiss-accent-dark);
}

.theme-swiss-gallery .icon-button:hover,
.theme-swiss-gallery .glass-button:hover,
.theme-swiss-gallery .primary-button:hover,
.theme-swiss-gallery .thumb-button:hover,
.theme-swiss-gallery .reward-button:hover {
  transform: translateY(-1px);
  filter: none;
}

.theme-swiss-gallery .journey-strip {
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--swiss-line);
  background:
    repeating-linear-gradient(90deg, rgba(207, 61, 39, 0.04) 0 8px, transparent 8px 16px),
    var(--swiss-paper);
}

.theme-swiss-gallery .journey-strip > div,
.theme-swiss-gallery .chest-button {
  min-height: 49px;
  padding: 9px 11px;
  border: 0;
  border-right: 1px solid var(--swiss-line);
  border-bottom: 1px solid var(--swiss-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-swiss-gallery .journey-strip > div:nth-child(2) {
  border-right: 0;
}

.theme-swiss-gallery .tiny-label,
.theme-swiss-gallery .chest-button span,
.theme-swiss-gallery .scorebar span {
  display: block;
  color: var(--swiss-muted);
  font: 650 10px / 1.1 var(--swiss-font);
  text-transform: uppercase;
}

.theme-swiss-gallery .journey-strip strong,
.theme-swiss-gallery .chest-button strong {
  display: block;
  margin-top: 4px;
  color: var(--swiss-ink);
  font: 750 13px / 1.05 var(--swiss-font);
}

.theme-swiss-gallery .milestone-track {
  grid-column: 1 / -1;
  display: grid;
  min-height: 27px;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  gap: 3px;
  padding: 8px 11px;
  border-right: 0 !important;
  background: var(--swiss-white) !important;
}

.theme-swiss-gallery .milestone-track i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 65, 57, 0.16);
  box-shadow: none;
  transform: none;
}

.theme-swiss-gallery .milestone-track i.is-done {
  background: linear-gradient(90deg, #c94f35, #e3b75b);
}

.theme-swiss-gallery .milestone-track i.is-current {
  transform: none;
  box-shadow: 0 0 0 1px var(--swiss-ink);
}

.theme-swiss-gallery .chest-button {
  grid-column: 1 / -1;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  text-align: left;
}

.theme-swiss-gallery .chest-button span,
.theme-swiss-gallery .chest-button strong {
  margin: 0;
}

.theme-swiss-gallery .chest-button.is-ready {
  border: 0;
  background: #fff4ee;
  box-shadow: inset 4px 0 0 var(--swiss-accent);
}

.theme-swiss-gallery .scorebar {
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--swiss-line);
  background: rgba(255, 254, 246, 0.9);
}

.theme-swiss-gallery .scorebar article {
  min-height: 52px;
  padding: 9px 10px;
  border: 0;
  border-right: 1px solid var(--swiss-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-swiss-gallery .scorebar article:last-child {
  border-right: 0;
}

.theme-swiss-gallery .scorebar strong {
  display: block;
  margin-top: 5px;
  color: var(--swiss-ink);
  font: 750 18px / 0.9 var(--swiss-font);
}

.theme-swiss-gallery .score-card strong {
  color: var(--swiss-accent);
}

.theme-swiss-gallery .streak-card.is-fire {
  animation: none;
}

.theme-swiss-gallery .streak-card.is-fire strong::after {
  color: var(--swiss-accent);
  font-size: 8px;
}

.theme-swiss-gallery .hint-line {
  grid-row: 4;
  min-height: 34px;
  margin: 0;
  padding: 8px 14px 8px 18px;
  border-bottom: 1px solid var(--swiss-line);
  background: var(--swiss-white);
  color: var(--swiss-muted);
  font: 500 12px / 1.35 var(--swiss-font);
  text-align: left;
}

.theme-swiss-gallery .goal-strip {
  grid-row: 5;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 72px;
  margin: 0;
  padding: 11px 14px 11px 18px;
  border: 0;
  border-bottom: 1px solid var(--swiss-line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 229, 0.98), rgba(238, 252, 250, 0.84));
  box-shadow: inset 5px 0 0 var(--swiss-accent);
  color: var(--swiss-ink);
  backdrop-filter: none;
}

.theme-swiss-gallery .goal-strip #goalIcon,
.theme-swiss-gallery .goal-strip #goalIcon.block {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 23%, rgba(255, 255, 255, 0.94) 0 7%, transparent 8%),
    radial-gradient(circle at 48% 47%, var(--block, #d34f70) 0 55%, color-mix(in srgb, #101820 24%, var(--block, #d34f70)) 100%);
  box-shadow: 0 0 0 2px #bf8e35, 0 5px 12px rgba(21, 23, 25, 0.16);
  clip-path: none;
}

.theme-swiss-gallery .goal-strip #goalIcon::before,
.theme-swiss-gallery .goal-strip #goalIcon::after {
  display: none;
}

.theme-swiss-gallery .goal-strip strong {
  display: block;
  color: var(--swiss-ink);
  font: 750 14px / 1.15 var(--swiss-font);
}

.theme-swiss-gallery .goal-strip p {
  margin-top: 4px;
  color: var(--swiss-muted);
  font: 500 11px / 1.35 var(--swiss-font);
}

.theme-swiss-gallery .action-row {
  grid-row: 7;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  gap: 7px;
  align-self: end;
  margin: 0;
  padding: 10px 10px 10px 14px;
  border-top: 1px solid var(--swiss-line);
  background: linear-gradient(180deg, rgba(250, 247, 234, 0.94), rgba(232, 226, 202, 0.92));
}

.theme-swiss-gallery .thumb-button,
.theme-swiss-gallery .primary-button,
.theme-swiss-gallery .reward-button,
.theme-swiss-gallery .glass-button {
  min-height: 46px;
  border: 1px solid var(--swiss-line-strong);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 10px rgba(14, 35, 30, 0.14);
  font-weight: 750;
  backdrop-filter: none;
}

.theme-swiss-gallery .thumb-button,
.theme-swiss-gallery .glass-button {
  background: linear-gradient(180deg, rgba(255, 252, 239, 0.96), rgba(232, 226, 202, 0.86));
  color: var(--swiss-ink);
}

.theme-swiss-gallery .thumb-button span {
  color: var(--swiss-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.theme-swiss-gallery .thumb-button strong {
  margin-top: 3px;
  color: var(--swiss-ink);
  font-size: 13px;
}

.theme-swiss-gallery .primary-button {
  border-color: #d7a94d;
  background: linear-gradient(135deg, #b73522, #f05b2f 52%, #d8a13e);
  color: var(--swiss-white);
}

.theme-swiss-gallery .primary-button:hover {
  background: linear-gradient(135deg, #8f2319, #d34825 55%, #c18b30);
}

.theme-swiss-gallery .reward-button {
  border-color: #d7a94d;
  background: linear-gradient(135deg, #12382f, #1e5d4e);
  color: var(--swiss-white);
}

.theme-swiss-gallery .primary-button:disabled,
.theme-swiss-gallery .reward-button:disabled,
.theme-swiss-gallery .thumb-button:disabled {
  border-color: var(--swiss-line);
  background: #eceeed;
  color: var(--swiss-faint);
  cursor: not-allowed;
  opacity: 1;
}

.theme-swiss-gallery .more-menu {
  position: absolute;
  bottom: 66px;
  left: 14px;
  z-index: 30;
  display: grid;
  width: 290px;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--swiss-line-strong);
  border-radius: 8px;
  background: rgba(250, 247, 234, 0.96);
  box-shadow: 0 18px 44px rgba(7, 27, 23, 0.24);
}

.theme-swiss-gallery .more-menu[hidden] {
  display: none;
}

.theme-swiss-gallery .more-menu .glass-button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid var(--swiss-line);
  border-radius: 0;
  text-align: left;
}

.theme-swiss-gallery .more-menu .glass-button:last-child {
  border-bottom: 0;
}

/* The lake is the game's visual world; it gets the largest uninterrupted area. */
.theme-swiss-gallery .board-card {
  isolation: isolate;
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-swiss-gallery .board-card::before {
  display: none;
}

.theme-swiss-gallery .board-card::after {
  display: none;
}

.theme-swiss-gallery .lake-life {
  z-index: 2;
}

.theme-swiss-gallery .koi {
  left: -18%;
  width: clamp(28px, 4.1vw, 44px);
  height: clamp(11px, 1.55vw, 17px);
  border-radius: 60% 48% 52% 60%;
  background:
    radial-gradient(circle at 73% 38%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 51%, rgba(24, 82, 75, 0.58) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(255, 203, 122, 0.78), rgba(255, 92, 115, 0.9) 42%, rgba(255, 250, 218, 0.94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 211, 0.92),
    0 2px 4px rgba(17, 70, 76, 0.36);
  opacity: 0;
  filter: saturate(1.18) drop-shadow(0 1px 1px rgba(5, 63, 71, 0.38));
}

.theme-swiss-gallery .koi::before {
  right: auto;
  left: -12px;
  top: 1px;
  width: 17px;
  height: 15px;
  border-radius: 45% 0 0 45%;
  background:
    linear-gradient(135deg, #ffe7a8, #dc4b38);
  clip-path: polygon(100% 50%, 0 0, 24% 50%, 0 100%);
}

.theme-swiss-gallery .koi::after {
  left: 10px;
  top: 10px;
  width: 12px;
  height: 8px;
  border: 0;
  border-bottom: 2px solid rgba(255, 252, 224, 0.82);
  transform: rotate(-18deg);
}

.theme-swiss-gallery .koi-jade {
  background:
    radial-gradient(circle at 82% 51%, #134945 0 1.4px, transparent 2px),
    radial-gradient(circle at 65% 28%, #fff 0 1.5px, transparent 2.5px),
    linear-gradient(90deg, #facb5f, #07876e 45%, #eaffd2 100%);
}

.theme-swiss-gallery .koi-gold {
  background:
    radial-gradient(circle at 82% 51%, #6c480d 0 1.4px, transparent 2px),
    radial-gradient(circle at 65% 28%, #fff 0 1.5px, transparent 2.5px),
    linear-gradient(90deg, #e7492c, #e2aa37 48%, #fff1bd 100%);
}

.theme-swiss-gallery .koi-rose {
  background:
    radial-gradient(circle at 82% 51%, #651f34 0 1.4px, transparent 2px),
    radial-gradient(circle at 65% 28%, #fff 0 1.5px, transparent 2.5px),
    linear-gradient(90deg, #ffd672, #cf335f 50%, #fff3ce 100%);
}

.theme-swiss-gallery .koi-one {
  top: 69%;
  animation: auspiciousKoiRight 18s cubic-bezier(0.42, 0, 0.58, 1) 2.2s infinite;
}

.theme-swiss-gallery .koi-two {
  top: 79%;
  width: clamp(24px, 3.3vw, 36px);
  height: clamp(9px, 1.2vw, 14px);
  animation: auspiciousKoiRight 23s cubic-bezier(0.42, 0, 0.58, 1) 10.4s infinite;
}

.theme-swiss-gallery .koi-three {
  top: 57%;
  width: clamp(22px, 3vw, 32px);
  height: clamp(9px, 1.1vw, 13px);
  animation: auspiciousKoiLeft 27s cubic-bezier(0.42, 0, 0.58, 1) 15.8s infinite;
}

.theme-swiss-gallery .lake-splash {
  border-width: 1px;
  border-color: rgba(255, 246, 217, 0.78);
  filter: drop-shadow(0 0 8px rgba(255, 246, 217, 0.3));
}

.theme-swiss-gallery .splash-one {
  left: 19%;
  top: 76%;
  animation: auspiciousSplash 10.5s ease-out 3.1s infinite;
}

.theme-swiss-gallery .splash-two {
  left: 76%;
  top: 66%;
  animation: auspiciousSplash 13.6s ease-out 8.8s infinite;
}

.theme-swiss-gallery .splash-three {
  left: 46%;
  top: 83%;
  animation: auspiciousSplash 16.4s ease-out 13.2s infinite;
}

.theme-swiss-gallery .crane {
  position: absolute;
  left: -22%;
  top: 15%;
  width: clamp(58px, 7vw, 94px);
  height: clamp(22px, 2.8vw, 34px);
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 1px rgba(23, 55, 61, 0.5));
}

.theme-swiss-gallery .crane::before,
.theme-swiss-gallery .crane::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 47%;
  height: 74%;
  background:
    linear-gradient(155deg, #fffffa 0 52%, #d6e1df 54% 70%, #253c40 73% 100%);
  border: 1px solid #8b9d9c;
  transform-origin: 100% 50%;
  clip-path: polygon(4% 54%, 100% 0, 80% 76%, 0 100%);
}

.theme-swiss-gallery .crane::before {
  left: 8%;
  transform: rotate(-8deg);
}

.theme-swiss-gallery .crane::after {
  left: 34%;
  transform: scaleX(-1) rotate(-8deg);
}

.theme-swiss-gallery .crane span {
  position: absolute;
  left: 44%;
  top: 44%;
  width: 25%;
  height: 20%;
  border-radius: 999px 999px 999px 40%;
  background: #fffffa;
  box-shadow: inset 0 0 0 1px #9aacaa;
}

.theme-swiss-gallery .crane span::before {
  content: "";
  position: absolute;
  left: 82%;
  top: -34%;
  width: 38%;
  height: 38%;
  border-top: 2px solid rgba(255, 255, 250, 0.95);
  border-right: 2px solid rgba(255, 255, 250, 0.95);
  border-radius: 0 100% 0 0;
  transform: rotate(-18deg);
}

.theme-swiss-gallery .crane span::after {
  content: "";
  position: absolute;
  left: 118%;
  top: -55%;
  width: 8px;
  height: 7px;
  border-radius: 50% 50% 60% 40%;
  background:
    radial-gradient(circle at 28% 35%, #b73522 0 2px, transparent 3px),
    rgba(255, 255, 250, 0.98);
  box-shadow: 7px 3px 0 -4px #d4a041;
}

.theme-swiss-gallery .crane-one {
  top: 14%;
  animation: craneGlideRight 34s ease-in-out 6s infinite;
}

.theme-swiss-gallery .crane-two {
  top: 23%;
  width: clamp(45px, 5vw, 68px);
  animation: craneGlideLeft 41s ease-in-out 21s infinite;
}

.theme-swiss-gallery .mochi-progress {
  top: 17px;
  left: 18px;
  right: 18px;
  z-index: 8;
  gap: 5px;
}

.theme-swiss-gallery .mochi-progress i {
  width: 18px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 249, 225, 0.58);
  box-shadow: inset 0 0 0 1px rgba(43, 76, 66, 0.12);
  transform: none;
}

.theme-swiss-gallery .mochi-progress i.is-done {
  background: linear-gradient(90deg, #b73522, #e3b75b);
  box-shadow: 0 0 10px rgba(227, 183, 91, 0.38);
  transform: none;
}

.theme-swiss-gallery .board {
  z-index: 5;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(var(--desktop-cols), minmax(54px, 78px));
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 22px 16px;
  padding: 58px 28px 42px;
}

.theme-swiss-gallery .board.lanes-2,
.theme-swiss-gallery .board.lanes-3,
.theme-swiss-gallery .board.lanes-4 {
  grid-template-columns: repeat(var(--desktop-cols), minmax(64px, 86px));
  gap: 24px;
}

.theme-swiss-gallery .board.lanes-7,
.theme-swiss-gallery .board.lanes-8 {
  grid-template-columns: repeat(4, minmax(54px, 76px));
  gap: 18px 28px;
}

.theme-swiss-gallery .board.lanes-9 {
  grid-template-columns: repeat(5, minmax(50px, 70px));
  gap: 16px 22px;
}

.theme-swiss-gallery .tube,
.theme-swiss-gallery .tube.has-dragon-color,
.theme-swiss-gallery .tube.is-empty-boat {
  --orb-size: clamp(32px, 3.3vw, 42px);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: clamp(218px, 34vh, 292px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease;
  touch-action: none;
}

.theme-swiss-gallery .board.lanes-7 .tube,
.theme-swiss-gallery .board.lanes-8 .tube,
.theme-swiss-gallery .board.lanes-9 .tube {
  --orb-size: clamp(27px, 2.65vw, 35px);
  height: clamp(154px, 27vh, 202px);
}

.theme-swiss-gallery .tube.has-dragon-color::before,
.theme-swiss-gallery .tube.is-empty-boat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: url("./images/lumi-jade-lacquer-boat-v3.png") center / 184% 100% no-repeat;
  box-shadow: none;
  clip-path: none;
  filter: drop-shadow(0 10px 13px rgba(3, 70, 78, 0.18)) saturate(1.13) contrast(1.03) !important;
  opacity: 1;
  transform: none !important;
  animation: none !important;
  pointer-events: none;
}

.theme-swiss-gallery .tube.is-empty-boat::before {
  filter: drop-shadow(0 10px 13px rgba(3, 70, 78, 0.14)) saturate(0.78) brightness(1.02) !important;
  opacity: 0.82;
}

.theme-swiss-gallery .tube.has-dragon-color::after,
.theme-swiss-gallery .tube.is-empty-boat::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: auto;
  bottom: -3px;
  z-index: 0;
  width: auto;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 239, 192, 0.44);
  opacity: 0.72;
  filter: blur(3px);
  transform: none;
  animation: swissWake 4.8s ease-in-out infinite;
  pointer-events: none;
}

.theme-swiss-gallery .tube .block.orb,
.theme-swiss-gallery .tube.has-dragon-color .block.orb,
.theme-swiss-gallery .tube.is-empty-boat .block.orb {
  position: absolute;
  left: 50%;
  top: var(--slot-center);
  z-index: 4;
  display: block;
  width: var(--orb-size);
  height: var(--orb-size);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 252, 230, 0.95);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 20%, rgba(255, 255, 255, 0.98) 0 9%, rgba(255, 255, 255, 0.6) 10% 16%, transparent 17%),
    radial-gradient(circle at 52% 50%, color-mix(in srgb, white 18%, var(--block, #d34f70)) 0 38%, var(--block, #d34f70) 62%, color-mix(in srgb, #072d34 24%, var(--block, #d34f70)) 100%);
  background-color: var(--block, #d34f70) !important;
  box-shadow:
    inset -3px -4px 7px rgba(10, 34, 42, 0.15),
    0 0 0 2px #d8a13e,
    0 0 0 3px rgba(104, 61, 15, 0.16),
    0 7px 15px rgba(4, 72, 82, 0.26);
  filter: saturate(1.22) contrast(1.06);
  translate: -50% -50%;
  transform: none;
  transform-origin: 50% 70%;
}

.theme-swiss-gallery .tube .block.orb::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 20%;
  display: block;
  width: 30%;
  height: 14%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  opacity: 1;
  transform: rotate(-24deg);
}

.theme-swiss-gallery .tube .block.orb::after {
  display: none;
}

.theme-swiss-gallery .tube .empty-bay {
  position: absolute;
  left: 50%;
  top: var(--slot-center);
  z-index: 3;
  display: block;
  width: calc(var(--orb-size) - 3px);
  height: calc(var(--orb-size) - 3px);
  border: 1px solid rgba(95, 66, 24, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 32% 22%, rgba(255, 239, 185, 0.18), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255, 244, 209, 0.06) 0 2px, transparent 2px 6px),
    radial-gradient(circle at 50% 54%, #113d38 0 38%, #082724 72%, #031412 100%);
  box-shadow:
    inset 0 7px 12px rgba(0, 0, 0, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(210, 153, 47, 0.86);
  opacity: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.theme-swiss-gallery .tube .empty-bay::before {
  content: "";
  position: absolute;
  inset: 28%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.theme-swiss-gallery .tube .empty-bay::after {
  display: none;
  content: "";
}

.theme-swiss-gallery .tube .empty-bay.is-drop-slot::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f8dda0;
  font: 700 18px / 1 var(--swiss-font);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82), 0 0 8px rgba(227, 183, 91, 0.4);
}

.theme-swiss-gallery .tube:hover,
.theme-swiss-gallery .tube:focus-visible,
.theme-swiss-gallery .tube.is-selected,
.theme-swiss-gallery .tube.is-magnetic {
  border: 0;
  outline: 0;
  box-shadow: none;
  transform: translateY(-3px);
}

.theme-swiss-gallery .tube:focus-visible {
  outline: 2px solid var(--swiss-ink);
  outline-offset: 5px;
}

.theme-swiss-gallery .tube.is-selected .block.orb:last-child,
.theme-swiss-gallery .tube.is-suggested-from .block.orb:last-child,
.theme-swiss-gallery .tube .block.orb.is-floating {
  box-shadow:
    inset -3px -4px 7px rgba(13, 27, 34, 0.14),
    0 0 0 2px #e3b75b,
    0 0 0 6px rgba(183, 53, 34, 0.26),
    0 10px 18px rgba(20, 35, 36, 0.28);
  animation: swissPearlReady 900ms ease-in-out infinite alternate;
}

.theme-swiss-gallery .tube.is-available-target::before,
.theme-swiss-gallery .tube.is-suggested-to::before,
.theme-swiss-gallery .tube.is-magnetic::before {
  filter: drop-shadow(0 0 8px rgba(255, 246, 217, 0.92)) drop-shadow(0 0 10px rgba(227, 183, 91, 0.78)) !important;
  transform: none !important;
}

.theme-swiss-gallery .tube.is-available-target .empty-bay.is-next-slot,
.theme-swiss-gallery .tube.is-suggested-to .empty-bay.is-next-slot,
.theme-swiss-gallery .tube.is-magnetic .empty-bay.is-next-slot {
  border-style: solid;
  border-color: #fff2bd;
  box-shadow:
    inset 0 5px 9px rgba(0, 0, 0, 0.5),
    0 0 0 2px #e3b75b,
    0 0 0 6px rgba(183, 53, 34, 0.24);
  animation: swissTargetPulse 800ms ease-in-out infinite alternate;
}

.theme-swiss-gallery .tube.is-bad-target {
  animation: swissNope 260ms ease;
}

.theme-swiss-gallery .tube.is-bad-target::before {
  filter: drop-shadow(0 0 11px rgba(164, 33, 33, 0.86)) !important;
}

.theme-swiss-gallery .tube.is-complete {
  border: 0;
  box-shadow: none;
  animation: none;
}

.theme-swiss-gallery .tube.is-complete .block,
.theme-swiss-gallery .tube.is-complete::before,
.theme-swiss-gallery .tube.is-complete::after {
  animation: none;
}

.theme-swiss-gallery .tube.is-launching {
  pointer-events: none;
  animation: swissBoatLaunch 1.05s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.theme-swiss-gallery .tube.is-launching::before,
.theme-swiss-gallery .tube.is-launching::after,
.theme-swiss-gallery .tube.is-launching .block {
  animation: none !important;
}

.theme-swiss-gallery .tube.is-launched {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.theme-swiss-gallery .tube .block.orb.is-mist-veiled {
  border-color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(ellipse at 29% 22%, rgba(255, 255, 255, 0.8) 0 7%, transparent 8%),
    radial-gradient(circle at 48% 46%, #a7b0ad 0 48%, #596763 100%);
  background-color: #7f8b87 !important;
  filter: saturate(0.12) contrast(1.04);
}

.theme-swiss-gallery .tube .block.orb.is-mist-veiled::after {
  content: "";
  position: absolute;
  inset: 28%;
  display: block;
  border: 2px solid rgba(255, 244, 216, 0.9);
  border-left-color: transparent;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  transform: rotate(-18deg);
}

.theme-swiss-gallery .drag-ghost {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #c18b30, 0 8px 24px rgba(21, 23, 25, 0.28);
}

/* Dialogs share one calm system and preserve clear primary actions. */
.theme-swiss-gallery .guide-layer,
.theme-swiss-gallery .win-layer,
.theme-swiss-gallery .level-layer {
  z-index: 100;
  padding: 16px;
  background: rgba(21, 23, 25, 0.58);
  backdrop-filter: blur(5px);
}

.theme-swiss-gallery .guide-card,
.theme-swiss-gallery .win-card,
.theme-swiss-gallery .level-card {
  overflow: auto;
  border: 1px solid var(--swiss-ink);
  border-radius: var(--swiss-radius);
  background: var(--swiss-white);
  color: var(--swiss-ink);
  box-shadow: 10px 12px 0 rgba(21, 23, 25, 0.22);
}

.theme-swiss-gallery .guide-card .kicker,
.theme-swiss-gallery .win-card .kicker,
.theme-swiss-gallery .level-card .kicker {
  color: var(--swiss-accent);
  font-family: var(--swiss-font);
}

.theme-swiss-gallery .guide-card h2,
.theme-swiss-gallery .win-card h2,
.theme-swiss-gallery .level-card h2 {
  color: var(--swiss-ink);
  font-family: var(--swiss-font);
  text-shadow: none;
}

.theme-swiss-gallery .guide-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--swiss-line-strong);
  border-radius: 3px;
  background: var(--swiss-white);
  color: var(--swiss-ink);
}

.theme-swiss-gallery .guide-copy,
.theme-swiss-gallery .level-card p,
.theme-swiss-gallery .win-card p {
  color: var(--swiss-muted);
}

.theme-swiss-gallery .mini-tube {
  border-radius: 0;
  background: url("./images/lumi-jade-lacquer-boat-v3.png") center / 184% 100% no-repeat;
  box-shadow: none;
}

.theme-swiss-gallery .mini-block,
.theme-swiss-gallery .flying-block {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #c18b30, 0 5px 10px rgba(21, 23, 25, 0.18);
}

.theme-swiss-gallery .perfect-badge {
  border: 1px solid var(--swiss-accent);
  border-radius: 2px;
  background: #fff4ee;
  color: var(--swiss-accent-dark);
  box-shadow: none;
}

.theme-swiss-gallery .win-card::before {
  display: none;
}

.theme-swiss-gallery .level-grid button {
  border-radius: 3px;
  box-shadow: none;
}

.theme-swiss-gallery .toast,
.theme-swiss-gallery .reward-burst {
  border: 1px solid var(--swiss-ink);
  border-radius: 3px;
  background: var(--swiss-ink);
  color: var(--swiss-white);
  box-shadow: 7px 8px 0 rgba(255, 79, 0, 0.28);
}

.theme-swiss-gallery .legal-footer {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--swiss-font);
}

.theme-swiss-gallery .legal-footer a {
  color: inherit;
}

@keyframes swissWake {
  0%, 100% { opacity: 0.36; transform: scaleX(0.76); }
  50% { opacity: 0.7; transform: scaleX(1.08); }
}

@keyframes swissPearlReady {
  from { transform: translateY(-3px) scale(1); }
  to { transform: translateY(-8px) scale(1.035); }
}

@keyframes swissTargetPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.08); }
}

@keyframes swissNope {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

@keyframes swissBoatLaunch {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  32% { opacity: 1; transform: translateY(-10px) scale(1.035); }
  100% { opacity: 0; transform: translateY(-62px) scale(0.88); }
}

@keyframes auspiciousKoiRight {
  0%, 12% {
    opacity: 0;
    transform: translateX(0) translateY(10px) rotate(2deg) scale(0.82);
  }
  20%, 64% {
    opacity: 0.96;
  }
  45% {
    transform: translateX(58vw) translateY(-8px) rotate(-2deg) scale(1);
  }
  76%, 100% {
    opacity: 0;
    transform: translateX(118vw) translateY(8px) rotate(2deg) scale(0.86);
  }
}

@keyframes auspiciousKoiLeft {
  0%, 14% {
    left: 112%;
    opacity: 0;
    transform: translateX(0) translateY(5px) rotate(-1deg) scaleX(-1) scale(0.82);
  }
  24%, 58% {
    opacity: 0.9;
  }
  48% {
    transform: translateX(-54vw) translateY(-8px) rotate(2deg) scaleX(-1) scale(0.94);
  }
  72%, 100% {
    left: 112%;
    opacity: 0;
    transform: translateX(-126vw) translateY(7px) rotate(-2deg) scaleX(-1) scale(0.82);
  }
}

@keyframes auspiciousSplash {
  0%, 80% {
    opacity: 0;
    transform: scale(0.22, 0.18) translateY(8px);
  }
  84% {
    opacity: 0.62;
    transform: scale(0.62, 0.48) translateY(0);
  }
  91% {
    opacity: 0.38;
    transform: scale(1.16, 0.78) translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: scale(1.7, 0.94) translateY(4px);
  }
}

@keyframes craneGlideRight {
  0%, 18% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(0.86);
  }
  25%, 58% {
    opacity: 0.96;
  }
  38% {
    transform: translateX(55vw) translateY(-9px) scale(0.92);
  }
  70%, 100% {
    opacity: 0;
    transform: translateX(124vw) translateY(4px) scale(0.82);
  }
}

@keyframes craneGlideLeft {
  0%, 18% {
    left: 112%;
    opacity: 0;
    transform: translateX(0) translateY(0) scaleX(-1) scale(0.74);
  }
  26%, 52% {
    opacity: 0.9;
  }
  38% {
    transform: translateX(-58vw) translateY(-7px) scaleX(-1) scale(0.78);
  }
  66%, 100% {
    left: 112%;
    opacity: 0;
    transform: translateX(-132vw) translateY(6px) scaleX(-1) scale(0.72);
  }
}

/* Mid-size landscape is the strict CrazyGames embed case. */
@media (min-width: 700px) and (max-width: 980px) {
  .theme-swiss-gallery .game-panel {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .theme-swiss-gallery .topbar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
    min-height: 78px;
    padding: 10px 10px 9px 14px;
  }

  .theme-swiss-gallery .icon-button,
  .theme-swiss-gallery .icon-button.is-on {
    min-width: 46px;
    min-height: 42px;
    padding: 0 5px;
  }

  .theme-swiss-gallery .title-block .kicker {
    font-size: 13px;
  }

  .theme-swiss-gallery .title-block h1 {
    font-size: 24px;
  }

  .theme-swiss-gallery .journey-strip > div {
    min-height: 43px;
    padding: 7px 9px;
  }

  .theme-swiss-gallery .milestone-track {
    min-height: 23px;
    padding: 6px 9px;
  }

  .theme-swiss-gallery .chest-button {
    min-height: 34px;
    padding: 7px 9px;
  }

  .theme-swiss-gallery .scorebar article {
    min-height: 44px;
    padding: 7px 8px;
  }

  .theme-swiss-gallery .scorebar strong {
    font-size: 16px;
  }

  .theme-swiss-gallery .hint-line {
    min-height: 29px;
    padding: 6px 10px 6px 14px;
    font-size: 11px;
  }

  .theme-swiss-gallery .goal-strip {
    min-height: 62px;
    padding: 8px 10px 8px 14px;
  }

  .theme-swiss-gallery .goal-strip p {
    font-size: 10px;
  }

  .theme-swiss-gallery .action-row {
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    padding: 7px 8px 7px 12px;
  }

  .theme-swiss-gallery .thumb-button,
  .theme-swiss-gallery .primary-button,
  .theme-swiss-gallery .reward-button {
    min-height: 42px;
  }

  .theme-swiss-gallery .board {
    gap: 14px 10px;
    padding: 46px 18px 34px;
  }

  .theme-swiss-gallery .tube,
  .theme-swiss-gallery .tube.has-dragon-color,
  .theme-swiss-gallery .tube.is-empty-boat {
    --orb-size: clamp(28px, 4.2vw, 36px);
    height: clamp(174px, 47vh, 236px);
  }
}

@media (min-width: 700px) and (max-height: 560px) {
  .theme-swiss-gallery .game-panel {
    height: calc(100svh - 16px);
  }

  .theme-swiss-gallery .journey-strip > div {
    min-height: 39px;
  }

  .theme-swiss-gallery .milestone-track {
    display: none;
  }

  .theme-swiss-gallery .chest-button {
    min-height: 31px;
  }

  .theme-swiss-gallery .goal-strip {
    min-height: 54px;
  }

  .theme-swiss-gallery .goal-strip p {
    display: none;
  }

  .theme-swiss-gallery .board.lanes-7 .tube,
  .theme-swiss-gallery .board.lanes-8 .tube,
  .theme-swiss-gallery .board.lanes-9 .tube {
    --orb-size: 27px;
    height: 148px;
  }
}

@media (min-width: 1100px) and (min-aspect-ratio: 4 / 3) {
  .theme-swiss-gallery .board.lanes-7,
  .theme-swiss-gallery .board.lanes-8 {
    grid-template-columns: repeat(var(--desktop-cols), minmax(52px, 70px));
    gap: 14px;
  }

  .theme-swiss-gallery .board.lanes-7 .tube,
  .theme-swiss-gallery .board.lanes-8 .tube {
    --orb-size: clamp(28px, 2.55vw, 35px);
    height: clamp(188px, 32vh, 236px);
  }
}

/* Phone: one vertical interface, with the game board receiving the flexible space. */
@media (max-width: 699px) {
  html,
  body.theme-swiss-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-position: center center;
  }

  .theme-swiss-gallery .app-shell {
    display: block;
    height: 100svh;
    padding: 0;
  }

  .theme-swiss-gallery .game-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100svh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .theme-swiss-gallery .game-panel::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 4px;
  }

  .theme-swiss-gallery .topbar,
  .theme-swiss-gallery .journey-strip,
  .theme-swiss-gallery .scorebar,
  .theme-swiss-gallery .hint-line,
  .theme-swiss-gallery .goal-strip,
  .theme-swiss-gallery .action-row,
  .theme-swiss-gallery .board-card {
    grid-column: 1;
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .theme-swiss-gallery .topbar {
    grid-row: 1;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 65px;
    padding: max(10px, env(safe-area-inset-top)) 10px 8px 14px;
  }

  .theme-swiss-gallery .title-block {
    gap: 5px;
  }

  .theme-swiss-gallery .title-block .kicker {
    font-size: 13px;
  }

  .theme-swiss-gallery .title-block h1 {
    font-size: 23px;
  }

  .theme-swiss-gallery .icon-button,
  .theme-swiss-gallery .icon-button.is-on {
    min-width: 48px;
    min-height: 44px;
  }

  .theme-swiss-gallery .journey-strip {
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-swiss-gallery .journey-strip > div {
    min-height: 42px;
    min-width: 0;
    padding: 7px 8px;
  }

  .theme-swiss-gallery .journey-strip > div:nth-child(2) {
    border-right: 0;
  }

  .theme-swiss-gallery .milestone-track {
    display: none;
  }

  .theme-swiss-gallery .chest-button {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 34px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-left: 0;
  }

  .theme-swiss-gallery .chest-button strong {
    margin-top: 0;
  }

  .theme-swiss-gallery .scorebar {
    grid-row: 3;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-swiss-gallery .best-card {
    display: none;
  }

  .theme-swiss-gallery .scorebar article {
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
  }

  .theme-swiss-gallery .tiny-label,
  .theme-swiss-gallery .chest-button span {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .theme-swiss-gallery .scorebar span {
    font-size: 8px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }

  .theme-swiss-gallery .journey-strip strong,
  .theme-swiss-gallery .chest-button strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .theme-swiss-gallery .scorebar strong {
    font-size: 15px;
  }

  .theme-swiss-gallery .hint-line {
    grid-row: 4;
    min-height: 28px;
    padding: 6px 12px 6px 14px;
    font-size: 11px;
  }

  .theme-swiss-gallery .goal-strip {
    grid-row: 5;
    grid-template-columns: 31px minmax(0, 1fr);
    min-height: 64px;
    padding: 8px 11px 8px 14px;
  }

  .theme-swiss-gallery .goal-strip #goalIcon,
  .theme-swiss-gallery .goal-strip #goalIcon.block {
    width: 29px;
    height: 29px;
  }

  .theme-swiss-gallery .goal-strip strong {
    font-size: 13px;
  }

  .theme-swiss-gallery .goal-strip p,
  .theme-swiss-gallery body.is-onboarding .goal-strip p {
    display: -webkit-box;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .theme-swiss-gallery .board-card {
    grid-row: 6;
    min-height: 0 !important;
    border-left: 0;
    border-bottom: 1px solid var(--swiss-line);
    background-position: center 58%;
  }

  .theme-swiss-gallery .board {
    height: 100%;
    grid-template-columns: repeat(var(--cols), minmax(44px, 64px));
    gap: 14px 8px;
    align-content: center;
    padding: 38px 8px 30px;
  }

  .theme-swiss-gallery .board.lanes-2,
  .theme-swiss-gallery .board.lanes-3,
  .theme-swiss-gallery .board.lanes-4 {
    grid-template-columns: repeat(var(--cols), minmax(48px, 68px));
    gap: 8px;
  }

  .theme-swiss-gallery .board.lanes-5,
  .theme-swiss-gallery .board.lanes-6 {
    grid-template-columns: repeat(3, minmax(50px, 66px));
    gap: 10px 12px;
  }

  .theme-swiss-gallery .board.lanes-7,
  .theme-swiss-gallery .board.lanes-8 {
    grid-template-columns: repeat(4, minmax(42px, 56px));
    gap: 9px 5px;
  }

  .theme-swiss-gallery .board.lanes-9 {
    grid-template-columns: repeat(3, minmax(46px, 60px));
    gap: 6px 10px;
  }

  .theme-swiss-gallery .board.lanes-5 .tube,
  .theme-swiss-gallery .board.lanes-6 .tube,
  .theme-swiss-gallery .board.lanes-7 .tube,
  .theme-swiss-gallery .board.lanes-8 .tube,
  .theme-swiss-gallery .board.lanes-9 .tube,
  .theme-swiss-gallery .board.lanes-5 .tube:nth-child(4),
  .theme-swiss-gallery .board.lanes-7 .tube:nth-child(5) {
    grid-column: auto;
    justify-self: center;
  }

  .theme-swiss-gallery .tube,
  .theme-swiss-gallery .tube.has-dragon-color,
  .theme-swiss-gallery .tube.is-empty-boat {
    --orb-size: clamp(27px, 9vw, 36px);
    width: 100%;
    height: clamp(142px, 43vw, 190px);
  }

  .theme-swiss-gallery .board.lanes-5 .tube,
  .theme-swiss-gallery .board.lanes-6 .tube {
    --orb-size: clamp(25px, 7.8vw, 32px);
    width: 100%;
    height: clamp(126px, 34vw, 150px);
  }

  .theme-swiss-gallery .board.lanes-7 .tube,
  .theme-swiss-gallery .board.lanes-8 .tube,
  .theme-swiss-gallery .board.lanes-9 .tube {
    --orb-size: clamp(22px, 6.9vw, 28px);
    width: 100%;
    height: clamp(108px, 29vw, 132px);
  }

  .theme-swiss-gallery .mochi-progress {
    top: 12px;
  }

  .theme-swiss-gallery .action-row {
    grid-row: 7;
    grid-template-columns: 74px minmax(0, 1fr) 74px;
    gap: 6px;
    padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .theme-swiss-gallery .thumb-button,
  .theme-swiss-gallery .primary-button,
  .theme-swiss-gallery .reward-button {
    min-height: 46px;
  }

  .theme-swiss-gallery .more-menu {
    right: 8px;
    bottom: 61px;
    left: 12px;
    width: auto;
  }

  .theme-swiss-gallery .legal-footer {
    display: none;
  }
}

@media (max-width: 699px) and (max-height: 680px) {
  .theme-swiss-gallery .topbar {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .theme-swiss-gallery .journey-strip > div,
  .theme-swiss-gallery .chest-button {
    min-height: 37px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .theme-swiss-gallery .scorebar article {
    min-height: 39px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .theme-swiss-gallery .hint-line {
    min-height: 24px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .theme-swiss-gallery .goal-strip {
    min-height: 46px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .theme-swiss-gallery .goal-strip p {
    display: none;
  }

  .theme-swiss-gallery .board {
    gap: 6px 5px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .theme-swiss-gallery .board.lanes-5 .tube,
  .theme-swiss-gallery .board.lanes-6 .tube {
    --orb-size: clamp(22px, 7vw, 27px);
    height: clamp(104px, 28vw, 122px);
  }

  .theme-swiss-gallery .board.lanes-7 .tube,
  .theme-swiss-gallery .board.lanes-8 .tube,
  .theme-swiss-gallery .board.lanes-9 .tube {
    --orb-size: clamp(20px, 6.4vw, 25px);
    height: clamp(91px, 25vw, 108px);
  }

  .theme-swiss-gallery .action-row {
    padding-top: 5px;
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }

  .theme-swiss-gallery .thumb-button,
  .theme-swiss-gallery .primary-button,
  .theme-swiss-gallery .reward-button {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .theme-swiss-gallery .topbar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 7px;
  }

  .theme-swiss-gallery .title-block .kicker {
    font-size: 12px;
  }

  .theme-swiss-gallery .scorebar article {
    padding-right: 6px;
    padding-left: 6px;
  }

  .theme-swiss-gallery .action-row {
    grid-template-columns: 68px minmax(0, 1fr) 68px;
  }
}

@media (max-width: 380px) {
  .theme-swiss-gallery .scorebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-swiss-gallery .streak-card {
    display: none;
  }
}

@media (max-width: 699px) {
  .theme-swiss-gallery .crane {
    display: none;
  }

  .theme-swiss-gallery .koi-two {
    display: none;
  }

  .theme-swiss-gallery .koi {
    filter: saturate(1.12) drop-shadow(0 1px 1px rgba(5, 63, 71, 0.38));
  }

  .theme-swiss-gallery .lake-splash {
    transform-origin: 50% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-swiss-gallery *,
  .theme-swiss-gallery *::before,
  .theme-swiss-gallery *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* The lake HUD shares one centerline; only interactive controls have surfaces. */
body.lake-hud {
  margin: 0;
}

.lake-hud .game-panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  width: 100%;
  height: 100svh;
  max-height: none;
  padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.lake-hud .hud-header {
  grid-area: 1 / 1;
  width: min(100%, 540px);
  justify-self: center;
}

.lake-hud .topbar,
.lake-hud .scorebar,
body.lake-hud .goal-strip,
body.lake-hud .hint-line,
.lake-hud .action-row {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.lake-hud .topbar {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 0;
}

.lake-hud .title-block {
  align-items: center;
  gap: 9px;
  text-align: center;
  text-shadow: 0 1px 3px #fff, 0 0 14px rgba(255, 255, 255, 0.9);
}

.lake-hud .title-block .kicker {
  font-size: 18px;
  line-height: 1.2;
  text-transform: none;
}

.lake-hud .title-block h1 {
  gap: 6px;
  font-size: 32px;
  line-height: 1;
}

.lake-hud .title-block h1::before,
.lake-hud .title-block h1::after {
  font-size: 12px;
  color: #28555b;
}

.lake-hud .scorebar {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  text-shadow: 0 1px 3px #fff, 0 0 10px #fff;
}

.lake-hud .scorebar article {
  flex: 0 1 80px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lake-hud .scorebar .streak-card,
.lake-hud .scorebar .best-card {
  display: none;
}

.lake-hud .scorebar span {
  color: #28555b;
  font-size: 12px;
  line-height: 1.2;
  text-transform: none;
}

.lake-hud .scorebar strong {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.lake-hud .goal-strip {
  grid-area: 2 / 1;
  grid-template-columns: 24px minmax(0, auto);
  justify-self: center;
  align-self: center;
  width: auto;
  max-width: 520px;
  min-height: 48px;
  gap: 10px;
  margin: 9px 0 0;
  padding: 0;
  text-shadow: 0 1px 3px #fff, 0 0 12px #fff;
}

.lake-hud .goal-strip #goalIcon,
.lake-hud .goal-strip #goalIcon.block {
  width: 22px;
  height: 22px;
}

.lake-hud .goal-strip strong {
  font-size: 14px;
}

.lake-hud .goal-strip p,
.lake-hud.is-onboarding .goal-strip p {
  display: block;
  margin: 3px 0 0;
  color: #28555b;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.lake-hud .board-card {
  grid-area: 3 / 1;
  align-self: stretch;
  width: 100%;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  border: 0;
  container-type: size;
}

.lake-hud .board {
  padding: 18px 12px;
}

.lake-hud .mochi-progress {
  display: none;
}

body.lake-hud .hint-line {
  grid-area: 4 / 1;
  display: block;
  justify-self: center;
  width: min(100%, 560px);
  min-height: 40px;
  margin: 0;
  padding: 8px 0;
  color: #123f46;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 3px #fff, 0 0 8px #fff, 0 0 16px #fff;
}

.lake-hud .action-row {
  grid-area: 5 / 1;
  grid-template-columns: 56px minmax(0, 156px) 56px;
  justify-content: center;
  align-items: center;
  justify-self: center;
  gap: 16px;
  width: min(100%, 320px);
  margin: 0;
  padding: 4px 0;
}

.lake-hud .hud-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.lake-hud .icon-button,
.lake-hud .icon-button.is-on,
.lake-hud .action-row .thumb-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(241, 253, 251, 0.84);
  color: #15545a;
  box-shadow: 0 3px 10px rgba(10, 82, 85, 0.18), inset 0 1px 2px #fff;
}

.lake-hud .icon-button.is-on {
  color: #a33222;
  background: rgba(255, 248, 220, 0.94);
}

.lake-hud .action-row .thumb-button {
  width: 56px;
  height: 56px;
}

.lake-hud .action-row .thumb-button strong {
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1;
}

.lake-hud .action-row .thumb-button:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.lake-hud .action-row .primary-button {
  height: 52px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 17px;
}

.lake-hud .more-menu {
  left: 50%;
  right: auto;
  bottom: calc(max(28px, env(safe-area-inset-bottom)) + 70px);
  transform: translateX(-50%);
  width: min(340px, calc(100% - 32px));
  max-height: calc(100svh - 140px);
  overflow-y: auto;
  background: rgba(242, 253, 251, 0.98);
  border-color: rgba(255, 255, 255, 0.9);
}

.lake-hud .more-menu .journey-strip {
  grid-row: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: transparent;
}

.lake-hud .more-menu .journey-strip .milestone-track {
  display: none;
}

.lake-hud .more-menu .chest-button {
  grid-column: 1 / -1;
  min-height: 48px;
}

.lake-hud .more-menu .glass-button {
  min-height: 48px;
  background: transparent;
  border-color: rgba(21, 84, 90, 0.14);
}

.lake-hud .more-menu .glass-button:hover {
  background: rgba(115, 221, 205, 0.18);
}

@supports (height: 1cqh) {
  .lake-hud .board .tube {
    height: min(292px, calc(100cqh - 36px));
    --orb-size: min(42px, calc((100cqh - 36px) * 0.145));
  }

  .lake-hud .board.lanes-7 .tube,
  .lake-hud .board.lanes-8 .tube,
  .lake-hud .board.lanes-9 .tube {
    height: min(202px, calc((100cqh - 54px) / 2));
    --orb-size: min(29px, calc((100cqh - 54px) * 0.0725));
  }
}

@media (max-width: 699px) {
  .lake-hud .game-panel {
    padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .lake-hud .topbar {
    gap: 9px;
  }

  .lake-hud .title-block .kicker {
    max-width: 230px;
    font-size: 15px;
  }

  .lake-hud .title-block h1 {
    font-size: 28px;
  }

  .lake-hud .scorebar {
    gap: 22px;
    margin-top: 12px;
  }

  body.lake-hud .goal-strip {
    max-width: 320px;
    min-height: 44px;
    margin-top: 6px;
  }

  .lake-hud .board {
    padding: 12px 4px;
  }

  body.lake-hud .hint-line {
    min-height: 44px;
    font-size: 12px;
    padding: 5px 0;
  }

  .lake-hud .more-menu {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px);
  }

  @supports (height: 1cqh) {
    .lake-hud .board .tube {
      height: min(230px, calc(100cqh - 24px));
      --orb-size: min(34px, calc((100cqh - 24px) * 0.145));
    }

    .lake-hud .board.lanes-5 .tube,
    .lake-hud .board.lanes-6 .tube,
    .lake-hud .board.lanes-7 .tube,
    .lake-hud .board.lanes-8 .tube {
      height: min(164px, calc((100cqh - 36px) / 2));
      --orb-size: min(24px, calc((100cqh - 36px) * 0.0725));
    }

    .lake-hud .board.lanes-9 .tube {
      height: min(130px, calc((100cqh - 42px) / 3));
      --orb-size: min(19px, calc((100cqh - 42px) * 0.048));
    }
  }
}

/* Festival objectives and comfort controls extend the continuous lake HUD. */
body.lake-hud .goal-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 520px);
  text-align: center;
}

.lake-hud .goal-strip #goalIcon { display: none; }
.lake-hud .timer-pill { color: #19464e; font-size: 12px; }
.lake-hud .formation-order {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  margin-top: 5px;
}
.lake-hud .formation-order[hidden] { display: none; }
.lake-hud .formation-beat {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--beat-color);
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(18, 63, 70, 0.4);
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px #123f46;
}
.lake-hud .formation-beat.is-matched { outline: 2px solid #086753; outline-offset: 2px; }
.lake-hud .formation-beat.is-matched::before { content: ""; position: absolute; bottom: -7px; width: 8px; height: 3px; background: #086753; }
.lake-hud .formation-beat.is-missed { opacity: 0.65; border-style: dashed; }
.lake-hud .accessibility-settings { padding: 6px 14px; }
.lake-hud .accessibility-settings label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 14px; }
.lake-hud .accessibility-settings input { width: 20px; height: 20px; accent-color: #087e6e; cursor: pointer; }
.lake-hud .save-status { margin: 0; padding: 10px 14px; font-size: 12px; color: #315e64; line-height: 1.4; }
.lake-hud .journey-pages { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; margin: 12px 0; }
.lake-hud .journey-pages span { text-align: center; font-size: 14px; font-weight: 700; }
.lake-hud .journey-pages .icon-button:disabled { opacity: 0.4; box-shadow: none; cursor: default; }
.lake-hud .guide-close { display: grid; place-items: center; }
.lake-hud .toast { bottom: calc(max(28px, env(safe-area-inset-bottom)) + 68px); padding: 6px 10px; font-size: 12px; line-height: 1.3; pointer-events: none; }
.lake-hud:has(.toast:not([hidden])) .hint-line { visibility: hidden; }
.lake-hud .level-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lake-hud .level-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; gap: 4px; font-size: 16px; }
.lake-hud .level-pill small { font-size: 10px; line-height: 1.2; font-weight: 500; white-space: normal; }
.lake-hud .level-pill.is-festival { border-bottom: 3px solid #bb7622; }
.lake-hud .level-pill.is-locked { opacity: 0.55; }
.lake-hud .level-pill.is-locked::before,
.lake-hud .level-pill.is-locked::after { display: none; }
.lake-hud .guide-card,
.lake-hud .level-card,
.lake-hud .win-card { background: rgba(242, 253, 251, 0.98); max-height: calc(100svh - 28px); overflow-y: auto; }
.lake-hud .win-layer { align-content: center; }
.lake-hud .win-card { padding: 20px; margin-top: 0; }
.lake-hud .win-card h2 { font-size: 26px; line-height: 1.1; margin: 6px 0 12px; }
@media (max-height: 480px) and (min-width: 600px) {
  .lake-hud .win-card { width: min(580px, 100%); padding: 14px 20px; }
  .lake-hud .win-card h2 { font-size: 24px; margin: 4px 0 8px; }
  .lake-hud .win-card p { margin: 6px 0; font-size: 13px; line-height: 1.35; }
  .lake-hud .win-card .perfect-badge { min-height: 26px; margin: 0 0 4px; }
  .lake-hud .win-actions { margin-top: 10px; }
  .lake-hud .win-actions button { min-height: 44px; }
}
.lake-hud .guide-copy { font-size: 14px; line-height: 1.5; }
.lake-hud .guide-copy li { margin-bottom: 6px; }
.lake-hud .level-card h2 { font-size: 26px; }
.lake-hud .level-card .danger-button { min-height: 36px; padding: 4px 8px; border: 0; background: transparent; box-shadow: none; font-size: 12px; color: #49676a; }
body.lake-hud .tube.has-dragon-color::before,
body.lake-hud .tube.is-empty-boat::before { background-size: calc(var(--orb-size) * 3.76) 100%; }
body.lake-hud.show-symbols .tube .block.orb::after {
  content: attr(data-symbol);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 20%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #143f45;
  font: 800 12px / 1 var(--swiss-font);
  text-shadow: none;
  transform: none;
  clip-path: none;
  box-shadow: none;
  opacity: 1;
}
.lake-hud.show-symbols .formation-beat::after { content: attr(data-symbol); position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #143f45; text-shadow: none; }
.lake-hud.reduce-motion *,
.lake-hud.reduce-motion *::before,
.lake-hud.reduce-motion *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
.lake-hud .more-menu { max-height: calc(100svh - 120px); }
@media (max-width: 380px) {
  .lake-hud .hud-header { width: 100%; }
  .lake-hud .title-block .kicker { font-size: 14px; }
  .lake-hud .scorebar { margin-top: 8px; }
  .lake-hud .level-card { padding: 18px 12px; }
}
@media (max-width: 699px) and (max-height: 650px) {
  .lake-hud .toast { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); }
  .lake-hud .game-panel { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .lake-hud .topbar { min-height: 54px; }
  .lake-hud .title-block { gap: 4px; }
  .lake-hud .title-block h1 { font-size: 24px; }
  .lake-hud .scorebar { margin-top: 5px; }
  .lake-hud .scorebar article { min-height: 34px; }
  .lake-hud .scorebar strong { font-size: 18px; }
  body.lake-hud .hint-line { min-height: 34px; padding: 3px 0; }
  .lake-hud .action-row { height: 60px; padding: 2px 0; }
  .lake-hud .more-menu { bottom: 78px; }
}
@media (min-width: 700px) and (max-height: 600px) {
  .lake-hud .toast { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 68px); }
  .lake-hud .formation-order { display: inline-flex; margin: 0 0 0 12px; vertical-align: middle; }
  body.lake-hud .goal-strip strong { display: inline; }
  .lake-hud .formation-beat { width: 24px; height: 24px; }
}

@media (min-width: 700px) and (max-height: 600px) {
  .lake-hud .game-panel {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .lake-hud .hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 820px);
  }

  .lake-hud .topbar {
    flex: 1;
    min-height: 58px;
  }

  .lake-hud .scorebar {
    gap: 18px;
    margin: 0;
  }

  body.lake-hud .goal-strip {
    min-height: 24px;
    margin-top: 0;
  }

  .lake-hud .goal-strip p {
    display: none;
  }

  body.lake-hud .hint-line {
    min-height: 25px;
    padding: 3px 0;
  }

  .lake-hud .more-menu {
    bottom: 76px;
  }

  .lake-hud .board[class] {
    grid-template-columns: repeat(var(--lane-count), minmax(32px, 56px));
    gap: 14px;
    padding: 8px;
  }

  .lake-hud .board.lanes-2 { --lane-count: 2; }
  .lake-hud .board.lanes-3 { --lane-count: 3; }
  .lake-hud .board.lanes-4 { --lane-count: 4; }
  .lake-hud .board.lanes-5 { --lane-count: 5; }
  .lake-hud .board.lanes-6 { --lane-count: 6; }
  .lake-hud .board.lanes-7 { --lane-count: 7; }
  .lake-hud .board.lanes-8 { --lane-count: 8; }
  .lake-hud .board.lanes-9 { --lane-count: 9; }

  .lake-hud .board[class] .tube:nth-child(n) {
    grid-column: auto;
    justify-self: center;
    height: min(190px, calc(100cqh - 16px));
    width: min(56px, calc((100cqh - 16px) * 0.3));
    --orb-size: min(27px, calc((100cqh - 16px) * 0.145));
  }
}
