/**
 * FISH SHOOTING – OCEAN HUNTER ARCADE & ONLINE MULTIPLAYER
 * Dedicated Stylesheet: assets/css/fish.css
 * Mall Arcade Fishing Cabinet UI & Diegetic HUD (PC & Mobile Responsive)
 */

:root {
    --fish-bg-deep: #020c1b;
    --fish-bg-panel: rgba(5, 24, 48, 0.94);
    --fish-bg-card: rgba(8, 36, 70, 0.88);
    --fish-border-cyan: rgba(0, 229, 255, 0.42);
    --fish-border-gold: rgba(251, 191, 36, 0.65);
    --fish-cyan: #38bdf8;
    --fish-blue: #0ea5e9;
    --fish-gold: #fde047;
    --fish-amber: #f59e0b;
    --fish-emerald: #4ade80;
    --fish-danger: #f87171;
    --fish-text: #ffffff;
    --fish-muted: #e2e8f0;
}

.fish-page-wrapper {
    max-width: 1460px;
    margin: 0 auto;
    padding: 14px 16px 40px;
    color: var(--fish-text);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* When player is inside the Arcade Game Screen, compact the top page wrapper so the cabinet dominates */
.fish-page-wrapper.is-in-game .fish-top-bar {
    display: none;
}

/* ============================================================================
   TOP ARCADE MARQUEE & WALLET STRIP
   ============================================================================ */
.fish-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #04152d 0%, #092c58 52%, #051833 100%);
    border: 2px solid var(--fish-border-gold);
    border-radius: 20px;
    padding: 14px 22px;
    margin-bottom: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.fish-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fde047, #00e5ff, #fde047, #f59e0b);
}

.fish-brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fish-brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #0369a1 65%, #022c43 100%);
    border: 2px solid var(--fish-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.45);
}

.fish-brand-logo img {
    width: 40px;
    height: 40px;
}

.fish-arcade-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--fish-gold);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.fish-brand-title h1 {
    font-size: 1.38rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(90deg, #ffffff 0%, #fef08a 48%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.fish-brand-title p {
    margin: 2px 0 0;
    font-size: 0.81rem;
    color: #e2e8f0;
}

.fish-wallet-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fish-fp-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #020b18, #071d36);
    border: 2px solid var(--fish-border-gold);
    border-radius: 14px;
    padding: 6px 15px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 158, 11, 0.25);
}

.fish-fp-pill .coin-led {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fef08a, #f59e0b 70%, #b45309);
    color: #451a03;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

.fp-pill-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.fp-pill-meta small {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #93c5fd;
}

.fp-pill-meta strong {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--fish-gold);
}

/* ============================================================================
   SCREENS & ARCADE BUTTONS
   ============================================================================ */
.fish-screen {
    display: none;
    animation: fishFadeIn 0.22s ease-out;
}

.fish-screen.active {
    display: block;
}

@keyframes fishFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.fish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.16s ease;
    color: #ffffff;
    background: rgba(15, 38, 72, 0.9);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.fish-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.fish-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fish-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fish-btn-arcade-start {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
    border-color: #86efac;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fish-btn-primary {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
    border-color: rgba(125, 211, 252, 0.65);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.38);
}

.fish-btn-gold {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 60%, #b45309 100%);
    border-color: #fef08a;
    color: #fffbeb;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.fish-btn-success {
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-color: rgba(134, 239, 172, 0.6);
}

.fish-btn-danger {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    border-color: rgba(252, 165, 165, 0.6);
}

.fish-btn-outline {
    background: rgba(8, 28, 56, 0.85);
    border-color: var(--fish-border-cyan);
    color: #e0f2fe;
}

/* ============================================================================
   HOME SCREEN & LOBBY PANELS
   ============================================================================ */
.fish-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1100px;
    margin: 0 auto;
    gap: 18px;
}

.fish-hero-banner {
    background: radial-gradient(circle at 82% 22%, rgba(0, 229, 255, 0.25), transparent 55%),
                radial-gradient(circle at 18% 85%, rgba(245, 158, 11, 0.18), transparent 50%),
                linear-gradient(145deg, #041830 0%, #082f5e 52%, #031124 100%);
    border: 2px solid var(--fish-border-cyan);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.fish-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.55);
    color: var(--fish-gold);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    width: fit-content;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.fish-hero-banner h2 {
    font-size: 1.88rem;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.24;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 229, 255, 0.3);
}

.fish-hero-banner p {
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 1.62;
    margin: 0 0 22px;
}

.fish-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.fish-cta-row .fish-btn {
    padding: 13px 22px;
    font-size: 0.94rem;
}

.fish-nav-Shortcuts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.fish-shortcut-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 8px;
    background: linear-gradient(180deg, rgba(8, 33, 64, 0.92), rgba(4, 18, 38, 0.92));
    border: 1.5px solid rgba(56, 189, 248, 0.32);
    border-radius: 16px;
    color: #e0f2fe;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

.fish-shortcut-btn i {
    font-size: 1.28rem;
    color: var(--fish-gold);
}

.fish-shortcut-btn:hover {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.3), rgba(8, 47, 73, 0.95));
    border-color: var(--fish-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.22);
}

.fish-side-panel {
    background: linear-gradient(160deg, #062142 0%, #031226 100%);
    border: 2px solid var(--fish-border-cyan);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.fish-side-panel h3 {
    margin: 0;
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fish-gold);
}

.fish-hunter-tag {
    font-size: 0.84rem;
    color: var(--fish-muted);
    margin: 6px 0 14px;
}

.fish-hunter-tag strong {
    color: #ffffff;
}

.fish-stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fish-stat-box {
    background: rgba(2, 12, 27, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 14px;
    padding: 12px 14px;
}

.fish-stat-box span {
    display: block;
    font-size: 0.75rem;
    color: var(--fish-muted);
}

.fish-stat-box strong {
    display: block;
    margin-top: 4px;
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
}

.fish-record-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(14, 165, 233, 0.14));
    border-color: rgba(251, 191, 36, 0.45);
}

.fish-fp-notice {
    margin: 0;
    font-size: 0.78rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Mode & Map Selection Cards */
.fish-panel-box {
    background: linear-gradient(160deg, #062142 0%, #031124 100%);
    border: 2px solid var(--fish-border-cyan);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.fish-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.fish-panel-header h2 {
    margin: 0;
    font-size: 1.32rem;
    color: var(--fish-gold);
}

.fish-maps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.fish-map-card {
    background: linear-gradient(180deg, rgba(8, 35, 68, 0.92), rgba(4, 18, 36, 0.95));
    border: 2px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.fish-map-card:hover {
    transform: translateY(-3px);
    border-color: var(--fish-cyan);
}

.fish-map-card.active {
    border-color: var(--fish-gold);
    background: linear-gradient(180deg, rgba(12, 58, 108, 0.95), rgba(6, 28, 56, 0.95));
    box-shadow: 0 0 26px rgba(251, 191, 36, 0.32);
}

.map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-icon {
    font-size: 1.4rem;
    color: var(--fish-gold);
}

.fish-map-card h3 {
    margin: 4px 0;
    font-size: 1.15rem;
    color: #ffffff;
}

.fish-map-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.map-card-footer {
    font-size: 0.8rem;
    color: #93c5fd;
    padding-top: 8px;
    border-top: 1px dashed rgba(56, 189, 248, 0.25);
}

.map-card-footer strong {
    color: var(--fish-gold);
}

.fish-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-waiting { background: rgba(14, 165, 233, 0.22); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge-live { background: rgba(245, 158, 11, 0.22); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.45); }
.badge-boss { background: rgba(239, 68, 68, 0.24); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.5); }

/* Multiplayer Room Browser & Lobby */
.fish-room-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.fish-join-code-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fish-input {
    background: rgba(2, 12, 26, 0.92);
    border: 1.5px solid var(--fish-border-cyan);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
}

.fish-room-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(6, 26, 48, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.room-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.room-code-pill {
    background: rgba(0, 229, 255, 0.16);
    color: var(--fish-cyan);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--fish-muted);
}

.fish-seats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.fish-seat-card {
    background: rgba(4, 18, 36, 0.9);
    border: 2px dashed rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
}

.fish-seat-card.occupied {
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.7);
}

.fish-seat-card.is-me {
    border-color: var(--fish-gold);
    box-shadow: 0 0 22px rgba(253, 224, 71, 0.25);
}

.seat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    margin-bottom: 12px;
}

.seat-role {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.seat-role.host { background: rgba(245, 158, 11, 0.25); color: var(--fish-gold); }
.seat-role.ready { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.seat-role.wait { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.seat-avatar, .seat-empty-icon {
    font-size: 2rem;
    color: var(--fish-cyan);
    margin: 8px 0;
}

.seat-name {
    font-weight: 800;
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.seat-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--fish-muted);
}

/* ============================================================================
   MALL ARCADE CABINET VIEWPORT & DIEGETIC HUD
   ============================================================================ */
.fish-cabinet-wrap {
    background: linear-gradient(180deg, #0b1e38 0%, #030d1c 100%);
    border: 3.5px solid #d97706;
    outline: 2px solid rgba(0, 229, 255, 0.65);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.92),
        0 0 45px rgba(0, 229, 255, 0.28),
        inset 0 2px 0 rgba(254, 240, 138, 0.55),
        inset 0 0 32px rgba(0, 0, 0, 0.85);
    position: relative;
    transition: all 0.3s ease;
}

/* Metallic Corner Rivets on the Arcade Cabinet */
.cabinet-rivet {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #fde047 40%, #b45309 85%, #451a03 100%);
    border: 1px solid #78350f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    z-index: 80;
    pointer-events: none;
}
.rivet-tl { top: 9px; left: 9px; }
.rivet-tr { top: 9px; right: 9px; }
.rivet-bl { bottom: 9px; left: 9px; }
.rivet-br { bottom: 9px; right: 9px; }

/* TOP ARCADE MARQUEE BAR */
.fish-hud-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 20px;
    background: linear-gradient(180deg, #0b254a 0%, #05142a 100%);
    border-bottom: 2px solid rgba(251, 191, 36, 0.65);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.fish-hud-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.arcade-marquee-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 12, 27, 0.92);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.22);
    color: #e0f2fe;
    padding: 5px 13px;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.arcade-marquee-chip i {
    color: var(--fish-cyan);
}

.arcade-marquee-chip.map-chip i {
    color: var(--fish-gold);
}

/* Center Digital LED Scoreboard (Removed per user request) */
.arcade-led-scoreboard {
    display: none !important;
}

.led-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.led-module small {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.led-module strong {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fde047;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.65);
}

.led-divider {
    width: 1.5px;
    height: 24px;
    background: rgba(251, 191, 36, 0.35);
}

.fish-hud-net.is-positive {
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.55) !important;
}

.fish-hud-net.is-negative {
    color: #f87171 !important;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.55) !important;
}

.fish-conn-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.fish-conn-pill.is-online {
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.55);
    color: #86efac;
}

.fish-conn-pill.is-warn {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(253, 224, 71, 0.55);
    color: #fde047;
}

/* Top Right Arcade Cabinet Action Buttons */
.arcade-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    color: #ffffff;
    border: 1.5px solid transparent;
    transition: all 0.16s ease;
}

.arcade-top-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.arcade-top-btn.btn-replay {
    background: linear-gradient(180deg, #16a34a, #15803d);
    border-color: #86efac;
}

.arcade-top-btn.btn-mode {
    background: linear-gradient(180deg, #0284c7, #0369a1);
    border-color: #7dd3fc;
}

.arcade-top-btn.btn-exit {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-color: #fca5a5;
}

/* Multiplayer 4-Seat Live Scoreboard Strip */
.hud-mp-players-bar {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(2, 10, 22, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.hud-mp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(12, 34, 62, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.76rem;
    font-weight: 700;
}

.hud-mp-chip.is-me {
    border-color: var(--fish-gold);
    color: var(--fish-gold);
}

/* WIDESCREEN OCEAN GLASS VIEWPORT */
.fish-canvas-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 73vh;
    background: radial-gradient(circle at 50% 20%, #07325f, #021024);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.85);
}

/* Subtle curved arcade glass reflection glare */
.fish-canvas-stage::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 25%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
    z-index: 52;
}

#fish-canvas-container {
    width: 100%;
    height: 100%;
}

/* Floating Right-Side Arcade Utility Dock inside Ocean Viewport */
.arcade-side-dock {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 55;
}

.arcade-side-btn {
    width: 56px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(6, 28, 56, 0.88), rgba(2, 12, 26, 0.92));
    border: 1.5px solid rgba(0, 229, 255, 0.48);
    color: #e0f2fe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    transition: all 0.16s ease;
}

.arcade-side-btn i {
    font-size: 1.05rem;
    color: var(--fish-gold);
}

.arcade-side-btn span {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.arcade-side-btn:hover {
    border-color: var(--fish-gold);
    transform: scale(1.06);
    background: rgba(14, 165, 233, 0.35);
}

/* Boss & Jackpot Floating Overlays */
@keyframes fishPillSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.fish-jackpot-banner {
    position: absolute;
    top: 8px; /* Default when no ocean event */
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.95);
    background: linear-gradient(135deg, rgba(8, 20, 42, 0.94) 0%, rgba(20, 35, 60, 0.92) 100%);
    border: 1px solid #fbbf24;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1.25;
    pointer-events: none !important;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 28;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(251, 191, 36, 0.25);
    max-width: min(340px, calc(100% - 24px));
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Dynamic positioning when Ocean Event bar is active */
.fish-ocean-event-bar:not([hidden]) ~ #fish-jackpot-banner {
    top: 36px;
}

.fish-jackpot-banner.show {
    opacity: 0.96;
    transform: translateX(-50%) translateY(0) scale(1);
}

.fish-boss-warning {
    position: absolute;
    top: 36px; /* Default when no ocean event */
    left: 50%;
    transform: translateX(-50%) scale(0.92);
    background: linear-gradient(90deg, rgba(153, 27, 27, 0.92), rgba(220, 38, 38, 0.92), rgba(153, 27, 27, 0.92));
    border: 1px solid var(--fish-gold);
    color: #ffffff;
    padding: 3px 11px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1.25;
    max-width: min(320px, calc(100% - 24px));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none !important;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 27;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.5);
    user-select: none;
    -webkit-user-select: none;
}

/* Dynamic positioning when Ocean Event bar is active */
.fish-ocean-event-bar:not([hidden]) ~ #fish-boss-warning {
    top: 64px;
}

.fish-boss-warning.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.fish-jackpot-banner .jackpot-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}

.fish-jackpot-banner .jackpot-icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.fish-jackpot-banner .jackpot-title {
    color: #fde047;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.fish-jackpot-banner .jackpot-desc {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fish-jackpot-banner.ann-boss {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.96), rgba(220, 38, 38, 0.96), rgba(127, 29, 29, 0.96));
    border-color: #fef08a;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.75), 0 0 15px rgba(251, 191, 36, 0.5);
}

.fish-jackpot-banner.ann-gold {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.96), rgba(245, 158, 11, 0.96));
    border-color: #fef08a;
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.65);
}

.fish-jackpot-banner.ann-special {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(14, 165, 233, 0.96));
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.65);
}

.fish-jackpot-banner.ann-large {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border-color: #38bdf8;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.fish-jackpot-banner.ann-event {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.96), rgba(14, 116, 144, 0.96), rgba(180, 83, 9, 0.96));
    border-color: #fde047;
    box-shadow: 0 0 36px rgba(250, 204, 21, 0.65), 0 0 18px rgba(56, 189, 248, 0.55);
}

.fish-jackpot-banner .ann-seat {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #fde047;
    font-weight: 800;
}

.fish-jackpot-banner .ann-seat.is-me {
    background: #059669;
    color: #ffffff;
    font-weight: 900;
}

.fish-jackpot-banner .ann-fp {
    color: #fde047;
    font-weight: 900;
}

.hud-powerup-bar {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 26;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
}

.hud-powerup-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hud-powerup-pill[hidden] {
    display: none;
}

.hud-powerup-pill.is-laser {
    background: linear-gradient(135deg, rgba(162, 28, 175, 0.92), rgba(232, 121, 249, 0.88));
    border: 1.5px solid #fde047;
    box-shadow: 0 0 18px rgba(232, 121, 249, 0.6);
}

.hud-powerup-pill.is-freeze {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(56, 189, 248, 0.88));
    border: 1.5px solid #e0f2fe;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}

.hud-powerup-pill.is-event {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(3, 105, 161, 0.88));
    border: 1.5px solid #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.hud-powerup-pill.is-event.is-imminent {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(220, 38, 38, 0.92));
    border-color: #fde047;
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.75);
    animation: pulseEventPill 0.7s infinite alternate;
}

@keyframes pulseEventPill {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ============================================================================
   TOP-CENTER ACTIVE OCEAN EVENT CAPSULE & PROGRESS BAR
   ============================================================================ */
.fish-ocean-event-bar {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: min(360px, calc(100% - 24px));
    background: linear-gradient(135deg, rgba(8, 20, 42, 0.94) 0%, rgba(15, 35, 70, 0.9) 50%, rgba(8, 20, 42, 0.94) 100%);
    border: 1px solid rgba(253, 224, 71, 0.65);
    border-radius: 999px;
    padding: 3px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 12px rgba(250, 204, 21, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none !important;
    animation: fishPillSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
}

.fish-ocean-event-bar[hidden] {
    display: none !important;
}

.fish-ocean-event-bar.ev-golden_parade {
    background: linear-gradient(135deg, rgba(30, 20, 8, 0.94) 0%, rgba(70, 45, 12, 0.92) 50%, rgba(30, 20, 8, 0.94) 100%);
    border-color: rgba(250, 204, 21, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(250, 204, 21, 0.35);
}

.fish-ocean-event-bar.ev-magnetic_storm {
    background: linear-gradient(135deg, rgba(16, 12, 42, 0.94) 0%, rgba(20, 45, 80, 0.92) 50%, rgba(16, 12, 42, 0.94) 100%);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(56, 189, 248, 0.35);
}

.fish-ocean-event-bar.ev-boss_invasion {
    background: linear-gradient(135deg, rgba(40, 10, 10, 0.95) 0%, rgba(80, 18, 18, 0.92) 50%, rgba(40, 10, 10, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 16px rgba(239, 68, 68, 0.4);
}

.fish-ocean-event-bar.ev-special_armada {
    background: linear-gradient(135deg, rgba(6, 30, 24, 0.94) 0%, rgba(10, 60, 45, 0.92) 50%, rgba(6, 30, 24, 0.94) 100%);
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 14px rgba(52, 211, 153, 0.35);
}

.ocean-event-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    max-width: 100%;
}

.ocean-event-icon {
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.ocean-event-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ocean-event-title-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ocean-event-title-row strong {
    color: #fef08a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.ocean-event-badge {
    background: rgba(250, 204, 21, 0.22);
    border: 1px solid rgba(253, 224, 71, 0.7);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.35;
    flex-shrink: 0;
}

.ocean-event-desc,
.ocean-event-timer,
.ocean-event-progress-track,
.hud-powerup-pill.is-event {
    display: none !important;
}

.hud-powerup-pill strong {
    background: rgba(15, 23, 42, 0.75);
    color: #fde047;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.76rem;
}

/* ============================================================================
   BOTTOM PHYSICAL ARCADE CONTROL CONSOLE
   ============================================================================ */
.fish-hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    background:
        linear-gradient(180deg, #0b2547 0%, #051329 48%, #020814 100%);
    border-top: 3px solid #fbbf24;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.arcade-deck-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.deck-left {
    justify-content: flex-start;
}

.deck-center {
    justify-content: center;
    background: rgba(1, 8, 20, 0.92);
    border: 2px solid rgba(251, 191, 36, 0.65);
    border-radius: 16px;
    padding: 5px 8px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 18px rgba(251, 191, 36, 0.2);
}

.deck-right {
    justify-content: flex-end;
}

/* Coin Hopper Counter on Left Console */
.arcade-coin-hopper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #010712;
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
    padding: 4px 12px;
}

.coin-hopper-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b);
    color: #451a03;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.coin-hopper-digits {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.coin-hopper-digits small {
    font-size: 0.58rem;
    font-weight: 800;
    color: #93c5fd;
}

.coin-hopper-digits strong {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.98rem;
    font-weight: 900;
    color: #fde047;
}

/* Cannon Selector Rack */
.arcade-cannon-rack {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fish-pill-btn {
    background: linear-gradient(180deg, #0d284a 0%, #05152a 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fish-pill-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 229, 255, 0.35);
}

.fish-pill-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fish-pill-btn.active[data-gun="cannon_1"] {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fish-pill-btn.active[data-gun="cannon_2"] {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border-color: #86efac;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fish-pill-btn.active[data-gun="cannon_3"] {
    background: linear-gradient(180deg, #ca8a04 0%, #a16207 100%);
    border-color: #fde047;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fish-pill-btn.active[data-gun="cannon_4"] {
    background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
    border-color: #fdba74;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fish-pill-btn.active[data-gun="cannon_5"] {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-color: #fde047;
    color: #fffbeb;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fish-pill-btn.locked {
    opacity: 0.58;
}

/* Center Bet Stepper Buttons (- / +) */
.arcade-bet-stepper {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid #fef08a;
    background: linear-gradient(180deg, #fbbf24, #b45309);
    color: #451a03;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    transition: all 0.14s ease;
}

.arcade-bet-stepper:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.arcade-tier-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Right Skill Orbs & Rocker Switches */
.arcade-skill-orbs {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fish-special-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #132d52, #071529);
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    color: #fef08a;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.fish-special-btn:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.35);
}

.fish-special-btn.orb-bomb i { color: #f87171; }
.fish-special-btn.orb-freeze i { color: #38bdf8; }
.fish-special-btn.orb-laser i { color: #fbbf24; }

.fish-special-btn .item-badge {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.7rem;
}

.arcade-rocker-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.arcade-rocker-btn.active {
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-color: #bbf7d0;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

/* ============================================================================
   MODALS
   ============================================================================ */
.fish-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 18, 0.84);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.fish-modal-backdrop.open {
    display: flex;
}

.fish-modal-dialog {
    background: linear-gradient(165deg, #072242 0%, #031124 100%);
    border: 2px solid var(--fish-border-gold);
    border-radius: 24px;
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.82);
}

.fish-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(2, 12, 26, 0.65);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.fish-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--fish-gold);
}

.fish-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
}

.fish-arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.fish-arsenal-card {
    background: rgba(6, 28, 56, 0.9);
    border: 1.5px solid rgba(56, 189, 248, 0.32);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.fish-arsenal-card.selected {
    border-color: var(--fish-gold);
    box-shadow: 0 0 20px rgba(253, 224, 71, 0.25);
}

.arsenal-item-icon {
    font-size: 2.3rem;
    margin: 12px 0;
}

.arsenal-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: #bae6fd;
}

.arsenal-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

/* Encyclopedia Species Cards */
.fish-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.fish-species-card {
    background: rgba(6, 28, 56, 0.9);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fish-species-card.cat-gold { border-color: rgba(253, 224, 71, 0.7); }
.fish-species-card.cat-boss { border-color: rgba(244, 63, 94, 0.8); }

.species-info h4 { margin: 4px 0; font-size: 0.98rem; }
.species-info p { margin: 0 0 6px; font-size: 0.78rem; color: var(--fish-muted); }
.species-cat {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.16);
    color: var(--fish-cyan);
}
.species-metrics {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 800;
}
.reward-tag { color: var(--fish-gold); }

/* Tables */
.fish-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.fish-table th, .fish-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    text-align: left;
}

.fish-table th {
    color: var(--fish-cyan);
    font-weight: 800;
}

.text-gold { color: var(--fish-gold); }
.text-pos { color: #4ade80; }
.text-neg { color: #f87171; }

/* Summary Modal Stats */
.summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sum-box {
    background: rgba(4, 20, 40, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.sum-box span { display: block; font-size: 0.78rem; color: var(--fish-muted); }
.sum-box strong { display: block; font-size: 1.18rem; margin-top: 4px; font-weight: 900; }

.summary-net-banner {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.summary-net-banner.pos { background: rgba(22, 163, 74, 0.24); border: 1.5px solid #4ade80; }
.summary-net-banner.neg { background: rgba(220, 38, 38, 0.24); border: 1.5px solid #f87171; }

/* Toast Notifications */
.fish-toast-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10050;
    pointer-events: none;
}

.fish-toast {
    background: rgba(4, 22, 44, 0.96);
    border-left: 4px solid var(--fish-cyan);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
    transition: all 0.25s ease;
    pointer-events: none;
}

.fish-toast.toast-success { border-left-color: #22c55e; }
.fish-toast.toast-warning { border-left-color: #f59e0b; }
.fish-toast.toast-error { border-left-color: #ef4444; }
.fish-toast.hide { opacity: 0; transform: translateX(20px); }

/* ============================================================================
   ACTIVE MATCH REJOIN BANNER (THÔNG BÁO VÀO LẠI BÀN ĐANG HOẠT ĐỘNG)
   ============================================================================ */
.fish-rejoin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 16px;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 78, 59, 0.85) 60%, rgba(2, 44, 34, 0.95) 100%);
    border: 1.5px solid #10b981;
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: bannerBorderPulse 2.4s ease-in-out infinite;
}

@keyframes bannerBorderPulse {
    0%, 100% { border-color: #10b981; box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); }
    50% { border-color: #34d399; box-shadow: 0 0 28px rgba(52, 211, 153, 0.65); }
}

.rejoin-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rejoin-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.28);
    border: 1px solid #34d399;
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.rejoin-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rejoin-banner-text strong {
    font-size: 0.95rem;
    color: #ecfdf5;
    font-weight: 800;
}

.rejoin-banner-text span {
    font-size: 0.82rem;
    color: #a7f3d0;
}

.pulse-glow {
    animation: pulseGlowAnim 1.6s ease-in-out infinite alternate !important;
}

@keyframes pulseGlowAnim {
    from {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 22px rgba(34, 197, 94, 0.85);
        transform: scale(1.02);
    }
}

.fish-room-row.is-my-active-room {
    border: 1.5px solid #22c55e !important;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, rgba(6, 24, 48, 0.85) 100%) !important;
}

@media (max-width: 768px) {
    .fish-rejoin-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }
    .fish-rejoin-banner .rejoin-banner-actions {
        width: 100%;
    }
    .fish-rejoin-banner .rejoin-banner-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   3D AQUARIUM SPECIES SHOWCASE STRIP (BASE DESKTOP)
   ============================================================================ */
.fish-3d-showcase-wrap {
    margin: 4px 0 22px;
    padding: 16px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.16), transparent 65%),
        linear-gradient(180deg, rgba(3, 18, 38, 0.92) 0%, rgba(2, 10, 24, 0.96) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.38);
    box-shadow:
        inset 0 2px 16px rgba(0, 0, 0, 0.75),
        0 10px 28px rgba(0, 0, 0, 0.45);
}

.fish-3d-showcase-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.fish-3d-showcase-header span {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    color: var(--fish-gold);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fish-3d-showcase-header small {
    font-size: 0.75rem;
    color: #93c5fd;
}

.fish-3d-showcase-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.fish-3d-species-card {
    background:
        radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.24), rgba(3, 15, 32, 0.95) 75%);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.fish-3d-species-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--fish-gold);
    box-shadow:
        0 12px 26px rgba(0, 229, 255, 0.25),
        inset 0 1px 0 rgba(254, 240, 138, 0.45);
}

.fish-3d-species-card.cat-gold {
    border-color: rgba(251, 191, 36, 0.65);
    background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.24), rgba(15, 23, 42, 0.96) 75%);
}

.fish-3d-species-card.cat-boss {
    border-color: rgba(244, 63, 94, 0.75);
    background: radial-gradient(circle at 50% 35%, rgba(244, 63, 94, 0.26), rgba(15, 23, 42, 0.96) 75%);
}

.species-3d-stage {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.65));
}

.species-3d-meta {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    padding-top: 6px;
    margin-top: 4px;
}

.species-3d-meta strong {
    display: block;
    font-size: 0.78rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.species-3d-points {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--fish-gold);
}

.species-3d-pod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.25), rgba(2, 10, 24, 0.95));
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 4px 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* ============================================================================
   DIEGETIC IMMERSIVE IN-GAME HUD & PORTAL RESPONSIVE INTEGRATION
   ============================================================================ */

/* 1. Global site adjustments when player is actively on fish.php */
body.page-fish .portal-admin-fab,
body.page-fish .portal-quick-dock,
body.page-fish #btn-to-top,
body.page-fish .site-footer {
    display: none !important;
}

/* When not inside match (e.g. Lobby / Maps / Rooms list), allow normal smooth scrolling */
body.page-fish:not(.is-in-fish-game) .portal-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1rem 2.5rem !important;
    overflow-y: auto !important;
}

/* 2. When actively in a fish shooting match: lock layout to viewport without overflow */
body.is-in-fish-game nav.navbar,
body.is-in-fish-game #mainNavbar,
body.is-in-fish-game .navbar,
body.is-in-fish-game .nav-overlay,
body.is-in-fish-game footer.footer,
body.is-in-fish-game footer,
body.is-in-fish-game #fish-main-header,
body.is-in-fish-game .global-header,
body.is-in-fish-game .portal-admin-fab,
body.is-in-fish-game .portal-quick-dock,
body.is-in-fish-game #btn-to-top,
body.is-in-fish-game .site-footer,
body.is-in-fish-game .fish-rejoin-banner {
    display: none !important;
}

body.is-in-fish-game {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

body.is-in-fish-game .portal-wrapper {
    overflow: hidden !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
}

body.is-in-fish-game .portal-main-area {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Desktop portal content: fits exactly between topbar and bottom of screen (calc(100vh - 60px)) */
body.is-in-fish-game .portal-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    max-height: calc(100dvh - 60px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game main.main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.is-in-fish-game .fish-page-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game .fish-screen[data-screen="game"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game .fish-cabinet-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    perspective: none !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game .cabinet-rivet {
    display: none !important;
}

/* ============================================================================
   UNIVERSAL IN-GAME HUD ARCHITECTURE (DESKTOP + MOBILE 100% UNCLIPPED)
   ============================================================================ */

/* Top HUD: Fixed height (44px on desktop), single row, zero clipping */
body.is-in-fish-game .fish-hud-top {
    flex: 0 0 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0d2b52 0%, #061833 60%, #030b18 100%) !important;
    border-bottom: 2px solid #fbbf24 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75) !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game .fish-hud-top .fish-hud-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
}

body.is-in-fish-game .arcade-marquee-chip {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: rgba(2, 12, 27, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #e0f2fe !important;
    white-space: nowrap !important;
}

body.is-in-fish-game .arcade-led-scoreboard {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #010712 !important;
    border: 1.5px solid #fbbf24 !important;
    border-radius: 10px !important;
    padding: 3px 16px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(251, 191, 36, 0.3) !important;
    white-space: nowrap !important;
}

body.is-in-fish-game .profit-module small {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.5px !important;
}

body.is-in-fish-game .profit-module strong {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    font-family: 'Courier New', monospace !important;
}

body.is-in-fish-game .arcade-top-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

body.is-in-fish-game .arcade-top-btn i {
    font-size: 0.85rem !important;
}

/* Middle Ocean Viewport: Fills 100% of remaining vertical height */
body.is-in-fish-game .fish-canvas-stage {
    flex: 1 1 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 50% 25%, #073563, #020e21 75%, #010612 100%) !important;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.85) !important;
    touch-action: none !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game #fish-canvas-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body.is-in-fish-game #fish-canvas-container canvas {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.18) !important;
}

/* Side Dock inside Ocean Viewport */
body.is-in-fish-game .arcade-side-dock {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 55 !important;
}

body.is-in-fish-game .arcade-side-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(6, 28, 56, 0.92), rgba(2, 12, 26, 0.96)) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.55) !important;
    color: #e0f2fe !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6) !important;
}

body.is-in-fish-game .arcade-side-btn i {
    font-size: 1.05rem !important;
    color: #fbbf24 !important;
}

body.is-in-fish-game .arcade-side-btn span {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Bottom Console Bar: Fixed height (54px on desktop), single row */
body.is-in-fish-game .fish-hud-bottom {
    flex: 0 0 54px !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0e2f5e 0%, #061836 50%, #020814 100%) !important;
    border-top: 2px solid #fbbf24 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.75) !important;
    z-index: 50 !important;
    box-sizing: border-box !important;
}

body.is-in-fish-game .arcade-deck-section.deck-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

body.is-in-fish-game .arcade-coin-hopper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.45), rgba(4, 30, 20, 0.9)) !important;
    border: 1.5px solid #22c55e !important;
    border-radius: 10px !important;
    padding: 3px 12px !important;
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 12px rgba(34, 197, 94, 0.25) !important;
    flex-shrink: 0 !important;
}

body.is-in-fish-game .coin-hopper-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, #fef08a, #d97706) !important;
    color: #451a03 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
}

body.is-in-fish-game .coin-hopper-digits {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.1 !important;
}

body.is-in-fish-game .coin-hopper-digits small {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    color: #86efac !important;
    letter-spacing: 0.5px !important;
}

body.is-in-fish-game .coin-hopper-digits strong {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-family: 'Courier New', monospace !important;
}

/* Cannon Buttons Rack */
body.is-in-fish-game .arcade-cannon-rack {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

body.is-in-fish-game .fish-pill-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    background: rgba(12, 34, 62, 0.85) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    color: #e0f2fe !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

body.is-in-fish-game .fish-pill-btn:hover {
    border-color: #fbbf24 !important;
    transform: translateY(-1px) !important;
}

body.is-in-fish-game .fish-pill-btn.active {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
    border-color: #fef08a !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.badge-keyboard-hint {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: rgba(1, 8, 20, 0.85) !important;
    border: 1.5px solid rgba(250, 204, 21, 0.5) !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #fde047 !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.25) !important;
    white-space: nowrap !important;
}

.gun-label-full {
    display: inline !important;
}
.gun-label-short {
    display: none !important;
}

/* 2. Responsive Breakpoint: Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .fish-home-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fish-maps-grid {
        grid-template-columns: 1fr;
    }
    .fish-seats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Responsive Breakpoint: Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    .fish-page-wrapper {
        padding: 8px 10px 28px;
    }

    /* Top Bar Mobile Overhaul */
    .fish-top-bar {
        padding: 10px 12px;
        border-radius: 16px;
        margin-bottom: 14px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .fish-brand-group {
        gap: 10px;
        width: 100%;
    }

    .fish-brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .fish-brand-logo img {
        width: 28px;
        height: 28px;
    }

    .fish-arcade-tag {
        font-size: 0.62rem;
        letter-spacing: 0.5px;
    }

    .fish-brand-title h1 {
        font-size: 1.08rem;
        line-height: 1.22;
    }

    .fish-brand-title p {
        display: none; /* Hide verbose subtitle on mobile to save vertical space */
    }

    .fish-wallet-strip {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: 4px;
    }

    .fish-fp-pill {
        flex: 1 1 auto;
        justify-content: center;
        padding: 5px 10px;
        border-radius: 10px;
        gap: 8px;
    }

    .fish-fp-pill .coin-led {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .fp-pill-meta small {
        font-size: 0.58rem;
    }

    .fp-pill-meta strong {
        font-size: 0.9rem;
    }

    #btn-fish-daily, #btn-fish-relief {
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hero Banner Mobile */
    .fish-hero-banner {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .fish-hero-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin-bottom: 8px;
    }

    .fish-hero-banner h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .fish-hero-banner p {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .fish-cta-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-bottom: 16px;
    }

    .fish-cta-row .fish-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.88rem;
    }

    /* 5 Shortcut Buttons on Mobile: Clean 3-col Grid without Awkward Orphaning */
    .fish-nav-Shortcuts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .fish-shortcut-btn {
        padding: 10px 4px;
        font-size: 0.72rem;
        border-radius: 12px;
        gap: 4px;
    }

    .fish-shortcut-btn i {
        font-size: 1.1rem;
    }

    /* 3D Showcase Strip on Mobile */
    .fish-3d-showcase-wrap {
        padding: 12px 10px;
        border-radius: 16px;
        margin: 0 0 16px;
    }

    .fish-3d-showcase-header span {
        font-size: 0.78rem;
    }

    .fish-3d-showcase-header small {
        font-size: 0.7rem;
    }

    .fish-3d-showcase-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fish-3d-species-card {
        padding: 8px 6px;
        border-radius: 12px;
    }

    .species-3d-stage {
        height: 52px;
    }

    .species-3d-stage canvas {
        width: 80px !important;
        height: 48px !important;
    }

    .species-3d-meta strong {
        font-size: 0.74rem;
    }

    .species-3d-points {
        font-size: 0.68rem;
    }

    /* Side Panel Mobile */
    .fish-side-panel {
        padding: 16px 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .fish-side-panel h3 {
        font-size: 1rem;
    }

    .fish-stats-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fish-stat-box {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .fish-stat-box span {
        font-size: 0.7rem;
    }

    .fish-stat-box strong {
        font-size: 0.95rem;
    }

    /* Maps and Rooms Mobile */
    .fish-panel-box {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .fish-panel-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
        gap: 8px;
    }

    .fish-panel-header h2 {
        font-size: 1.05rem;
    }

    .fish-room-toolbar {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .fish-room-toolbar .fish-hud-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
    }

    .fish-room-toolbar .fish-hud-group .fish-btn {
        padding: 8px 4px;
        font-size: 0.75rem;
        justify-content: center;
        white-space: nowrap;
    }

    .fish-join-code-group {
        display: flex;
        gap: 6px;
        width: 100%;
    }

    #input-join-room-code {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    #btn-join-by-code {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Seats in Lobby Mobile */
    .fish-seats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fish-seat-card {
        padding: 10px 8px;
        border-radius: 12px;
    }

    /* Modals Mobile Overhaul: Never clip or overflow */
    .fish-modal-backdrop {
        padding: 10px;
    }

    .fish-modal-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        border-radius: 18px !important;
        margin: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .fish-modal-header {
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    .fish-modal-header h3 {
        font-size: 0.98rem !important;
    }

    .fish-modal-header .js-close-fish-modal {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .fish-modal-body {
        padding: 12px 14px !important;
        max-height: calc(90dvh - 58px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
    }

    .fish-arsenal-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .summary-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .sum-box {
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }

    .sum-box span {
        font-size: 0.7rem !important;
    }

    .sum-box strong {
        font-size: 0.95rem !important;
    }
}

/* ============================================================================
   4. PORTRAIT ORIENTATION ENFORCEMENT & BARRIER OVERLAY
   ============================================================================ */
.fish-orientation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.32), #020817 84%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
}

.fish-orientation-overlay.active {
    display: flex !important;
}

/* When portrait mode is detected during active match on mobile */
@media screen and (orientation: portrait) and (max-width: 992px) {
    body.is-in-fish-game .fish-orientation-overlay {
        display: flex !important;
    }

    body.is-in-fish-game .fish-cabinet-wrap {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

body.fish-portrait-locked .fish-orientation-overlay {
    display: flex !important;
}

body.fish-portrait-locked .fish-cabinet-wrap {
    visibility: hidden !important;
    pointer-events: none !important;
}

.orientation-box {
    max-width: 360px;
    width: 92vw;
    background: rgba(15, 23, 42, 0.96);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.35), 0 20px 40px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    animation: zoomInScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.phone-rotate-anim {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-mockup {
    font-size: 3rem;
    color: #38bdf8;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75));
    animation: phoneTiltRotate 2.4s ease-in-out infinite;
}

@keyframes phoneTiltRotate {
    0%, 15% { transform: rotate(0deg); }
    50%, 75% { transform: rotate(-90deg); }
    90%, 100% { transform: rotate(0deg); }
}

.rotate-glow-ring {
    position: absolute;
    font-size: 1.25rem;
    color: #fde047;
    top: 2px;
    right: 2px;
    animation: spinRotateRing 2.4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.8));
}

@keyframes spinRotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orientation-box h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fde047;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.5);
}

.orientation-box p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.orientation-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.orientation-steps .step-chip {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orientation-steps .step-chip i {
    color: #38bdf8;
    font-size: 0.88rem;
}

#btn-force-fullscreen {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
    justify-content: center;
}

/* ============================================================================
   5. RESPONSIVE COMPACT HUD FOR MOBILE & NARROW SCREENS (MAX-WIDTH 992px OR MAX-HEIGHT 768px)
   ============================================================================ */

/* Fullscreen Mode (Browser Native F11 / Fullscreen API) */
:fullscreen body.is-in-fish-game .portal-sidebar,
:-webkit-full-screen body.is-in-fish-game .portal-sidebar,
:fullscreen body.is-in-fish-game .portal-topbar,
:-webkit-full-screen body.is-in-fish-game .portal-topbar {
    display: none !important;
}

:fullscreen body.is-in-fish-game .portal-main-area,
:-webkit-full-screen body.is-in-fish-game .portal-main-area {
    margin-left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

:fullscreen body.is-in-fish-game .portal-content,
:-webkit-full-screen body.is-in-fish-game .portal-content {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Intermediate breakpoint: hide text on top buttons and hint deck when content is <= 1260px */
@media (max-width: 1260px) {
    body.is-in-fish-game .arcade-top-btn span {
        display: none !important;
    }
    body.is-in-fish-game .arcade-top-btn {
        padding: 5px 9px !important;
    }
    body.is-in-fish-game .chip-table-mode {
        display: none !important;
    }
    body.is-in-fish-game .hint-deck {
        display: none !important;
    }
}

@media (max-width: 992px) {
    /* On mobile devices during active game, hide portal sidebar and topbar to give 100% space to game */
    body.is-in-fish-game .portal-sidebar,
    body.is-in-fish-game .portal-topbar {
        display: none !important;
    }

    body.is-in-fish-game .portal-main-area {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.is-in-fish-game .portal-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
}

@media (max-width: 992px), screen and (max-height: 768px) {
    /* Fixed 36px Top Bar: Single Row, No Wrapping, Icons Only */
    body.is-in-fish-game .fish-hud-top {
        padding: 0 8px !important;
        min-height: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        gap: 6px !important;
        border-bottom: 2px solid #fbbf24 !important;
    }

    body.is-in-fish-game .chip-table-mode {
        display: none !important;
    }

    body.is-in-fish-game .fish-hud-top .fish-hud-group {
        gap: 4px !important;
    }

    body.is-in-fish-game .arcade-marquee-chip {
        padding: 2px 7px !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
    }

    body.is-in-fish-game .arcade-led-scoreboard {
        padding: 2px 8px !important;
        border-radius: 8px !important;
        gap: 5px !important;
        border-width: 1.5px !important;
        flex-shrink: 0 !important;
    }

    body.is-in-fish-game .profit-module small {
        display: none !important;
    }

    body.is-in-fish-game .profit-module strong {
        font-size: 0.82rem !important;
    }

    body.is-in-fish-game .arcade-top-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    body.is-in-fish-game .arcade-top-btn span {
        display: none !important; /* Hide button text, icons only */
    }

    body.is-in-fish-game .arcade-top-btn i {
        font-size: 0.82rem !important;
        margin: 0 !important;
    }

    /* Compact 34px Side Dock Icons on Right Margin */
    body.is-in-fish-game .arcade-side-dock {
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        gap: 5px !important;
        z-index: 55 !important;
    }

    body.is-in-fish-game .arcade-side-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    body.is-in-fish-game .arcade-side-btn i {
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    body.is-in-fish-game .arcade-side-btn span {
        display: none !important;
    }

    /* Fixed 44px Bottom Bar: Single Row, No Wrapping, No Cut-Off */
    body.is-in-fish-game .fish-hud-bottom {
        padding: 0 8px !important;
        min-height: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        gap: 6px !important;
        border-top: 2px solid #fbbf24 !important;
    }

    body.is-in-fish-game .hint-deck,
    body.is-in-fish-game .arcade-deck-section.deck-right {
        display: none !important;
    }

    body.is-in-fish-game .arcade-deck-section.deck-left {
        width: 100% !important;
        gap: 6px !important;
        justify-content: space-between !important;
    }

    body.is-in-fish-game .arcade-coin-hopper {
        padding: 2px 8px !important;
        border-radius: 8px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    body.is-in-fish-game .arcade-coin-hopper .coin-hopper-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.72rem !important;
    }

    body.is-in-fish-game .coin-hopper-digits small {
        display: none !important;
    }

    body.is-in-fish-game .coin-hopper-digits strong {
        font-size: 0.85rem !important;
    }

    body.is-in-fish-game .arcade-cannon-rack {
        gap: 3px !important;
        justify-content: flex-end !important;
    }

    /* Switch Gun Labels from full to short */
    .gun-label-full {
        display: none !important;
    }
    .gun-label-short {
        display: inline !important;
    }

    body.is-in-fish-game .fish-pill-btn {
        padding: 5px 8px !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        gap: 3px !important;
        flex: 0 0 auto !important;
    }
}


/* ============================================================================
   PREMIUM 3D DEEP-SEA GLASSMORPHISM, QUICK CHAT POPOVER & MOBILE ERGONOMICS
   ============================================================================ */
@keyframes fishShowcaseFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(-1.2deg);
    }
}

@keyframes qcPopoverIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Home, Mode & Lobby Elevated Ocean-Glass Surfaces */
.fish-page-wrapper {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.22), transparent 70%),
        radial-gradient(ellipse 60% 45% at 85% 95%, rgba(6, 182, 212, 0.14), transparent 70%),
        linear-gradient(180deg, #031124 0%, #020917 100%);
}

.fish-top-bar,
.fish-hero-banner,
.fish-side-panel,
.fish-panel-box,
.fish-3d-showcase-wrap {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 18px 42px rgba(0, 5, 16, 0.58),
        inset 0 1px 0 rgba(186, 230, 253, 0.22);
}

.fish-hero-banner {
    background:
        radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.24), transparent 52%),
        radial-gradient(circle at 12% 85%, rgba(250, 204, 21, 0.14), transparent 50%),
        linear-gradient(135deg, rgba(6, 31, 63, 0.9) 0%, rgba(3, 17, 38, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.36);
}

.fish-map-card,
.fish-seat-card,
.fish-room-row,
.fish-stat-box {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.22s ease;
}

.fish-map-card:hover,
.fish-room-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.24);
}

.fish-btn {
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.16s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.fish-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

.species-3d-stage canvas {
    animation: fishShowcaseFloat 3.4s ease-in-out infinite;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.52));
}

.fish-3d-species-card:nth-child(2n) .species-3d-stage canvas {
    animation-delay: 0.75s;
}

.fish-3d-species-card:nth-child(3n) .species-3d-stage canvas {
    animation-delay: 1.45s;
}

/* Sleek Obsidian-Aqua In-Game Arcade Cabinet Chrome */
.fish-cabinet-wrap {
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(56, 189, 248, 0.32),
        inset 0 1px 0 rgba(186, 230, 253, 0.22);
}

.fish-hud-top {
    background: linear-gradient(180deg, rgba(6, 26, 52, 0.94) 0%, rgba(3, 15, 32, 0.96) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.arcade-top-btn.btn-fs {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.92), rgba(15, 23, 42, 0.95));
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.55);
}

.arcade-top-btn.btn-fs:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border-color: #bae6fd;
}

.fish-hud-bottom {
    background: linear-gradient(0deg, rgba(3, 13, 28, 0.98) 0%, rgba(6, 24, 48, 0.94) 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.arcade-coin-hopper {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(28, 25, 23, 0.88));
    border: 1px solid rgba(250, 204, 21, 0.48);
    box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.24), 0 4px 12px rgba(0, 0, 0, 0.45);
    font-variant-numeric: tabular-nums;
}

.arcade-led-scoreboard {
    font-variant-numeric: tabular-nums;
}

.fish-pill-btn {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 39, 68, 0.92), rgba(7, 21, 42, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.14s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fish-pill-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.65);
}

/* Upgraded Side Utility Dock & Compact Quick Chat / Emoji Button */
.arcade-side-dock {
    padding: 6px;
    border-radius: 16px;
    background: rgba(3, 16, 36, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    gap: 6px;
}

.arcade-side-btn {
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(180deg, rgba(12, 41, 74, 0.9), rgba(6, 22, 44, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.arcade-side-btn.btn-quickchat {
    border-color: rgba(250, 204, 21, 0.65);
    background: linear-gradient(180deg, rgba(14, 72, 92, 0.94), rgba(6, 36, 56, 0.98));
    color: #fef08a;
}

.arcade-side-btn.btn-quickchat i {
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}

.arcade-side-btn.btn-quickchat.active,
.arcade-side-btn.btn-quickchat:hover {
    border-color: #fde047;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Quick Chat & Quick Emoji Floating Popover */
.fish-quickchat-popover {
    position: absolute;
    right: 84px;
    bottom: 14px;
    width: 288px;
    max-width: calc(100% - 92px);
    max-height: calc(100% - 28px);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(6, 24, 50, 0.95) 0%, rgba(3, 13, 30, 0.97) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.72),
        inset 0 1px 0 rgba(186, 230, 253, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 48;
    pointer-events: auto;
}

.fish-quickchat-popover.open {
    display: flex;
    animation: qcPopoverIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.quickchat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    color: #bae6fd;
    letter-spacing: 0.2px;
}

.quickchat-header i {
    color: #fde047;
    margin-right: 4px;
}

.quickchat-close-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.quickchat-emoji-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(2, 10, 24, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.quickchat-emoji-btn {
    border: 1px solid transparent;
    background: rgba(15, 37, 68, 0.55);
    border-radius: 9px;
    padding: 4px 0;
    font-size: 1.05rem;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.14s ease, border-color 0.14s ease;
}

.quickchat-emoji-btn:hover,
.quickchat-emoji-btn:active {
    transform: scale(1.16);
    background: rgba(14, 116, 144, 0.6);
    border-color: rgba(250, 204, 21, 0.65);
}

.quickchat-tabs {
    display: flex;
    gap: 5px;
}

.quickchat-tab {
    flex: 1;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(10, 28, 54, 0.78);
    color: #94a3b8;
    border-radius: 9px;
    padding: 4px 6px;
    font-size: 0.71rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.14s ease;
}

.quickchat-tab.active {
    color: #fef08a;
    border-color: rgba(250, 204, 21, 0.65);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.52), rgba(180, 83, 9, 0.35));
}

.quickchat-phrase-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    max-height: 184px;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}

.quickchat-phrase-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(8, 26, 50, 0.85);
    color: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
}

.quickchat-phrase-btn.cat-praise {
    border-left: 3px solid #facc15;
}

.quickchat-phrase-btn.cat-tease {
    border-left: 3px solid #fb923c;
}

.quickchat-phrase-btn.cat-emoji {
    border-left: 3px solid #38bdf8;
}

.quickchat-phrase-btn:hover,
.quickchat-phrase-btn:active {
    background: rgba(14, 116, 144, 0.45);
    border-color: rgba(250, 204, 21, 0.65);
    transform: translateX(2px);
}

.quickchat-phrase-btn .qc-em {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.quickchat-phrase-btn .qc-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile & Short Landscape Tablet Ergonomic Enhancements */
@media (max-width: 640px) {
    .fish-3d-showcase-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .fish-hero-banner {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .fish-top-bar {
        padding: 10px 12px;
        border-radius: 16px;
    }
}

@media (max-width: 992px), screen and (max-height: 768px) {
    body.is-in-fish-game .fish-hud-top,
    body.is-in-fish-game .fish-hud-bottom {
        padding-left: max(8px, env(safe-area-inset-left)) !important;
        padding-right: max(8px, env(safe-area-inset-right)) !important;
    }

    body.is-in-fish-game .fish-hud-bottom {
        padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
    }

    body.is-in-fish-game .arcade-cannon-rack {
        overflow-x: auto !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    body.is-in-fish-game .arcade-cannon-rack::-webkit-scrollbar {
        display: none;
    }

    body.is-in-fish-game .arcade-side-dock {
        right: max(8px, env(safe-area-inset-right)) !important;
        padding: 4px !important;
        border-radius: 12px !important;
        gap: 4px !important;
    }

    body.is-in-fish-game .arcade-side-btn {
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 4px 6px !important;
        border-radius: 10px !important;
    }

    body.is-in-fish-game .arcade-side-btn span {
        display: none !important;
    }

    .fish-quickchat-popover {
        right: max(54px, calc(env(safe-area-inset-right) + 52px));
        bottom: 6px;
        width: min(292px, calc(100% - 68px));
        padding: 8px 9px;
        gap: 6px;
        border-radius: 14px;
    }

    .quickchat-emoji-strip {
        gap: 3px;
        padding: 4px;
    }

    .quickchat-emoji-btn {
        font-size: 0.96rem;
        padding: 3px 0;
    }

    .quickchat-phrase-list {
        max-height: 112px;
    }

    .quickchat-phrase-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    /* Compact, Elegant, Ultra-Optimized Notification Bars for Mobile */
    body.is-in-fish-game .fish-ocean-event-bar {
        top: max(4px, env(safe-area-inset-top, 4px)) !important;
        padding: 2px 9px !important;
        max-width: min(280px, calc(100% - 16px)) !important;
        border-radius: 999px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar .ocean-event-main {
        gap: 5px !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar .ocean-event-icon {
        font-size: 0.8rem !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar .ocean-event-title-row {
        gap: 4px !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar .ocean-event-title-row strong {
        font-size: 0.64rem !important;
        max-width: 105px !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar .ocean-event-badge {
        font-size: 0.56rem !important;
        padding: 0 4px !important;
        line-height: 1.3 !important;
    }

    body.is-in-fish-game .fish-jackpot-banner {
        top: max(4px, env(safe-area-inset-top, 4px)) !important;
        padding: 2px 8px !important;
        font-size: 0.65rem !important;
        max-width: min(270px, calc(100% - 16px)) !important;
        border-width: 1px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar:not([hidden]) ~ #fish-jackpot-banner {
        top: calc(max(4px, env(safe-area-inset-top, 4px)) + 26px) !important;
    }
    body.is-in-fish-game .fish-jackpot-banner.show {
        opacity: 0.95 !important;
    }
    body.is-in-fish-game .fish-jackpot-banner .jackpot-inner {
        gap: 4px !important;
    }
    body.is-in-fish-game .fish-jackpot-banner .jackpot-icon {
        font-size: 0.75rem !important;
    }
    body.is-in-fish-game .fish-jackpot-banner .jackpot-title {
        font-size: 0.6rem !important;
    }
    body.is-in-fish-game .fish-jackpot-banner .jackpot-desc {
        font-size: 0.62rem !important;
        max-width: 140px !important;
    }
    body.is-in-fish-game .fish-jackpot-banner .ann-seat {
        padding: 1px 4px !important;
        font-size: 0.58rem !important;
        border-radius: 4px !important;
    }

    body.is-in-fish-game .fish-boss-warning {
        top: calc(max(4px, env(safe-area-inset-top, 4px)) + 26px) !important;
        padding: 2px 8px !important;
        font-size: 0.62rem !important;
        max-width: min(250px, calc(100% - 16px)) !important;
        border-width: 1px !important;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
    }
    body.is-in-fish-game .fish-ocean-event-bar:not([hidden]) ~ #fish-boss-warning {
        top: calc(max(4px, env(safe-area-inset-top, 4px)) + 50px) !important;
    }

    body.is-in-fish-game .hud-powerup-bar {
        top: max(4px, env(safe-area-inset-top, 4px)) !important;
        left: max(6px, env(safe-area-inset-left, 6px)) !important;
        gap: 4px !important;
    }
    body.is-in-fish-game .hud-powerup-pill {
        padding: 2px 6px !important;
        font-size: 0.62rem !important;
        gap: 3px !important;
        border-width: 1px !important;
    }
    body.is-in-fish-game .hud-powerup-pill strong {
        font-size: 0.62rem !important;
        padding: 1px 4px !important;
    }
    @media (max-width: 640px) {
        body.is-in-fish-game .hud-powerup-pill span {
            display: none !important;
        }
    }

    body.is-in-fish-game .fish-toast-container {
        bottom: 50px !important;
        right: 8px !important;
        max-width: 220px !important;
    }
    body.is-in-fish-game .fish-toast {
        padding: 5px 9px !important;
        font-size: 0.69rem !important;
        border-radius: 8px !important;
    }
}

@media screen and (max-height: 440px) {
    .fish-quickchat-popover {
        top: 6px;
        bottom: 6px;
        max-height: none;
    }
    .quickchat-phrase-list {
        max-height: none;
        flex: 1;
    }
}
