.rl.rx-startle { animation: startle 0.55s var(--ease) 1 !important; }
.rl.rx-spin    { animation: rxSpin 0.7s var(--ease) 1 !important; }
.rl.rx-flip    { animation: rxFlip 0.65s var(--ease) 1 !important; }
.rl.rx-dart    { animation: rxDart 0.8s var(--ease) 1 !important; }
.rl.rx-bounce  { animation: rxBounce 0.7s var(--ease) 1 !important; }
.rl.rx-shimmy  { animation: rxShimmy 0.6s var(--ease-io) 1 !important; }
.rl.rx-puff    { animation: rxPuff 0.9s var(--ease) 1 !important; }
.rl.rx-flash   { filter: drop-shadow(0 0 18px rgba(184, 255, 240, 0.95)); transition: filter 0.6s var(--ease-io); }
@keyframes rxSpin   { to { transform: scale(var(--s)) rotate(360deg); } }
@keyframes rxFlip   { 50% { transform: scale(var(--s)) rotateY(180deg); } 100% { transform: scale(var(--s)) rotateY(360deg); } }
@keyframes rxDart   { 30% { transform: scale(var(--s)) translateX(46px) rotate(8deg); } 70% { transform: scale(var(--s)) translateX(-18px) rotate(-5deg); } 100% { transform: scale(var(--s)); } }
@keyframes rxBounce { 30% { transform: scale(var(--s)) translateY(-30px); } 60% { transform: scale(var(--s)) translateY(6px); } 100% { transform: scale(var(--s)); } }
@keyframes rxShimmy { 20% { transform: scale(var(--s)) rotate(-9deg); } 40% { transform: scale(var(--s)) rotate(9deg); } 60% { transform: scale(var(--s)) rotate(-6deg); } 80% { transform: scale(var(--s)) rotate(4deg); } 100% { transform: scale(var(--s)); } }
@keyframes rxPuff   { 40% { transform: scale(calc(var(--s) * 1.55)); } 65% { transform: scale(calc(var(--s) * 0.9)); } 100% { transform: scale(var(--s)); } }
.ink-cloud {
position: fixed;
z-index: 55;
width: 14px; height: 14px;
border-radius: 50%;
background: rgba(10, 16, 30, 0.85);
pointer-events: none;
animation: inkSpread 1.2s ease-out both;
}
@keyframes inkSpread {
0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}
.fg { position: relative; }
.fg.pearl::after {
content: '';
position: absolute;
top: 5px; right: 5px;
width: 9px; height: 9px;
border-radius: 50%;
background: radial-gradient(circle at 34% 30%, #fff, #f0e6c8 45%, #cdb87e);
box-shadow: 0 0 7px rgba(255, 231, 166, 0.8);
}
.fg.found { cursor: pointer; transition: transform 0.35s var(--ease), border-color 0.3s var(--ease-io); }
@media (hover: hover) { .fg.found:hover { transform: translateY(-3px); border-color: var(--edge-bright); } }
.mg {
position: fixed;
inset: 0;
z-index: 115;
display: grid;
place-items: center;
padding: 1rem;
background: rgba(2, 10, 18, 0.66);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s var(--ease-io), visibility 0.3s;
}
.mg.open { opacity: 1; visibility: visible; }
.mg-panel {
width: min(100%, 26rem);
border-radius: var(--radius-l);
border: 1px solid var(--edge-bright);
background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)), var(--abyss-deep);
box-shadow: inset 0 1px 0 var(--specular), var(--lift-3);
padding: 1.15rem 1.15rem 1.25rem;
transform: translateY(12px) scale(0.98);
transition: transform 0.45s var(--ease);
}
.mg.open .mg-panel { transform: none; }
.mg-head { display: flex; align-items: center; gap: 0.75rem; }
.mg-ico {
display: grid; place-items: center;
width: 54px; height: 54px; flex: none;
border-radius: 50%;
background: var(--glass-strong);
border: 1px solid var(--edge);
}
.mg-title { min-width: 0; }
.mg-title b { display: block; color: var(--ink); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; }
.mg-title span { font-size: 0.72rem; color: var(--ink-3); }
.mg-close {
margin-left: auto;
width: 40px; height: 40px; flex: none;
border-radius: 50%;
border: 1px solid var(--edge);
background: var(--glass);
color: var(--ink);
font-size: 1.3rem; line-height: 1;
cursor: pointer;
}
.mg-desc { font-size: 0.82rem; color: var(--ink-3); margin: 0.7rem 0; }
.mg-stage {
position: relative;
height: 300px;
border-radius: var(--radius);
border: 1px solid var(--edge);
background: linear-gradient(180deg, rgba(9, 48, 72, 0.5), rgba(3, 18, 31, 0.8));
overflow: hidden;
touch-action: manipulation;
}
.mg-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.85rem; min-height: 40px; }
.mg-status { font-size: 0.84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mgb-bubble {
position: absolute;
bottom: -60px;
border-radius: 50%;
border: 2px solid rgba(244, 251, 255, 0.65);
background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), rgba(255,255,255,.08) 60%);
cursor: pointer;
animation: mgbRise linear both;
-webkit-tap-highlight-color: transparent;
}
@keyframes mgbRise { to { transform: translateY(-380px); } }
.mgb-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.55rem;
padding: 0.7rem;
height: 100%;
}
.mgb-cell {
border-radius: 14px;
border: 1px solid var(--edge);
background: rgba(255, 255, 255, 0.045);
cursor: pointer;
transition: background 0.15s, box-shadow 0.15s;
-webkit-tap-highlight-color: transparent;
}
.mgb-cell.lit {
background: radial-gradient(circle, rgba(184, 255, 240, 0.85) 0%, rgba(61, 217, 192, 0.35) 60%, transparent 100%);
box-shadow: 0 0 22px rgba(61, 217, 192, 0.7);
}
.mgb-timing {
position: absolute;
inset: 0;
width: 100%;
border: 0;
background: transparent;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.mgb-ring, .mgb-pulse {
position: absolute;
left: 50%; top: 50%;
border-radius: 50%;
pointer-events: none;
}
.mgb-ring {
width: 218px; height: 218px;
transform: translate(-50%, -50%);
border: 3px solid rgba(255, 209, 102, 0.85);
box-shadow: 0 0 18px rgba(255, 209, 102, 0.45), inset 0 0 18px rgba(255, 209, 102, 0.25);
}
.mgb-pulse {
width: 280px; height: 280px;
transform: translate(-50%, -50%) scale(0.15);
border: 3px solid var(--c-aqua);
background: rgba(61, 217, 192, 0.09);
}
.mgb-timing.hit .mgb-ring { border-color: #7dffa8; box-shadow: 0 0 26px rgba(125, 255, 168, 0.8); }
.mgb-timing.miss .mgb-ring { border-color: #ff8d7a; box-shadow: 0 0 26px rgba(255, 141, 122, 0.7); }
.mgb-shells { position: relative; height: 100%; }
.mgb-shell {
position: absolute;
top: 50%;
left: calc(16% + var(--pos) * 27%);
transform: translateY(-50%);
width: 76px; height: 76px;
display: grid; place-items: center;
border-radius: 18px;
border: 1px solid var(--edge);
background: rgba(255, 255, 255, 0.05);
cursor: pointer;
transition: left 0.3s var(--ease-io), transform 0.3s var(--ease);
-webkit-tap-highlight-color: transparent;
}
.mgb-shell.peek { transform: translateY(-72%); border-color: var(--c-sun); box-shadow: 0 0 18px rgba(255, 209, 102, 0.5); }
.mgb-shell.reveal-win { border-color: #7dffa8; box-shadow: 0 0 22px rgba(125, 255, 168, 0.7); transform: translateY(-72%); }
.mgb-shell.reveal-miss { border-color: #ff8d7a; }
.mgb-simon {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.7rem;
padding: 1.4rem;
height: 100%;
}
.mgb-pad {
border-radius: 18px;
border: 1px solid var(--edge);
opacity: 0.5;
cursor: pointer;
transition: opacity 0.18s, box-shadow 0.18s, transform 0.12s;
-webkit-tap-highlight-color: transparent;
}
.mgb-pad:active { transform: scale(0.97); }
.mgb-pad-0 { background: rgba(61, 217, 192, 0.4); }
.mgb-pad-1 { background: rgba(255, 209, 102, 0.4); }
.mgb-pad-2 { background: rgba(232, 93, 158, 0.4); }
.mgb-pad-3 { background: rgba(91, 127, 232, 0.4); }
.mgb-pad.on { opacity: 1; box-shadow: 0 0 26px rgba(244, 251, 255, 0.4); }
.mgb-pairs {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.55rem;
padding: 0.7rem;
height: 100%;
}
.mgb-pairs.four-wide { grid-template-columns: repeat(4, 1fr); }
.mgb-card {
position: relative;
border: 0;
background: transparent;
cursor: pointer;
perspective: 500px;
-webkit-tap-highlight-color: transparent;
}
.mgb-card-in {
position: absolute;
inset: 0;
transform-style: preserve-3d;
transition: transform 0.4s var(--ease);
}
.mgb-card.up .mgb-card-in, .mgb-card.done .mgb-card-in { transform: rotateY(180deg); }
.mgb-card-back, .mgb-card-face {
position: absolute;
inset: 0;
display: grid;
place-items: center;
border-radius: 12px;
border: 1px solid var(--edge);
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.mgb-card-back {
background: rgba(255, 255, 255, 0.06);
color: var(--ink-4);
font-weight: 700;
font-size: 0.9rem;
}
.mgb-card-face { background: rgba(61, 217, 192, 0.12); transform: rotateY(180deg); }
.mgb-card.done .mgb-card-face { border-color: rgba(125, 255, 168, 0.6); }
@media (prefers-reduced-motion: reduce) {
.rl[class*='rx-'] { animation: none !important; }
.ink-cloud { display: none; }
}
.lv { display: flex; gap: 3px; margin-top: 2px; }
.lv i {
width: 6px; height: 6px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.14);
border: 1px solid var(--edge);
}
.lv i.on {
background: var(--c-aqua, #3dd9c0);
border-color: transparent;
box-shadow: 0 0 5px rgba(61, 217, 192, 0.7);
}
.fg.pearl .lv i.on { background: #f0e6c8; box-shadow: 0 0 5px rgba(255, 231, 166, 0.8); }
.guide-road {
min-height: 34px;
padding: 0.3rem 0.7rem;
border-radius: 999px;
border: 1px solid rgba(255, 209, 102, 0.45);
background: rgba(255, 209, 102, 0.1);
color: var(--c-sun, #ffd166);
font-size: 0.7rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
cursor: pointer;
}
.guide-head .guide-road { margin-left: auto; }
.guide-head .guide-sound { margin-left: 0; }
.road-lede { font-size: 0.8rem; color: var(--ink-3); margin: 0.4rem 0 0.9rem; }
.road-list { display: flex; flex-direction: column; gap: 0.6rem; }
.road-ch {
border: 1px solid var(--edge);
border-radius: 16px;
background: var(--glass);
padding: 0.85rem 0.95rem;
opacity: 0.55;
}
.road-ch.open {
opacity: 1;
border-color: rgba(255, 209, 102, 0.35);
background: linear-gradient(180deg, rgba(255, 209, 102, 0.07), rgba(255, 255, 255, 0.03));
}
.road-ch-head { display: flex; align-items: baseline; gap: 0.6rem; }
.road-n {
flex: none;
font-size: 0.72rem; font-weight: 700;
color: var(--c-sun, #ffd166);
font-variant-numeric: tabular-nums;
}
.road-ch-head b { color: var(--ink); font-size: 0.95rem; font-weight: 650; letter-spacing: -0.015em; }
.road-when { margin-left: auto; font-size: 0.66rem; color: var(--ink-4); text-align: right; }
.road-ch p { font-size: 0.83rem; line-height: 1.55; color: var(--ink-2); margin-top: 0.5rem; }
.road-principle {
color: var(--c-sun, #ffd166) !important;
font-weight: 550;
border-top: 1px solid var(--edge);
padding-top: 0.5rem;
}
.mgb-order {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.55rem;
padding: 0.7rem;
height: 100%;
align-content: center;
}
.mgb-stone {
min-height: 56px;
border-radius: 14px;
border: 1px solid var(--edge);
background: rgba(255, 255, 255, 0.05);
color: var(--ink);
font-size: 1.15rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
cursor: pointer;
transition: background 0.2s, border-color 0.2s, opacity 0.2s;
-webkit-tap-highlight-color: transparent;
}
.mgb-stone span { transition: opacity 0.5s var(--ease-io); }
.mgb-order.veiled .mgb-stone:not(.done) span { opacity: 0; }
.mgb-stone.done {
background: rgba(61, 217, 192, 0.16);
border-color: rgba(61, 217, 192, 0.5);
color: var(--c-aqua, #3dd9c0);
}
.mgb-stone.done span { opacity: 1; }
.mgb-stone.bad { border-color: #ff8d7a; background: rgba(255, 141, 122, 0.14); }
.parade {
position: fixed;
left: 0; right: 0;
bottom: calc(4.4rem + env(safe-area-inset-bottom));
z-index: 105;
pointer-events: none;
height: 64px;
}
.parade span {
position: absolute;
left: -80px;
bottom: 0;
animation: paradeCross 7.5s linear both;
}
@keyframes paradeCross {
0%   { transform: translateX(0); }
100% { transform: translateX(calc(100vw + 160px)); }
}
@media (prefers-reduced-motion: reduce) { .parade { display: none; } }
.road-act {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin-top: 0.6rem;
min-height: 40px;
padding: 0.45rem 0.9rem;
border-radius: 999px;
border: 1px solid rgba(61, 217, 192, 0.4);
background: rgba(61, 217, 192, 0.1);
color: var(--c-aqua, #3dd9c0);
font-size: 0.78rem;
font-weight: 600;
}
.road-act:hover { border-color: rgba(61, 217, 192, 0.7); }
.guide-share {
min-height: 34px;
padding: 0.3rem 0.7rem;
border-radius: 999px;
border: 1px solid var(--edge);
background: var(--glass);
color: var(--ink-2);
font-size: 0.7rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
cursor: pointer;
}
.guide-share:hover { color: var(--ink); border-color: var(--edge-bright); }
.mgb-sonar {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 0.45rem;
padding: 0.7rem;
height: 100%;
align-content: center;
}
.mgb-ping {
aspect-ratio: 1;
display: grid;
place-items: center;
border-radius: 50%;
border: 1px solid var(--edge);
background: rgba(255, 255, 255, 0.04);
color: var(--ink-3);
font-size: 0.8rem;
font-weight: 700;
cursor: pointer;
transition: background 0.3s, border-color 0.3s, transform 0.25s var(--ease);
-webkit-tap-highlight-color: transparent;
}
.mgb-ping:active { transform: scale(0.92); }
.mgb-ping.cold { background: rgba(91, 127, 232, 0.16); border-color: rgba(91, 127, 232, 0.4); color: #9db4f5; }
.mgb-ping.warm { background: rgba(255, 209, 102, 0.18); border-color: rgba(255, 209, 102, 0.45); color: #ffd166; }
.mgb-ping.hot  { background: rgba(255, 122, 89, 0.24); border-color: rgba(255, 122, 89, 0.6); color: #ff9d82; }
.mgb-ping.found {
background: rgba(61, 217, 192, 0.28);
border-color: var(--c-aqua);
box-shadow: 0 0 24px rgba(61, 217, 192, 0.7);
animation: pingFound 0.5s var(--ease);
}
@keyframes pingFound { 40% { transform: scale(1.28); } }
.mgb-tide {
position: absolute;
inset: 0;
width: 100%;
border: 0;
background: transparent;
cursor: pointer;
overflow: hidden;
-webkit-tap-highlight-color: transparent;
}
.mgb-tide-line {
position: absolute;
left: 8%; right: 8%;
top: 50%;
height: 3px;
border-radius: 2px;
background: rgba(255, 209, 102, 0.75);
box-shadow: 0 0 16px rgba(255, 209, 102, 0.5);
}
.mgb-tide-swell {
position: absolute;
left: 8%; right: 8%;
bottom: -46%;
height: 92%;
border-radius: 46% 46% 0 0 / 60% 60% 0 0;
background: linear-gradient(180deg, rgba(61, 217, 192, 0.55), rgba(0, 166, 196, 0.18));
border-top: 3px solid var(--c-aqua);
opacity: 0;
}
.mgb-tide-swell.in { animation: swellRise linear both; }
@keyframes swellRise {
0%   { transform: translateY(0);     opacity: 0.25; }
72%  { transform: translateY(-46%);  opacity: 1; }
100% { transform: translateY(-70%);  opacity: 0.15; }
}
.mgb-tide.hit  .mgb-tide-line { background: #7dffa8; box-shadow: 0 0 26px rgba(125, 255, 168, 0.9); }
.mgb-tide.miss .mgb-tide-line { background: #ff8d7a; box-shadow: 0 0 26px rgba(255, 141, 122, 0.8); }
.mgb-current { position: relative; height: 100%; overflow: hidden; }
.mgb-swimmer {
position: absolute;
left: calc(14% + var(--lane, 1) * 26%);
bottom: 16%;
z-index: 2;
transition: left 0.22s var(--ease);
filter: drop-shadow(0 0 10px rgba(61, 217, 192, 0.5));
}
.mgb-kelp {
position: absolute;
top: -18%;
left: 0; right: 0;
height: 46px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
padding: 0 8%;
animation: kelpFall linear both;
}
.mgb-kelp span {
border-radius: 10px;
background: linear-gradient(180deg, rgba(78, 203, 113, 0.6), rgba(47, 164, 85, 0.35));
border: 1px solid rgba(78, 203, 113, 0.5);
}
.mgb-kelp span.gap { background: transparent; border-color: transparent; }
.mgb-kelp.hit span:not(.gap) { background: rgba(255, 141, 122, 0.55); border-color: #ff8d7a; }
@keyframes kelpFall { to { transform: translateY(420px); } }
.mgb-lanes {
position: absolute;
inset: auto 0 0 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.4rem;
padding: 0.5rem 8%;
z-index: 3;
}
.mgb-lanes button {
min-height: 44px;
border-radius: 12px;
border: 1px solid var(--edge);
background: rgba(255, 255, 255, 0.05);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.mgb-lanes button:active { background: rgba(61, 217, 192, 0.2); }
.mg-panel { max-height: 94svh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.mg-close { width: 44px; height: 44px; }
.mg-stage {
height: clamp(240px, 42svh, 320px);
user-select: none;
-webkit-user-select: none;
}
.mg-foot { flex-wrap: wrap; gap: 0.6rem 0.8rem; }
.mg-meta { flex: 1 1 12rem; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.mg-lives { display: inline-flex; gap: 4px; flex: none; }
.mg-lives i {
width: 9px; height: 9px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
border: 1px solid var(--edge);
transition: background 0.25s, box-shadow 0.25s;
}
.mg-lives i.on {
background: radial-gradient(circle at 34% 30%, #fff, #f0e6c8 45%, #cdb87e);
border-color: transparent;
box-shadow: 0 0 6px rgba(255, 231, 166, 0.7);
}
.mg-action { margin-left: auto; }
@media (max-width: 480px) {
.mg-action { flex-basis: 100%; width: 100%; justify-content: center; }
.mg-panel { padding: 1rem 1rem 1.1rem; }
}
.mgb-idle { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.85; animation: idleBob 3.4s ease-in-out infinite; }
@keyframes idleBob { 50% { transform: translateY(-8px); } }
.mgb-judge {
position: absolute;
left: 50%; top: 14%;
z-index: 6;
transform: translate(-50%, 0);
pointer-events: none;
font-size: 0.86rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
opacity: 0;
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.mgb-judge.hit  { color: #7dffa8; animation: judgePop 0.7s var(--ease) both; }
.mgb-judge.miss { color: #ff8d7a; animation: judgePop 0.7s var(--ease) both; }
@keyframes judgePop {
0%   { opacity: 0; transform: translate(-50%, 8px) scale(0.9); }
25%  { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
100% { opacity: 0; transform: translate(-50%, -14px) scale(1); }
}
.mgb-ready {
position: absolute;
inset: 0;
z-index: 7;
display: grid;
place-items: center;
background: rgba(2, 10, 18, 0.35);
pointer-events: none;
}
.mgb-ready b {
font-size: 1.6rem;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink);
animation: readyIn 0.65s var(--ease) both;
}
.mgb-ready.go b { color: #7dffa8; animation: readyIn 0.35s var(--ease) both; }
@keyframes readyIn { 0% { opacity: 0; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
.mgb-burst {
position: absolute;
z-index: 5;
width: 12px; height: 12px;
border-radius: 50%;
border: 2px solid rgba(244, 251, 255, 0.85);
transform: translate(-50%, -50%);
pointer-events: none;
animation: burstOut 0.45s ease-out both;
}
@keyframes burstOut { to { transform: translate(-50%, -50%) scale(5); opacity: 0; } }
.mgb-clock { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 4; background: rgba(255, 255, 255, 0.08); }
.mgb-clock i {
display: block; height: 100%;
background: linear-gradient(90deg, var(--c-sun, #ffd166), #ff8d7a);
transform-origin: left;
transform: scaleX(1);
transition: transform 0s linear;
}
.mgb-end {
position: absolute;
inset: 0;
z-index: 8;
display: grid;
place-content: center;
justify-items: center;
gap: 0.35rem;
padding: 1rem 1.4rem;
text-align: center;
background: rgba(2, 10, 18, 0.74);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(4px);
animation: endIn 0.45s var(--ease) both;
}
.mgb-end b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.mgb-end span { font-size: 0.8rem; color: var(--ink-2); max-width: 24rem; }
.mgb-end.win b { color: #7dffa8; }
.mgb-end.lose b { color: #ff8d7a; }
.mgb-end.pearl b { color: var(--c-sun, #ffd166); }
.mgb-end-ico { filter: drop-shadow(0 0 14px rgba(61, 217, 192, 0.5)); animation: idleBob 3s ease-in-out infinite; }
.mgb-pearl {
width: 44px; height: 44px;
border-radius: 50%;
background: radial-gradient(circle at 34% 30%, #fff, #f0e6c8 45%, #cdb87e);
box-shadow: 0 0 26px rgba(255, 231, 166, 0.8);
animation: pearlIn 0.7s var(--ease) both;
}
@keyframes endIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pearlIn { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.mgb-bubble { border: 0; background: transparent; padding: 0; }
.mgb-bubble i {
display: block;
width: 100%; height: 100%;
border-radius: 50%;
border: 2px solid rgba(244, 251, 255, 0.65);
background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), rgba(255,255,255,.08) 60%);
transition: transform 0.16s var(--ease), opacity 0.16s;
}
.mgb-bubble.pop i { transform: scale(1.5); opacity: 0; }
.mgb-cell { display: grid; place-items: center; color: var(--ink); }
.mgb-cell.hit { animation: cellHit 0.3s var(--ease); }
@keyframes cellHit { 40% { transform: scale(0.9); } }
.mgb-cell.decoy {
background: radial-gradient(circle, rgba(255, 141, 122, 0.55) 0%, rgba(255, 141, 122, 0.18) 60%, transparent 100%);
box-shadow: 0 0 18px rgba(255, 141, 122, 0.5);
}
.mgb-x { font-size: 1.4rem; font-weight: 800; color: #ff8d7a; line-height: 1; }
.mgb-hider {
position: absolute;
left: 50%; top: -22px;
transform: translate(-50%, 10px);
opacity: 0;
transition: transform 0.3s var(--ease), opacity 0.3s var(--ease-io);
filter: drop-shadow(0 0 8px rgba(61, 217, 192, 0.6));
}
.mgb-shell.peek .mgb-hider, .mgb-shell.reveal-win .mgb-hider { opacity: 1; transform: translate(-50%, 0); }
.mgb-ping { position: relative; }
.mgb-ping.ripple::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid currentColor;
animation: pingRipple 0.7s ease-out both;
pointer-events: none;
}
@keyframes pingRipple { to { transform: scale(2.1); opacity: 0; } }
.mgb-tide-beats {
position: absolute;
left: 8%; right: 8%; top: 10%;
display: flex;
justify-content: center;
gap: 6px;
pointer-events: none;
}
.mgb-tide-beats i {
width: 8px; height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.14);
border: 1px solid var(--edge);
transition: background 0.25s, box-shadow 0.25s;
}
.mgb-tide-beats i.on { background: var(--c-aqua); border-color: transparent; box-shadow: 0 0 8px rgba(61, 217, 192, 0.8); }
.mgb-swimmer { bottom: 24%; }
.mgb-lanes button { display: grid; place-items: center; }
.mgb-lanes button i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background 0.2s, box-shadow 0.2s; }
.mgb-lanes button.on { border-color: rgba(61, 217, 192, 0.5); background: rgba(61, 217, 192, 0.12); }
.mgb-lanes button.on i { background: var(--c-aqua); box-shadow: 0 0 8px rgba(61, 217, 192, 0.8); }
@media (prefers-reduced-motion: reduce) {
.mgb-idle, .mgb-end-ico { animation: none; }
}
.mg-action[hidden], .mg-lives[hidden] { display: none !important; }
@media (max-width: 720px) {
.mg { place-items: end center; padding: 0; }
.mg-panel {
width: 100%;
max-width: 100%;
max-height: 94svh;
border-radius: 24px 24px 0 0;
border-bottom: 0;
padding: 0.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom));
transform: translateY(28px);
}
.mg.open .mg-panel { transform: none; }
.mg-title span { display: block; line-height: 1.35; }
}
.mgb-bubble i { position: relative; }
.mgb-bubble.gold i {
border-color: rgba(255, 209, 102, 0.9);
background: radial-gradient(circle at 32% 28%, rgba(255, 240, 200, 0.85), rgba(255, 209, 102, 0.25) 60%);
box-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
}
.mgb-bubble.spiky i {
border-color: rgba(255, 141, 122, 0.9);
background: radial-gradient(circle at 32% 28%, rgba(255, 200, 190, 0.5), rgba(255, 141, 122, 0.15) 60%);
box-shadow: 0 0 0 3px rgba(255, 141, 122, 0.25), 0 0 12px rgba(255, 141, 122, 0.5);
}
.mgb-bubble.spiky i::after {
content: '\2715';
position: absolute; inset: 0;
display: grid; place-items: center;
color: #ff8d7a; font-weight: 800; font-size: 0.9rem;
}
.mgb-shells.four .mgb-shell { left: calc(5% + var(--pos) * 23.5%); width: 62px; height: 62px; }
.mgb-simon.dark .mgb-pad { background: rgba(255, 255, 255, 0.07); opacity: 0.6; }
.mgb-simon.dark .mgb-pad.on { background: rgba(244, 251, 255, 0.75); opacity: 1; }
