@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --color-bg1: rgb(139, 69, 19);
  --color-bg2: rgb(255, 140, 0);
  --color1: 255, 140, 0;
  --color2: 255, 165, 0;
  --color3: 255, 69, 0;
  --color4: 255, 99, 71;
  --color5: 255, 215, 0;
  --color-interactive: 255, 140, 0;
  --circle-size: 80%;
  --blending: hard-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  top: 0;
  left: 0;
  z-index: -1;
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.g1 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.g2 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.g3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.g4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.g5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.interactive {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
}

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

body {
    background-color: #000000;
    font-family: 'Press Start 2P', cursive;
    color: #ff6600;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #000000;
    border: 2px solid #ff6600;
}

body::-webkit-scrollbar-thumb {
    background: #ff6600;
    border: 2px solid #000000;
}

body::-webkit-scrollbar-thumb:hover {
    background: #ff6600;
}

.wallet-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.wallet-modal-content {
    background-color: #000000;
    margin: 15% auto;
    padding: 30px;
    border: 3px solid #ff6600;
    width: 90%;
    max-width: 500px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 0 0 20px #ff6600;
}

.wallet-modal-content h2 {
    color: #ff6600;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.wallet-modal-content p {
    color: #ff6600;
    margin-bottom: 25px;
    font-size: 12px;
    line-height: 1.5;
}

#walletInput {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #000000;
    border: 2px solid #ff6600;
    color: #ff6600;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
    box-sizing: border-box;
}

#walletInput:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 10px #ff6600;
}

#walletInput::placeholder {
    color: #ff6600;
    opacity: 0.7;
}

.wallet-buttons {
    margin-bottom: 15px;
}

#walletSubmit {
    background-color: #ff6600;
    color: #000000;
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#walletSubmit:hover {
    background-color: #000000;
    color: #ff6600;
    border: 2px solid #ff6600;
}

#walletSubmit:disabled {
    background-color: #333333;
    color: #666666;
    cursor: not-allowed;
    border: 2px solid #666666;
}

.wallet-error {
    color: #ff0000;
    font-size: 10px;
    margin-top: 15px;
    min-height: 20px;
}


.leaderboard-header {
    text-align: center;
    margin-bottom: 20px;
}

.leaderboard-header h1 {
    color: #ff6600;
    font-size: 48px;
    margin-bottom: 15px;
    margin-top: 0;
    text-shadow: 2px 2px 0px #000000;
}

.player-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.info-label {
    color: #ff6600;
    font-size: 12px;
    opacity: 0.8;
}

.info-value {
    color: #ff6600;
    font-size: 14px;
    font-weight: bold;
}

.leaderboard-table-container {
    background-color: #000000;
    border: 3px solid #ff6600;
    margin: 15px auto 20px;
    width: 95%;
    max-width: 1200px;
    min-width: 800px;
    max-height: 70vh;
    overflow-x: auto;
    overflow-y: auto;
    box-shadow: 0 0 15px #ff6600;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
}

.leaderboard-table th {
    background-color: #ff6600;
    color: #000000;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 2px solid #000000;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-table td {
    color: #ff6600;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #ff6600;
    background-color: #000000;
}

.leaderboard-table tr:nth-child(even) td {
    background-color: #000000;
}

.leaderboard-table tr:hover td {
    background-color: #111111;
}

.leaderboard-table .rank-cell {
    font-weight: bold;
    width: 60px;
}

.leaderboard-table .wallet-cell {
    font-family: 'Courier New', monospace;
    font-size: 9px;
}

.leaderboard-table .score-cell {
    font-weight: bold;
    color: #ff6600;
}

.leaderboard-table .games-cell {
    opacity: 0.8;
}

.empty-message {
    text-align: center;
    color: #ff6600;
    opacity: 0.7;
    font-style: italic;
}

.empty-message td {
    padding: 40px 20px;
    font-size: 12px;
}

.leaderboard-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.refresh-btn, .play-btn {
    background-color: #ff6600;
    color: #000000;
    border: none;
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ff6600;
}

.refresh-btn:hover, .play-btn:hover {
    background-color: #000000;
    color: #ff6600;
    border: 2px solid #ff6600;
}

.refresh-btn:active, .play-btn:active {
    transform: translateY(2px);
}

@media (min-width: 1200px) {
    .leaderboard-table-container {
        width: 90%;
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .player-info {
        gap: 20px;
    }
    
    .leaderboard-table {
        font-size: 8px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 5px;
    }
    
    .leaderboard-header h1 {
        font-size: 18px;
    }
    
    .leaderboard-actions {
        gap: 15px;
    }
    
    .refresh-btn, .play-btn {
        font-size: 10px;
        padding: 12px 20px;
    }
    
    .leaderboard-table-container {
        width: 95%;
        min-width: 300px;
    }
}



.navbar {
    background-color: #000000;
    border-bottom: 2px solid #ff6600;
    padding: 10px 20px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.nav-link {
    color: #ff6600;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #ff6600;
    color: #000000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.container.leaderboard {
    padding: 20px 20px;
    justify-content: flex-start;
}

.main-title {
    font-size: 100px;
    color: #d45907;
    margin-bottom: 40px;
    text-shadow: 2px 2px 0px #333333;
}

.explore-button {
    display: block;
    cursor: pointer;
    color: white;
    margin: 0 auto 50px auto;
    position: relative;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    padding: 3px;
    isolation: isolate;
    border: none;
}

.explore-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(115deg, #ff8c00, #ff6600, #ff4500, #ff8c00, #ffa500);
    background-size: 25% 100%;
    animation: orange-gradient-animation .75s linear infinite;
    animation-play-state: paused;
    translate: -5% 0%;
    transition: translate 0.25s ease-out;
}

.explore-button:hover::before {
    animation-play-state: running;
    transition-duration: 0.75s;
    translate: 0% 0%;
}

@keyframes orange-gradient-animation {
    to {
        transform: translateX(-25%);
    }
}

.explore-button span {
    position: relative;
    display: block;
    padding: 15px 30px;
    font-size: 16px;
    background: #000;
    border-radius: 3px;
    height: 100%;
    font-family: 'Press Start 2P', cursive;
}

.panels-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 1000;
}

.panels-container.show {
    opacity: 1;
    visibility: visible;
}

.panel {
    width: 500px;
    border: 3px solid;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    transform: translateY(-50px);
    transition: transform 0.5s ease;
}

.panels-container.show .panel {
    transform: translateY(0);
}

.green-panel {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.orange-panel {
    background-color: rgba(255, 102, 0, 0.1);
    border-color: #ff6600;
    color: #ff6600;
}

.panel-preview {
    border-bottom: 2px solid;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.green-panel .panel-preview {
    border-bottom-color: #00ff00;
}

.orange-panel .panel-preview {
    border-bottom-color: #ff6600;
    background-color: #ff6600;
}


.panel-description {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
}

.description-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    text-align: center;
}

.panel-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border: 2px solid;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.green-button {
    background-color: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

.green-button:hover {
    background-color: #00ff00;
    color: #000000;
}

.orange-button {
    background-color: rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
    color: #ff6600;
}

.orange-button:hover {
    background-color: #ff6600;
    color: #000000;
}



.lore-title {
    font-size: 48px;
    color: #ff6600;
    margin-bottom: 50px;
    text-shadow: 2px 2px 0px #333333;
}

.lore-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.lore-heading {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #00ff00;
    margin: 30px 0 15px 0;
    text-shadow: 1px 1px 0px #333333;
}

.lore-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #ff6600;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.chat-container {
    display: flex;
    height: calc(100vh - 80px);
    gap: 10px;
    padding: 10px;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-panel {
    flex: 1;
}

.chat-section, .code-section {
    background-color: #000000;
    border: 2px solid #ff6600;
    border-radius: 0;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.code-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-header {
    background-color: #ff6600;
    color: #000000;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    padding: 10px;
    text-align: center;
}

.code-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    margin-bottom: 10px;
}

.assistant-message {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.system-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}


.system-message .message-text {
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

.user-message .message-text {
    color: #ff6600;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background-color: rgba(255, 102, 0, 0.1);
    padding: 8px;
    border: 1px solid #ff6600;
    max-width: 80%;
    word-wrap: break-word;
}

.assistant-message .message-text {
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background-color: rgba(0, 255, 0, 0.1);
    padding: 8px;
    border: 1px solid #00ff00;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-input-container {
    display: flex;
    gap: 5px;
    padding: 15px;
    border-top: 1px solid #ff6600;
}

.chat-input {
    flex: 1;
    background-color: #000000;
    border: 2px solid #ff6600;
    color: #ff6600;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 8px;
    outline: none;
}

.chat-input:focus {
    border-color: #00ff00;
    color: #00ff00;
}

.chat-input::placeholder {
    color: #666666;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
}

.send-button {
    background-color: #ff6600;
    color: #000000;
    border: 2px solid #ff6600;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background-color: #00ff00;
    border-color: #00ff00;
    color: #000000;
}

.code-block {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-messages::-webkit-scrollbar,
.code-content::-webkit-scrollbar,
.leaderboard-table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.chat-messages::-webkit-scrollbar-track,
.code-content::-webkit-scrollbar-track,
.leaderboard-table-container::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #ff6600;
}

.chat-messages::-webkit-scrollbar-thumb,
.code-content::-webkit-scrollbar-thumb,
.leaderboard-table-container::-webkit-scrollbar-thumb {
    background: #ff6600;
    border: 1px solid #000000;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.code-content::-webkit-scrollbar-thumb:hover,
.leaderboard-table-container::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

.leaderboard-table-container::-webkit-scrollbar-corner {
    background: #000000;
    border: 1px solid #ff6600;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.coming-soon-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #ff8c00;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    cursor: default;
    animation: fadeInScale 0.3s ease-out;
}

.coming-soon-content h2 {
    color: #ff8c00;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: bold;
}

.coming-soon-content p {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
