﻿        @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            width: 100%;
            min-height: 100%;
            box-sizing: border-box;
        }

        body {
            font-family: 'VT323', monospace;
            color: #FFF;
            background-color: #171615;
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        .page-bg {
            background-image: url('../img/background.webp');
            background-repeat: repeat;
            background-size: cover;
            position: fixed;
            top: 0;
            left: 0;
            min-width: 100vw;
            min-height: 100vh;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.4;
            filter: blur(6px);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .top-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .back-button {
            display: inline-block;
            padding: 10px 20px;
            font-family: 'VT323', monospace;
            font-size: 1.2rem;
            background-color: #333;
            color: #FFF;
            border: 3px solid #000;
            text-decoration: none;
            box-shadow: 3px 3px 0px #000;
            transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
            margin-bottom: 0;
        }

        .back-button:hover {
            background-color: #444;
        }

        .back-button:active {
            transform: translate(2px, 2px);
            box-shadow: 0px 0px 0px #000;
        }

        .edit-btn {
            background-color: #3b82f6;
            color: #fff;
            border: 3px solid #000;
            padding: 8px 16px;
            font-family: 'Press Start 2P', cursive;
            font-size: 0.8rem;
            cursor: pointer;
            box-shadow: 4px 4px 0px #000;
            transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
            text-transform: uppercase;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            margin-bottom: 0;
        }

        .edit-btn:hover {
            background-color: #60a5fa;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px #000;
        }

        .edit-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 0px 0px 0px #000;
        }

        .main-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .avatar-img {
            width: 32px;
            height: 32px;
            border-radius: 0;
            border: 2px solid #4ade80;
            background: #222;
            margin-left: 0;
            margin-right: 0;
            box-shadow: 1px 1px 0 #000;
            image-rendering: pixelated;
            transition: border-color 0.2s, box-shadow 0.2s;
            display: block;
            padding: 0;
        }

        .avatar-img:hover {
            border-color: #fff;
            box-shadow: 2px 2px 0 #4ade80;
        }

        .main-content {
            flex-grow: 1;
            padding: 40px 0;
        }

        .server-header-section {
            background-color: rgba(0, 0, 0, 0.3);
            border: 3px solid #000;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
            display: flex;
            gap: 30px;
            align-items: center;
            justify-content: center;
        }

        .server-icon-large {
            width: 128px;
            height: 128px;
            image-rendering: pixelated;
            border: 3px solid #000;
            flex-shrink: 0;
        }

        .server-header-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            justify-content: center;
        }

        .server-title {
            font-family: 'Press Start 2P', cursive;
            color: #4ade80;
            margin-bottom: 15px;
            line-height: 1.5;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: clamp(0.8rem, 4vw, 1.5rem);
            max-width: 100%;
            display: block;
            transition: font-size 0.2s;
        }

        .server-address-display {
            font-size: 1.3rem;
            color: #AAA;
            margin-bottom: 10px;
        }

        .server-short-info-display {
            font-size: 1.2rem;
            line-height: 1.4;
            margin-bottom: 20px;
            white-space: pre-wrap;
            color: #aaa;
        }

        .status-badge-large {
            display: inline-block;
            padding: 8px 20px;
            font-size: 1.2rem;
            border: 3px solid;
            font-family: 'VT323', monospace;
        }

        .status-online {
            color: #4ade80;
            border-color: #4ade80;
            background-color: rgba(74, 222, 128, 0.1);
        }

        .status-offline {
            color: #ff5252;
            border-color: #ff5252;
            background-color: rgba(255, 82, 82, 0.1);
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            align-items: start;
        }

        .info-card {
            background-color: rgba(0, 0, 0, 0.3);
            border: 3px solid #000;
            padding: 25px;
            box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
        }

        .info-card-title {
            font-family: 'Press Start 2P', cursive;
            font-size: 1.1rem;
            color: #FFF;
            margin-bottom: 20px;
            text-shadow: 2px 2px 0px #000;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            font-size: 1.2rem;
            flex-wrap: wrap;
            word-break: break-word;
            gap: 10px;
        }

        .info-label {
            color: #888;
            min-width: 90px;
            word-break: break-word;
            text-align: left;
        }

        .info-value {
            color: #FFF;
            text-align: right;
            word-break: break-all;
            flex: 1 1 0;
            min-width: 0;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .players-list {
            background-color: rgba(0, 0, 0, 0.3);
            border: 3px solid #000;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
        }

        .player-item {
            padding: 10px 12px;
            background: transparent;
            border: none;
            border-bottom: 1px solid #2a2a2a;
            font-size: 1.1rem;
        }

        .player-item:last-child {
            border-bottom: none;
        }

        .server-description-text {
            font-size: 1.2rem;
            color: #FFF;
            text-align: center;
            line-height: 1.5;
        }

        .server-description-text div {
            margin-bottom: 0.5em;
        }

        .loading {
            text-align: center;
            padding: 40px;
            font-size: 1.5rem;
            color: #4ade80;
        }


        /* Footer styles removed - using global-auth.css */

        @media (max-width: 900px) {

            .server-header-section {
                flex-direction: column;
                align-items: stretch;
            }

            .server-header-info {
                align-items: center;
                text-align: center;
            }

            .server-icon-large {
                width: 96px;
                height: 96px;
                margin: 0 auto 10px auto;
            }

            .server-title {
                font-size: 1.1rem;
            }

            .info-grid {
                grid-template-columns: 1fr;
            }

            .server-address-display {
                flex-direction: row !important;
                gap: 8px;
                font-size: 1.1rem;
                justify-content: center;
                align-items: center;
            }
        }

        @media (max-width: 600px) {
            .container {
                padding: 0 5px;
            }

            .main-content {
                padding: 20px 0;
            }

            .server-header-section {
                padding: 15px;
                gap: 15px;
            }

            .info-card {
                padding: 12px;
            }

            .players-list {
                padding: 12px;
            }


        /* Footer media query removed - using global-auth.css */

            .server-address-display {
                flex-direction: row !important;
                gap: 8px;
                justify-content: center;
                align-items: center;
            }
        }

        #login-nav-item {
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 100%;
        }

        #login-nav-item a#account-link {
            padding: 0 !important;
            margin: 0 !important;
            background: none !important;
            border: none !important;
            box-shadow: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .claim-btn {
            background-color: #eab308;
            color: #000;
            border: 3px solid #000;
            padding: 6px 16px;
            font-family: 'VT323', monospace;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 3px 3px 0px #000;
            transition: transform 0.1s, box-shadow 0.1s;
            margin-top: 15px;
            display: inline-block;
            text-transform: uppercase;
            font-weight: bold;
        }

        .claim-btn:hover {
            background-color: #facc15;
            transform: translate(-1px, -1px);
            box-shadow: 4px 4px 0px #000;
        }

        .claim-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 0px 0px 0px #000;
        }

        .edit-input,
        .edit-textarea {
            width: 100%;
            background: #181818;
            border: 2px solid #555;
            color: #fff;
            padding: 10px;
            font-family: 'VT323', monospace;
            font-size: 1.2rem;
            margin-bottom: 5px;
            outline: none;
        }

        .edit-input:focus,
        .edit-textarea:focus {
            border-color: #4ade80;
        }

        .editor-container {
            width: 100%;
            background: #181818;
            border: 2px solid #555;
            display: flex;
            flex-direction: column;
        }

        .editor-container:focus-within {
            border-color: #4ade80;
        }

        .markdown-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            background: #2a2a2a;
            padding: 8px;
            border-bottom: 2px solid #555;
            align-items: center;
        }

        .md-btn {
            background: #111;
            border: 1px solid #444;
            color: #ccc;
            font-family: 'VT323', monospace;
            font-size: 1.1rem;
            height: 30px;
            min-width: 30px;
            padding: 0 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .md-btn:hover {
            background: #3b82f6;
            color: #fff;
            border-color: #3b82f6;
            transform: translateY(-1px);
        }

        .md-sep {
            width: 1px;
            height: 20px;
            background: #555;
            margin: 0 5px;
            align-self: center;
        }

        .rich-editor {
            width: 100%;
            min-height: 250px;
            max-height: 500px;
            overflow-y: auto;
            color: #fff;
            padding: 15px;
            font-family: 'VT323', monospace;
            font-size: 1.2rem;
            line-height: 1.5;
            outline: none;
            white-space: pre-wrap;
            text-align: left;
        }

        .rich-editor b,
        .rich-editor strong {
            color: #4ade80;
            font-weight: bold;
        }

        .rich-editor i,
        .rich-editor em {
            font-style: italic;
            color: #fab005;
        }

        .rich-editor u {
            text-decoration: underline;
        }

        .rich-editor strike,
        .rich-editor s {
            color: #888;
            text-decoration: line-through;
        }

        .rich-editor h1 {
            font-size: 1.5em;
            color: #4ade80;
            border-bottom: 2px solid #444;
            margin-top: 10px;
        }

        .rich-editor h2 {
            font-size: 1.3em;
            color: #4ade80;
            margin-top: 10px;
        }

        .rich-editor a {
            color: #3b82f6;
            text-decoration: underline;
            cursor: pointer;
        }

        .rich-editor ul {
            padding-left: 20px;
            list-style-type: square;
        }

        .char-counter {
            text-align: right;
            font-size: 1rem;
            color: #888;
            margin-bottom: 15px;
            font-family: 'VT323', monospace;
        }


        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-box {
            background-color: #1a1a1a;
            border: 3px solid #000;
            padding: 40px;
            position: relative;
            box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
            transform: scale(1.1);
            transition: transform 0.3s;
        }

        .modal-title {
            font-family: 'Press Start 2P', cursive;
            color: #4ade80;
            margin-bottom: 10px;
            font-size: 1.2rem;
            line-height: 1.4;
        }

        .modal-subtitle {
            font-size: 1.05rem;
            color: #aaa;
            margin-bottom: 12px;
            margin-top: -2px;
            text-align: center;
            font-family: 'VT323', monospace;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: #888;
            font-size: 1.5rem;
            cursor: pointer;
            font-family: 'VT323', monospace;
        }

        .modal-close:hover {
            color: #FFF;
        }

        .modal-step {
            display: none;
            width: 100%;
            flex-direction: column;
            align-items: center;
        }

        .modal-step.active {
            display: flex;
        }

        .step-text {
            font-size: 1.3rem;
            margin-bottom: 20px;
            line-height: 1.4;
        }

        .uuid-box {
            background: #111;
            border: 2px solid #444;
            padding: 10px;
            font-size: 1.1rem;
            margin: 15px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            word-break: break-all;
            width: 100%;
        }

        .uuid-copy-btn {
            background: #444;
            color: #FFF;
            border: 2px solid #000;
            cursor: pointer;
            padding: 4px 8px;
            font-family: inherit;
        }

        .uuid-copy-btn:hover {
            background: #555;
        }

        .action-btn {
            background-color: #4CAF50;
            color: #FFF;
            border: 3px solid #000;
            padding: 15px 20px;
            font-family: 'VT323', monospace;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 4px 4px 0px #000;
            transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
            text-decoration: none;
            width: 100%;
        }

        .action-btn:hover:not(:disabled) {
            background-color: #66BB6A;
        }

        .action-btn:active:not(:disabled) {
            transform: translate(3px, 3px);
            box-shadow: 0px 0px 0px #000;
        }

        .action-btn:disabled {
            background-color: #555;
            color: #888;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .error-msg {
            color: #ff5252;
            margin-top: 15px;
            font-size: 1.1rem;
            display: none;
            padding: 10px;
            border: 1px solid #ff5252;
            background: rgba(255, 82, 82, 0.1);
        }

        .success-msg {
            color: #4ade80;
            margin-top: 15px;
            font-size: 1.2rem;
            display: none;
        }

        .copy-icon-btn {
            width: 32px;
            height: 32px;
            background: #222;
            border: 2px solid #000;
            border-radius: 0;

            display: inline-flex;
            align-items: center;
            justify-content: center;

            cursor: pointer;
            margin-left: 10px;
            padding: 0;

            transition: all 0.2s;
        }

        .copy-icon-btn:hover {
            background: #333;
            transform: translateY(-1px);
            box-shadow: 2px 2px 0 #000;
        }

        .copy-icon-btn:active {
            transform: translate(1px, 1px);
            box-shadow: 0 0 0 #000;
        }

        .copy-icon-btn.success {
            border-color: #4ade80;
            background: rgba(74, 222, 128, 0.1);
        }

        .claim-section-card {
            background-color: rgba(234, 179, 8, 0.1);
            border: 3px solid #eab308;
            padding: 20px 25px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
            flex-wrap: wrap;
        }

        .claim-title {
            font-family: 'Press Start 2P', cursive;
            font-size: 1rem;
            color: #eab308;
            margin-bottom: 8px;
            text-shadow: 2px 2px 0 #000;
        }

        .claim-desc {
            font-size: 1.2rem;
            color: #ddd;
        }

        .claim-action-btn {
            background-color: #eab308;
            color: #000;
            border: 2px solid #000;
            padding: 10px 20px;
            font-family: 'Press Start 2P';
            font-size: 0.8rem;
            cursor: pointer;
            box-shadow: 4px 4px 0px #000;
            transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
            text-transform: uppercase;
            font-weight: bold;
            white-space: nowrap;
        }

        .claim-action-btn:hover {
            background-color: #facc15;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px #000;
        }

        .claim-action-btn:active {
            transform: translate(2px, 2px);
            box-shadow: 0px 0px 0px #000;
        }

        @media (max-width: 600px) {
            .claim-section-card {
                flex-direction: column;
                text-align: center;
                align-items: stretch;
            }

            .claim-action-btn {
                width: 100%;
            }
        }

        .tooltip-trigger {
            position: relative;
            display: inline-flex;
            align-items: center;
            cursor: pointer;
            color: #60a5fa;
            text-decoration: none;
            transition: color 0.18s;
            gap: 5px;
        }

        .tooltip-trigger:hover {
            color: #93c5fd;
        }

        .modal-help-link {
            font-size: 1rem;
            color: #60a5fa;
            text-decoration: none;
            cursor: pointer;
            margin-top: 6px;
            margin-bottom: 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 0.18s;
        }

        .modal-help-link:hover {
            color: #93c5fd;
        }

        .modal-help-link .info-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: 0;
            background: #232b3b;
            border: 2px solid #60a5fa;
            color: #60a5fa;
            font-size: 0.95rem;
            font-family: inherit;
            font-weight: bold;
            margin-right: 2px;
            transition: background 0.18s, color 0.18s, border 0.18s;
            flex-shrink: 0;
        }

        .modal-help-link:hover .info-icon {
            background: #1e293b;
            color: #93c5fd;
            border-color: #93c5fd;
        }

        .tooltip-trigger:hover::after {
            content: attr(data-tooltip);

            position: absolute;
            bottom: 135%;
            left: 50%;
            transform: translateX(-50%);

            width: 260px;
            padding: 12px;

            background-color: #222;
            color: #ddd;
            border: 2px solid #000;
            box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);

            font-family: 'VT323', monospace;
            font-size: 1rem;
            line-height: 1.3;
            text-align: center;
            white-space: normal;

            z-index: 100000;
            pointer-events: none;
        }

        .tooltip-trigger:hover::before {
            content: '';
            position: absolute;
            bottom: 115%;
            left: 50%;
            transform: translateX(-50%);

            border-width: 10px;
            border-style: solid;
            border-color: #000 transparent transparent transparent;

            z-index: 100000;
        }


        .vote-btn-subtle {
            display: block;
            width: 100%;
            background-color: #4CAF50;
            color: #FFF;
            border: 3px solid #000;
            padding: 15px 20px;
            font-family: 'VT323', monospace;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 4px 4px 0px #000;
            transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
            text-decoration: none;
            text-align: center;
            margin-top: 15px;
        }

        .vote-btn-subtle:hover:not(:disabled) {
            background-color: #66BB6A;
        }

        .vote-btn-subtle:active:not(:disabled) {
            transform: translate(3px, 3px);
            box-shadow: 0px 0px 0px #000;
        }

        .vote-btn-subtle:disabled {
            background-color: #555;
            color: #888;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .edit-input:disabled {
            background: #222 !important;
            color: #888 !important;
            opacity: 0.7;
            cursor: not-allowed;
        }

        #editTabVotifier input[disabled]::placeholder {
            color: #555 !important;
            opacity: 1;
        }

        /* Discord and Dropdown styles removed - using global-auth.css */