/* ==========================================================================
   1. Root Variables & Font Definitions
   ========================================================================== */
@font-face {
    font-family: 'Contb';
    src: local('Continuum Bold'), local('Continuum-Bold'), url('https://fonts.cdnfonts.com/s/14352/ContinuumBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --wii-bg: #ececec;
    --wii-card-border: #9e9e9e;
    --wii-blue-cyan: #00bdf2;
    --wii-text: #4b4b4b;
}

/* ==========================================================================
   2. Global Resets & Cursors
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    font-family: 'Contb', 'Continuum Bold', 'Continuum', sans-serif;
}

html.custom-cursor-on *, html.custom-cursor-on *::before, html.custom-cursor-on *::after {
    cursor: none !important;
}

#wii-cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 2000000;
    display: none;
    filter: none !important;
}

html.custom-cursor-on #wii-cursor-canvas {
    display: block;
}

html {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--wii-bg);
background-image: repeating-linear-gradient(
    180deg,
    transparent 1px,
    rgba(0, 0, 0, 0.045) 4px,
    rgba(0, 0, 0, 0.045) 9px,
    transparent 10px,
    transparent 14px
);
    background-attachment: fixed;
}

body {
    color: var(--wii-text);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 170px 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

/* ==========================================================================
   3. Header & Typography
   ========================================================================== */
header {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.site-title {
    font-size: 5.2rem;
    font-weight: bold;
    color: #636363;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ffffff;
}

/* ==========================================================================
   4. Channel Carousel Viewport & Cards
   ========================================================================== */
.carousel-viewport {
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.channel-track {
    display: flex;
    gap: 18px;
    padding-left: 2vw;
    width: max-content;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
}

.channel-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 70%, #eaeaea 100%);
    border: 4px solid #a3a3a3;
    border-radius: 12px;
    width: 28vw;
    max-width: 400px;
    min-width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333333;
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.9),
        inset 0 -3px 8px rgba(0,0,0,0.06),
        0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s;
}

.channel-card:hover {
    border-color: var(--wii-blue-cyan);
    transform: scale(1.015);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 4%;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    background: radial-gradient(
        ellipse at center,
        rgba(160, 160, 160, 0.45) 0%,
        rgba(200, 200, 200, 0.2) 45%,
        rgba(255,255,255,0) 75%
    );
    filter: blur(2px);
    pointer-events: none;
}

.channel-card::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 6px;
    background: rgba(140, 140, 140, 0.35);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.channel-text {
    font-size: 1.35rem;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 0.5px;
    text-align: center;
}

.page-2-start {
    margin-left: 0vw;
}

/* Carousel Overlay Arrows */
.wii-arrow-svg {
    width: 58px;
    height: 70px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s;
}

.arrow-overlay-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.arrow-overlay-btn:hover .wii-arrow-svg {
    transform: scale(1.12);
}

.arrow-overlay-btn-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.arrow-overlay-btn-left:hover .wii-arrow-svg {
    transform: scale(1.12);
}

.arrow-overlay-btn-left.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   5. Art / Media Gallery Section
   ========================================================================== */
.art-gallery-container {
    width: 96vw;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
    padding: 0 10px;
}

.art-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: #6a6a6a;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0px #ffffff;
    letter-spacing: 1px;
    text-align: center;
}

.art-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.art-subtitle {
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 6px;
    text-align: center;
    font-weight: bold;
}

.art-card-frame {
    width: 100%;
    height: 220px;
    background: #ffffff;
    border: 4px solid var(--wii-blue-cyan);
    box-shadow: 0 0 12px rgba(0, 189, 242, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.art-card-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(0, 189, 242, 0.8);
}

.art-card-frame img,
.art-card-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    cursor: pointer;
}

.video-play-badge {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(0, 189, 242, 0.85);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.2s, background-color 0.2s;
}

.art-card-frame:hover .video-play-badge {
    transform: scale(1.15);
    background: rgba(0, 189, 242, 1);
}

.gallery-overlay {
    pointer-events: none;
}

#media-preview-box.active {
    pointer-events: auto;
    display: flex;
}

/* ==========================================================================
   6. Unified Preview Modal
   ========================================================================== */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 500000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    padding: 20px 20px 24px 20px;
    border: 4px solid var(--wii-blue-cyan);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 189, 242, 0.6);
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img,
.image-modal-content video {
    max-width: 82vw;
    max-height: 66vh;
    object-fit: contain;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #000000;
}

.modal-caption {
    margin-top: 12px;
    font-size: 1.35rem;
    color: #4b4b4b;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
}

.modal-close-btn {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0e0e0 60%, #b8b8b8 100%);
    border: 3px solid var(--wii-blue-cyan);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    margin-top: 10px;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   7. HUD Bar & Controls
   ========================================================================== */
.hud-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 155px;
    z-index: 1000;
    pointer-events: none;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hud-wrapper.message-board-active {
    height: 100vh;
}

.hud-svg-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hud-interactive-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.wii-circle-btn {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0e0e0 60%, #b8b8b8 100%);
    border: 4px solid var(--wii-blue-cyan);
    outline: 6px solid #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 6px rgba(255,255,255,0.9), 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.wii-circle-btn:hover {
    transform: scale(1.05);
}

.wii-circle-btn:active,
.calendar-popup-btn:active,
.create-msg-popup-btn:active,
.msg-board-btn:active {
    transform: scale(0.92) !important;
}

.wii-home-btn {
    position: absolute;
    left: 55px;
    bottom: 25px;
}

.wii-btn-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8c8c8c;
    text-shadow: 0 1px 0 #fff;
}

/* New Wii-settings-button icon (replaces the "Wii" text). Sized/colored to
   match the old text's footprint inside the circular button. */
.wii-btn-icon {
    width: 34px;
    height: 34px;
    color: #8c8c8c;
    fill: currentColor;
    filter: drop-shadow(0 1px 0 #fff);
}

.wii-btn-icon-mini {
    width: 20px;
    height: 20px;
}

.sd-btn {
    position: absolute;
    left: 165px;
    bottom: 25px;
}

.sd-card-icon {
    width: 32px;
    height: 38px;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    border: 2px solid #888888;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    clip-path: polygon(0 0, 70% 0, 100% 25%, 100% 100%, 0 100%);
}

.hud-center-clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 84px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.clock-digits {
    font-family: 'Orbitron', 'Contb', monospace;
    font-size: 2.3rem;
    font-weight: bold;
    color: #5e5e5e;
    letter-spacing: 2px;
}

.clock-ampm {
    font-family: 'Orbitron', 'Contb', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #888888;
}

.hud-center-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 42px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #585858;
    letter-spacing: 1px;
}

.msg-board-btn {
    position: absolute;
    right: 55px;
    bottom: 25px;
    overflow: visible !important;
}

.volume-btn {
    position: absolute;
    right: 165px;
    bottom: 25px;
    overflow: visible !important;
    clip-path: none !important;
}

.volume-icon {
    width: 32px;
    height: 32px;
    fill: #7c7c7c;
    clip-path: none !important;
}

.envelope-icon {
    width: 42px;
    height: 30px;
    background: #ffffff;
    border: 2px solid #888888;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.envelope-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-bottom: 2px solid #888888;
    border-right: 2.5px solid #888888;
    border-top-left-radius: 3px;
}

.envelope-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

/* ==========================================================================
   8. Popovers, Modals & Widgets
   ========================================================================== */

.draggable-pet {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    object-fit: cover;
    z-index: 2000;
    touch-action: none;
}

.draggable-pet:active {
    transform: scale(1.1);
}

.calendar-popup-btn {
    position: absolute;
    left: 275px;
    bottom: 25px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 1200;
    overflow: visible !important;
}

.hud-wrapper.message-board-active .calendar-popup-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.calendar-popup-btn:hover {
    transform: scale(1.05) !important;
}

.create-msg-popup-btn {
    position: absolute;
    right: 275px;
    bottom: 25px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 1200;
    overflow: visible !important;
}

.hud-wrapper.message-board-active .create-msg-popup-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.create-msg-popup-btn:hover {
    transform: scale(1.05) !important;
}

.wii-calendar-icon {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    border: 2px solid #888888;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wii-calendar-header {
    height: 10px;
    background: #999999;
    width: 100%;
}

.wii-calendar-grid-icon {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 3px;
    background: #dcdcdc;
}

.wii-calendar-cell-icon {
    background: #ffffff;
    border-radius: 1px;
}

.wii-note-icon {
    width: 34px;
    height: 38px;
    background: #ffffff;
    border: 2px solid #888888;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 3px;
}

.wii-note-line {
    height: 2px;
    background: #b0b0b0;
    width: 85%;
    border-radius: 1px;
}

.wii-note-pen {
    position: absolute;
    right: 2px;
    bottom: 3px;
    width: 16px;
    height: 16px;
    fill: #555555;
    transform: rotate(-45deg);
}

.calendar-close-btn {
    display: none;
    position: absolute;
    top: -50px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--wii-blue-cyan);
    background: #ffffff;
    color: #555555;
    font-size: 1.1rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.calendar-close-btn:hover {
    background: #f0f8ff;
    color: #000000;
}

.calendar-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150vh);
    opacity: 0;
    visibility: hidden;
    width: 440px;
    background: #ffffff;
    border: 4px solid #a3a3a3;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 1001;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: auto;
}

.calendar-modal.open {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.calendar-modal.closing {
    transform: translate(-50%, 150vh);
    opacity: 0;
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
}

.calendar-header-nav button {
    background: #e0e0e0;
    border: 2px solid #b0b0b0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header-nav button:hover {
    background: var(--wii-blue-cyan);
    color: #fff;
    border-color: #0284c7;
}

.calendar-grid-table {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    padding-bottom: 4px;
}

.calendar-day-cell {
    background: #f4f4f4;
    border: 2px solid #dedede;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4b4b4b;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day-cell:hover {
    background: #e0f2fe;
    border-color: var(--wii-blue-cyan);
    transform: scale(1.05);
}

.calendar-day-cell.has-data {
    border-color: var(--wii-blue-cyan);
    background: #f0fdf4;
}

.calendar-day-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day-cell.empty:hover {
    transform: none;
    background: transparent;
}

.calendar-playtime-display {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
    color: #334155;
}

@keyframes slideUpFromBottom {
    0% {
        transform: translateY(120vh) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fallingNoteAnimation {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) rotate(25deg) scale(0.95);
        opacity: 0;
    }
}

.sticky-note {
    position: fixed;
    top: 150px;
    left: 200px;
    width: 220px;
    height: 200px;
    background: #fff7a8;
    border: 2px solid #e6db80;
    border-radius: 4px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 2500;
    pointer-events: auto;
    cursor: grab;
    resize: both;
    overflow: hidden;
    animation: slideUpFromBottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: width 0.2s, height 0.2s;
}

.sticky-note.washing-down {
    animation: fallingNoteAnimation 0.5s cubic-bezier(0.5, 0, 1, 1) forwards !important;
}

.sticky-note:active {
    cursor: grabbing;
}

.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #777;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 4px;
    touch-action: none;
}

.sticky-controls-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-color-picker {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.sticky-close {
    cursor: pointer;
    color: #ff5e5e;
    font-weight: bold;
}

.sticky-textarea {
    width: 100%;
    flex-grow: 1;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
}

.pet-context-menu {
    position: fixed;
    background: #ffffff;
    border: 3px solid var(--wii-blue-cyan);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 6px 0;
    z-index: 1000000;
    display: none;
    min-width: 190px;
}

.pet-context-menu.active {
    display: block;
}

.pet-menu-item {
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #444;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-menu-item:hover {
    background: var(--wii-blue-cyan);
    color: #ffffff;
}

.pet-menu-item.danger-item:hover,
.pet-menu-item.danger-action:hover {
    background: #ff4d4d;
    color: #ffffff;
}

.pet-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

#sd-file-input {
    display: none;
}

#youtube-audio-frame {
    display: none;
}

/* ==========================================================================
   9. HUD Dropdown Menu
   ========================================================================== */
.hud-menu-toggle-btn {
    display: none;
    position: absolute;
    right: 20px;
    bottom: 15px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0e0e0 60%, #b8b8b8 100%);
    border: 4px solid var(--wii-blue-cyan);
    outline: 5px solid #d4d4d4;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 3px 6px rgba(255,255,255,0.9), 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1600;
    pointer-events: auto;
    transition: transform 0.15s ease;
}

.hud-menu-toggle-btn:active {
    transform: scale(0.92);
}

.hud-menu-toggle-btn .hud-menu-bar {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #8c8c8c;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hud-menu-toggle-btn.open .hud-menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hud-menu-toggle-btn.open .hud-menu-bar:nth-child(2) {
    opacity: 0;
}

.hud-menu-toggle-btn.open .hud-menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hud-dropdown-menu {
    position: absolute;
    right: 20px;
    bottom: 96px;
    width: 230px;
    max-height: 60vh;
    overflow-y: auto;
    background: #ffffff;
    border: 4px solid #a3a3a3;
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1665;
    pointer-events: none;
}

.hud-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 9067;
    pointer-events: auto;
}

.hud-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.hud-dropdown-item:hover,
.hud-dropdown-item:active {
    background: #e0f2fe;
}

.hud-dropdown-item .wii-circle-btn {
    width: 40px;
    height: 40px;
    outline-width: 3px;
    border-width: 2px;
    flex-shrink: 0;
    position: static;
}

.hud-dropdown-item-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #555555;
}

.hud-dropdown-item-board-only {
    display: none;
}

.hud-wrapper.message-board-active .hud-dropdown-item-board-only {
    display: flex;
}

/* ==========================================================================
   10. Art Page Section Dropdown
   ========================================================================== */
.art-section-header {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 92vw;
    margin: 6px 0 16px 0;
}

.current-section-label {
    font-size: 1.6rem;
    font-weight: bold;
    color: #6a6a6a;
    text-shadow: 1px 1px 0px #ffffff;
    letter-spacing: 1px;
}

.section-dropdown-toggle {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0e0e0 60%, #b8b8b8 100%);
    border: 3px solid var(--wii-blue-cyan);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.section-dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #7c7c7c;
    transition: transform 0.25s ease;
}

.section-dropdown-toggle.open::after {
    transform: rotate(180deg);
}

.section-dropdown-toggle:active {
    transform: scale(0.92);
}

.section-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    margin-top: 4px;
    background: #ffffff;
    border: 3px solid #a3a3a3;
    border-radius: 14px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 900;
    pointer-events: none;
}

.section-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.section-dropdown-item {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #555555;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    transition: background 0.15s, color 0.15s;
}

.section-dropdown-item:hover,
.section-dropdown-item.active {
    background: var(--wii-blue-cyan);
    color: #ffffff;
}

/* ==========================================================================
   11. Mobile / Touch Responsive Overrides
   ========================================================================== */
@media (max-width: 900px) {
    .site-title {
        font-size: 3rem;
    }

    .category-title {
        font-size: 2.1rem;
    }

    .channel-card {
        width: 55vw;
        min-width: 240px;
        height: 170px;
    }
}

@media (max-width: 600px) {
    *, *::before, *::after {
        cursor: auto !important;
    }

    #wii-cursor-canvas {
        display: none;
    }

    body {
        padding-bottom: 200px;
        overflow-x: hidden;
    }

    .site-title {
        font-size: 2.1rem;
        letter-spacing: 1px;
    }

    .carousel-viewport {
        padding: 6px 0;
    }

    .channel-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        transform: none !important;
        touch-action: pan-x;
        padding-left: 4vw;
        padding-right: 4vw;
        scrollbar-width: none;
    }

    .channel-track::-webkit-scrollbar {
        display: none;
    }

    .channel-card {
        width: 78vw;
        min-width: 0;
        height: 150px;
        scroll-snap-align: center;
    }

    .arrow-overlay-btn,
    .arrow-overlay-btn-left {
        display: none;
    }

    .art-section-header {
        display: flex;
    }

    .art-gallery-container {
        grid-template-columns: 1fr;
        width: 92vw;
        gap: 14px;
    }

    .art-column {
        display: none;
    }

    .art-column.active-section {
        display: flex;
    }

    .art-column .category-title {
        display: none;
    }

    .art-card-frame {
        height: 200px;
    }

    .hud-wrapper {
        height: 120px;
    }

    .hud-wrapper.message-board-active {
        height: 100vh;
    }

    .wii-home-btn,
    .sd-btn,
    .msg-board-btn,
    .volume-btn,
    .calendar-popup-btn,
    .create-msg-popup-btn {
        display: none !important;
    }

    .hud-menu-toggle-btn {
        display: flex;
    }

    .hud-center-clock {
        bottom: 60px;
    }

    .hud-center-date {
        bottom: 26px;
        font-size: 1.1rem;
    }

    .calendar-modal {
        width: 90vw;
    }

    .sticky-note {
        width: 80vw;
        left: 10vw;
        top: 100px;
    }

    .image-modal-content img,
    .image-modal-content video {
        max-width: 88vw;
        max-height: 60vh;
    }
}

/* ==========================================================================
   Wii Music Player
   ========================================================================== */
.volume-popover#volumePopover {
    width: 320px;
    max-width: 88vw;
    padding: 14px 14px 12px;
    border-radius: 18px;
    box-sizing: border-box;
    background: linear-gradient(180deg,#ffffff 0%,#eaf7ff 100%);
    border: 2px solid #00bdf2;
    box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 0 18px rgba(0,189,242,.15);
    color:#12384d;
    font-family: 'Orbitron', sans-serif;
}

.mp-top {
    display:flex;
    gap:12px;
    align-items:center;
}

.mp-cover {
    width:74px;
    height:74px;
    border-radius:12px;
    flex:0 0 74px;
    object-fit:cover;
    background:#cfeeff;
    border:2px solid #9fdcf5;
    box-shadow:0 3px 8px rgba(0,0,0,.2);
}

.mp-meta {
    min-width:0;
    flex:1;
    text-align:left;
}

.mp-title {
    font-size:13px;
    font-weight:700;
    line-height:1.2;
    color:#0b3b52;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.mp-artist {
    font-size:11px;
    opacity:.7;
    margin-top:3px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.mp-index {
    font-size:10px;
    opacity:.55;
    margin-top:4px;
    letter-spacing:.5px;
}

.mp-seek-row {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    font-size:10px;
    opacity:.75;
}

.mp-range {
    -webkit-appearance:none;
    appearance:none;
    width:100%;
    height:6px;
    border-radius:99px;
    background:linear-gradient(
        90deg,
        #00bdf2 var(--mp-fill,0%),
        #cfe6f0 var(--mp-fill,0%)
    );
    outline:none;
    cursor:pointer;
}

.mp-range::-webkit-slider-thumb {
    -webkit-appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    border:2px solid #00bdf2;
    box-shadow:0 1px 4px rgba(0,0,0,.3);
    cursor:pointer;
}

.mp-range::-moz-range-thumb {
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    border:2px solid #00bdf2;
    cursor:pointer;
}

.mp-controls {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

.mp-btn {
    width:38px;
    height:38px;
    border-radius:50%;
    border:2px solid #9fdcf5;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:transform .12s ease, background .15s ease, border-color .15s ease;
    padding:0;
}

.mp-btn:hover {
    transform:translateY(-2px);
    background:#eaf9ff;
}

.mp-btn svg {
    width:18px;
    height:18px;
    fill:#0b3b52;
}

.mp-btn.mp-play {
    width:46px;
    height:46px;
    background:#00bdf2;
    border-color:#0093bd;
}

.mp-btn.mp-play svg {
    width:22px;
    height:22px;
    fill:#fff;
}

.mp-btn.active {
    background:#00bdf2;
    border-color:#0093bd;
}

.mp-btn.active svg {
    fill:#fff;
}

.mp-btn .mp-badge {
    position:absolute;
    font-size:8px;
    font-weight:700;
    transform:translate(12px,10px);
}

.mp-vol-row {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
}

.mp-vol-row svg {
    width:18px;
    height:18px;
    fill:#0b3b52;
    flex:0 0 18px;
}

.mp-vol-val {
    font-size:10px;
    width:30px;
    text-align:right;
    opacity:.75;
}

.volume-popover#volumePopover {
    position: fixed;
    z-index: 10050;
    display: none;
    transform-origin: bottom center;
}

.volume-popover#volumePopover.open {
    display:block;
    animation: mpPop .18s ease-out;
}

@keyframes mpPop {
    from {
        opacity:0;
        transform:translateY(6px) scale(.96);
    }
    to {
        opacity:1;
        transform:none;
    }
}

@media (max-width:768px) {
    .volume-popover#volumePopover {
        width:290px;
        transform-origin:top center;
        padding:10px 12px 8px;
        max-height:var(--mp-max-h, 45vh);
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }

    .volume-popover#volumePopover .mp-cover {
        width:52px;
        height:52px;
        flex:0 0 52px;
    }

    .volume-popover#volumePopover .mp-top {
        gap:10px;
    }

    .volume-popover#volumePopover .mp-title {
        font-size:12px;
        -webkit-line-clamp:1;
    }

    .volume-popover#volumePopover .mp-index {
        display:none;
    }

    .volume-popover#volumePopover .mp-seek-row {
        margin-top:8px;
    }

    .volume-popover#volumePopover .mp-controls {
        margin-top:8px;
        gap:8px;
    }

    .volume-popover#volumePopover .mp-btn {
        width:32px;
        height:32px;
    }

    .volume-popover#volumePopover .mp-btn svg {
        width:15px;
        height:15px;
    }

    .volume-popover#volumePopover .mp-btn.mp-play {
        width:40px;
        height:40px;
    }

    .volume-popover#volumePopover .mp-btn.mp-play svg {
        width:19px;
        height:19px;
    }

    .volume-popover#volumePopover .mp-vol-row {
        margin-top:10px;
    }

    .volume-popover#volumePopover > *:last-child {
        margin-bottom:0;
    }

    .volume-popover#volumePopover .mp-vol-row:empty,
    .volume-popover#volumePopover .mp-vol-row.mp-hidden {
        display:none;
    }

    #hudDropdownMenu,
    #hudDropdownMenu.open {
        z-index:10040 !important;
    }

    .volume-popover#volumePopover {
        z-index:10060 !important;
    }
}

/* ==========================================================================
   Wii Settings Popover
   ========================================================================== */
.settings-popover#settingsPopover {
    width:250px;
    max-width:84vw;
    padding:14px 16px 12px;
    border-radius:18px;
    box-sizing:border-box;
    background:linear-gradient(180deg,#ffffff 0%,#eaf7ff 100%);
    border:2px solid #00bdf2;
    box-shadow:0 10px 30px rgba(0,0,0,.28), inset 0 0 18px rgba(0,189,242,.15);
    color:#12384d;
    font-family:'Orbitron',sans-serif;
    position:fixed;
    z-index:10050;
    display:none;
    transform-origin:bottom center;
}

.settings-popover#settingsPopover.open {
    display:block;
    animation:mpPop .18s ease-out;
}

.settings-popover-title {
    font-size:13px;
    font-weight:700;
    color:#0b3b52;
    text-align:center;
    margin-bottom:8px;
    letter-spacing:.4px;
}

.settings-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 2px;
}

.settings-row + .settings-row {
    border-top:1px solid rgba(0,189,242,.18);
}

.settings-row-label {
    display:flex;
    align-items:center;
    gap:9px;
    font-size:12px;
    font-weight:700;
    color:#0b3b52;
}

.settings-row-icon {
    display:flex;
    flex:0 0 18px;
}

.settings-row-icon svg {
    width:18px;
    height:18px;
    color:#0b3b52;
    fill:currentColor;
}

.wii-toggle-switch {
    width:44px;
    height:24px;
    border-radius:999px;
    border:2px solid #9fdcf5;
    background:#cfe6f0;
    position:relative;
    padding:0;
    flex:0 0 44px;
    transition:background .18s ease, border-color .18s ease;
}

.wii-toggle-switch .wii-toggle-knob {
    position:absolute;
    top:2px;
    left:2px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 3px rgba(0,0,0,.35);
    transition:transform .18s ease;
}

.wii-toggle-switch.on {
    background:#00bdf2;
    border-color:#0093bd;
}

.wii-toggle-switch.on .wii-toggle-knob {
    transform:translateX(20px);
}

@media (max-width:768px) {
    .settings-popover#settingsPopover {
        width:230px;
        transform-origin:top center;
        padding:12px 14px 10px;
    }

    #hudDropdownMenu,
    #hudDropdownMenu.open {
        z-index:10040 !important;
    }

    .settings-popover#settingsPopover {
        z-index:10060 !important;
    }
}

/* ==========================================================================
   Everybody Votes — clickable PFP fix
   ========================================================================== */
.ev-circle-stage-wrap {
    position:relative !important;
}

.ev-circle-svg {
    pointer-events:none !important;
}

.ev-circle-center {
    pointer-events:none !important;
}

.ev-circle-pct {
    pointer-events:none !important;
}

.ev-circle-opt {
    pointer-events:none !important;
}

.ev-circle-avatar {
    position:absolute !important;
    z-index:1000 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    /* keep the avatar centred on its computed left/top point */
    transform:translate(-50%,-50%);
    transition:
        opacity .25s ease,
        left .35s ease,
        top .35s ease !important;
    will-change:left, top, opacity;
}

.ev-circle-avatar:hover {
    z-index:1001 !important;
    transform:translate(-50%,-50%) scale(1.12);
}

.ev-circle-avatar:active {
    transform:translate(-50%,-50%) scale(1.02);
}

.ev-circle-avatar img {
    pointer-events:none !important;
}

.ev-circle-avatar * {
    pointer-events:none !important;
}

/* ==========================================================================
   Profile Shop
   ========================================================================== */
.profile-shop {
    margin:35px auto 20px;
    max-width:1100px;
    padding:24px;
    border-radius:18px;
    background:rgba(15,23,42,.94);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
}

.profile-shop-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.profile-shop-header h2 {
    margin:0 0 5px;
    font-size:1.5rem;
}

.profile-shop-header p {
    margin:0;
    color:#94a3b8;
    font-size:.9rem;
}

.profile-shop-balance {
    display:flex;
    align-items:baseline;
    gap:6px;
    padding:10px 15px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    white-space:nowrap;
}

.profile-shop-balance span {
    color:#facc15;
}

.profile-shop-balance strong {
    font-size:1.3rem;
}

.profile-shop-balance small {
    color:#94a3b8;
}

.profile-shop-tabs {
    display:flex;
    gap:8px;
    margin-bottom:20px;
}

.profile-shop-tab {
    border:0;
    padding:9px 16px;
    border-radius:10px;
    background:rgba(255,255,255,.06);
    color:#cbd5e1;
    cursor:pointer;
    font-weight:600;
}

.profile-shop-tab:hover {
    background:rgba(255,255,255,.1);
}

.profile-shop-tab.active {
    background:#6366f1;
    color:#fff;
}

.profile-shop-items {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
    gap:14px;
}

.profile-shop-item {
    padding:16px;
    border-radius:14px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.07);
    transition:transform .15s ease,border-color .15s ease;
}

.profile-shop-item:hover {
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.18);
}

.profile-shop-item-preview {
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
    border-radius:10px;
    background:rgba(0,0,0,.18);
    font-size:2rem;
}

.profile-shop-item h4 {
    margin:0 0 4px;
}

.profile-shop-item p {
    margin:0 0 12px;
    color:#94a3b8;
    font-size:.8rem;
    line-height:1.4;
}

.profile-shop-buy {
    width:100%;
    border:0;
    padding:9px;
    border-radius:99px;
    background:#4f46e5;
    color:#fff;
    cursor:pointer;
    font-weight:700;
}

.profile-shop-buy:hover {
    background:#6366f1;
}

.profile-shop-buy.owned {
    background:#16a34a;
}

.profile-shop-buy.equipped {
    background:#334155;
}

.profile-editor {
    max-width:600px;
}

.profile-editor h3 {
    margin-top:0;
}

.profile-editor label {
    display:block;
    margin-bottom:14px;
    font-weight:600;
}

.profile-editor input,
.profile-editor textarea {
    display:block;
    width:100%;
    margin-top:6px;
    padding:11px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:9px;
    background:rgba(0,0,0,.25);
    color:#fff;
    outline:none;
    resize:vertical;
}

.profile-editor textarea {
    min-height:90px;
}

#saveProfileInfoBtn {
    border:0;
    padding:10px 18px;
    border-radius:9px;
    background:#6366f1;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

.profile-name-blue {
    color:#60a5fa !important;
}

.profile-name-pink {
    color:#f472b6 !important;
}

.profile-name-purple {
    color:#a78bfa !important;
}

.profile-name-gold {
    color:#facc15 !important;
}

.profile-name-rainbow {
    background:linear-gradient(
        90deg,
        #ef4444,
        #f97316,
        #eab308,
        #22c55e,
        #3b82f6,
        #a855f7
    );
    background-size:300% 100%;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent !important;
    animation:profileRainbowName 3s linear infinite;
}

@keyframes profileRainbowName {
    from {
        background-position:0% 50%;
    }
    to {
        background-position:300% 50%;
    }
}

.profile-avatar-sparkle {
    animation:profileSparkle 1.5s ease-in-out infinite;
}

.profile-avatar-pulse {
    animation:profilePulse 1.4s ease-in-out infinite;
}

@keyframes profileSparkle {
    0%,100% {
        filter:drop-shadow(0 0 0 rgba(255,255,255,0));
    }
    50% {
        filter:drop-shadow(0 0 10px rgba(255,255,255,.9));
    }
}

@keyframes profilePulse {
    0%,100% {
        transform:scale(1);
    }
    50% {
        transform:scale(1.06);
    }
}

.profile-rainbow-border {
    border:3px solid transparent !important;
    background:
        linear-gradient(#111827,#111827) padding-box,
        linear-gradient(
            90deg,
            #ef4444,
            #f97316,
            #eab308,
            #22c55e,
            #3b82f6,
            #a855f7
        ) border-box !important;
    background-size:100% 100%,300% 100% !important;
    animation:profileRainbowBorder 3s linear infinite;
}

@keyframes profileRainbowBorder {
    from {
        background-position:0 0,0% 50%;
    }
    to {
        background-position:0 0,300% 50%;
    }
}

/* ==========================================================================
   Profile Shop / Claim Point
   ========================================================================== */
.ev-tile-full {
    grid-column:1 / -1;
}

.ev-shop-grid {
    display:flex;
    flex-direction:column;
    gap:16px;
    padding-top:6px;
}

.ev-shop-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(135deg,#00bdf2,#0284c7);
    color:#fff;
    border-radius:14px;
    padding:10px 14px;
    font-weight:bold;
    font-size:.9rem;
    box-shadow:0 4px 10px rgba(2,132,199,0.35);
    margin-bottom:4px;
}

.ev-shop-item {
    position:relative;
    border:2px solid #cfe9f5;
    border-radius:18px;
    background:linear-gradient(180deg,#ffffff 0%,#f7fdff 100%);
    padding:16px 14px 12px;
    display:flex;
    flex-direction:column;
    gap:8px;
    box-shadow:0 3px 10px rgba(0,189,242,0.08);
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}

.ev-shop-item:hover {
    transform:translateY(-2px);
    border-color:#00bdf2;
    box-shadow:0 8px 18px rgba(0,189,242,0.18);
}

.ev-shop-item.owned {
    border-color:#22c55e;
    background:linear-gradient(180deg,#ffffff 0%,#f2fdf6 100%);
}

.ev-shop-item-icon {
    position:absolute;
    top:-16px;
    left:14px;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    border:2px solid #00bdf2;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.15rem;
    box-shadow:0 3px 8px rgba(0,0,0,0.15);
}

.ev-shop-item.owned .ev-shop-item-icon {
    border-color:#22c55e;
}

.ev-shop-item-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding-left:34px;
}

.ev-shop-item-name {
    font-weight:bold;
    color:#33475b;
    font-size:.95rem;
}

.ev-shop-item-price {
    font-size:.72rem;
    font-weight:bold;
    color:#ffffff;
    background:linear-gradient(180deg,#00d0ff,#0288b5);
    border-radius:999px;
    padding:3px 10px;
    box-shadow:0 2px 5px rgba(2,136,181,0.35);
    white-space:nowrap;
}

.ev-shop-item-desc {
    font-size:.76rem;
    color:#8598aa;
    padding-left:2px;
    line-height:1.35;
}

.ev-shop-owned-tag {
    font-size:.72rem;
    font-weight:bold;
    color:#16a34a;
    background:#dcfce7;
    border-radius:999px;
    padding:3px 10px;
    white-space:nowrap;
}

.ev-shop-buy-btn {
    border:none;
    border-radius:999px;
    padding:8px 16px;
    font-weight:bold;
    font-size:.82rem;
    cursor:pointer;
    background:linear-gradient(180deg,#22d3ee,#0ea5e9);
    color:#fff;
    box-shadow:0 3px 0 #0369a1;
    align-self:flex-start;
    transition:transform .12s ease,filter .12s ease;
}

.ev-shop-buy-btn:hover {
    transform:translateY(-1px);
    filter:brightness(1.06);
}

.ev-shop-buy-btn:active {
    transform:translateY(1px);
    box-shadow:0 1px 0 #0369a1;
}

.ev-shop-controls {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    background:#f8fafc;
    border:1px dashed #cfe9f5;
    border-radius:12px;
    padding:10px;
}

.ev-shop-controls input[type="color"] {
    width:38px;
    height:32px;
    border:2px solid #cfe9f5;
    border-radius:8px;
    padding:0;
    background:none;
    cursor:pointer;
}

.ev-shop-controls input[type="text"],
.ev-shop-controls textarea,
.ev-shop-controls select {
    border:2px solid #bfe9f7;
    border-radius:10px;
    padding:6px 9px;
    font-size:.85rem;
    outline:none;
    background:#fff;
}

.ev-shop-controls input[type="text"]:focus,
.ev-shop-controls textarea:focus,
.ev-shop-controls select:focus {
    border-color:#00bdf2;
}

.ev-shop-controls textarea {
    width:100%;
    min-height:56px;
    resize:vertical;
}

.ev-shop-preview {
    font-weight:bold;
    font-size:.95rem;
    padding:2px 6px;
}

.ev-shop-save-btn {
    border:none;
    border-radius:999px;
    padding:6px 14px;
    font-weight:bold;
    font-size:.78rem;
    cursor:pointer;
    background:linear-gradient(180deg,#4ade80,#16a34a);
    color:#fff;
    box-shadow:0 2px 0 #15803d;
    transition:transform .12s ease,filter .12s ease;
}

.ev-shop-save-btn:hover {
    filter:brightness(1.06);
}

.ev-shop-save-btn:active {
    transform:translateY(1px);
    box-shadow:0 1px 0 #15803d;
}

#evShopTile {
    background:linear-gradient(135deg,#e6f8ff,#ffffff);
    border-color:#00bdf2;
}

.ev-claim-point-btn {
    margin-top:6px;
    border:none;
    border-radius:999px;
    padding:8px 18px;
    font-weight:bold;
    background:linear-gradient(180deg,#4ade80,#16a34a);
    color:#fff;
    cursor:pointer;
    box-shadow:0 3px 0 #15803d;
}

.ev-claim-point-btn:hover {
    filter:brightness(1.05);
}

.ev-claim-point-btn:disabled {
    background:#e2e8f0;
    color:#94a3b8;
    box-shadow:none;
    cursor:default;
}

.user-preview-bio {
    font-size:.85rem;
    color:#475569;
    text-align:center;
    max-width:260px;
    margin-top:2px;
}

/* ==========================================================================
   Secret Code Toast
   ========================================================================== */
.ev-secret-toast {
    position:fixed;
    left:50%;
    bottom:190px;
    transform:translate(-50%,20px);
    z-index:2000000;
    background:linear-gradient(135deg,#f2b705,#f97316);
    color:#fff;
    font-weight:bold;
    font-size:.95rem;
    padding:12px 22px;
    border-radius:999px;
    box-shadow:0 10px 25px rgba(0,0,0,0.35);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease,transform .25s ease;
    white-space:nowrap;
}

.ev-secret-toast.show {
    opacity:1;
    transform:translate(-50%,0);
}

.ev-secret-toast.error {
    background:linear-gradient(135deg,#64748b,#334155);
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

/*
   The page background remains outside the inverted body layer.

   LIGHT:
   #ececec + light stripes

   DARK:
   #3b3b3b + darker gray stripes
*/
html.dark-mode {
    background-color:#3b3b3b;
background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    rgba(255, 255, 255, 0.06) 4px,
    rgba(255, 255, 255, 0.06) 9px,
    transparent 13px,
    transparent 16px
);
    background-attachment: fixed;
}

html.dark-mode body {
    background-color:transparent;
    filter:none;
}

/*
   Invert normal UI without touching the fixed HUD or carousel.
*/
html.dark-mode body > *:not(.hud-wrapper):not(#wii-cursor-canvas):not(.carousel-viewport) {
    filter:invert(1) hue-rotate(180deg);
}

/*
   Raised surfaces.
*/
html.dark-mode .wii-chat-card,
html.dark-mode .arcade-board,
html.dark-mode .ev-board,
html.dark-mode #hudSvgBg,
html.dark-mode .volume-popover#volumePopover,
html.dark-mode .settings-popover#settingsPopover,
html.dark-mode .calendar-modal,
html.dark-mode .image-modal-content,
html.dark-mode .hud-dropdown-menu,
html.dark-mode .pet-context-menu,
html.dark-mode .section-dropdown-menu,
html.dark-mode .user-preview-card,
html.dark-mode .game-picker-card,
html.dark-mode .game-play-card,
html.dark-mode .klippy-gif-tray,
html.dark-mode .mention-autocomplete,
html.dark-mode .chat-attach-menu,
html.dark-mode .chat-games-menu,
html.dark-mode .wii-chat-messages,
html.dark-mode .arcade-body,
html.dark-mode .ev-body {
    background-color:#454545 !important;
}

/*
   Restore actual media colors.
*/
html.dark-mode img,
html.dark-mode video,
html.dark-mode canvas,
html.dark-mode .chat-msg-avatar,
html.dark-mode .chat-pfp-btn img,
html.dark-mode .art-card-frame img,
html.dark-mode .art-card-frame video {
    filter:invert(1) hue-rotate(180deg);
}

/*
   CUSTOM CURSOR MUST NEVER BE INVERTED.
*/
html.dark-mode #wii-cursor-canvas,
html.dark-mode #wii-cursor-canvas * {
    filter:none !important;
}


/* ==========================================================================
   Dark Mode Channel Cards
   ========================================================================== */
html.dark-mode .channel-card {
    border-color:#5c5c5c;
    color:#cccccc;
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.10),
        inset 0 -3px 8px rgba(0,0,0,0.25),
        0 4px 12px rgba(0,0,0,0.25);
}

html.dark-mode .channel-card::before {
    background:radial-gradient(
        ellipse at center,
        rgba(95,95,95,0.45) 0%,
        rgba(55,55,55,0.20) 45%,
        rgba(0,0,0,0) 75%
    );
}

html.dark-mode .channel-card::after {
    background:rgba(115,115,115,0.35);
}

html.dark-mode .channel-text {
    color:#cccccc;
    text-shadow:1px 1px 0 #222222;
}


/* ==========================================================================
   Dark Mode HUD
   ==========================================================================
   IMPORTANT: we no longer put `filter` on `.hud-interactive-layer` (or on
   `.hud-wrapper > *` broadly). Doing so made that element the CSS
   "containing block" for every `position: fixed` descendant inside it
   (#settingsPopover, #volumePopover, .calendar-modal, .hud-dropdown-menu),
   which silently repositioned/mispositioned them relative to the HUD bar
   instead of the viewport — that's what made them unclickable. Instead we
   invert only the persistent HUD chrome elements individually, and leave
   .hud-interactive-layer itself filter-free so fixed children keep the
   viewport as their containing block.
*/
html.dark-mode .hud-interactive-layer {
    filter: none !important;
}

html.dark-mode .hud-interactive-layer .wii-circle-btn,
html.dark-mode .hud-interactive-layer .hud-menu-toggle-btn,
html.dark-mode .hud-interactive-layer .sd-card-icon,
html.dark-mode .hud-interactive-layer .envelope-icon,
html.dark-mode .hud-interactive-layer .volume-icon,
html.dark-mode .hud-interactive-layer .wii-btn-icon,
html.dark-mode .hud-interactive-layer .hud-center-clock,
html.dark-mode .hud-interactive-layer .hud-center-date,
html.dark-mode .hud-interactive-layer .wii-calendar-icon,
html.dark-mode .hud-interactive-layer .wii-note-icon {
    filter: invert(1) hue-rotate(180deg);
}

html.dark-mode #hudSvgBg {
    background-color:#454545 !important;
}


/* ==========================================================================
   Dark Mode Settings Popover
   ==========================================================================
   No longer need a compensating filter here — since .hud-interactive-layer
   is no longer filtered, these popovers render with their own explicit
   dark colors below, un-inverted and correctly positioned via
   position: fixed against the viewport.
*/
html.dark-mode .settings-popover#settingsPopover {
    background:linear-gradient(
        180deg,
        #454545 0%,
        #3f3f3f 100%
    ) !important;

    border-color:#00bdf2 !important;
    color:#eeeeee !important;

    z-index:10060 !important;
    pointer-events:auto !important;
}

html.dark-mode .settings-popover#settingsPopover *,
html.dark-mode .settings-popover#settingsPopover button,
html.dark-mode .settings-popover#settingsPopover .settings-row-label {
    color:#eeeeee;
}

html.dark-mode .settings-popover#settingsPopover .settings-row + .settings-row {
    border-top-color:rgba(0,189,242,.25);
}

html.dark-mode #settingsPopover,
html.dark-mode #settingsPopover *,
html.dark-mode #settingsPopover button,
html.dark-mode #settingsPopover .wii-toggle-switch {
    pointer-events:auto !important;
}


/* ==========================================================================
   Dark Mode Music Player
   ========================================================================== */
html.dark-mode .volume-popover#volumePopover {
    background:linear-gradient(
        180deg,
        #454545 0%,
        #3b3b3b 100%
    ) !important;

    color:#eeeeee !important;
}

html.dark-mode .volume-popover#volumePopover .mp-title,
html.dark-mode .volume-popover#volumePopover .mp-artist,
html.dark-mode .volume-popover#volumePopover .mp-index {
    color:#eeeeee !important;
}

html.dark-mode .volume-popover#volumePopover .mp-btn {
    background:#555555;
    border-color:#777777;
}

html.dark-mode .volume-popover#volumePopover .mp-btn svg {
    fill:#eeeeee;
}


/* ==========================================================================
   Dark Mode HUD Dropdown
   ========================================================================== */
html.dark-mode .hud-dropdown-menu {
    background:#454545 !important;
    border-color:#666666 !important;
}

html.dark-mode .hud-dropdown-item-label {
    color:#eeeeee !important;
}

html.dark-mode .hud-dropdown-item:hover,
html.dark-mode .hud-dropdown-item:active {
    background:#555555 !important;
}


/* ==========================================================================
   Dark Mode Section Dropdown
   ========================================================================== */
html.dark-mode .section-dropdown-menu {
    background:#454545 !important;
    border-color:#666666 !important;
}

html.dark-mode .section-dropdown-item {
    color:#eeeeee !important;
}

html.dark-mode .section-dropdown-item:hover,
html.dark-mode .section-dropdown-item.active {
    background:#00bdf2 !important;
    color:#ffffff !important;
}


/* ==========================================================================
   Dark Mode Calendar
   ========================================================================== */
html.dark-mode .calendar-modal {
    background:#454545 !important;
    border-color:#666666 !important;
}

html.dark-mode .calendar-header-nav,
html.dark-mode .calendar-header-nav button,
html.dark-mode .calendar-day-name,
html.dark-mode .calendar-day-cell,
html.dark-mode .calendar-playtime-display {
    color:#eeeeee !important;
}

html.dark-mode .calendar-header-nav button {
    background:#555555;
    border-color:#777777;
}

html.dark-mode .calendar-day-cell {
    background:#555555;
    border-color:#666666;
}

html.dark-mode .calendar-playtime-display {
    background:#505050;
    border-color:#777777;
}


/* ==========================================================================
   Dark Mode Modals
   ========================================================================== */
html.dark-mode .image-modal-content {
    background:#454545 !important;
    border-color:#00bdf2 !important;
}

html.dark-mode .modal-caption {
    color:#eeeeee !important;
}


/* ==========================================================================
   Dark Mode Pet Context Menu
   ========================================================================== */
html.dark-mode .pet-context-menu {
    background:#454545 !important;
    border-color:#00bdf2 !important;
}

html.dark-mode .pet-menu-item {
    color:#eeeeee !important;
}

html.dark-mode .pet-menu-divider {
    background:#666666;
}


/* ==========================================================================
   Dark Mode Profile Shop
   ========================================================================== */
html.dark-mode .profile-shop {
    background:#454545 !important;
}

html.dark-mode .profile-shop-item {
    background:rgba(0,0,0,.15);
}


/* ==========================================================================
   Dark Mode Secret Toast
   ========================================================================== */
html.dark-mode .ev-secret-toast {
    filter:none !important;
}


/* ==========================================================================
   Dark Mode Carousel Arrows
   ========================================================================== */
html.dark-mode .carousel-viewport .wii-arrow-svg,
html.dark-mode .carousel-viewport .arrow-overlay-btn,
html.dark-mode .carousel-viewport .arrow-overlay-btn-left {
    filter:invert(1) hue-rotate(180deg);
}


/* ==========================================================================
   FINAL CURSOR OVERRIDE
   ========================================================================== */
html.dark-mode #wii-cursor-canvas {
    filter:none !important;
    opacity:1 !important;
    mix-blend-mode:normal !important;
    pointer-events:none !important;
}


/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width:768px) {
    .calendar-close-btn {
        display:flex;
    }

    .ev-secret-toast {
        bottom:130px;
        font-size:.85rem;
        padding:10px 16px;
    }
}

@media (max-width:600px) {
    .profile-shop {
        margin:20px 10px;
        padding:16px;
    }

    .profile-shop-header {
        align-items:flex-start;
        flex-direction:column;
    }

    .profile-shop-items {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
html.dark-mode .hud-svg-bg {
    background:transparent !important;
    background-color:transparent !important;
}
/* Fix for the gray rectangle above HUD in all modes */
#hudSvgBg,
html.dark-mode #hudSvgBg {
    background: transparent !important;
    background-color: transparent !important;
}

/* Fix for the Wii Settings Popover clickability */
.settings-popover#settingsPopover,
html.dark-mode .settings-popover#settingsPopover {
    pointer-events: auto !important;
    z-index: 100000 !important;
}

.settings-popover#settingsPopover *,
html.dark-mode .settings-popover#settingsPopover * {
    pointer-events: auto !important;
}
/* Guarantee settings button & popover receive clicks above all layers */
#wiiSettingsBtn,
.settings-popover#settingsPopover,
.settings-popover#settingsPopover * {
    pointer-events: auto !important;
    z-index: 2000001 !important; /* Higher than #wii-cursor-canvas */
}