html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background: #04121F;
}

/* Deep ocean gradient backdrop */
.mud-layout,
.mud-main-content {
    background: linear-gradient(180deg, #0A2A43 0%, #06182A 45%, #03101C 100%);
    min-height: 100vh;
}

/* Subtle light rays from the surface */
.mud-main-content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: radial-gradient(ellipse at 50% -10%, rgba(79, 195, 247, 0.18) 0%, rgba(79, 195, 247, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

/* Rising bubbles */
.bubble {
    position: fixed;
    bottom: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(178, 235, 242, 0.12));
    border: 1px solid rgba(178, 235, 242, 0.25);
    pointer-events: none;
    z-index: 1;
    animation: rise linear infinite;
}

@keyframes rise {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(30px) scale(1.15); opacity: 0; }
}

/* Sand floor at the bottom of the tank */
.sand {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60px 18px at 12% 100%, rgba(120, 100, 70, 0.55) 0%, rgba(120, 100, 70, 0) 70%),
        radial-gradient(ellipse 80px 22px at 38% 100%, rgba(140, 118, 82, 0.5) 0%, rgba(140, 118, 82, 0) 70%),
        radial-gradient(ellipse 70px 20px at 64% 100%, rgba(120, 100, 70, 0.5) 0%, rgba(120, 100, 70, 0) 70%),
        radial-gradient(ellipse 90px 24px at 88% 100%, rgba(140, 118, 82, 0.55) 0%, rgba(140, 118, 82, 0) 70%),
        linear-gradient(180deg, rgba(96, 78, 52, 0) 0%, rgba(96, 78, 52, 0.55) 55%, rgba(78, 62, 40, 0.85) 100%);
    border-top: 2px solid rgba(178, 150, 100, 0.25);
}

/* Fish (photorealistic SVG) */
.fish {
    position: fixed;
    left: -140px;
    width: 120px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
    animation: swim linear infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.fish-right { animation-name: swim-right; }
.fish-left  { left: auto; right: -140px; animation-name: swim-left; }

.fish-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Color variations */
.fish-red    { --fish-top: #FFB74D; --fish-mid: #F4511E; --fish-bot: #BF360C; --fin-top: #FF8A65; --fin-bot: #D84315; }
.fish-green  { --fish-top: #AED581; --fish-mid: #558B2F; --fish-bot: #33691E; --fin-top: #9CCC65; --fin-bot: #558B2F; }
.fish-blue   { --fish-top: #81D4FA; --fish-mid: #0277BD; --fish-bot: #01579B; --fin-top: #4FC3F7; --fin-bot: #0277BD; }
.fish-purple { --fish-top: #CE93D8; --fish-mid: #7B1FA2; --fish-bot: #4A148C; --fin-top: #BA68C8; --fin-bot: #7B1FA2; }

.fish-body-svg {
    fill: var(--fish-mid);
    background: linear-gradient(180deg, var(--fish-top) 0%, var(--fish-mid) 45%, var(--fish-bot) 100%);
}

.fish-fin {
    fill: var(--fin-bot);
    background: linear-gradient(180deg, var(--fin-top) 0%, var(--fin-bot) 100%);
}

.fish-tail-svg {
    transform-origin: 18px 30px;
    animation: tail-flick 0.6s ease-in-out infinite;
}

@keyframes tail-flick {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(14deg); }
}

@keyframes swim-right {
    0%   { transform: translateX(0) scale(var(--s, 1)); }
    100% { transform: translateX(calc(100vw + 280px)) scale(var(--s, 1)); }
}

@keyframes swim-left {
    0%   { transform: translateX(0) scaleX(-1) scale(var(--s, 1)); }
    100% { transform: translateX(calc(-100vw - 280px)) scaleX(-1) scale(var(--s, 1)); }
}

/* Playing cards (task tiles) — warm red face, two facing lobsters, faint scattered hearts */
.playing-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: #fff url("img/LustLobstersInSpace.jpg") center / cover no-repeat !important;
    border: 3px solid #FDFDF8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.playing-card::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(253, 253, 248, 0.5);
    border-radius: 11px;
    pointer-events: none;
}

.playing-card:hover {
    transform: translateY(-6px) rotate(-4deg) scale(1.16);
    box-shadow: 0 14px 34px rgba(198, 40, 40, 0.55);
}

.playing-card.task-card-done {
    border-color: #A5D6A7;
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.4);
}

.playing-card-content {
    position: relative;
    padding: 16px;
    min-height: 360px;
    aspect-ratio: 2.5 / 3.5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Faint scattered hearts in the background */
.pc-bg-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: rgba(253, 253, 248, 0.14);
    font-size: 30px;
    line-height: 1;
}

.pc-bg-hearts span {
    position: absolute;
}

.pc-corner {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.95;
}

.pc-corner.pc-top {
    top: 10px;
    left: 10px;
}

.pc-corner.pc-bottom {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

.pc-rank {
    font-size: 60px;
    font-weight: 800;
    color: #000;
    text-shadow: none;
}

.pc-suit {
    font-size: 44px;
    color: #000;
}

.pc-red .pc-rank,
.pc-red .pc-suit {
    color: #D32F2F;
}

.pc-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
}

.pc-title {
    color: #000 !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-shadow:
        0 0 4px #FFD700,
        0 0 8px #FFD700,
        0 0 14px #FFC107,
        0 0 22px rgba(255, 193, 7, 0.8);
}

.pc-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(253, 253, 248, 0.9);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Phone optimization — single-column cards need smaller text + shorter height */
@media (max-width: 599.95px) {
    .playing-card {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .playing-card-content {
        min-height: 300px;
        padding: 12px;
    }
    .pc-rank { font-size: 40px; }
    .pc-suit { font-size: 30px; }
    .pc-title { font-size: 1.5rem !important; font-weight: 900 !important; }
    .pc-bg-hearts { font-size: 22px; }
    .pc-corner.pc-top { top: 8px; left: 8px; }
    .pc-corner.pc-bottom { bottom: 8px; right: 8px; }
}

/* Dial cards */
.dial-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background: rgba(10, 31, 48, 0.85) !important;
    border: 1px solid rgba(79, 195, 247, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30, 136, 229, 0.35);
    border-color: rgba(79, 195, 247, 0.6);
}

.dial-content {
    padding: 24px 16px;
    text-align: center;
}

/* Smut page */
.sfx {
    font-style: italic;
    color: #78909C;
}

.voice-line {
    line-height: 1.7;
}

/* Paper / content panels get a translucent ocean glass look (playing cards keep their own face) */
.mud-paper:not(.playing-card) {
    background: rgba(10, 31, 48, 0.7) !important;
    border: 1px solid rgba(79, 195, 247, 0.2);
    backdrop-filter: blur(4px);
}

/* Trophy reveal */
.trophy-btn {
    font-size: 120px;
    animation: trophy-pulse 2s ease-in-out infinite;
}

@keyframes trophy-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(255, 193, 7, 0.9)); }
}

.trophy-reveal {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%) !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

/* Phone optimization — tighter layout, smaller password reveal */
@media (max-width: 599.95px) {
    .mud-container.py-8 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .password-reveal {
        font-size: 2.5rem !important;
        word-break: break-word;
    }
    .voice-line {
        font-size: 1rem;
    }
}
