/* 防水等級の早見帖：水の中。上は明るい水面、下へ行くほど深い青。気泡が上がり、見出しは水深の目盛り
   字体は丸い Kiwi Maru（見出し）・Lexend（IPX の札と数字）・Noto Sans JP（本文）。端末の明暗によらず水の色で見せる */
:root {
  color-scheme: light;
  --surface: #e4f6fa; --shallow: #bfe6f0; --mid: #7cc3d8; --deep: #0d4f6e; --abyss: #062a3d;
  --sheet: #ffffff; --ink: #0b2a3a; --sub: #3f6475; --rule: #c4e1ea; --foam: #f4fcfe;
  --accent: #075f80; --accent-2: #13a3c7; --accent-soft: #d3eff7; --coral: #ff7a59;
  --round: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Kosugi Maru", sans-serif;
  --lex: "Lexend", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q15 0 30 6 T60 6 T90 6 T120 6 V12 H0z' fill='%23000'/%3E%3C/svg%3E");
  --bg: var(--surface); --fg: var(--ink); --muted: var(--sub); --line: var(--rule); --card: var(--sheet);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--abyss); }
body { margin: 0; color: var(--ink); font-family: var(--body); line-height: 1.8; font-size: 16px; counter-reset: depth;
  background: linear-gradient(180deg, var(--surface) 0, var(--shallow) 900px, #c9ebf3 100%); }
a { color: var(--accent); text-underline-offset: 3px; }
b, strong { font-weight: 700; }

/* 頭：水面。下のふちが波 */
.site-header { position: relative; background: var(--foam); padding: 12px 16px 16px; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px; background: var(--foam); -webkit-mask: var(--wave) 0 0 / 120px 12px repeat-x; mask: var(--wave) 0 0 / 120px 12px repeat-x; transform: scaleY(-1); }
.site-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--round); font-size: 1.12rem; }
.site-name::before { content: ""; width: 16px; height: 20px; background: linear-gradient(160deg, var(--accent-2), var(--accent)); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; clip-path: polygon(50% 0, 100% 58%, 100% 100%, 0 100%, 0 58%); }
.pr-notice { margin: 2px 0 0; font-size: 0.8rem; color: var(--sub); }
.site-main { max-width: 780px; margin: 0 auto; padding: 22px 16px 40px; }

h1, h2, h3 { font-family: var(--round); font-weight: 500; }
h1 { line-height: 1.35; margin: 0 0 12px; }
/* 見出し：水深の目盛り。潜るほど数字が増える */
h2 { counter-increment: depth; position: relative; margin: 52px 0 14px; padding: 6px 0 0 76px; min-height: 52px; font-size: 1.28rem; line-height: 1.45; }
h2::before { content: "−" counter(depth) "0m"; position: absolute; left: 0; top: 0; width: 64px; padding: 6px 0 4px; text-align: center; font-family: var(--lex); font-weight: 800; font-size: 0.95rem;
  color: var(--foam); background: var(--deep); border-radius: 10px 10px 10px 2px; }
h2::after { content: ""; position: absolute; left: 30px; top: 34px; width: 4px; height: 14px; background: repeating-linear-gradient(var(--deep) 0 2px, transparent 2px 4px); }
h3 { font-size: 1.05rem; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 1rem; }
.small, .note { font-size: 0.94rem; color: var(--sub); }
.num { font-family: var(--lex); font-variant-numeric: tabular-nums; }

/* はじめ：水の中の窓。気泡が上がる */
.hero { position: relative; margin: 0 0 18px; padding: 26px 16px 18px; border-radius: 22px; overflow: hidden; color: var(--foam);
  background: radial-gradient(120% 70% at 70% -10%, rgba(255, 255, 255, 0.35), transparent 60%), linear-gradient(180deg, #136f8f 0%, var(--deep) 75%, var(--abyss) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.07) 0 18px, transparent 18px 60px); mix-blend-mode: screen; pointer-events: none; }
.hero > * { position: relative; }
.sea { position: absolute; inset: 0; pointer-events: none; }
.bub { position: absolute; bottom: -20px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0 2px, rgba(255, 255, 255, 0.12) 3px); }
.bub:nth-child(1) { left: 8%; width: 10px; height: 10px; bottom: 20%; }
.bub:nth-child(2) { left: 22%; width: 18px; height: 18px; bottom: 6%; }
.bub:nth-child(3) { left: 46%; width: 8px; height: 8px; bottom: 40%; }
.bub:nth-child(4) { left: 64%; width: 14px; height: 14px; bottom: 12%; }
.bub:nth-child(5) { left: 78%; width: 22px; height: 22px; bottom: 30%; }
.bub:nth-child(6) { left: 90%; width: 9px; height: 9px; bottom: 55%; }
.bub:nth-child(7) { left: 36%; width: 12px; height: 12px; bottom: 70%; }
.h1-a { display: inline-block; padding: 2px 12px; margin-bottom: 8px; border-radius: 999px; background: rgba(0, 30, 50, 0.4); font-size: 0.9rem; }
.h1-b { display: block; font-size: 1.5rem; line-height: 1.3; }
.ipx { font-family: var(--lex); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.01em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.h1-c { display: block; font-size: 1.35rem; line-height: 1.4; margin-top: 2px; }
.hero .lead { color: #d8f1f8; font-size: 0.95rem; margin: 10px 0 12px; }
.hero .lead b { color: #fff; font-family: var(--lex); }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trust li { padding: 2px 12px; border-radius: 999px; font-size: 0.94rem; background: rgba(0, 30, 50, 0.4); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.trust strong { color: #fff; }
.trust a { color: #fff; }
.site-main > .trust { margin: 0 0 16px; }
.site-main > .trust li { background: var(--sheet); color: var(--sub); box-shadow: inset 0 0 0 1px var(--rule); }
.site-main > .trust strong { color: var(--ink); }
.site-main > .trust a { color: var(--accent); }

/* 注意：防水シールの札 */
.caution { position: relative; margin: 16px 0 24px; padding: 14px 16px 12px 58px; background: var(--foam); border-radius: 16px; font-size: 0.94rem; line-height: 1.75; box-shadow: 0 2px 0 var(--rule); }
.caution::before { content: "!"; position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--lex); font-weight: 800; }
.caution strong { display: block; font-family: var(--round); font-weight: 500; font-size: 1rem; margin-bottom: 4px; }
.caution p { margin: 0; }

/* 等級の札：水に浮く浮き札 */
.ticket { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--lex); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.ticket.is-none { background: var(--sheet); color: var(--sub); box-shadow: inset 0 0 0 1.5px var(--rule); font-family: var(--body); }

/* 入口：ガラスの水槽（水位計）と等級の札 */
.dial { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; background: var(--sheet); border-radius: 22px; box-shadow: 0 10px 30px -18px rgba(6, 42, 61, 0.6); }
.gauge { position: relative; height: 270px; border-radius: 14px 14px 22px 22px; background: linear-gradient(90deg, #eaf7fb, #f8fdfe 40%, #e2f3f8); overflow: hidden; box-shadow: inset 0 0 0 3px #b8dde8, inset 0 -6px 0 #b8dde8; }
.gauge-water { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--level, 0.4)); transition: transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
  background: linear-gradient(180deg, #5cc6e0 0%, var(--accent) 60%, var(--deep) 100%); }
.gauge-water::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: #5cc6e0; -webkit-mask: var(--wave) 0 0 / 60px 10px repeat-x; mask: var(--wave) 0 0 / 60px 10px repeat-x; }
.gauge-water::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 2px, transparent 2.5px) 0 0 / 22px 34px, radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1.5px, transparent 2px) 11px 17px / 22px 34px; opacity: 0.7; }
.gauge-ticks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 1; }
.gauge-ticks li { position: absolute; left: 0; right: 0; border-top: 2px solid rgba(11, 42, 58, 0.35); font-family: var(--lex); font-weight: 800; font-size: 0.8rem; line-height: 1; padding: 3px 6px 0; text-align: right; color: var(--ink); }
.gauge-ticks li::before { content: ""; position: absolute; left: 0; top: -2px; width: 12px; border-top: 2px solid var(--ink); }
.dial-body { min-width: 0; }
.dial-q { font-family: var(--round); margin: 0 0 8px; font-size: 1.02rem; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
button { font: inherit; }
.grade-btn { min-height: 46px; min-width: 64px; padding: 4px 14px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--ink); font-family: var(--lex); font-weight: 700; font-size: 0.92rem; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(10, 126, 168, 0.25); transition: background-color 0.2s, color 0.2s, transform 0.1s; }
.grade-btn:active { transform: scale(0.95); }
.grade-btn[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(19, 163, 199, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.grade-btn:focus-visible, .scene-btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.dial-meaning { font-size: 0.85rem; color: var(--sub); margin: 0 0 12px; min-height: 44px; }
.dial-meaning b { font-family: var(--lex); color: var(--ink); }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.scene { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; border-radius: 14px; background: var(--surface); }
.scene::before { content: ""; width: 28px; height: 28px; background: var(--deep); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.scene .mark { order: 3; }
.scene-name { font-family: var(--round); font-size: 0.95rem; white-space: nowrap; }
.scene[data-scene="sweat"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4S8 14 8 19.5a8 8 0 0 0 16 0C24 14 16 4 16 4z'/%3E%3Cpath d='M12.5 20a3.5 3.5 0 0 0 3.5 3.5'/%3E%3C/svg%3E"); }
.scene[data-scene="rain"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16a12 12 0 0 1 24 0z'/%3E%3Cpath d='M16 16v8.5a2.5 2.5 0 0 1-5 0'/%3E%3Cpath d='M7 22v2M25 21v2M21 26v2'/%3E%3C/svg%3E"); }
.scene[data-scene="bath"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15h26v3a7 7 0 0 1-7 7H10a7 7 0 0 1-7-7z'/%3E%3Cpath d='M7 15V8a3 3 0 0 1 6 0'/%3E%3Cpath d='M8 28l1-3M24 28l-1-3M18 5c-1 1.5 1 2.5 0 4M22 5c-1 1.5 1 2.5 0 4'/%3E%3C/svg%3E"); }
.scene[data-scene="pool"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v15M21 4v15M10 8.5h11M10 13.5h11'/%3E%3Cpath d='M3 24c3-2.5 5.5-2.5 8.5 0s5.5 2.5 8.5 0 5.5-2.5 9 0'/%3E%3C/svg%3E"); }
.scene[data-scene="sea"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12c3-3 6-3 9 0s6 3 9 0 5-3 8 0'/%3E%3Cpath d='M3 19c3-3 6-3 9 0s6 3 9 0 5-3 8 0'/%3E%3Cpath d='M3 26c3-3 6-3 9 0s6 3 9 0 5-3 8 0'/%3E%3C/svg%3E"); }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--round); font-size: 1rem; flex: none; }
.mark.ok { background: var(--accent); color: #fff; }
.mark.maybe { background: #ffe2a8; color: #6b4a00; }
.mark.no { background: var(--sheet); color: var(--sub); box-shadow: inset 0 0 0 1.5px var(--rule); }
.dial-why { margin: 12px 0 0; font-size: 0.82rem; color: var(--sub); }

/* 早見表：水槽の目盛りのように、等級の行ごとに水色が濃くなる */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
caption { text-align: left; padding: 4px 0; }
.matrix { background: var(--sheet); border-radius: 18px; overflow: hidden; }
.matrix th, .matrix td { border-bottom: 1px solid var(--rule); padding: 8px 6px; text-align: center; vertical-align: middle; }
.matrix thead th { background: var(--deep); color: var(--foam); font-family: var(--round); font-weight: 500; font-size: 0.85rem; }
.matrix tbody th { text-align: left; white-space: nowrap; font-family: var(--lex); font-weight: 700; }
.matrix tbody tr:nth-child(1) th { background: #f3fbfd; } .matrix tbody tr:nth-child(2) th { background: #e4f5fa; } .matrix tbody tr:nth-child(3) th { background: #d3eff7; }
.matrix tbody tr:nth-child(4) th { background: #bfe6f0; } .matrix tbody tr:nth-child(5) th { background: #a6d8e6; } .matrix tbody tr:nth-child(6) th { background: #8ccbdd; } .matrix tbody tr:nth-child(n+7) th { background: #72bdd3; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix .mark { width: 28px; height: 28px; font-size: 0.94rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--sub); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .mark { width: 24px; height: 24px; font-size: 0.8rem; }

/* 集計の帯：水の柱 */
.bars { margin: 0; padding: 14px; list-style: none; display: grid; gap: 10px; background: var(--sheet); border-radius: 18px; }
.bar { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 8px; font-size: 0.94rem; }
.bar-track { height: 18px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: 999px; transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)), radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 2.5px) 0 0 / 16px 18px; background-blend-mode: screen; }
.bar-num { text-align: right; font-family: var(--lex); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.82rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.stats li { position: relative; padding: 14px 10px 12px; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; background: linear-gradient(180deg, #075f80, var(--deep)); color: #fff; text-align: center; overflow: hidden; }
.stats .big { display: block; font-family: var(--lex); font-weight: 800; font-size: 1.6rem; line-height: 1.2; }
.stats .cap { display: block; font-size: 0.8rem; line-height: 1.45; color: #d8f1f8; }
.data { background: var(--sheet); font-size: 0.94rem; border-radius: 14px; overflow: hidden; }
.data th, .data td { border-bottom: 1px solid var(--rule); padding: 8px; }
.data thead th { background: var(--deep); color: var(--foam); font-weight: 700; }
.data td.n { text-align: right; font-family: var(--lex); font-variant-numeric: tabular-nums; }
.table-wrap .data td { white-space: normal; }
.data th { white-space: nowrap; }
.data.cross { font-size: 0.94rem; }
.data.cross th, .data.cross td { padding: 8px 4px; }
.card { background: var(--sheet); border-radius: 18px; padding: 14px 16px; }

/* 機種の記録 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.scene-btn { min-height: 44px; padding: 4px 16px; border-radius: 999px; border: 0; background: var(--sheet); color: var(--ink); font-family: var(--round); font-size: 0.95rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--rule); transition: background-color 0.2s, color 0.2s, transform 0.1s; }
.scene-btn:active { transform: scale(0.95); }
.scene-btn[aria-pressed="true"] { background: var(--deep); color: #fff; box-shadow: none; }
.count-line { font-size: 0.82rem; color: var(--sub); margin: 0 0 12px; min-height: 22px; }
.models, .allowed { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.model { background: var(--sheet); border-radius: 18px; padding: 12px 16px; box-shadow: 0 6px 18px -14px rgba(6, 42, 61, 0.6); }
.model[hidden] { display: none; }
.model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.model-name { font-family: var(--round); font-size: 1rem; line-height: 1.5; margin: 0; }
.model-maker { display: block; font-size: 0.94rem; color: var(--sub); font-family: var(--body); }
.model-marks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.94rem; }
.model-marks li { display: flex; align-items: center; gap: 4px; }
.model-marks .mark { width: 24px; height: 24px; font-size: 0.94rem; }
.model details { margin-top: 8px; font-size: 0.94rem; }
.model summary { cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.quote { margin: 4px 0 8px; padding: 8px 12px; background: var(--surface); border-radius: 10px; }
.quote cite { display: block; font-style: normal; color: var(--sub); margin-top: 4px; word-break: break-all; }

/* ページの下の入口：泡の札 */
.next { display: grid; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.next a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 18px; border-radius: 999px; background: var(--deep); color: #fff; text-decoration: none; font-family: var(--round); }
.next a::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }

/* 足：海の底 */
.site-footer { position: relative; margin-top: 30px; padding: 30px 16px 26px; background: var(--abyss); color: #8fb8c8; font-size: 0.94rem; text-align: center; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px; background: var(--abyss); -webkit-mask: var(--wave) 0 0 / 160px 12px repeat-x; mask: var(--wave) 0 0 / 160px 12px repeat-x; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.site-footer a { display: inline-block; padding: 10px 4px; color: #d8f1f8; }
.copyright { margin: 8px 0 0; }
.facts dt { font-weight: 700; margin-top: 8px; }
.facts dd { margin: 0 0 4px; }

@media (max-width: 420px) {
  .dial { grid-template-columns: 74px 1fr; gap: 12px; padding: 12px; }
  .scenes { grid-template-columns: 1fr 1fr; }
  .scene { grid-template-columns: 20px 1fr auto; gap: 4px; padding: 6px 6px 6px 8px; }
  .scene::before { width: 20px; height: 20px; }
  .scene .mark { width: 28px; height: 28px; font-size: 0.94rem; }
  .scene-name { font-size: 0.94rem; }
  .grade-btn { min-height: 44px; min-width: 0; padding: 4px 12px; font-size: 0.86rem; }
}
@media (min-width: 760px) {
  .hero { padding: 40px 32px 28px; }
  .ipx { font-size: 3.4rem; }
  .h1-b { font-size: 2rem; }
  .h1-c { font-size: 1.8rem; }
  .dial { grid-template-columns: 130px 1fr; padding: 24px; gap: 24px; }
}

/* 動き：気泡が上がる・水位計の水が入る・波がゆれる・帯が伸びる・ページの切り替え */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .bub { animation: rise-bub 7s linear infinite; }
  .bub:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
  .bub:nth-child(3) { animation-duration: 6s; animation-delay: -1s; }
  .bub:nth-child(4) { animation-duration: 8s; animation-delay: -5s; }
  .bub:nth-child(5) { animation-duration: 11s; animation-delay: -2s; }
  .bub:nth-child(6) { animation-duration: 7.5s; animation-delay: -6s; }
  .bub:nth-child(7) { animation-duration: 10s; animation-delay: -4s; }
  .gauge.is-rising .gauge-water { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1 both; }
  .gauge-water::before { animation: sway 3s linear infinite; }
  .site-header::after { animation: sway 6s linear infinite; }
  .mark.pop { animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) 1; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .bars.reveal .bar-fill { transform: scaleX(0); transition: transform 1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .bars.reveal.is-in .bar-fill { transform: none; }
  @keyframes rise-bub { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(8px, -45vh); } 100% { transform: translate(-6px, -90vh); opacity: 0; } }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(var(--level, 0.4)); } }
  @keyframes sway { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 120px 0; mask-position: 120px 0; } }
  @keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }
}
