@font-face {
    font-family: 'MS Sans Serif';
    src: local('MS Sans Serif'), local('MS Sans Serif Regular'), url('https://fonts.cdnfonts.com/css/ms-sans-serif') format('woff2');
}

:root {
    --bg-teal: #008080;
    --win-gray: #C0C0C0;
    --win-gray-light: #FFFFFF;
    --win-gray-dark: #808080;
    --win-gray-darkest: #000000;
    --win-gray-border: #404040;
    --title-blue: #000080;
    --display-red: #FF0000;
}

* {
    box-sizing: border-box;
    cursor: url('https://cur.cursors-4u.net/ani/ani-1/ani1.cur'), auto;
    /* Default win95 cursor feel if possible, or just default */
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-teal);
    overflow: hidden;
    user-select: none;
}

.desktop {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Taskbar */
.taskbar {
    background-color: var(--win-gray);
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    border-bottom: 2px solid var(--win-gray-darkest);
    box-shadow: inset 1px 1px 0 var(--win-gray-light);
    z-index: 1000;
}

.start-button,
.sign-in-button,
.balance-btn,
.claim-btn {
    background-color: var(--win-gray);
    border: 2px solid;
    border-top-color: var(--win-gray-light);
    border-left-color: var(--win-gray-light);
    border-right-color: var(--win-gray-dark);
    border-bottom-color: var(--win-gray-dark);
    padding: 0 12px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    outline: none;
    height: 32px;
}

.start-button span {
    margin-bottom: 2px;
}

.start-button:active,
.sign-in-button:active,
.claim-btn:active,
.balance-btn:active {
    border-top-color: var(--win-gray-dark);
    border-left-color: var(--win-gray-dark);
    border-right-color: var(--win-gray-light);
    border-bottom-color: var(--win-gray-light);
    padding: 1px 5px -1px 7px;
}

.start-icon {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

/* Desktop Content */
.desktop-content {
    flex: 1;
    position: relative;
    padding: 10px;
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-auto-flow: row;
    gap: 40px 30px;
    /* vertical horizontal */
    padding: 30px 0 0 30px;
    width: fit-content;
}

.icon-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: fit-content;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    padding: 5px;
    cursor: pointer;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.icon-wrapper img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.icon-label {
    color: white;
    font-size: 14px;
    text-align: center;
    word-wrap: break-word;
    text-shadow: 1px 1px 1px #000;
    line-height: 1.1;
    padding: 2px 4px;
}

.icon-item:hover .icon-label {
    background-color: var(--title-blue);
    outline: 1px dotted #ccc;
}

/* Windows */
.window {
    background-color: var(--win-gray);
    border: 2px solid;
    border-top-color: var(--win-gray-light);
    border-left-color: var(--win-gray-light);
    border-right-color: var(--win-gray-darkest);
    border-bottom-color: var(--win-gray-darkest);
    box-shadow: 1px 1px 0 var(--win-gray-dark);
    position: absolute;
}

.token-window {
    top: 55px;
    right: 40px;
    width: 200px;
    box-shadow: 1px 1px 0 var(--win-gray-darkest);
}

.dexscreener-window {
    top: 200px;
    right: 320px;
    width: 450px;
    box-shadow: 1px 1px 0 var(--win-gray-darkest);
    z-index: 99;
}

.window-titlebar {
    background-color: var(--title-blue);
    color: white;
    padding: 1px 2px 1px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
    height: 22px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 14px;
    height: 14px;
    background-color: var(--win-gray);
    border: 1px solid;
    border-top-color: var(--win-gray-light);
    border-left-color: var(--win-gray-light);
    border-right-color: var(--win-gray-darkest);
    border-bottom-color: var(--win-gray-darkest);
    position: relative;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn:active {
    border-top-color: var(--win-gray-darkest);
    border-left-color: var(--win-gray-darkest);
    border-right-color: var(--win-gray-light);
    border-bottom-color: var(--win-gray-light);
}

.control-btn.close::before,
.control-btn.close::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 1px;
    background-color: black;
}

.control-btn.close::before {
    transform: rotate(45deg);
}

.control-btn.close::after {
    transform: rotate(-45deg);
}

.window-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.digital-display-container {
    background-color: black;
    padding: 4px;
    border: 1px solid;
    border-top-color: var(--win-gray-dark);
    border-left-color: var(--win-gray-dark);
    border-right-color: var(--win-gray-light);
    border-bottom-color: var(--win-gray-light);
    width: 100%;
    display: flex;
    justify-content: center;
}

.digital-display {
    color: var(--display-red);
    font-family: 'Digital-7 Mono', 'Courier New', monospace;
    font-size: 36px;
    line-height: 1;
    overflow: hidden;
    letter-spacing: 2px;
}

.claim-btn,
.win-btn {
    width: 100%;
    justify-content: center;
    padding: 2px;
    font-weight: normal;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-size: 14px;
}

.field-row input {
    padding: 6px 10px;
    border: 2px solid;
    border-top-color: var(--win-gray-dark);
    border-left-color: var(--win-gray-dark);
    border-right-color: var(--win-gray-light);
    border-bottom-color: var(--win-gray-light);
    background-color: white;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 16px;
    outline: none;
}

.results-container {
    margin-top: 15px;
    width: 100%;
    background-color: white;
    border: 2px solid;
    border-top-color: var(--win-gray-dark);
    border-left-color: var(--win-gray-dark);
    border-right-color: var(--win-gray-light);
    border-bottom-color: var(--win-gray-light);
    padding: 12px;
    min-height: 120px;
    font-size: 14px;
}

.token-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 5px;
}

.token-symbol {
    font-weight: bold;
    color: var(--title-blue);
    font-size: 20px;
}

.token-price {
    font-family: monospace;
    font-weight: bold;
    font-size: 20px;
}

.token-stats p {
    margin: 8px 0;
}

.loading-text {
    font-style: italic;
    color: #666;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 25px 25px;
    pointer-events: none;
}

.bottom-left {
    pointer-events: auto;
}

.balance-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
}

.mascot-container {
    pointer-events: auto;
    position: absolute;
    bottom: 5px;
    right: 30px;
}

.clippy {
    width: 110px;
    height: auto;
    display: block;
    image-rendering: auto;
}

/* Utilities */
.dollar-sign {
    margin-right: 2px;
}