@import url('https://fonts.bunny.net/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


.chat-mention {
    color: #0050b3;
    background: #e6f0ff;
    border-radius: 3px;
    padding: 0 3px;
    font-weight: bold;
    cursor: pointer;
}

.chat-mention:hover {
    background: #cce0ff;
    text-decoration: underline;
}

.chat-mention-suggestion {
    padding: 2px 8px;
    cursor: pointer;
}
.chat-mention-suggestion:hover {
    background: #e6f0ff;
}


/* Digital Disco */

@font-face { 
  font-family: "Digital Disco";
  font-style: normal;
  font-weight: 400;
  src: 
    url(https://anthonyfontano.pages.dev/DigitalDisco.ttf) format("truetype");
}

/* Digital Disco Thin */

@font-face { 
  font-family: "Digital Disco Thin";
  font-style: normal;
  font-weight: 400;
  src: 
    url(https://anthonyfontano.pages.dev/DigitalDisco-Thin.ttf) format("truetype");
}


* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --theme-bar-bg: #000080;
    --theme-body-start: #008080;
    --theme-body-end: #008080;
    --theme-body-grid: rgba(255, 255, 255, 0.05);
    --settings-border: #ff9800; /* Custom border color for settings menu */
}

body {
   -webkit-text-stroke: 1px white;
   paint-order: stroke fill;
    background-color: var(--theme-body-end, #008080);
    background-image:
        linear-gradient(135deg, var(--theme-body-start, #008080) 0%, var(--theme-body-end, #008080) 100%),
        linear-gradient(var(--theme-body-grid, rgba(255,255,255,0.05)) 1px, transparent 1px),
        linear-gradient(90deg, var(--theme-body-grid, rgba(255,255,255,0.05)) 1px, transparent 1px);
    background-size: cover, 8px 8px, 8px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 8px;
    font-family:'Figtree', 'Poppins', 'Arial', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.centered {
    text-align: center;
    justify-content: center;
}

.window {
    background: #c0c0c0;
    border: 3px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 90vw;
    max-width: 1200px;
    min-width: 320px;
    max-height: calc(100dvh - 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.title-bar {
    background: var(--theme-bar-bg, #000080);
    color: white;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    -webkit-text-stroke: 1px #000040;
    paint-order: stroke fill;
}

.title-icon { width: 16px; height: 16px; }

.window-buttons {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.window-buttons a {
    text-decoration: none;
}

.window-buttons button {
    width: 16px;
    height: 14px;
    font-size: 9px;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    cursor: pointer;
    padding: 0;
}

.tabs {
    display: flex;
    padding: 4px 4px 0;
    gap: 2px;
    background: #c0c0c0;
}

.tab {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.8px;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

.tab.active {
    background: #c0c0c0;
    border-bottom-color: #c0c0c0; 
}

.tab:hover { background: #d0d0d0; }

.content {
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin: 4px 4px 4px;
    padding: 2%;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    background: #c0c0c0;
}

@media (max-height: 700px) {
    body {
        align-items: flex-start;
    }

    .window {
        width: min(96vw, 1200px);
        min-width: 0;
    }
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* END OF WINDOW CSS */

/* HOME CSS */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 600px) {
    .home-layout { grid-template-columns: 1fr; }
}

.panel {
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
}

.panel-header {
    background: var(--theme-bar-bg, #000080);
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 3px 7px;
    -webkit-text-stroke: 1px #000040;
    paint-order: stroke fill;
}

.panel-body { padding: 10px 12px; }

.welcome-banner { width: 100%; margin-bottom: 10px; }
.welcome-text { font-size: 12px; line-height: 1.8; letter-spacing: 0.5px; }
.welcome-text p { margin-bottom: 8px; }

.changelog {
    height: 60vh;
    overflow-y: scroll;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
}

.log-entry {
    border-bottom: 1px dotted #808080;
    padding: 8px 10px;
}

.log-date { font-size: 10px; color: #808080; font-weight: bold; }
.log-title { font-weight: bold; font-size: 12px; color: #000080; margin: 2px 0; letter-spacing: 0.5px; }
.log-desc  { font-size: 11px; color: #333; line-height: 1.7; letter-spacing: 0.3px; }

.tag { display: inline-block; font-size: 10px; padding: 1px 5px; border: 1px solid; margin-top: 4px; }
.tag-new { border-color: #008000; color: #005000; background: #e0ffe0; }
.tag-wip { border-color: #808000; color: #504000; background: #ffffc0; }
.tag-fix { border-color: #800000; color: #500000; background: #ffe0e0; }

/* CREDITS CSS */

.credits-title {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2.5px;
    border-bottom: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

.section-header {
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1.5px;
    background: #808080;
    color: #fff;
    padding: 2px 6px;
    margin-bottom: 6px;
    -webkit-text-stroke: 1px #404040;
    paint-order: stroke fill;
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 3px 8px;
    padding: 0 4px;
}

.credit-entry {
    font-size: 14px;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-orange { background: #ff8000; }
.dot-blue   { background: #0000cc; }
.name-orange { color: #804000; font-weight: bold; }
.name-blue   { color: #00008b; }

.credits-divider {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #fff;
    margin: 10px 0;
}

/* ── CHAT ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
}
.modal-box {
    position: relative;
    background: #c0c0c0;
    border: 3px solid;
    border-color: #fff #808080 #808080 #fff;
    min-width: 260px;
}

.modal-close-btn {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 16px;
    height: 14px;
    font-size: 10px;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    color: #000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1;
}

.modal-close-btn:active {
    border-color: #808080 #fff #fff #808080;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.8;
}

.chat-msg {
    display: flex;
    gap: 5px;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 2px 0;
    border-bottom: 1px dotted #ddd;
}

.msg-user-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.msg-user  { font-weight: bold; color: #000080; white-space: nowrap; }
.msg-badges {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #808080;
    background: #f3f3f3;
    cursor: help;
}
.chat-badge-img {
    width: 10px;
    height: 10px;
    object-fit: contain;
}
.chat-badge-text {
    font-size: 8px;
    line-height: 1;
    padding: 0 1px;
}
.msg-time  { font-size: 9px; color: #888; white-space: nowrap; }
.msg-text  { color: #222; flex: 1; word-break: break-word; }
.chat-inline-asset {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: text-bottom;
}

.chat-inline-sticker {
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 120px;
    vertical-align: middle;
}

/* Your own messages: username shows in orange to match credits style */
.chat-msg-mine .msg-user { color: #804000; }

.msg-del {
    background: none; border: none;
    font-size: 9px; color: #800000;
    cursor: pointer; opacity: 0.4; padding: 0 2px;
}
.msg-del:hover { opacity: 1; }

.chat-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    border: 1px solid #808080;
    background: #ffffe1;
    color: #111;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 20;
}

.chat-badge:hover::after,
.chat-badge:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.chat-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border-top: 2px solid #808080;
    background: #c0c0c0;
    position: relative;
}

.chat-composer {
    display: flex;
    gap: 4px;
    width: 100%;
}

.chat-composer .chat-input-field {
    min-width: 0;
}

.chat-asset-picker {
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #efefef;
    padding: 6px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.chat-asset-picker-header {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 6px;
}

.chat-asset-tab {
    min-width: 58px;
    text-transform: uppercase;
}

.chat-asset-tab.chat-asset-tab-active {
    background: #d8d8d8;
    border-color: #808080 #fff #fff #808080;
}

.chat-asset-search {
    max-width: 180px;
}

.chat-asset-grid {
    max-height: 220px;
    overflow-y: auto;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
}

.chat-asset-option {
    border: 1px solid #c0c0c0;
    background: #f7f7f7;
    padding: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 58px;
}

.chat-asset-option:hover {
    background: #ededed;
}

.chat-asset-option-preview {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: auto;
}

.chat-asset-option-sticker .chat-asset-option-preview {
    width: 44px;
    height: 44px;
}

.chat-asset-option-label {
    max-width: 100%;
    font-size: 9px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-asset-empty {
    margin-top: 6px;
    font-size: 10px;
    color: #444;
}

.chat-input-field {
    flex: 1;
    font-family: inherit; font-size: 11px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 2px 5px;
}

/* ── USERS ────────────────────────────────────────── */
.users-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 8px;
}

.users-auth-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.users-auth-status {
    font-size: 11px;
    color: #000080;
    font-weight: bold;
}

.users-auth-message {
    min-height: 14px;
    font-size: 10px;
    color: #005000;
}

.users-auth-message-error {
    color: #800000;
}

.users-auth-group {
    margin-bottom: 6px;
}

.users-auth-group label {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: bold;
    color: #444;
}

.users-auth-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.users-auth-hello {
    font-size: 11px;
    margin-bottom: 8px;
}

.users-settings {
    border: 2px solid;
    border-color: var(--settings-border, #ff9800);
    background: #efefef;
    padding: 8px;
}

.users-settings-title {
    font-size: 11px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 8px;
}

.users-profile-textarea {
    width: 100%;
    min-height: 88px;
    font-family: inherit;
    font-size: 11px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 4px 5px;
    resize: vertical;
}

.users-profile-hint {
    margin-top: 4px;
    font-size: 10px;
    color: #444;
}

.users-profile-button-picker {
    margin-top: 4px;
    max-height: 205px;
    overflow-y: auto;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 6px;
}

.users-profile-button-option {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #c0c0c0;
    background: #f5f5f5;
    padding: 3px;
}

.users-profile-button-option input {
    margin: 0;
}

.users-profile-button-image {
    width: 88px;
    height: 31px;
    object-fit: contain;
    image-rendering: auto;
}

.users-theme-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    align-items: center;
    margin-top: 4px;
}

.users-theme-grid label {
    font-size: 11px;
}

.users-color-input {
    width: 40px;
    height: 24px;
    padding: 0;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
}

.users-list-status {
    font-size: 11px;
    color: #444;
    margin-bottom: 6px;
}

.users-list {
    max-height: 58vh;
    overflow-y: auto;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 6px 8px;
}

.users-list-item {
    font-size: 11px;
    padding: 3px 0;
    border-bottom: 1px dotted #ddd;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.users-list-rank {
    color: #808080;
    margin-right: 3px;
}

.users-list-name {
    color: #000080;
    font-weight: bold;
}

.users-list-link {
    color: #000080;
    font-weight: bold;
    text-decoration: underline;
}

.users-list-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.users-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #808080;
    background: #f3f3f3;
    cursor: help;
}

.users-list-badge-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.users-list-badge-text {
    font-size: 9px;
    line-height: 1;
    padding: 0 2px;
}

.users-list-email {
    color: #444;
}

.profile-view {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    border: 2px solid;
    border-color: #808080 #c0c0c0 #c0c0c0 #808080; /* Remove white outline */
    background: linear-gradient(180deg, var(--profile-bg-start, #f8f8f8) 0%, var(--profile-bg-end, #e5e5e5) 100%);
    color: var(--profile-text, #000);
    padding: 12px;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-identity-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar-wrap {
    width: 64px;
    height: 64px;
    border: 2px solid;
    border-color: #808080 #c0c0c0 #c0c0c0 #808080; /* Remove white outline */
    background: var(--profile-panel-bg, #fff);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--profile-accent, #000080);
    background: linear-gradient(180deg, #ececec 0%, #d8d8d8 100%);
}

.profile-display-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--profile-accent, #000080);
}

.profile-username {
    font-size: 14px;
    color: var(--profile-text-muted, #444);
}

.profile-pronouns {
    font-size: 14px;
    color: var(--profile-accent, #000080);
    font-weight: bold;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 22px;
    height: 22px;
    padding: 2px;
    border: 1px solid #808080;
    background: var(--profile-panel-bg, #f0f0f0);
    cursor: help;
}

.users-list-badge::after,
.profile-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    border: 1px solid #808080;
    background: #ffffe1;
    color: #111;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 20;
}

.users-list-badge:hover::after,
.users-list-badge:focus-visible::after,
.profile-badge:hover::after,
.profile-badge:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.profile-badge-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.profile-badge-text {
    font-size: 9px;
    line-height: 1;
    padding: 0 3px;
}

.profile-bio {
    border: 2px solid;
    border-color: #c0c0c0 #808080 #808080 #c0c0c0; /* Remove white outline */
    background: var(--profile-panel-bg, #fff);
    color: var(--profile-text);
    padding: 8px;
    font-size: 15px;
    min-height: 72px;
    white-space: pre-wrap;
}

.profile-buttons {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.profile-button-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #808080;
    background: var(--profile-panel-bg, #f3f3f3);
    padding: 2px;
}

.profile-button-image {
    width: 88px;
    height: 31px;
    object-fit: contain;
    image-rendering: auto;
}

.profile-links {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.profile-link-btn {
    display: block;
    text-decoration: none;
    text-align: center;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: var(--profile-bg-end, #c0c0c0);
    color: var(--profile-text, #000);
    font-weight: bold;
    padding: 7px 8px;
}

.profile-song-player-wrap {
    margin-top: 10px;
}

.profile-song-player {
    width: 100%;
    height: 210px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #000;
}

.win95-media-player {
    margin-top: 8px;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #dfdfdf;
}

.win95-media-player .player-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 4px;
    background: linear-gradient(90deg, #000080 0%, #1d54b8 72%, #5b86d9 100%);
    color: #fff;
    font-family: Tahoma, "MS Sans Serif", sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.2px;
}

.win95-media-player .player-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win95-media-player .player-title-buttons {
    display: flex;
    gap: 2px;
}

.win95-media-player .title-btn-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #000;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #5f5f5f #5f5f5f #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
}

.win95-media-player .player-body {
    padding: 8px;
    border-top: 1px solid #fff;
}

.win95-media-player .player-display {
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #000;
    color: #15ff00;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 7px 8px;
    min-height: 30px;
    display: flex;
    align-items: center;
    text-shadow: 0 0 5px rgba(21, 255, 0, 0.5);
}

.win95-media-player .status-marquee {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win95-media-player .player-meta-grid {
    margin-top: 7px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #d4d0c8;
    padding: 4px 6px;
    display: grid;
    gap: 3px;
    font-family: Tahoma, "MS Sans Serif", sans-serif;
    font-size: 11px;
    color: #111;
}

.win95-media-player .player-meta-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.win95-media-player .player-meta-label {
    color: #2d2d2d;
    font-weight: bold;
}

.win95-media-player .player-meta-value {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win95-media-player .player-time-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 11px;
    color: #111;
}

.win95-media-player .player-progress-track {
    margin-top: 4px;
    height: 12px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #efefef;
    overflow: hidden;
}

.win95-media-player .player-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #000080 0%, #1d54b8 100%);
}

.win95-media-player .player-timestamps {
    margin-top: 3px;
    display: flex;
    justify-content: space-between;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 10px;
    color: #333;
}

.win95-media-player .player-controls {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.win95-media-player .win-btn-small {
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    color: #000;
    font-family: Tahoma, "MS Sans Serif", sans-serif;
    font-size: 11px;
    min-width: 74px;
    padding: 3px 8px;
    cursor: pointer;
    box-shadow: inset 1px 1px 0 #dfdfdf;
}

.win95-media-player .win-btn-small:active {
    border-color: #808080 #fff #fff #808080;
    box-shadow: none;
    transform: translate(1px, 1px);
}

.win95-media-player .win-btn-small:disabled {
    color: #6f6f6f;
    text-shadow: 1px 1px 0 #fff;
    cursor: default;
}

@media (max-width: 760px) {
    .users-layout {
        grid-template-columns: 1fr;
    }
    .users-list {
        max-height: 40vh;
    }
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-identity-wrap {
        width: 100%;
    }
    .profile-song-player {
        height: 180px;
    }
}




/* ── GAMES TAB ────────────────────────────────────────── */
.games-controls {
    margin-bottom: 10px;
}

.games-popular-section {
    margin-bottom: 10px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 8px;
}

.games-popular-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.games-popular-heading {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #000080;
}

.games-popular-hint {
    font-size: 9px;
    color: #404040;
    white-space: nowrap;
}

.games-popular-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.popular-game-btn {
    flex: 0 0 140px;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    cursor: pointer;
    padding: 5px;
    font-family: inherit;
    text-align: left;
}

.popular-game-btn:active {
    border-color: #808080 #fff #fff #808080;
}

.popular-game-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #808080;
    margin-bottom: 4px;
}

.popular-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-game-name {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    color: #000080;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.games-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.games-filter-btn {
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    cursor: pointer;
    padding: 3px 10px;
    -webkit-text-stroke: 0;
    paint-order: fill;
    color: #000;
}

.games-filter-btn:active,
.games-filter-btn.active {
    border-color: #808080 #fff #fff #808080;
    background: #a0a0a0;
}

.games-search-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.games-search-input {
    flex: 1;
    min-width: 150px;
    font-family: inherit;
    font-size: 11px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 4px 6px;
}

.games-sort-select {
    font-family: inherit;
    font-size: 11px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    padding: 3px 6px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
}

.game-card {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    cursor: pointer;
    transition: transform 0.1s;
}

.game-card:hover {
    background: #d0d0d0;
}

.game-card:active {
    border-color: #808080 #fff #fff #808080;
}

.game-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #808080;
    border-bottom: 2px solid;
    border-color: #808080 #fff #fff #808080;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card-thumb img:not(.lazy) {
    opacity: 1;
}

.game-card-info {
    padding: 6px 8px;
}

.game-card-title {
    font-size: 11px;
    font-weight: bold;
    color: #000080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.game-card-type {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border: 1px solid;
}

.game-card-type--html     { border-color: #008000; color: #005000; background: #e0ffe0; }
.game-card-type--ruffle   { border-color: #808000; color: #504000; background: #ffffc0; }
.game-card-type--webPorts { border-color: #000080; color: #000050; background: #e0e0ff; }

.games-sentinel {
    height: 1px;
    width: 100%;
}

.games-status {
    text-align: center;
    font-size: 10px;
    color: #000000;
    padding: 6px 0;
}

.games-error {
    text-align: center;
    color: #800000;
    padding: 20px;
}

/* ── PLAY VIEW ───────────────────────────────────────── */
#games-play-view {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.back-btn {
    align-self: flex-start;
}

.play-view-inner {
    display: flex;
    gap: 0;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
}

/* Iframe container */
.iframe-container {
    flex: 1;
    height: 68vh;
    background: #ffff;
    position: relative;
    overflow: hidden;
}

.gameframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* was: justify-content: center; gap: 6px; padding: 6px 0 2px; */
.iframe-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 4px;
    flex-wrap: wrap;
}

/* Bigger, customizable bottom action buttons */
.iframe-buttons .win-btn {
    font-size: 13px;          /* ← text size */
    padding: 6px 18px;        /* ← height × width */
    letter-spacing: 1px;      /* ← spacing */
    min-width: 120px;         /* ← min button width */
}

/* ── CDN SWITCHER ────────────────────────────────────── */
.cdn-switcher-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 2px;
    flex-wrap: wrap;
}

.cdn-switcher-row-label {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #444;
    text-transform: uppercase;
    -webkit-text-stroke: 0;
    paint-order: fill;
}

#cdn-switcher {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.cdn-btn {
    font-family: inherit;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    cursor: pointer;
    padding: 2px 10px;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0;
    paint-order: fill;
    color: #000;
}

.cdn-btn:hover:not(.active) {
    background: #d4d4d4;
}

.cdn-btn.active {
    border-color: #808080 #fff #fff #808080;
    background: #000080;
    color: #fff;
}

.cdn-indicator-wrap {
    font-size: 9px;
    color: #555;
    -webkit-text-stroke: 0;
    paint-order: fill;
}

#cdn-indicator {
    font-weight: bold;
    color: #000080;
}

/* Play header stuff (kept for compat) */
.play-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.play-title {
    font-size: 13px;
    font-weight: bold;
    color: #000080;
    flex: 1;
    letter-spacing: 0.8px;
}

.play-type-badge { font-size: 9px; padding: 2px 6px; border: 1px solid; }
.play-type-badge--html     { border-color: #008000; color: #005000; background: #e0ffe0; }
.play-type-badge--ruffle   { border-color: #808000; color: #504000; background: #ffffc0; }
.play-type-badge--webPorts { border-color: #000080; color: #000050; background: #e0e0ff; }


/* ── SHOP ────────────────────────────────────────────── */
.shop-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 28px;
    min-height: 260px;
}
 
.shop-text {
    flex: 1;
    font-size: 14px;
    line-height: 2;
    -webkit-text-stroke: 0;
    paint-order: fill;
    color: #000;
}
 
.shop-text p {
    margin-bottom: 16px;
}
 
.shop-xmr {
    color: #555;
    font-style: italic;
}
 
.shop-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
 
.shop-logo-wrap a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
 
.shop-pydra-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: pixelated;
}
 
.shop-logo-label {
    font-size: 11px;
    font-weight: bold;
    color: #000080;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0;
    paint-order: fill;
}
 
.shop-logo-wrap a:hover .shop-pydra-logo {
    opacity: 0.85;
}
 
.shop-logo-wrap a:hover .shop-logo-label {
    text-decoration: underline;
}

.win-btn {
    font-family: inherit; font-size: 11px; font-weight: bold;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: #c0c0c0;
    cursor: pointer; padding: 2px 8px; white-space: nowrap;
    -webkit-text-stroke: 0;
    paint-order: fill;
    color: #000;
}
.win-btn:active { border-color: #808080 #fff #fff #808080; }

/* ── DMCA FOOTER + MODAL ──────────────────────────── */
.dmca-footer {
  padding: 6px 8px;
  border-top: 1px solid var(--border, #888);
  text-align:center;
}

.dmca-footer-btn {
  font-size: 10px;
  opacity: 0.7;
}

.dmca-footer-btn:hover {
  opacity: 1;
}

.dmca-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
  line-height: 1.6;
}

.dmca-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.dmca-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dmca-option .tag {
  flex-shrink: 0;
  margin-top: 2px;
}

.dmca-speed {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.65;
  font-size: 10px;
}

.dmca-code {
  background: rgba(0,0,0,0.12);
  padding: 1px 5px;
  font-family: monospace;
  font-size: 11px;
  border: 1px solid rgba(0,0,0,0.2);
}

.dmca-note {
  opacity: 0.75;
  font-style: italic;
  border-top: 1px dashed rgba(0,0,0,0.2);
  padding-top: 10px;
  margin-top: 2px;
}

/* Container for the seek bar track */
.audio-seek-wrap {
    padding: 10px 0;
}

#audio-seekbar {
    width: 100%;
    appearance: none;
    height: 4px;
    background: #808080; /* Sunken track color */
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    outline: none;
}

/* The Slider Handle (Classic Windows Thumb) */
#audio-seekbar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff; /* Raised button look */
    cursor: pointer;
}

/* Time Display Styling */
.audio-info {
    display: flex;
    justify-content: flex-end; /* Time on the right */
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 11px;
    margin-bottom: 4px;
}

/* Standardized Win95 Button look */
.win-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px 10px;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 11px;
    cursor: pointer;
    outline: none;
}

.win-btn:active {
    border-color: #808080 #fff #fff #808080;
    padding: 3px 9px 1px 11px; /* Subtle shift down-right */
}

.audio-controls {
    display: flex;
    gap: 4px;
}
.profile-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.profile-comment-entry {
  position: relative;
  border: 1px solid var(--border-color, #aaa);
  padding: 6px 10px;
  font-size: 11px;
}
.profile-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.profile-comment-author {
  font-weight: bold;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
}
.profile-comment-time {
  font-size: 10px;
  opacity: 0.65;
}
.profile-comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}
