/* Water Sort's playable stage. The board remains semantic HTML buttons. */
html:has(> body.water-page), html:has(> body.portal-home) { background: #f3f5ff; }
body.water-page, body.portal-home {
  min-height: 100vh;
  --ink: #172445; --muted: #667394; --line: #e0e6f5;
  --green: #435ac9; --dark-green: #4059dd; --white: #fff;
  color: var(--ink); background: radial-gradient(ellipse at 0 0, #e0f4ff, transparent 48%), #f3f5ff;
}
.water-page .site-header, .portal-home .site-header { background: #ffffffed; border-color: #e3e9fa; }
.water-page .header-inner, .portal-home .header-inner { max-width: 1240px; min-height: 68px; }
.water-page .brand-mark, .portal-home .brand-mark { background: linear-gradient(135deg,#8d8aff,#4654d9); box-shadow: 0 5px 14px #6666e32b; }
.water-page .top-nav > a, .portal-home .top-nav > a { color: #516280; }
.water-page .languages summary, .portal-home .languages summary { color: #4155b1; border-color: #dce3f8; }
.water-page .language-menu { z-index: 20; }
.water-page .language-menu a:hover, .water-page .language-menu [aria-current] { background: #edf0ff; }
.water-main { max-width: 1120px; padding-top: 27px; }
.water-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.water-heading > div { min-width: 0; max-width: 710px; }
.water-heading h1 { font-size: clamp(1.9rem,4vw,3.1rem); letter-spacing: -.055em; margin-bottom: 9px; }
.water-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.water-heading .eyebrow { font-size: .69rem; letter-spacing: .04em; color: #6c7b9a; text-transform: none; }
.water-heading .eyebrow span { margin: 0 6px; opacity: .5; }
.water-heading .game-switch { margin: 0; flex: 0 0 auto; max-width: 34%; align-self: end; }
.water-heading .game-switch a { font-size: .76rem; padding: 8px 10px; color: #52618e; border-color: #dce2f4; }
.water-heading .game-switch a[aria-current] { color: white; background: #5261dc; border-color: #5261dc; }
.water-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid #dce1f3; background: white; box-shadow: 0 18px 55px #35357713, 0 3px 8px #35357708; }
.water-chrome { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: #fff; }
.water-chrome .modes { background: #f0f2fc; max-width: 75%; }
.water-chrome .modes button { color: #7580a1; padding: 9px 16px; font-size: .81rem; min-height: 36px; }
.water-chrome .modes button[aria-pressed="true"] { color: #4653c0; background: white; border-color: #e5e6fc; }
.water-chrome .modes button[aria-pressed="false"]:hover { background: #e8ebfa; }
.water-options { flex: 0 0 auto; display: flex; gap: 6px; }
.water-options .control { color: #6b76a2; border: 0; background: #f5f6fd; min-height: 36px; }
.water-room { position: relative; isolation: isolate; overflow: hidden; padding: 20px 36px 18px; background: radial-gradient(ellipse at 50% 82%,#a79aff66,transparent 51%), radial-gradient(ellipse at 18% 8%,#8c7dd64d,transparent 50%), linear-gradient(155deg,#292957,#424078 52%,#59528b); }
.water-room::before { content: ""; position: absolute; z-index: -1; width: 120%; height: 200px; border-radius: 50%; left: -10%; bottom: -135px; background: #b6a7ed20; box-shadow: 0 -12px 70px #b1a4ee17; }
.water-room::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .65; background-image: radial-gradient(circle,#fff9 1px,transparent 1.8px),radial-gradient(circle,#e3d5ff55 1px,transparent 1.8px); background-size: 177px 137px,113px 171px; background-position: 37px 29px,81px 73px; pointer-events: none; }
.scene-stars { position: absolute; inset: 80px 7% auto; z-index: -1; color: #ded1ff; font-size: 25px; opacity: .65; pointer-events: none; }
.scene-stars i { position: absolute; right: 7%; top: 30px; font-size: 16px; font-style: normal; }
.scene-stars b { position: absolute; left: 10%; top: 180px; font-size: 20px; }
.scene-stars em { position: absolute; left: 45%; top: 10px; }
.water-hud { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.water-hud .stage { flex-direction: column; align-items: start; gap: 6px; }
.water-hud h2 { color: #fff; font-size: 1.08rem; letter-spacing: -.02em; }
.water-hud .level-count { color: #dfd6ff; background: #ffffff0c; border: 1px solid #cfc7ff33; padding: 5px 9px; }
.water-hud .moves { min-width: 72px; align-items: center; background: #1d1d462b; border: 1px solid #e0d5ff26; border-radius: 13px; padding: 8px 13px; gap: 5px; max-width: 35%; }
.water-hud .moves span { color: #cbc4e9; font-size: .65rem; text-align: center; }
.water-hud .moves strong { color: #fff; font-size: 1.55rem; }
.water-scene-title { color: #f8efff; text-align: center; font-size: clamp(1.25rem,3vw,2rem); font-weight: 850; letter-spacing: -.03em; text-shadow: 0 3px 0 #201b4a44, 0 0 25px #c6aaff45; margin: -26px auto 0; max-width: 60%; }
.water-scene-title span { display: block; color: #eacfff99; font-size: .7rem; letter-spacing: .4em; margin-top: 9px; }
.water-room .board { --water-unit: 43px; min-height: 290px; gap: 20px 25px; padding: 38px 0 20px; align-items: end; position: relative; }
.water-room .vial-button { position: relative; padding: 6px 8px; gap: 13px; border-radius: 16px; min-width: 84px; color: #eae2ff; }
.water-room .vial-button::before { content: ""; position: absolute; left: -6px; right: -6px; bottom: 21px; height: 16px; border-radius: 50%; background: #1715355c; filter: blur(4px); z-index: -1; }
.water-bottle .vial { --water-unit: 43px; width: 72px; height: calc(var(--water-unit) * 4 + 28px); padding: 20px 5px 4px; gap: 0; align-items: stretch; border: 2px solid #f3eaffb0; border-top: 2px solid #ffffffe0; border-radius: 9px 9px 24px 24px; background: linear-gradient(90deg,#ffffff24,#ffffff05 25%,#c8bfff10 70%,#ffffff22); box-shadow: inset 4px 0 5px #ffffff25, inset -4px 0 5px #9e9ad62e, 0 6px 13px #17133029; }
.water-bottle .vial::before { top: -6px; left: -5px; right: -5px; height: 8px; border: 2px solid #f2eaffc9; background: #bcb5e766; border-radius: 5px; box-shadow: inset 0 1px #fff8, 0 2px 5px #23234e33; z-index: 3; }
.water-bottle .vial::after { content: ""; position: absolute; top: 11px; bottom: 14px; left: 6px; width: 5px; background: linear-gradient(#ffffff80,#ffffff12); border-radius: 5px; pointer-events: none; z-index: 2; }
.water-bottle .water-layer { flex: 0 0 calc(var(--water-unit) * var(--units)); height: calc(var(--water-unit) * var(--units)); min-height: 0; background: linear-gradient(90deg,#ffffff2b,transparent 23%,#0000000e 75%,#ffffff20), linear-gradient(180deg,var(--ball-light),var(--ball-dark)); box-shadow: inset 0 3px 0 #ffffff20, inset 0 -1px #0000000a; }
.water-bottle .water-layer:first-child { border-radius: 0 0 18px 18px; }
.water-bottle .water-layer:last-child::after { height: 5px; top: -2px; border: 1px solid #fff5; background: var(--ball-light); opacity: .85; border-radius: 50%; }
.water-bottle .water-layer i { display: none; position: absolute; right: 7px; bottom: 10px; pointer-events: none; }
.water-color-assist .water-bottle .water-layer i { display: block; width: 12px; height: 12px; border-width: 3px; opacity: 1; }
.water-color-assist .water-bottle .orb-3 i { height: 0; border-width: 0 0 3px; border-radius: 0; }
.water-color-assist .water-bottle .orb-4 i { width: 10px; height: 10px; }
.water-color-assist .water-bottle .orb-6 i { height: 0; border-width: 0 0 3px; border-radius: 0; }
.water-color-assist .water-bottle .orb-7 i { height: 6px; width: 13px; border-radius: 4px; }
.water-options #color-assist[aria-pressed="true"] { background: #e6eaff; color: #3946b2; box-shadow: inset 0 0 0 1px #bec8fa; }
.water-room .orb-0, .pour-stream.orb-0 { --ball-light: #ff927f; --ball-dark: #ef5368; }
.water-room .orb-1, .pour-stream.orb-1 { --ball-light: #b697ff; --ball-dark: #8856e5; }
.water-room .orb-2, .pour-stream.orb-2 { --ball-light: #62e3cf; --ball-dark: #20bba9; }
.water-room .orb-3, .pour-stream.orb-3 { --ball-light: #ffe78b; --ball-dark: #ffbb46; }
.water-room .orb-4, .pour-stream.orb-4 { --ball-light: #75d9ff; --ball-dark: #398ce8; }
.water-room .orb-5, .pour-stream.orb-5 { --ball-light: #ffb6dd; --ball-dark: #ee72b6; }
.water-room .orb-6, .pour-stream.orb-6 { --ball-light: #c3ed75; --ball-dark: #8aca38; }
.water-room .orb-7, .pour-stream.orb-7 { --ball-light: #ffc99f; --ball-dark: #d08f64; }
.water-room .vial-index { color: #ded8f8; background: #ffffff10; border: 1px solid #ffffff16; font-size: .68rem; min-width: 23px; padding: 3px 7px; }
.water-room .vial-button[aria-pressed="true"] .vial { transform: translateY(-13px); border-color: #fff5c7; box-shadow: 0 0 0 3px #ffdf8738,0 0 24px #ffefab30,inset 4px 0 5px #ffffff25; }
.water-room .vial-button[aria-pressed="true"] .vial-index { background: #ffde8e; color: #665039; border-color: #ffde8e; }
.water-room .vial-button.complete .vial { background-color: #ffffff0c; border-color: #bcf4e3; box-shadow: 0 0 16px #84e9d22e,inset 4px 0 5px #fff4; }
.water-room .vial-button.complete .vial-index { color: #bcf4e3; background: #95f1cf18; }
.water-room .vial-button.hint-source .vial { outline: 2px dashed #fff4b8; outline-offset: 5px; }
.water-room .vial-button.hint-target .vial { outline: 2px solid #fff4b8; outline-offset: 5px; }
.water-room .board[data-busy] { pointer-events: none; }
.water-room .game-status { color: #e2dcfa; min-height: 34px; font-size: .82rem; font-weight: 500; }
.water-room .game-status[data-tone="warning"] { color: #ffd0b4; }
.water-room .game-status[data-tone="win"] { color: #bdffe4; }
.water-controls { padding: 14px 24px 16px; }
.water-controls .toolbar { margin: 0; gap: 10px; justify-content: center; }
.water-controls .toolbar .control { flex: 1; max-width: 180px; min-height: 46px; border-color: #e4e7f6; border-bottom-width: 3px; background: #f7f8ff; color: #5a6796; font-size: .8rem; }
.water-controls .toolbar #share { margin: 0; }
.water-controls .control:enabled:hover { background: #edf0ff; border-color: #cfd7fa; }
.water-controls .control:active:enabled { transform: translateY(1px); }
.water-controls .level-navigation { align-items: center; padding-top: 12px; margin-top: 12px; border-top: 1px solid #eff0f8; }
.water-controls .level-navigation .control { padding: 8px 14px; min-width: 100px; }
.water-controls .level-navigation .next { background: #5966df; color: white; border-color: #4d58c6; border-bottom-width: 3px; }
.water-progress { color: #7a86a7; font-size: .72rem; }
.water-progress strong { color: #5c64b9; margin-left: 5px; }
.water-information { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 28px; }
.water-page .instructions, .water-page .faq, .water-page .daily-card { border-color: #e4e8f7; box-shadow: none; background: #ffffffcf; padding: 24px; }
.water-page .instructions .tip { background: #f1f3ff; }
.water-page .steps li::before { background: #eceeff; color: #5362b7; }
.water-page .daily-card { background: linear-gradient(140deg,#edf3ff,#f2edff); }
.water-page .daily-star { background: #e0e5ff; color: #6c62cc; }
.water-page .faq { margin-top: 20px; margin-bottom: 14px; }
.water-page .primary-link { background: #5664d7; }
.pouring-ghost { position: fixed; pointer-events: none; z-index: 90; transform-origin: 50% 0%; }
.pouring-ghost .vial { --water-unit: inherit; width: 100%; height: 100%; }
.pour-stream { position: fixed; pointer-events: none; z-index: 89; width: 6px; border-radius: 4px; background: linear-gradient(90deg,var(--ball-light),var(--ball-dark)); box-shadow: 0 0 8px #ffffff33; transform-origin: top; }
.victory-panel { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 18px; background: #211c5685; backdrop-filter: blur(7px); }
.victory-content { position: relative; z-index: 1; width: min(360px,100%); padding: 27px 25px; text-align: center; border: 1px solid #ffffffa6; border-radius: 24px; color: #35305a; background: linear-gradient(155deg,#fffcff,#f1edff); box-shadow: 0 20px 60px #18113966; animation: victory-in .35s ease-out; }
.victory-medal { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 15px; color: #fff9d9; font-size: 40px; text-shadow: 0 2px #d28a32; background: linear-gradient(145deg,#ffe58c,#efaf48); border: 4px solid #fff4b7; border-radius: 50%; box-shadow: 0 5px 0 #c8964844,0 0 35px #ffe19a66; }
.victory-content h2 { font-size: 1.7rem; }
.victory-content p { color: #7d749a; font-size: .85rem; line-height: 1.5; margin: 8px 0; }
.victory-content .victory-score { padding: 8px 0 14px; color: #68599a; }
.victory-score strong { font-size: 1.65rem; margin-right: 3px; }
.victory-content > div { display: flex; justify-content: center; gap: 8px; }
.victory-content .control { border-color: #dcd7f1; color: #6d6099; min-height: 43px; }
.victory-content .win-next { background: #7562d9; border-color: #6852c9; color: white; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; left: calc(var(--n) * 5.6%); top: -15px; width: 7px; height: 12px; border-radius: 2px; background: #ffe38c; animation: confetti-fall 2s calc(var(--n) * -.08s) ease-out both; }
.confetti i:nth-child(3n) { background: #a4f4e0; }
.confetti i:nth-child(3n + 1) { background: #dbb2ff; }
.confetti i:nth-child(2n) { width: 10px; height: 6px; }
@keyframes victory-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes confetti-fall { from { transform: translateY(-20px) rotate(0); opacity: 1; } to { transform: translateY(480px) rotate(390deg); opacity: 0; } }
.game-expanded { overflow: hidden; }
.water-card.is-expanded { position: fixed; inset: 0; z-index: 60; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.water-card.is-expanded .water-room { flex: 1; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.water-card.is-expanded .water-hud { position: absolute; inset: 20px 30px auto; }
.game-expanded :is(.site-header,.site-footer,.water-heading,.water-information,.faq) { display: none; }
.portal-home .article { max-width: 1120px; }
.portal-home .game-intro h1 { font-size: clamp(2rem,5vw,3.5rem); }
.portal-home .game-tile { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); padding: 0; overflow: hidden; border: 1px solid #e3e7f7; box-shadow: 0 7px 25px #3c41980a; }
.portal-home .game-tile > div:last-child { padding: 26px 30px 26px 0; }
.portal-home .tile-preview { margin: 0; align-self: stretch; min-height: 250px; border-radius: 0; background: #e3ecff; }
.portal-home .tile-preview.water-tile { background: linear-gradient(145deg,#3b3174,#8170b9); }
.portal-home .cover-art { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.water-page :focus-visible { outline-color: #9080ff; }
.water-room :focus-visible { outline-color: #ffe6a6; }
@media (hover: hover) {
  .water-room .vial-button:hover .vial { background-color: #ffffff0d; border-color: #fff9; }
  .water-room .vial-button:hover .vial-index { background: #ffffff20; }
}
@media (max-width: 800px) {
  .water-options .control { min-width: 40px; }
  .water-options .control span:last-child { display: none; }
  .water-options .control span[aria-hidden] { margin-right: 0; }
  .water-page .header-inner, .portal-home .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .water-heading { align-items: start; }
  .water-heading .game-switch { max-width: 40%; }
  .water-room { padding-inline: 22px; }
  .water-room .board { --water-unit: 38px; gap: 15px; }
  .water-bottle .vial { --water-unit: 38px; width: 65px; }
  .water-information { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
@media (max-width: 540px) {
  .water-main { padding: 16px 10px 24px; }
  .water-page .header-inner, .portal-home .header-inner { min-height: 55px; padding-block: 8px; }
  .water-heading { display: block; margin-bottom: 12px; }
  .water-heading h1 { font-size: 1.8rem; margin: 4px 0 5px; }
  .water-heading .eyebrow { font-size: .61rem; margin-bottom: 5px; }
  .water-heading p:not(.eyebrow) { font-size: .78rem; line-height: 1.4; }
  .water-heading .game-switch { max-width: 100%; gap: 5px; margin-top: 10px; }
  .water-heading .game-switch a { padding: 6px 10px; font-size: .7rem; }
  .water-card { border-radius: 17px; }
  .water-chrome { padding: 9px; gap: 5px; }
  .water-chrome .modes { max-width: 78%; }
  .water-chrome .modes button { padding: 7px 6px; font-size: .7rem; min-height: 32px; }
  .water-chrome #levels-mode { white-space: nowrap; }
  .water-options .control { padding: 5px 8px; font-size: .7rem; min-width: 40px; min-height: 40px; }
  .water-options .control span:last-child { display: none; }
  .water-options .control span[aria-hidden] { margin: 0; font-size: 1.3rem; }
  .water-room { padding: 14px 12px 10px; }
  .water-hud h2 { font-size: .85rem; }
  .water-hud .level-count { padding: 3px 7px; font-size: .62rem; }
  .water-hud .moves { min-width: 58px; padding: 6px 8px; gap: 3px; max-width: 33%; }
  .water-hud .moves strong { font-size: 1.2rem; }
  .water-hud .moves span { font-size: .57rem; }
  .water-scene-title { font-size: 1.12rem; margin-top: -33px; max-width: 51%; }
  .water-scene-title span { margin-top: 5px; font-size: .55rem; }
  .water-room .board { display: flex; --water-unit: 32px; gap: 14px 8px; min-height: 210px; padding: 37px 0 12px; }
  .water-room .board[data-size] .vial-button { min-width: 53px; padding: 5px 3px; gap: 9px; }
  .water-bottle .vial { --water-unit: 32px; width: 52px; padding-inline: 4px; border-radius: 8px 8px 18px 18px; }
  .water-room .vial-index { font-size: .6rem; }
  .water-room .game-status { min-height: 29px; font-size: .72rem; }
  .water-controls { padding: 10px 10px 12px; }
  .water-controls .toolbar { gap: 5px; }
  .water-controls .toolbar .control { padding: 6px 5px; font-size: .68rem; min-height: 43px; }
  .water-controls .toolbar .control span[aria-hidden] { display: block; margin: 0 0 3px; font-size: 1.1rem; }
  .water-controls .level-navigation { gap: 5px; padding-top: 8px; margin-top: 9px; }
  .water-controls .level-navigation .control { font-size: .69rem; min-width: 0; max-width: 35%; padding: 7px 9px; }
  .water-progress { font-size: .6rem; max-width: 34%; text-align: center; }
  .water-progress strong { margin-left: 2px; }
  .water-information { margin-top: 18px; }
  .water-page .instructions, .water-page .daily-card, .water-page .faq { padding: 18px; }
  .portal-home .game-tile { grid-template-columns: minmax(0,1fr); }
  .portal-home .game-tile > div:last-child { padding: 0 20px 22px; }
  .portal-home .tile-preview { min-height: 220px; }
  .victory-content { padding: 20px; max-width: 290px; }
  .victory-medal { width: 50px; height: 50px; font-size: 31px; margin-bottom: 10px; }
  .victory-content h2 { font-size: 1.4rem; }
}
@media (max-width: 360px) {
  .water-room .board[data-size="6"] .vial-button { min-width: 60px; }
}
@media (max-height: 650px) and (min-width: 600px) {
  .water-card.is-expanded .water-room .board { min-height: 180px; padding-top: 14px; }
  .water-card.is-expanded .water-scene-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .water-page *, .pouring-ghost, .pour-stream { animation: none !important; transition: none !important; }
}
/* Keep the complete play surface within a typical laptop viewport. */
body.water-page, body.portal-home { font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Noto Sans", sans-serif; }
.water-main { padding-top: 20px; }
.water-heading { margin-bottom: 16px; }
.water-heading h1 { font-size: clamp(1.8rem,3.5vw,2.6rem); }
.water-room { padding: 16px 30px 10px; }
.water-hud { position: absolute; z-index: 2; top: 16px; left: 26px; right: 26px; }
.water-scene-title { margin: 0 auto; font-size: 1.4rem; line-height: 1.2; max-width: 56%; }
.water-scene-title span { margin-top: 5px; font-size: .6rem; }
.water-room .board { min-height: 230px; padding: 30px 0 8px; gap: 18px 24px; }
.water-bottle .vial { --water-unit: 34px; }
.water-room .vial-button { gap: 10px; }
.water-room .game-status { min-height: 28px; }
.water-controls { padding: 12px 20px; }
.water-controls .level-navigation { margin-top: 10px; padding-top: 10px; }
.portal-home .game-intro { max-width: 760px; margin: 12px 0 30px; }
.portal-home .game-intro h1 { margin-bottom: 16px; letter-spacing: -.055em; }
.game-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.portal-home .game-tile { display: block; border-radius: 22px; transition: transform .2s, box-shadow .2s; }
.portal-home .game-tile + .game-tile { margin: 0; }
.portal-home .tile-preview { display: block; position: relative; padding: 0; min-height: 0; overflow: hidden; }
.portal-home .cover-art { transition: transform .35s; }
.portal-home .game-tile > div:last-child { padding: 24px 26px 27px; }
.portal-home .game-tile h2 { font-size: 1.5rem; margin-bottom: 9px; }
.portal-home .game-tile p { font-size: .9rem; }
.portal-home .primary-link { margin-top: 18px; background: #5260d4; border-radius: 10px; padding: 11px 18px; }
.cover-play { position: absolute; bottom: 17px; right: 19px; display: grid; place-items: center; width: 43px; height: 43px; padding-left: 3px; border-radius: 50%; color: white; background: #ffffff26; border: 1px solid #ffffff70; backdrop-filter: blur(6px); }
@media (hover: hover) {
  .portal-home .game-tile:hover { transform: translateY(-4px); box-shadow: 0 15px 35px #373c8e18; }
  .portal-home .game-tile:hover .cover-art { transform: scale(1.025); }
}
@media (max-width: 800px) {
  .water-room { padding-inline: 20px; }
}
@media (max-width: 540px) {
  .water-main { padding-top: 12px; }
  .water-heading { margin-bottom: 10px; }
  .water-heading .game-switch { margin-top: 8px; }
  .water-room { padding: 16px 10px 8px; }
  .water-hud { left: 13px; right: 13px; top: 12px; }
  .water-scene-title { margin: 0 auto; font-size: 1rem; max-width: 50%; min-height: 40px; }
  .water-room .board { padding-top: 30px; min-height: 208px; gap: 14px 8px; }
  .water-bottle .vial { --water-unit: 30px; }
  .water-controls { padding: 10px; }
  .game-gallery { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .portal-home .game-tile > div:last-child { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-home * { transition: none !important; }
}
.pouring-ghost .vial { --water-unit: inherit; }
@media (min-width: 541px) {
  .water-chrome { padding: 6px 18px; }
  .water-room .board { padding-top: 18px; }
  .water-controls { padding: 8px 20px; }
  .water-controls .toolbar .control { min-height: 44px; }
  .water-controls .level-navigation { margin-top: 6px; padding-top: 6px; }
}
.portal-home .cover-art { height: auto; }
@media (max-width: 540px) {
  .water-room .board:is([data-size="9"], [data-size="10"]) { gap: 12px 5px; }
  .water-room .board:is([data-size="9"], [data-size="10"]) .vial-button { min-width: 48px; padding-inline: 2px; }
  .water-room .board:is([data-size="9"], [data-size="10"]) .vial { width: 44px; }
}
