@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes windowPop {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

body {
    background: #008080;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04) 0, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.06) 0, transparent 40%);
    padding: 30px;
    padding-bottom: 70px;
    font-family: Tahoma, sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

.ascii-banner {
    font-size: 11px;
    line-height: 1.1;
    background: none;
    border: none;
    color: #000080;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 0;
    overflow-x: auto;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 3px 4px;
    gap: 6px;
    box-shadow: 0 -1px 0 #808080 inset;
    z-index: 100;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

.start-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    padding: 4px 10px;
    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
    background: #c0c0c0;
    cursor: pointer;
}

.start-btn:active {
    border-color: #404040 #fff #fff #404040;
}

.taskbar-sep {
    width: 2px;
    height: 24px;
    background: #808080;
    box-shadow: 1px 0 0 #fff;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid #808080;
    background: #c0c0c0;
    cursor: default;
}

.task-item.active {
    border-color: #404040 #fff #fff #404040;
    background: #d4d0c8;
}

.taskbar-spacer {
    flex: 1;
}

.taskbar-clock {
    border: 1px solid #808080;
    border-top-color: #fff;
    border-left-color: #fff;
    padding: 4px 8px;
    background: #c0c0c0;
}

.main-window {
    max-width: 700px;
    margin: auto;
    animation: windowPop 0.25s ease-out;
}

.window-body {
    padding: 12px 14px 16px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #808080;
    padding-bottom: 0;
}

.tabs input {
    display: none;
}

.tabs label {
    padding: 5px 14px;
    cursor: pointer;
    border: 1px solid #808080;
    border-bottom: none;
    background: #c0c0c0;
    position: relative;
    top: 1px;
    transition: background 0.12s ease, transform 0.12s ease;
    user-select: none;
}

.tabs label:hover {
    background: #d4d4d4;
}

.tabs label:active {
    transform: translateY(1px);
}

/* active tab look */
#home:checked ~ label[for="home"],
#projects:checked ~ label[for="projects"],
#links:checked ~ label[for="links"],
#status:checked ~ label[for="status"] {
    background: #fff;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.tab-content {
    display: none;
    width: 100%;
    padding-top: 16px;
}

#home:checked ~ #home-content,
#projects:checked ~ #projects-content,
#links:checked ~ #links-content,
#status:checked ~ #status-content {
    display: block;
    animation: fadeIn 0.18s ease-out;
}

h1, h3 {
    margin-top: 0;
}

.tab-content p {
    line-height: 1.5;
}

.small {
    font-size: 11px;
    opacity: 0.7;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

.discord-widget {
    display: flex;
    align-items: center;
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    width: fit-content;
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    margin: 10px 0;
}

.discord-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-right: 12px;
}

.discord-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#discord-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #121212;
    background-color: #747f8d;
    transition: background-color 0.3s;
}

#discord-dot.online { background-color: #23a55a; box-shadow: 0 0 8px #23a55a; }
#discord-dot.idle { background-color: #f0b232; box-shadow: 0 0 8px #f0b232; }
#discord-dot.dnd { background-color: #f23f43; box-shadow: 0 0 8px #f23f43; }
#discord-dot.offline { background-color: #80848e; }

.discord-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.discord-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guild-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 600;
    color: #ccc;
    flex-shrink: 0;
}

.guild-tag img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.discord-platforms {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-left: 10px;
    flex-shrink: 0;
}

.discord-platforms .platform-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.85;
}

#discord-username {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

#discord-activity {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
}
.project-window {
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.project-window:last-child {
    margin-bottom: 0;
}

.project-window .window-body {
    padding: 10px 12px;
}

.project-window .window-body p {
    margin: 0 0 8px 0;
}

a, .project-link {
    color: #0000ee;
    text-decoration: none;
}

a:hover, .project-link:hover {
    text-decoration: underline;
}

pre {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    background: #000;
    color: #0f0;
    padding: 10px;
    border: 1px solid #808080;
    margin: 0;
}

#links-content img {
    margin-top: 12px;
    display: block;
}

/* scrollbar flavor, webkit only */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: #c0c0c0;
}
::-webkit-scrollbar-thumb {
    background: #808080;
    border: 2px solid #c0c0c0;
}

@media (max-width: 480px) {
    body { padding: 12px; padding-bottom: 60px; }
    .tabs label { padding: 5px 10px; font-size: 13px; }
    .taskbar { font-size: 11px; height: 32px; }
    .ascii-banner { font-size: 8px; }
}
