body.combo-look {
  background-color: #251426;
}

.combo-look .game-shell[data-theme="fusion"] {
  background:
    radial-gradient(ellipse at 80% 4%, #a6534069, transparent 48%),
    radial-gradient(ellipse at 10% 80%, #75434068, transparent 49%),
    linear-gradient(155deg, #402541, #241529 55%, #1d1728);
}

.combo-look .game-shell[data-theme="fusion"] .animal-grid {
  background: linear-gradient(155deg, #624048, #302439 68%);
  border-color: #e5b37b;
  box-shadow: inset 0 0 0 2px #ffe1af45, 0 8px 26px #120d17b0;
}

.combo-look .game-shell[data-theme="fusion"] .animal-grid::before {
  opacity: .16;
}

.combo-look .combo-brand {
  display: flex;
  align-items: center;
}

.combo-look .combo-brand img {
  display: block;
  width: clamp(94px, 17vw, 155px);
  height: clamp(54px, 8vw, 72px);
  object-fit: contain;
  object-position: left center;
}

.combo-look .combo-account-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.combo-player-scene {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  flex: 0 0 auto;
}

.combo-player-scene[hidden] {
  display: none;
}

.combo-avatar,
.combo-vehicle {
  display: block;
  position: absolute;
}

.combo-avatar { inset: -3px auto 0 0; width: 27px; z-index: 1; }
.combo-vehicle { inset: 8px 0 0 auto; width: 38px; }
.combo-avatar svg,
.combo-vehicle .vehicle-body { width: 100%; height: 100%; display: block; }
.combo-vehicle .racer-vehicle { position: relative; display: block; width: 100%; height: 100%; }
.combo-vehicle :is(.vehicle-cockpit-front, .vehicle-wheel, .vehicle-flame, .vehicle-propeller) { display: none; }

.combo-look[data-combo-pieces="candy"] .fusion-piece[data-piece] {
  background-size: contain;
  background-position: center !important;
  background-repeat: no-repeat;
}

.combo-look[data-combo-pieces="candy"] .fusion-piece[data-piece="puppy"] { background-image: url('/candy-grid-v1/crocodile.webp'); }
.combo-look[data-combo-pieces="candy"] .fusion-piece[data-piece="kitten"] { background-image: url('/candy-grid-v1/strawberry.webp'); }
.combo-look[data-combo-pieces="candy"] .fusion-piece[data-piece="panda"] { background-image: url('/candy-grid-v1/cola.webp'); }
.combo-look[data-combo-pieces="candy"] .fusion-piece[data-piece="bunny"] { background-image: url('/candy-grid-v1/banana.webp'); }

@media (prefers-reduced-motion: no-preference) {
  .combo-look[data-combo-pieces="candy"] .animal-grid:not([aria-busy="true"]) .animal-tile:not(.hint-source, .dragging) .fusion-piece[data-piece] {
    animation: combo-candy-idle 3.7s ease-in-out infinite;
    transform-origin: 50% 86%;
  }
  .combo-look[data-combo-pieces="candy"] .animal-tile:nth-child(3n) .fusion-piece { animation-delay: -.8s !important; }
  .combo-look[data-combo-pieces="candy"] .animal-tile:nth-child(4n) .fusion-piece { animation-delay: -1.6s !important; }
}

@keyframes combo-candy-idle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: translateY(-3%) rotate(3deg); }
}

/* The travel scenes are reused from Classique; the board stays readable above them. */
.combo-trial .game-shell {
  --frame-light: #ffdcab;
  --frame-dark: #815239;
  --board-glass: #24192ae8;
  --control-glass: #22172ce6;
}

.combo-trial .game-shell[data-theme="fusion"] {
  --ocean-art: url('/combo-ocean-lumiere-1080p-v1.webp');
  background: linear-gradient(180deg, #06284930, transparent 27%, #08365318 67%, #071c3b55),
    var(--ocean-art) center / cover no-repeat #075674;
  --frame-light: #bcefff;
  --frame-dark: #418097;
  --board-glass: #102b40c7;
  --control-glass: #125578f5;
  --panel-edge: #a0e8ffb8;
  --panel-text: #d9f4ff;
  --panel-accent: #fff2bc;
}

.combo-trial .game-shell[data-theme="neon"] {
  --control-glass: #59418cf5;
  --panel-edge: #e3c8ffb8;
  --panel-text: #f3e5ff;
  --panel-accent: #fff2bc;
  background: linear-gradient(#2817388c, transparent 40%, #25142786),
    url('/destinations/candy/classic-factory-v1.webp?v=39ce75d12631') center / cover no-repeat #5d3537;
}

.combo-trial .game-shell[data-theme="neon"]::before { display: none; }

.combo-trial .game-shell[data-theme] .animal-grid {
  background: linear-gradient(155deg, #ffffff19, transparent 62%), var(--board-glass);
  border: 2px solid var(--frame-light);
  border-radius: clamp(15px, 3vw, 26px);
  gap: clamp(2px, .55vmin, 5px);
  box-shadow: 0 0 0 2px var(--frame-dark), 0 7px 25px #10102299, inset 0 0 0 2px #ffffff24;
}

.combo-trial .game-shell[data-theme] .animal-grid::before { opacity: 0; }

.combo-trial .animal-tile:not(.hint-target, .selected, .storm-target) {
  background: linear-gradient(145deg, #ffffff20, #ffffff08 55%, #08071622);
  box-shadow: inset 0 1px 0 #ffffff38, inset 0 -1px 0 #04041036;
}
.combo-trial .animal-tile,
.combo-trial .animal-tile::before { border-radius: clamp(5px, 1.35vmin, 12px); }

.combo-trial :is(.status-bar, .board-footer, .vault-total) {
  background: var(--control-glass);
  border: 1px solid #ffffff42;
  border-radius: 14px;
}

.combo-trial :is(.status-bar, .board-footer) {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 5px 10px;
}

.combo-trial .combo-account-link { color: white; text-shadow: 0 1px 4px #16101e; }
.combo-trial .combo-player-scene { width: clamp(90px, 11vw, 152px); height: clamp(56px, 7vw, 95px); }
.combo-trial .combo-avatar { inset: 0 auto 0 0; width: 52%; }
.combo-trial .combo-vehicle { inset: 26% 0 0 auto; width: 66%; }
.combo-trial .combo-trial-levels { display: flex; gap: 6px; }
.combo-trial .combo-trial-levels a {
  padding: 6px 7px;
  border: 1px solid #ffffff48;
  border-radius: 9px;
  color: white;
  font-weight: 750;
}
.combo-trial .trial-note { color: #fff2ba; }

@media (max-width: 620px) {
  .combo-trial .combo-account-link > span:last-child { position: absolute; clip-path: inset(50%); }
  .combo-trial .game-header:has(.vault-bank) .game-controls { flex-wrap: wrap; }
  .combo-trial .game-controls button { align-self: center; }
  .combo-trial .status-bar { gap: 8px; }
  .combo-trial .board-footer { min-height: 0; margin-right: 64px; max-width: calc(100% - 64px); }
  .combo-trial .board-footer button { padding: 6px 8px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .combo-trial .combo-player-scene { width: 90px; height: 49px; }
  .combo-trial .board-footer { min-height: 0; padding-block: 3px; }
  .combo-trial .board-footer button { padding: 5px 9px; }
}

/* Give shaped boards a solid backing while leaving their missing cells visible. */
.combo-trial .game-shell[data-theme] .animal-grid.shaped {
  background: linear-gradient(145deg, #493351, #251c37) !important;
  border: 2px solid var(--frame-light) !important;
  box-shadow: 0 0 0 2px var(--frame-dark), 0 7px 25px #15102099 !important;
  border-radius: clamp(15px, 3vw, 26px);
  padding: clamp(4px, 1.1vmin, 9px);
  gap: clamp(2px, .55vmin, 5px);
}
.combo-trial .animal-grid.shaped .animal-tile:not(.rescue-cell, .hint-target, .selected, .storm-target) {
  background: linear-gradient(145deg, #fff4da, #e5c4bb);
  box-shadow: inset 0 1px 0 #fff8e8, inset 0 -2px 0 #a0687555;
}
.combo-trial .animal-grid.shaped .animal-tile:not(.rescue-cell)::before { border-color: #aa75826b; }
.combo-trial .animal-grid.shaped .board-hole { border-radius: 6px; background: #1f142f; }

.combo-trial .game-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(5px, 1.6vw, 22px);
}
.combo-trial .combo-brand { grid-column: 1; }
.combo-trial .combo-account-link {
  grid-column: 2;
  padding: 3px 8px;
  justify-content: center;
  border: 1px solid #ffffff42;
  border-radius: 14px;
  background: var(--control-glass);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}
.combo-trial .combo-account-link > span:last-child { position: static; clip-path: none; }
.combo-trial .game-header:has(.vault-bank) .game-controls {
  grid-column: 3;
  grid-row: 1;
  justify-content: center;
  flex-wrap: wrap;
  width: auto;
  margin: 0;
}
.combo-trial .game-header .vault-bank {
  grid-column: 4;
  grid-row: 1;
  min-width: 0;
  padding: 3px 6px;
  gap: 4px;
  border: 1px solid #ffffff42;
  border-radius: 14px;
  background: var(--control-glass);
}
.combo-trial .vault-bank .vault-total { min-width: 0; padding: 0; border: 0; background: none; }
.combo-trial .vault-host { width: clamp(38px, 10vw, 78px); height: clamp(34px, 8vw, 62px); }
.combo-trial .vault-bank small { letter-spacing: .2px; }
.combo-trial .board-footer { margin-inline: 0; max-width: 100%; justify-content: center; }

@media (orientation: portrait) and (max-width: 820px), (max-width: 590px) {
  .combo-trial .game-header { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 4px; }
  .combo-trial .game-header .vault-bank { grid-column: 3; justify-self: end; }
  .combo-trial .game-header:has(.vault-bank) .game-controls { grid-column: 1/-1; grid-row: 2; }
  .combo-trial .combo-brand img { width: clamp(72px, 19vw, 122px); height: clamp(40px, 11vw, 64px); }
  .combo-trial .combo-account-link { flex-direction: column; gap: 0; padding: 2px 6px 4px; font-size: 10px; }
  .combo-trial .combo-player-scene { width: clamp(70px, 21vw, 135px); height: clamp(39px, 11vw, 76px); }
  .combo-trial .vault-bank small { max-width: 56px; line-height: 1.1; }
  .combo-trial .status-bar { flex-wrap: wrap; gap: 4px 12px; }
  .combo-trial .status-bar .stat { white-space: nowrap; }
  .combo-trial .status-bar .target-stat { min-width: 0; }
  .combo-trial .status-bar .target-track { width: clamp(20px, 8vw, 65px); }
  .combo-trial .grid-area { width: min(97cqw, 96cqh, 590px); height: min(97cqw, 96cqh, 590px); }
}

@media (max-height: 520px) and (orientation: landscape) {
  .combo-trial .combo-account-link { font-size: 10px; }
  .combo-trial .combo-player-scene { width: 75px; height: 42px; }
  .combo-trial .vault-host { width: 55px; height: 45px; }
}

/* Browser overscroll is separate from Android's reserved edge gesture. */
html:has(body.combo-trial),
body.combo-trial {
  overscroll-behavior-x: none;
}
.combo-trial .game-shell[data-theme="neon"] {
  background-image: linear-gradient(#281738ae, #34203845 38%, #28173882),
    url('/destinations/candy/classic-factory-v1.webp?v=39ce75d12631');
}
@media (orientation: portrait) and (max-width: 820px) {
  .combo-trial .game-shell[data-theme="neon"] { background-position: center, 46% 50%; }
  .combo-trial .board-footer .footer-hint { display: none; }
}
@media (orientation: portrait) and (max-width: 460px) {
  .combo-trial .board-space { margin-inline: 16px; }
  .combo-trial .status-bar .rescue-intro { display: none; }
  .combo-trial .status-bar { padding: 4px 8px; }
  .combo-trial .status-bar .stat { gap: 4px; }
  .combo-trial .status-bar .stat b { font-size: 14px; }
  .combo-trial .vault-host { width: clamp(31px, 9vw, 40px); }
  .combo-trial .vault-bank .bank-amount { font-size: 19px; }
}

@media (min-width: 1921px), (min-width: 1000px) and (min-resolution: 2dppx) {
  .combo-trial .game-shell[data-theme="fusion"] {
    --ocean-art: url('/combo-ocean-lumiere-4k-v1.webp');
  }
}
@media (max-aspect-ratio: 5/6) {
  .combo-trial .game-shell[data-theme="fusion"] {
    --ocean-art: url('/combo-ocean-lumiere-portrait-v1.webp');
  }
}

.combo-trial .game-header .vault-bank,
.combo-trial :is(.combo-account-link, .status-bar, .board-footer) {
  border-color: var(--panel-edge, #ffffff42);
}
.combo-trial .status-bar .stat,
.combo-trial :is(.level-world, .rescue-copy, .vault-bank small) {
  color: var(--panel-text, #e5f5ff);
}
.combo-trial :is(.rescue-intro, .trial-note, .vault-bank .bank-amount) {
  color: var(--panel-accent, #fff2ba);
}
.combo-trial .game-header .vault-bank {
  background: linear-gradient(155deg, #ffffff21, transparent 64%), var(--control-glass);
  box-shadow: inset 0 1px 0 #ffffff48, 0 3px 12px #07193248;
}
.combo-trial .game-header .vault-bank.absorbing::after {
  inset: 0;
  width: auto;
  border: 0;
  border-radius: inherit;
  z-index: 0;
  animation: combo-vault-deposit .4s ease-out;
}

@keyframes combo-vault-deposit {
  from { box-shadow: inset 0 0 0 2px #ffe898, inset 0 0 12px #ffe89888; }
  to { box-shadow: inset 0 0 0 1px #ffe89800, inset 0 0 6px #ffe89800; }
}

.combo-trial .game-shell[data-theme="fusion"] { position: relative; isolation: isolate; }
.combo-aquarium {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.combo-aquarium[hidden] { display: none; }

/* Campaign scenery uses existing Bingo Level illustrations at two resolutions. */
.combo-trial .game-shell:is([data-theme="neon"],[data-theme="tropical"],[data-theme="vegas"],[data-theme="paris"]) {
  position: relative;
  isolation: isolate;
  background: linear-gradient(#15294344, transparent 28%, #1529433a),
    var(--ocean-art) calc(var(--scene-focus, .5) * 100%) 18% / cover no-repeat var(--scene-fallback);
}
.combo-trial .game-shell:is([data-theme="neon"],[data-theme="tropical"],[data-theme="vegas"],[data-theme="paris"])::before { display: none; }
.combo-trial .game-shell[data-theme="neon"] {
  --ocean-art: url('/combo-voyage-bonbons-hd-v1.webp');
  --scene-fallback: #573c6d;
}
.combo-trial .game-shell[data-theme="tropical"] {
  --ocean-art: url('/combo-voyage-tropical-hd-v1.webp');
  --scene-fallback: #1689a1;
  --control-glass: #176879f5;
  --panel-edge: #b7f9f3ac;
  --panel-text: #e7fffb;
  --panel-accent: #fff5ba;
  --frame-light: #c0fff3;
  --frame-dark: #1d8a96;
}
.combo-trial .game-shell[data-theme="paris"] {
  --ocean-art: url('/combo-seine-hd-v1.webp');
  --scene-fallback: #4b7092;
  --control-glass: #345c81f5;
  --panel-edge: #d1ecffac;
  --panel-text: #edf7ff;
  --panel-accent: #fff3c5;
  --frame-light: #ffe3b6;
  --frame-dark: #718cac;
}
.combo-trial .game-shell[data-theme="vegas"] {
  --ocean-art: url('/combo-fontaines-vegas-hd-v1.webp');
  --scene-fallback: #2f2356;
  --control-glass: #58397ff5;
  --panel-edge: #eac7ffac;
  --panel-text: #f7eaff;
  --panel-accent: #fff2b3;
  --frame-light: #ffdc91;
  --frame-dark: #8958a9;
}
@media (min-width: 1921px), (min-width: 1000px) and (min-resolution: 2dppx) {
  .combo-trial .game-shell[data-theme="neon"] { --ocean-art: url('/combo-voyage-bonbons-4k-v1.webp'); }
  .combo-trial .game-shell[data-theme="tropical"] { --ocean-art: url('/combo-voyage-tropical-4k-v1.webp'); }
  .combo-trial .game-shell[data-theme="paris"] { --ocean-art: url('/combo-seine-4k-v1.webp'); }
  .combo-trial .game-shell[data-theme="vegas"] { --ocean-art: url('/combo-fontaines-vegas-4k-v1.webp'); }
}

.combo-campaign-dialog, .combo-mission-dialog {
  border-color: #c3e4fa;
  background: linear-gradient(150deg,#1d4265,#182942);
  color: white;
  max-height: min(85dvh, 660px);
  overflow-y: auto;
}
.combo-campaign-dialog form, .combo-mission-dialog form { margin-top: 14px; text-align: right; }
#campaign-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
#campaign-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 5px 7px;
  border: 1px solid #a8d7ed66;
  border-radius: 9px;
  background: #25466d;
  font-size: 12px;
  line-height: 1.2;
}
#campaign-list a[aria-current="step"] { border-color: #ffe69d; background: #395879; }
#campaign-list a b { color: #fff1b2; font-size: 15px; }
#campaign-list a small { display: block; margin-top: 3px; color: #c4e9f7; }
#mission-steps p { font-size: 15px; color: #e2f4ff; }

.combo-route-icon {
  --route-color: #8aeaff;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #123b65;
  border: 2px solid var(--route-color);
  color: var(--route-color);
  box-shadow: 0 1px 5px #061b3d80;
}
.combo-route-icon::before {
  content: '';
  width: 7px;
  height: 9px;
  background: currentColor;
  border-radius: 70% 0 65% 65%;
  transform: rotate(-45deg);
}
.combo-route-icon[data-kind="bomb"] { --route-color: #ffcd73; background: #4d2a3b; }
.combo-route-icon[data-kind="bomb"]::before { width: 9px; height: 9px; border-radius: 50%; box-shadow: 4px -2px 0 -3px #fff6bf; }
.combo-route-icon[data-kind="rescue"] { --route-color: #d8baff; background: #403365; }
.combo-route-icon[data-kind="rescue"]::before { transform: none; border-radius: 2px; }
.animal-tile > .combo-route-icon {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: clamp(12px, 32%, 23px);
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
}
.animal-tile > .combo-route-icon[data-stage="ahead"] { opacity: .62; }
.animal-tile:has(> .combo-route-icon[data-stage="next"][data-kind="water"]) { outline: 2px solid #79f0ff; outline-offset: -2px; }
.animal-tile:has(> .combo-route-icon[data-stage="next"][data-kind="bomb"]) { outline: 2px solid #ffcd73; outline-offset: -2px; }
.animal-tile > .combo-route-icon[data-stage="next"] { box-shadow: 0 0 8px var(--route-color); }
.animal-tile > .combo-route-icon[data-stage="done"][data-kind="water"] { background: #159ec7; }
.animal-tile > .combo-route-icon[data-stage="done"][data-kind="bomb"] { opacity: .48; }
.combo-route-icon[data-destination="true"][data-kind="water"]:not([data-stage="done"])::before { background: #ff963e; }
.combo-route-icon .combo-route-pet { position: absolute; inset: -25%; pointer-events: none; }

@media (max-width: 620px) {
  .combo-trial .board-footer > .level-world { display: none; }
  .combo-trial #target-score.objective-list { gap: 4px; }
  .combo-trial .objective-item { font-size: 10px; }
}

.combo-water-flow {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.combo-water-flow polyline {
  fill: none;
  stroke: #7aedffb8;
  stroke-width: .09;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 .05px #56cfff);
  animation: combo-channel-current 1.4s ease-in-out infinite alternate;
}
@keyframes combo-channel-current { from { opacity: .58; } to { opacity: 1; } }

@media (max-aspect-ratio: 5/6) {
  .combo-trial .game-shell[data-theme="paris"] { --ocean-art: url('/combo-seine-portrait-v1.webp'); }
  .combo-trial .game-shell[data-theme="vegas"] { --ocean-art: url('/combo-fontaines-vegas-portrait-v1.webp'); }
}

/* Ice reads as an edge treatment; the gem stays clear in the middle. */
.combo-trial .animal-tile .ice-sheet {
  inset: 1px;
  border: 2px solid #a0f3ff;
  border-radius: inherit;
  background: transparent;
  box-shadow: inset 0 0 4px #54d7fb80;
}
.combo-trial .animal-tile .ice-sheet::before,
.combo-trial .animal-tile .ice-sheet::after {
  inset: 0;
  border: 0;
  rotate: none;
  background: linear-gradient(125deg,#e4fbff,#72cdec);
}
.combo-trial .animal-tile .ice-sheet::before {
  clip-path: polygon(0 0, 33% 0, 13% 8%, 7% 18%, 0 27%);
}
.combo-trial .animal-tile .ice-sheet::after {
  clip-path: polygon(100% 100%, 66% 100%, 87% 92%, 93% 82%, 100% 72%);
}
.combo-trial .animal-tile .ice-sheet[data-hp="1"] {
  border: 1px dashed #8bd8ed;
  background: transparent;
  box-shadow: none;
}
.combo-trial .animal-tile .ice-sheet[data-hp="1"]::before { opacity: .5; }
.combo-trial .animal-tile .ice-sheet[data-hp="1"]::after { display: none; }

/* Follow the shape of the playable tiles instead of drawing dark filler squares. */
.combo-trial .game-shell[data-theme] .animal-grid.shaped:not([data-level="2"]) {
  background: none !important;
  border: 2px solid transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 6px #14203d70);
}
.combo-trial .animal-grid.shaped:not([data-level="2"]) .board-hole { background: none; }
.combo-trial .animal-grid.shaped:not([data-level="2"]) .animal-tile::before {
  border: 1px solid #c89e8c80;
}
.combo-trial .animal-grid.shaped:not([data-level="2"]) .open-top::before { border-top: 2px solid var(--frame-light); }
.combo-trial .animal-grid.shaped:not([data-level="2"]) .open-bottom::before { border-bottom: 2px solid var(--frame-light); }
.combo-trial .animal-grid.shaped:not([data-level="2"]) .open-left::before { border-left: 2px solid var(--frame-light); }
.combo-trial .animal-grid.shaped:not([data-level="2"]) .open-right::before { border-right: 2px solid var(--frame-light); }

.combo-goal-label {
  display: grid;
  gap: 2px;
  font-size: 9px;
  line-height: 1;
}
.combo-goal-label b { font-size: 11px; }
.combo-trial .objective-list { flex-wrap: wrap; }
.combo-trial .status-bar .target-stat { flex-wrap: wrap; }
.combo-trial .combo-water-flow polyline {
  animation: none;
  stroke-width: .11;
}
.combo-trial .combo-water-flow .combo-channel-bed { stroke: #243b58b8; stroke-width: .16; }
.combo-trial .combo-water-flow .combo-channel-water { stroke: #31e4fff0; stroke-width: .115; }
.combo-trial .combo-water-flow .combo-channel-spark {
  stroke: #e0ffff;
  stroke-width: .042;
  stroke-dasharray: .14 .20;
  animation: combo-flow-down .75s linear infinite;
}
.combo-channel-pipe {
  fill: none;
  stroke: #b9d8e7;
  stroke-width: .20;
  stroke-linecap: square;
  filter: drop-shadow(0 1px 1px #17344f);
}
.animal-tile > .combo-route-icon[data-kind="water"]:not([data-destination="true"])::before {
  width: 68%;
  height: 68%;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(45deg,transparent 38%,currentColor 40% 58%,transparent 60%),
    linear-gradient(-45deg,transparent 38%,currentColor 40% 58%,transparent 60%);
  transform: none;
}
.animal-tile > .combo-route-icon[data-kind="water"][data-stage="open"] { opacity: .48; }
.animal-tile > .combo-route-icon[data-kind="water"][data-destination="true"]:not([data-stage="done"]) {
  --route-color: #ffcc62;
  background: #723138;
}
.animal-tile > .combo-route-icon[data-kind="water"][data-destination="true"]:not([data-stage="done"])::before {
  background: linear-gradient(#ffac44,#ffd967);
  animation: combo-channel-current .48s ease-in-out infinite alternate;
}
@keyframes combo-flow-down { to { stroke-dashoffset: -.34; } }

.combo-trial .board-space:has(.combo-water-flow) { padding-top: clamp(15px,3vmin,24px); }
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece] {
  background-size: contain;
  background-position: center !important;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px #16283b5e);
}
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece="puppy"] { background-image: url('/combo-bijou-diamant-v2.webp'); }
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece="kitten"] { background-image: url('/combo-bijou-coeur-v2.webp'); }
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece="panda"] { background-image: url('/combo-bijou-trefle-v2.webp'); }
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece="bunny"] { background-image: url('/combo-bijou-etoile-v2.webp'); }

/* Combo finish: each destination gets its own ink, trim and cell material. */
.combo-trial .game-shell {
  --ui-top:#233849; --ui-bottom:#102332; --ui-edge:#9ab6ba;
  --tile-top:#325166; --tile-bottom:#213747; --tile-edge:#7995a4;
  --board-shadow:#0c1d29;
}
.combo-trial .game-shell[data-theme="fusion"] {
  --ui-top:#184b67; --ui-bottom:#102c46; --ui-edge:#72c2d1;
  --tile-top:#226783; --tile-bottom:#164961; --tile-edge:#589db3; --board-shadow:#092839;
}
.combo-trial .game-shell[data-theme="neon"] {
  --ui-top:#563563; --ui-bottom:#301f48; --ui-edge:#c6a1dd;
  --tile-top:#59376b; --tile-bottom:#36234c; --tile-edge:#a679bd; --board-shadow:#26132e;
}
.combo-trial .game-shell[data-theme="paris"] {
  --ui-top:#34455b; --ui-bottom:#1a293c; --ui-edge:#d4b58a;
  --tile-top:#384e68; --tile-bottom:#243349; --tile-edge:#869bb6; --board-shadow:#151e2b;
}
.combo-trial .game-shell[data-theme="vegas"] {
  --ui-top:#4b3962; --ui-bottom:#29213e; --ui-edge:#d7ae84;
  --tile-top:#55426c; --tile-bottom:#35294c; --tile-edge:#a18abd; --board-shadow:#21152d;
}
.combo-trial .game-shell[data-theme="tropical"] {
  --ui-top:#22545c; --ui-bottom:#14333d; --ui-edge:#c4a875;
  --tile-top:#35616a; --tile-bottom:#234650; --tile-edge:#8aada7; --board-shadow:#102c34;
}
.combo-trial .game-shell[data-level="8"] {
  --ocean-art:url('/combo-canal-lagon-hd-v1.webp');
  --ui-top:#235451; --ui-bottom:#112f32; --ui-edge:#dfba81;
  --tile-top:#365b57; --tile-bottom:#244642; --tile-edge:#9cae8c;
  --board-shadow:#102e30;
  --ocean-tint:#173d3552;
}
@media (min-width:1720px), (min-height:1050px) and (min-aspect-ratio:1/1) {
  .combo-trial .game-shell[data-level="8"] { --ocean-art:url('/combo-canal-lagon-4k-v1.webp'); }
}
@media (max-aspect-ratio:5/6) {
  .combo-trial .game-shell[data-level="8"] { --ocean-art:url('/combo-canal-lagon-portrait-v1.webp'); }
}
@media (max-aspect-ratio:5/6) and (min-width:820px) and (min-resolution:2dppx),
       (max-aspect-ratio:5/6) and (min-height:1800px) {
  .combo-trial .game-shell[data-level="8"] { --ocean-art:url('/combo-canal-lagon-portrait-4k-v1.webp'); }
}
.combo-trial :is(.game-header .vault-bank,.combo-account-link,.status-bar,.board-footer) {
  background:linear-gradient(175deg,var(--ui-top),var(--ui-bottom));
  border:1px solid var(--ui-edge);
  box-shadow:inset 0 1px 0 #fff3,0 3px 0 #101d2cb0,0 5px 12px #07132159;
}
.combo-trial .game-controls button,.combo-trial .board-footer button,.combo-trial .combo-trial-levels a {
  background:linear-gradient(#ffffff13,#0002),var(--ui-bottom);
  border-color:#c5deea59;
  box-shadow:inset 0 1px 0 #fff2;
}
.combo-trial .game-controls button[aria-pressed="true"] { color:#cdf8ea; border-color:#a4d8c485; }
.combo-trial .board-footer #campaign-button {
  background:linear-gradient(#f6d596,#cf9750);
  color:#282030;
  border-color:#ffe6aa;
}
.combo-trial .status-bar { padding:6px 10px; gap:5px clamp(7px,1.65vw,20px); border-radius:15px; }
.combo-trial .status-bar .stat { gap:4px; }
.combo-trial .status-bar .stat:not(.target-stat) { flex-direction:column; gap:0; min-width:34px; }
.combo-trial .status-bar .stat:not(.target-stat) b { font-size:clamp(17px,3.8vw,23px); line-height:1.02; }
.combo-trial .status-bar .stat:not(.target-stat) > span { color:#d7e8e8; font-weight:850; letter-spacing:.07em; font-size:8px; }
.combo-trial .status-bar .target-stat { min-width:0; }
.combo-trial .status-bar .target-stat:has(.objective-list) { gap:6px; }
.combo-trial .status-bar .target-stat:has(.objective-list) > span { display:none; }
.combo-trial .status-bar .target-stat:has(.objective-list) .target-track { display:none; }
.combo-trial .status-bar .target-stat .objective-item {
  border-radius:8px; padding:3px 5px;
  background:#101b278f; box-shadow:inset 0 0 0 1px #ffffff28;
}
.combo-trial .combo-goal-label > span { font-size:10px; color:#f8e4b9; }
.combo-trial .combo-goal-label b { font-size:13px; color:#fff; }
.combo-trial .objective-item.completed .combo-goal-label b { color:#b7ffcf; }
.combo-trial .status-bar .rescue-intro { display:none; }
.combo-trial .game-shell[data-level="8"] .status-bar .rescue-intro:not([hidden]) {
  display:block; flex:0 0 100%; text-align:center; color:#ffe9b1;
  font-size:clamp(12px,2.7vw,15px); line-height:1.15; letter-spacing:.03em;
}
.combo-trial .game-shell[data-level="8"] .status-bar { max-width:min(330px,100%); }
.combo-trial .board-footer { padding:5px 9px; }
.combo-trial .board-footer .rescue-copy { color:#f2f7f1; }
.combo-trial .game-shell[data-level="8"] .board-footer .rescue-copy:not([hidden]) {
  flex:0 0 100%; order:-1; text-align:center; font-weight:750;
}
.combo-trial .game-shell[data-theme] .animal-grid:not(.shaped) {
  background:linear-gradient(155deg,var(--ui-top),var(--board-shadow));
  border-color:var(--ui-edge); box-shadow:0 4px 0 var(--board-shadow),0 8px 22px #08162680;
}
.combo-trial .game-shell[data-theme] .animal-grid .animal-tile:not(.rescue-cell,.hint-target,.selected,.storm-target) {
  background:linear-gradient(145deg,var(--tile-top),var(--tile-bottom));
  box-shadow:inset 0 1px 0 #fff3,inset 0 -2px 0 #07182565,0 2px 1px #041a2980;
}
.combo-trial .game-shell[data-theme] .animal-grid .animal-tile:not(.rescue-cell)::before { border-color:var(--tile-edge); opacity:.7; }
.combo-trial .game-shell[data-theme] .animal-grid .animal-tile:is(.open-top,.open-left,.open-bottom,.open-right)::before { opacity:.92; }
.combo-trial .animal-grid .animal-tile .fusion-piece:not(.bonus-piece) { inset:3%; width:94%; height:94%; }
.combo-trial[data-combo-pieces="gems"] .fusion-piece[data-piece] { filter:drop-shadow(0 2px 1px #020a139c); }
.combo-trial .combo-water-flow .combo-channel-rim { stroke:#a38451; stroke-width:.26; }
.combo-trial .combo-water-flow .combo-channel-bed { stroke:#133238; stroke-width:.15; }
.combo-trial .combo-water-flow .combo-channel-water { stroke:#39dbf4; stroke-width:.13; }
.combo-trial .combo-water-flow .combo-channel-spark { stroke:#d9fffb; stroke-width:.055; }
.combo-trial .combo-water-flow .combo-pipe-edge { stroke:#3a2426; stroke-width:.39; }
.combo-trial .combo-water-flow .combo-pipe-body { stroke:#b58144; stroke-width:.30; }
.combo-trial .combo-water-flow .combo-pipe-shine { stroke:#f5cb81; stroke-width:.1; }
.combo-pipe-collar { fill:#d9a85d; stroke:#432d26; stroke-width:.05; }
.combo-hearth-base { fill:#4e3931; stroke:#d1a46b; stroke-width:.053; }
.combo-hearth-flame { fill:#f77732; stroke:#782a26; stroke-width:.045; transform-origin:center bottom; transform-box:fill-box; }
.combo-hearth-core { fill:#ffe29a; }
.combo-hearth-steam { fill:none; stroke:#ccfffb; stroke-width:.055; stroke-linecap:round; }
@media (prefers-reduced-motion:no-preference) {
  .combo-hearth-flame { animation:combo-fire-flicker .7s ease-in-out infinite alternate; }
  @keyframes combo-fire-flicker { to { transform:scale(.88,1.06) skewX(-3deg); } }
}
.combo-trial .board-space:has(.combo-water-flow) { padding-top:clamp(21px,5vmin,38px); }
@media (max-height:480px) and (orientation:landscape) {
  .combo-trial .game-shell[data-level="8"] .status-bar { flex-wrap:nowrap; width:auto; max-width:100%; }
  .combo-trial .game-shell[data-level="8"] .status-bar .rescue-intro:not([hidden]) { flex:0 1 auto; white-space:nowrap; }
  .combo-trial .game-shell[data-level="8"] .board-footer .rescue-copy:not([hidden]) { flex:0 1 auto; }
  .combo-trial .board-space:has(.combo-water-flow) { padding-top:clamp(15px,4vmin,24px); }
}

/* The short landscape layout keeps the board at playing size beside the controls. */
.combo-trial .status-bar { flex-wrap:wrap; }
.combo-trial .board-footer { flex-wrap:wrap; }
.combo-trial .board-footer:has(.rescue-copy:not([hidden])) .footer-hint { display:none; }
.combo-trial .game-shell[data-level="8"] .board-footer > .level-world { display:none; }
.combo-trial .board-space:has(.combo-water-flow) { padding-top:clamp(29px,7vmin,68px); }
@media (min-width:960px) and (min-height:700px) {
  .combo-trial .game-header { width:min(100%,1380px); justify-self:center; }
  .combo-trial .grid-area { width:min(97cqw,96cqh,950px); height:min(97cqw,96cqh,950px); }
  .combo-trial .board-footer { width:max-content; max-width:min(94vw,1000px); }
  .combo-trial .game-shell[data-level="8"] .board-footer { max-width:min(94vw,590px); }
}
@media (orientation:landscape) and (max-height:520px) {
  .combo-trial .game-shell {
    grid-template-columns:minmax(0,2fr) minmax(0,3fr);
    grid-template-rows:auto auto minmax(0,1fr);
    align-items:center;
  }
  .combo-trial .game-header {
    grid-area:1/1/2/-1; min-height:0;
    grid-template-columns:auto auto minmax(0,1fr) auto;
    column-gap:5px;
  }
  .combo-trial .game-header .combo-brand img { width:clamp(58px,12vw,84px); height:38px; }
  .combo-trial .game-header .combo-account-link { grid-area:1/2; flex-direction:row; padding:2px 5px; }
  .combo-trial .game-header .combo-player-scene { width:58px; height:30px; }
  .combo-trial .game-header .vault-bank { grid-area:1/4; padding:2px 4px; }
  .combo-trial .game-header .vault-host { width:39px; height:30px; }
  .combo-trial .game-header:has(.vault-bank) .game-controls { grid-area:1/3; gap:3px; }
  .combo-trial .game-header .game-controls button { height:25px; padding:0 6px; font-size:10px; }
  .combo-trial .game-header .game-controls #fullscreen { display:none; }
  .combo-trial .status-bar,.combo-trial .game-shell[data-level="8"] .status-bar {
    grid-area:2/1; width:max-content; max-width:100%; flex-wrap:wrap; align-self:end;
  }
  .combo-trial .board-space { grid-area:2/2/4/3; align-self:stretch; margin-inline:0; }
  .combo-trial .board-space:has(.combo-water-flow) { padding-top:clamp(25px,7vmin,38px); }
  .combo-trial .board-footer { grid-area:3/1; align-self:center; width:max-content; max-width:100%; gap:4px 6px; }
  .combo-trial .game-shell[data-level="8"] .status-bar .rescue-intro:not([hidden]),
  .combo-trial .game-shell[data-level="8"] .board-footer .rescue-copy:not([hidden]) { flex:0 0 100%; }
  .combo-trial .board-footer > .level-world { display:none; }
}

/* Level 8. Keep the wide board and turn the water route into part of the tiles. */
.combo-trial .game-shell[data-level="8"] .grid-area {
  width:min(99cqw,98cqh,1370px);
  height:min(99cqw,98cqh,1370px);
}
.combo-trial .game-shell[data-level="8"] .board-space {
  margin-inline:0;
  padding-top:12px;
}
.combo-trial .game-shell[data-level="8"] .animal-grid {
  overflow:visible;
  isolation:isolate;
  padding:4px;
}
.combo-trial .game-shell[data-level="8"] .animal-tile { isolation:auto; }
.combo-trial .game-shell[data-level="8"] .animal-tile .fusion-piece { z-index:4; }
.combo-trial .game-shell[data-level="8"] .animal-tile[data-water-stage="done"] {
  background:
    repeating-linear-gradient(153deg,transparent 0 10%,#d5ffff48 12% 14%,transparent 18% 33%),
    radial-gradient(ellipse at 20% 22%,#6bd4e9,#1598b6 58%,#0a687c) !important;
}
.combo-trial .game-shell[data-level="8"] .animal-tile:is([data-water-stage="ahead"],[data-water-stage="next"],[data-water-stage="open"]) {
  background:linear-gradient(145deg,#3f665e,#29494a);
}
.combo-trial .game-shell[data-level="8"] .animal-tile[data-water-stage="next"] {
  outline:2px solid #e2fdff;
  outline-offset:-2px;
}
.combo-trial .game-shell[data-level="8"] .animal-tile .combo-route-icon[data-kind="water"] {
  width:clamp(12px,35%,30px);
  border-color:#b7f1f5;
  background:#145d71;
  color:#defbff;
}
.combo-trial .game-shell[data-level="8"] .animal-tile .combo-route-icon[data-stage="open"] { opacity:.55; }
.combo-trial .game-shell[data-level="8"] .animal-tile .combo-route-icon[data-stage="done"] { visibility:hidden; }
.combo-trial .game-shell[data-level="8"] .animal-tile .combo-route-icon[data-destination="true"]::before {
  width:65%; height:65%; border:1px solid currentColor; border-radius:50%;
  background:linear-gradient(45deg,transparent 38%,currentColor 40% 58%,transparent 60%),
    linear-gradient(-45deg,transparent 38%,currentColor 40% 58%,transparent 60%);
  transform:none; animation:none;
}
.combo-trial .combo-lagoon-channel { inset:6px; z-index:3; }
.combo-trial .combo-lagoon-channel .combo-sluice-water {
  stroke:#37cdeb; stroke-width:.31; stroke-linecap:round;
  stroke-linejoin:round; filter:none;
}
.combo-trial .combo-lagoon-channel .combo-sluice-current {
  stroke:#d1fcff; stroke-width:.07; stroke-dasharray:.16 .27;
  stroke-linecap:round; stroke-linejoin:round; filter:none;
}
.combo-sluice-gate,.combo-sluice-fire { filter:drop-shadow(0 2px 2px #102c2780); }
.combo-sluice-glow { fill:#ff9a32; opacity:.26; filter:blur(.10px); }
.combo-sluice-glow[data-extinguished="true"] { display:none; }
.combo-sluice-fire[data-extinguished="true"] { clip-path:inset(54% 0 0); }
.combo-sluice-steam { fill:none; stroke:#d7fffa; stroke-width:.065; stroke-linecap:round; opacity:.72; }
@media (prefers-reduced-motion:no-preference) {
  .combo-trial .combo-lagoon-channel .combo-sluice-current { animation:combo-sluice-flow .65s linear infinite; }
  .combo-sluice-glow { animation:combo-sluice-flicker .55s ease-in-out infinite alternate; }
  .combo-sluice-steam { animation:combo-sluice-steam-rise 1.3s ease-out infinite; }
  @keyframes combo-sluice-flow { to { stroke-dashoffset:-.43; } }
  @keyframes combo-sluice-flicker { to { opacity:.43; } }
  @keyframes combo-sluice-steam-rise { from { opacity:.72; } to { transform:translateY(-.18px); opacity:.15; } }
}
@media (max-height:520px) and (orientation:landscape) {
  .combo-trial .game-shell[data-level="8"] .board-space { padding-top:8px; }
}
@media (min-width:2000px) and (min-height:1100px) {
  .combo-trial .game-shell[data-level="8"] .status-bar { max-width:none; padding:8px 18px; gap:10px 24px; }
  .combo-trial .game-shell[data-level="8"] .status-bar .rescue-intro { font-size:20px; }
  .combo-trial .game-shell[data-level="8"] .status-bar .stat:not(.target-stat) > span { font-size:11px; }
  .combo-trial .game-shell[data-level="8"] .combo-goal-label b { font-size:17px; }
}

/* Level 8: soil is a fixed layer beneath the moving jewels. */
.combo-trial .game-shell[data-level="8"] .earth-board .animal-tile[data-ground] {
  background:#273434;
}
.combo-trial .game-shell[data-level="8"] .earth-board .animal-tile[data-ground="channel"] {
  background:radial-gradient(ellipse,#354944 25%,#172a2e 80%) !important;
  box-shadow:inset 0 0 0 2px #83604080,inset 0 2px 7px #0e2124;
}
.combo-soil {
  position:absolute; inset:0; z-index:1; border-radius:inherit; pointer-events:none;
  background:
    linear-gradient(150deg,#ffde9d25,#49241d42 80%),
    url('/combo-soil-v1.webp') center / cover #9d5737;
  border:1px solid #f5b773a8;
  box-shadow:inset 0 2px 2px #ffe5a953,inset 0 -3px 0 #502616aa;
}
.combo-soil-fragment {
  position:absolute; left:43%; top:44%; z-index:7; width:22%; height:19%;
  background:url('/combo-soil-v1.webp') center / 200% #a56039;
  clip-path:polygon(0 21%,59% 0,100% 33%,79% 81%,29% 100%);
  pointer-events:none;
}
.combo-trial .combo-earth-channel { inset:6px; z-index:3; }
.combo-earth-stream,.combo-earth-ripples {
  fill:none; stroke-linecap:round; stroke-linejoin:round;
}
.combo-earth-stream { stroke:#9ffff7; stroke-width:.44; stroke-opacity:.28; }
.combo-earth-caustics { fill:none; stroke:#cbfff5; stroke-width:.034; stroke-opacity:.37; }
.combo-earth-ripples {
  stroke:#d9fff8; stroke-width:.19; stroke-opacity:.44;
  stroke-dasharray:.08 .31 .13 .42;
}
.combo-earth-crest { fill:#d7fff7; opacity:.9; }
.combo-earth-channel[data-arrived="false"] .combo-sluice-steam { display:none; }
.combo-earth-channel[data-arrived="true"] .combo-sluice-glow { display:none; }
.combo-earth-channel .combo-sluice-fire {
  clip-path:inset(0 0 0);
  transition:clip-path .18s ease-in;
}
.combo-earth-channel .combo-sluice-fire[data-extinguished="true"] { clip-path:inset(54% 0 0); }
@media (prefers-reduced-motion:no-preference) {
  .combo-earth-ripples { animation:combo-earth-current .85s linear infinite; }
  @keyframes combo-earth-current { to { stroke-dashoffset:-.94; } }
}

.combo-trial .game-shell[data-level="8"] .status-bar:has(.lagoon-guide:not([hidden])) {
  width:min(100%,340px);
  max-width:100%;
  gap:5px 17px;
  padding:7px 9px 6px;
  border-color:#f5cf86;
  background:linear-gradient(164deg,#295b55,#122e35 80%);
}
.lagoon-guide:not([hidden]) {
  flex:0 0 100%; display:block; box-sizing:border-box;
  margin:1px 0 0; padding:5px 6px; border-radius:8px;
  border:1px solid #97e7e352; background:#102c31;
  color:#ddf9f1; font-size:clamp(11px,3.4vw,14px); font-weight:750;
  line-height:1.2; text-align:center;
}
.lagoon-guide[data-phase="start"] {
  background:linear-gradient(#31646a,#204952);
  color:#e6fffc; border-color:#9cf9eb;
  box-shadow:0 2px 0 #101f28,inset 0 1px 0 #dbfff966;
}
.lagoon-guide[data-phase="done"] { color:#9ff5cd; }
.earth-board.lagoon-guided .hint-target {
  outline:2px solid #ffdc7b; outline-offset:-2px;
}
.earth-board.lagoon-guided .hint-source {
  outline:2px solid #98fff2; outline-offset:-2px;
}
.earth-board .lagoon-hint-arrow {
  display:grid; place-items:center; left:100%; top:50%;
  width:clamp(25px,8cqw,39px); aspect-ratio:1;
  border-radius:50%; border:1px solid #cefff1;
  background:linear-gradient(#368580,#204b5f);
  color:#fff3bb; box-shadow:0 2px 8px #0b2934d4;
  font-size:clamp(16px,5.5cqw,27px); line-height:1;
  text-shadow:0 1px 1px #0e3b47;
}
.combo-earth-foam-thread {
  fill:none; stroke:#e5fffd; stroke-linecap:round; stroke-width:.078;
  stroke-opacity:.70; stroke-dasharray:.14 .52 .05 .63;
}
@media(prefers-reduced-motion:no-preference){
  .earth-board .lagoon-hint-arrow { animation:lagoon-arrow-nudge 1.15s ease-in-out infinite; }
  .combo-earth-foam-thread { animation:lagoon-foam-drift 1.16s linear infinite; }
  @keyframes lagoon-arrow-nudge { 50% { transform:translateX(5px) scale(1.06); } }
  @keyframes lagoon-foam-drift { to { stroke-dashoffset:-1.34; } }
}
@media(max-height:520px) and (orientation:landscape){
  .combo-trial .game-shell[data-level="8"] .status-bar:has(.lagoon-guide:not([hidden])) { width:100%; gap:4px 9px; }
  .lagoon-guide:not([hidden]) { font-size:11px; }
}

.combo-earth-channel g.combo-sluice-fire,
.combo-earth-channel g.combo-sluice-fire[data-extinguished="true"] { clip-path:none; }
.lagoon-brazier { clip-path:inset(54% 0 0); }
.lagoon-flame-shape {
  transform-box:fill-box;
  transform-origin:50% 54%;
}
.lagoon-embers { fill:#ffe39a; }
.lagoon-spray { opacity:0; fill:#d9fff8; }
.combo-earth-channel[data-arrived="true"] :is(.lagoon-flame,.lagoon-embers) { opacity:0; }
.lagoon-quenching .lagoon-spray { opacity:.92; }
.lagoon-vapor { fill:#d6fffa; stroke:none; opacity:.7; }
.combo-earth-channel .combo-earth-crest { fill:#e2fff9; }
@media(prefers-reduced-motion:no-preference){
  .lagoon-flame-shape { animation:lagoon-flame-dance .98s ease-in-out infinite alternate; }
  .lagoon-flame { transition:opacity .21s ease-in; }
  .lagoon-embers circle {
    transform-box:fill-box; transform-origin:center;
    animation:lagoon-ember-rise 1.17s ease-out infinite;
  }
  .lagoon-embers circle:nth-child(2n) { animation-delay:-.50s; }
  .lagoon-embers circle:nth-child(3n) { animation-delay:-.83s; }
  .combo-earth-channel .lagoon-vapor { animation:lagoon-steam-puff 1.4s ease-out infinite; }
  .lagoon-quenching .lagoon-spray { animation:lagoon-splash .5s ease-out forwards; }
  .lagoon-spray,.lagoon-vapor { transform-box:fill-box; transform-origin:center; }
  @keyframes lagoon-flame-dance {
    0% { transform:skewX(-5deg) scale(.97,1.06); filter:brightness(.97); }
    38% { transform:skewX(4deg) scale(1.04,.92); filter:brightness(1.08); }
    76% { transform:skewX(-2deg) scale(.99,1.12); filter:brightness(1.03); }
    100% { transform:skewX(6deg) scale(1.02,.95); filter:brightness(1.14); }
  }
  @keyframes lagoon-ember-rise {
    from { opacity:0; transform:translate(0,0) scale(.75); }
    22% { opacity:1; }
    to { opacity:0; transform:translate(.17px,-.56px) scale(.18); }
  }
  @keyframes lagoon-steam-puff {
    from { opacity:.72; transform:translateY(0) scale(.75); }
    to { opacity:0; transform:translateY(-.65px) scale(2.1,1.6); }
  }
  @keyframes lagoon-splash {
    from { opacity:.92; transform:scale(.45); }
    to { opacity:0; transform:translateY(-.26px) scale(1.65); }
  }
}

.combo-trial .game-shell[data-theme="serpent"] {
  --frame-light:#cbb46c; --frame-dark:#473822;
  --board-glass:#1a2b24; --control-glass:#253d30;
  --panel-edge:#d3bc79; --panel-text:#edffe0; --panel-accent:#fff1bc;
  --ui-top:#34513b; --ui-bottom:#182e27; --ui-edge:#d4b36e;
  --tile-top:#415944; --tile-bottom:#2a4035; --tile-edge:#96a16e;
  background:linear-gradient(180deg,#121d1866 0%,#17271b18 42%,#18261d6b 100%),
    url('/combo-temple-serpent-hd-v1.webp') center / cover no-repeat #263628;
}
@media (min-aspect-ratio:1/1) and (min-width:1700px), (min-aspect-ratio:1/1) and (min-resolution:2dppx) and (min-width:960px) {
  .combo-trial .game-shell[data-theme="serpent"] { background-image:linear-gradient(#17281c55,#17281c38),url('/combo-temple-serpent-4k-v1.webp'); }
}
@media (max-aspect-ratio:5/6) {
  .combo-trial .game-shell[data-theme="serpent"] { background-image:linear-gradient(#17281c55,#17281c38),url('/combo-temple-serpent-portrait-v1.webp'); }
}
@media (max-aspect-ratio:5/6) and (min-width:1000px) {
  .combo-trial .game-shell[data-theme="serpent"] { background-image:linear-gradient(#17281c55,#17281c38),url('/combo-temple-serpent-portrait-4k-v1.webp'); }
}
.combo-trial .game-shell[data-theme="serpent"] .animal-grid { isolation:isolate; overflow:visible; }
.combo-trial .game-shell[data-theme="serpent"] .animal-tile {
  isolation:auto;
  background:linear-gradient(148deg,#425d43,#243b31);
}
.combo-trial .game-shell[data-theme="serpent"] .animal-tile .fusion-piece { z-index:4; }
.combo-trial .game-shell[data-theme="serpent"] .animal-tile[data-snake-stone="ahead"] {
  background:linear-gradient(145deg,#685b3b,#483c2b);
}
.combo-trial .game-shell[data-theme="serpent"] .animal-tile[data-snake-stone="passed"] {
  background:linear-gradient(145deg,#456951,#2a473b);
}
.combo-trial .game-shell[data-theme="serpent"] .animal-tile[data-snake-stone="next"] {
  background:linear-gradient(145deg,#ae823d,#614829) !important;
  outline:2px solid #ffdc81; outline-offset:-2px;
  box-shadow:0 0 7px #ffd4798a;
}
.combo-trial .game-shell[data-theme="serpent"] .status-bar .rescue-intro:not([hidden]) {
  display:block; flex:0 0 100%; text-align:center; font-size:clamp(12px,3vw,17px); color:#ffe5a0;
}
.combo-trial .game-shell[data-theme="serpent"] .board-footer .rescue-copy:not([hidden]) { flex:0 0 100%; order:-1; text-align:center; font-weight:750; }
.combo-route-icon[data-kind="snake"] {
  color:#90efac;
  background:#24513c;
  border-color:#a4e0a1;
}
.combo-route-icon[data-kind="snake"]::before {
  width:54%; height:62%; background:currentColor; border-radius:35% 55% 50% 38%;
  clip-path:polygon(0 0,92% 0,92% 40%,29% 40%,29% 57%,100% 57%,100% 100%,0 100%,0 67%,73% 67%,73% 57%,0 57%);
}
.combo-snake-scene {
  position:absolute; inset:6px; width:calc(100% - 12px); height:calc(100% - 12px);
  overflow:visible; pointer-events:none; z-index:3;
}
.jade-snake-shadow,.jade-snake-body,.jade-snake-gleam {
  fill:none; stroke-linecap:round; stroke-linejoin:round;
}
.jade-snake-shadow { stroke:#182e23; stroke-width:.245; }
.jade-snake-body { stroke:#4dc878; stroke-width:.18; }
.jade-snake-gleam { stroke:#b7f39a; stroke-width:.044; stroke-dasharray:.05 .085; }
.snake-door-inner { fill:#2d3025; transition:fill .35s ease; }
.combo-snake-scene[data-open="true"] .snake-door-inner { fill:#ffe3a2; }
.combo-snake-scene[data-open="true"] .jade-snake { opacity:.15; transition:opacity .28s ease; }

.combo-trial .game-shell[data-theme="rail"] {
  --adventure-hd:url('/combo-aventure-rail-hd.webp'); --adventure-portrait:url('/combo-aventure-rail-portrait.webp'); --adventure-4k:url('/combo-aventure-rail-4k.webp');
  --frame-light:#e1b585; --frame-dark:#583a3b; --board-glass:#342437; --control-glass:#432e40;
  --panel-edge:#e1ae85; --panel-text:#fff2e1; --panel-accent:#ffe0a3;
  --ui-top:#624555; --ui-bottom:#342438; --ui-edge:#d59b72;
  --tile-top:#694d5c; --tile-bottom:#402d40; --tile-edge:#b78d83; --board-shadow:#271d2b;
}
.combo-trial .game-shell[data-theme="orbitarium"] {
  --adventure-hd:url('/combo-aventure-orbit-hd.webp'); --adventure-portrait:url('/combo-aventure-orbit-portrait.webp'); --adventure-4k:url('/combo-aventure-orbit-4k.webp');
  --frame-light:#c3a1e1; --frame-dark:#3b2b59; --board-glass:#231c43; --control-glass:#30244e;
  --panel-edge:#c9a5e6; --panel-text:#f6ecff; --panel-accent:#ffe5b2;
  --ui-top:#4f3c72; --ui-bottom:#292044; --ui-edge:#bc9cd8;
  --tile-top:#554377; --tile-bottom:#372c57; --tile-edge:#a48abb; --board-shadow:#231a3b;
}
.combo-trial .game-shell[data-theme="beacon"] {
  --adventure-hd:url('/combo-aventure-beacon-hd.webp'); --adventure-portrait:url('/combo-aventure-beacon-portrait.webp'); --adventure-4k:url('/combo-aventure-beacon-4k.webp');
  --frame-light:#aecfc6; --frame-dark:#244250; --board-glass:#183442; --control-glass:#1f404c;
  --panel-edge:#9ec9c2; --panel-text:#ecfffb; --panel-accent:#ffe8b1;
  --ui-top:#39606d; --ui-bottom:#203947; --ui-edge:#93b9b6;
  --tile-top:#436b77; --tile-bottom:#2a4b56; --tile-edge:#8db3b7; --board-shadow:#122d39;
}
.combo-trial .game-shell:is([data-theme="rail"],[data-theme="orbitarium"],[data-theme="beacon"]) {
  position:relative; isolation:isolate;
  background:linear-gradient(180deg,#181b2e55 0%,#1b1b3020 46%,#191a2c65 100%),var(--adventure-art,var(--adventure-hd)) center / cover no-repeat #242842;
}
.combo-trial .game-shell:is([data-theme="rail"],[data-theme="orbitarium"],[data-theme="beacon"])::after {
  content:''; position:absolute; z-index:-1; pointer-events:none;
}
.combo-trial .game-shell[data-theme="rail"]::after {
  inset:18% 11% 38%; background:radial-gradient(ellipse at 50% 42%,#ffb57149,transparent 70%);
  animation:combo-canyon-haze 12s ease-in-out infinite alternate;
}
.combo-trial .game-shell[data-theme="orbitarium"]::after {
  inset:0 0 65%;
  background:radial-gradient(circle at 9% 28%,#e2c7ff 0 1px,transparent 3px),radial-gradient(circle at 92% 16%,#fff2db 0 1px,transparent 4px),radial-gradient(circle at 77% 33%,#f4d7ff 0 1px,transparent 3px),radial-gradient(circle at 20% 56%,#fff4ca 0 1px,transparent 4px);
  animation:combo-star-twinkle 4.3s ease-in-out infinite alternate;
}
.combo-trial .game-shell[data-theme="beacon"]::after {
  inset:42% 14% 16%;
  background:radial-gradient(ellipse at 52% 56%,#b8d5e532,transparent 66%);
  animation:combo-canyon-haze 16s ease-in-out infinite alternate;
}
@keyframes combo-canyon-haze { from { transform:translateX(-12%); opacity:.3; } to { transform:translateX(12%); opacity:.8; } }
@keyframes combo-star-twinkle { from { opacity:.12; } to { opacity:.82; } }
@media (max-aspect-ratio:5/6) {
  .combo-trial .game-shell:is([data-theme="rail"],[data-theme="orbitarium"],[data-theme="beacon"]) { --adventure-art:var(--adventure-portrait); }
}
@media (min-aspect-ratio:1/1) and (min-width:1700px) {
  .combo-trial .game-shell:is([data-theme="rail"],[data-theme="orbitarium"],[data-theme="beacon"]) { --adventure-art:var(--adventure-4k); }
}
.animal-grid:has(>.combo-adventure-scene) { isolation:isolate; overflow:visible; }
.combo-trial .game-shell[data-theme] .animal-grid:has(>.combo-adventure-scene) .animal-tile { isolation:auto; }
.animal-grid:has(>.combo-adventure-scene) .animal-tile .fusion-piece { z-index:4; }
.combo-adventure-scene {
  position:absolute; inset:6px; width:calc(100% - 12px); height:calc(100% - 12px);
  overflow:visible; pointer-events:none; z-index:3;
}
.combo-trial .game-shell[data-theme] .animal-grid .animal-tile:is([data-adventure-stone="rail-wait"],[data-adventure-stone="rail-next"]):not(.selected,.hint-target,.storm-target) {
  background:linear-gradient(150deg,#895c49,#584047);
}
.animal-tile[data-adventure-stone="rail-next"] { outline:2px solid #ffe2a1; outline-offset:-2px; }
.combo-trial .game-shell[data-theme] .animal-grid .animal-tile[data-adventure-stone="mirror-wait"]:not(.selected,.hint-target,.storm-target) {
  background:linear-gradient(155deg,#7755a0,#42315e); outline:1px solid #c49ee1; outline-offset:-2px;
}
.combo-route-icon[data-kind="rail"] { color:#ffe2a4; background:#79543f; border-color:#f6c785; }
.combo-route-icon[data-kind="mirror"] { color:#f2d9ff; background:#5e4384; border-color:#d6b8ff; }
.combo-route-icon[data-kind="rail"]::before { width:52%; height:68%; background:repeating-linear-gradient(0deg,currentColor 0 18%,transparent 18% 38%); border-inline:2px solid currentColor; }
.combo-route-icon[data-kind="mirror"]::before { width:45%; height:60%; background:linear-gradient(120deg,#8d74d8,currentColor); border-radius:60% 45%; rotate:34deg; }
.adventure-track-bed,.adventure-track-broken,.adventure-track-open,.adventure-track-center,.adventure-beam,.adventure-beam-halo { fill:none; stroke-linejoin:round; }
.adventure-track-bed { stroke:#30243b; stroke-width:.19; opacity:.83; }
.adventure-track-broken { stroke:#b88168; stroke-width:.075; stroke-dasharray:.09 .12; }
.adventure-track-open { stroke:#f2c179; stroke-width:.133; }
.adventure-track-center { stroke:#554255; stroke-width:.045; }
.adventure-beam-halo { stroke:#c69cf9; stroke-width:.16; opacity:.45; }
.adventure-beam { stroke:#fff2cd; stroke-width:.047; stroke-dasharray:.12 .035; animation:combo-light-beam 1.8s linear infinite; }
.adventure-lantern-light { transform-box:fill-box; transform-origin:center; animation:combo-lantern-sweep 2.5s ease-in-out infinite alternate; }
@keyframes combo-light-beam { to { stroke-dashoffset:-.155; } }
@keyframes combo-lantern-sweep { from { transform:scaleX(.35);opacity:.32; } to { transform:scaleX(1);opacity:.82; } }
@media (prefers-reduced-motion:reduce) {
  .adventure-beam,.adventure-lantern-light,.combo-trial .game-shell:is([data-theme="rail"],[data-theme="orbitarium"],[data-theme="beacon"])::after { animation:none; }
}

.lagoon-pet-box { overflow:visible; }
.lagoon-pet-box .lagoon-rabbit { overflow:visible; transform-origin:50% 90%; }
.combo-earth-channel[data-arrived="true"] .lagoon-rabbit { transform:translate(13%,-15%); }
@media(prefers-reduced-motion:no-preference){
  .lagoon-quenching .lagoon-rabbit { animation:lagoon-rabbit-escape .82s .09s cubic-bezier(.35,.2,.45,1) both; }
  @keyframes lagoon-rabbit-escape {
    0% { transform:translate(0,0) scale(1); }
    29% { transform:translate(4%,-27%) scale(.94,1.08); }
    52% { transform:translate(8%,-6%) scale(1.07,.96); }
    77% { transform:translate(11%,-30%) scale(.98,1.04); }
    100% { transform:translate(13%,-15%) scale(1); }
  }
}

.lagoon-timer:not([hidden]){
  display:grid; justify-items:center; align-content:center;
  min-width:46px; padding:2px 5px;
  border:1px solid #b2e0d6; border-radius:8px; background:#112f36;
}
.lagoon-timer span { color:#dcf6eb; font-size:8px; text-transform:uppercase; font-weight:900; }
.lagoon-timer b { color:#caffea; font-size:clamp(16px,4vw,23px); line-height:1.08; font-variant-numeric:tabular-nums; }
.lagoon-timer[data-phase="ready"] { border-color:#9bccc282; }
.lagoon-timer:is(.time-low,[data-phase="expired"]) { background:#59312c; border-color:#f8b18d; }
.lagoon-timer:is(.time-low,[data-phase="expired"]) b { color:#ffe0b4; }
@media(max-width:350px){.lagoon-timer:not([hidden]){min-width:39px;padding-inline:3px;}}

.lagoon-fire-canvas { display:block; width:100%; height:100%; }
.has-live-flame .lagoon-flame { display:none; }

.combo-trial .dig-board .animal-tile > .fusion-piece { z-index:4; }
.combo-trial .dig-board .animal-tile[data-dig-ground="waiting"] .combo-soil { filter:saturate(.7) brightness(.74); }
.combo-trial .dig-board .animal-tile[data-dig-ground="active"] .combo-soil { border:2px solid #eeb679; }
.combo-trial .dig-board .animal-tile[data-dig-hazard="fire"] { outline:2px solid #fb9b50;outline-offset:-1px; }
.combo-trial .dig-board .animal-tile[data-dig-hazard="frost"] { outline:2px solid #b8f5ff;outline-offset:-1px; }
.combo-trial .dig-board .animal-tile[data-dig-hazard="fire"] .fusion-piece:not(.bonus-piece) { inset:2% 10% 18%;width:80%;height:80%; }
.dig-flame,.dig-frost,.dig-steam { position:absolute;pointer-events:none;z-index:2; }
.dig-flame { width:100%;height:79%;bottom:1%;left:0;transform-origin:center bottom;filter:drop-shadow(0 0 4px #ff792f); }
.dig-flame path { transform-origin:center bottom;animation:dig-fire-flicker .82s ease-in-out infinite alternate; }
.dig-flame path:nth-child(2) { animation-delay:-.47s;animation-duration:.63s; }
.dig-flame path:nth-child(3) { animation-delay:-.32s;animation-duration:.54s; }
.animal-tile:nth-child(odd) .dig-flame path { animation-direction:alternate-reverse; }
@keyframes dig-fire-flicker { from { transform:skewX(-6deg) scaleY(.77); } to { transform:skewX(6deg) scaleY(1); } }
.dig-frost { inset:1px;border-radius:inherit;border:3px solid #9de9f6;background:linear-gradient(143deg,#dcffffa3,transparent 31% 67%,#7acde981);box-shadow:inset 0 0 4px 2px #beeeff9d; }
.dig-frost[data-hp="1"] { border-style:dashed;opacity:.72; }
.dig-steam { z-index:5;inset:20% 13% 0;border-radius:44%;background:radial-gradient(ellipse,#e8faffb5,transparent 67%); }
.dig-board [data-dig-locked="true"] { filter:saturate(.6); }
.dig-board [data-dig-locked="true"] .cage-lock {
  font-size:0;
  background:#6c7d90;
  border-color:#a0aec0;
  box-shadow:0 2px 1px #263045;
}
.dig-board [data-dig-locked="true"] .cage-lock::before { border-color:#bac6d5; }
.dig-board [data-dig-locked="true"] .cage-lock::after {
  content:"";
  width:22%;
  height:38%;
  border-radius:50%;
  background:#273447;
}
.combo-route-icon[data-kind="dig"] { color:#ffdcad;background:#844829;border-color:#e5a976; }
.combo-route-icon[data-kind="dig"]::before { background:currentColor;clip-path:polygon(0 85%,8% 61%,26% 59%,36% 26%,61% 20%,75% 49%,92% 54%,100% 85%);width:78%;height:72%; }
.combo-route-icon[data-kind="fire"] { color:#ffd091;background:#843938;border-color:#ffb477; }
.combo-route-icon[data-kind="fire"]::before { background:currentColor;clip-path:polygon(50% 0,72% 39%,84% 25%,100% 68%,87% 90%,58% 100%,25% 95%,5% 72%,20% 38%,32% 55%);width:66%;height:73%; }
.combo-route-icon[data-kind="frost"] { color:#e0fcff;background:#306286;border-color:#a5e9f5; }
.combo-route-icon[data-kind="frost"]::before { background:currentColor;clip-path:polygon(28% 3%,74% 4%,100% 46%,77% 93%,29% 100%,0 51%);width:64%;height:66%; }
@media (prefers-reduced-motion:reduce) { .dig-flame path { animation:none; } }
.combo-trial .board-footer:has(.dig-progress:not([hidden])) {
  row-gap:5px;
}
.combo-trial .dig-progress:not([hidden]) {
  display:flex;
  flex:0 0 100%;
  flex-wrap:wrap;
  justify-content:center;
  gap:4px;
  list-style:none;
  margin:0;
  padding:0;
}
.dig-progress li {
  --step-color:#ecc598;
  display:flex;
  align-items:center;
  gap:4px;
  min-height:23px;
  padding:2px 6px;
  border:1px solid #b4bcc251;
  border-radius:8px;
  background:#1422377d;
  color:#dfebf1;
  font-size:clamp(10px,2.8vw,12px);
  font-weight:700;
}
.dig-progress [data-step="fire"] { --step-color:#ffd096; }
.dig-progress [data-step="frost"] { --step-color:#b7f0ff; }
.dig-progress [data-step="rescue"],.dig-progress [data-status="done"] { --step-color:#b9f1bf; }
.dig-progress [data-status="active"] {
  border-color:var(--step-color);
  color:#fff;
  box-shadow:inset 0 0 0 1px #ffffff1f;
}
.dig-progress [data-status="done"] { color:var(--step-color); }
.dig-step-number {
  display:grid;
  place-items:center;
  min-width:14px;
  height:14px;
  border-radius:50%;
  background:#ffffff19;
  font-size:9px;
}
.dig-progress :is([data-status="active"],[data-status="done"]) .dig-step-number {
  background:var(--step-color);
  color:#1c2534;
}
.combo-trial .board-footer:has(.dig-progress:not([hidden])) .rescue-copy:not([hidden]) {
  flex:0 0 100%;
  text-align:center;
  font-size:clamp(11px,2.9vw,13px);
  line-height:1.25;
}
.combo-trial .dig-board .animal-tile[data-dig-hazard="fire"] .combo-soil {
  box-shadow:inset 0 -6px 10px #ff672dba;
}
.combo-trial .dig-board .dig-frost[data-hp="1"] {
  border-style:solid;
  background:linear-gradient(143deg,#dcffff80,transparent 29% 75%,#7acde981);
}
.dig-frost[data-hp="1"]::after {
  position:absolute;
  inset:0;
  content:"";
  background:#d2f7ffe0;
  clip-path:polygon(1% 27%,23% 30%,36% 56%,55% 48%,68% 65%,100% 70%,100% 75%,66% 69%,53% 53%,34% 61%,20% 34%,1% 32%);
}
@media (prefers-reduced-motion:no-preference) {
  .dig-progress [data-status="active"] { animation:dig-step-arrival .36s ease-out; }
  @keyframes dig-step-arrival {
    from { transform:translateY(3px); opacity:.7; }
  }
}
.combo-earth-channel[data-arrived="true"] .lagoon-live-flame { opacity:0; }
@media(prefers-reduced-motion:no-preference){
  .lagoon-live-flame { transition:opacity .16s ease-out; }
}
