* {
    box-sizing: border-box;
}

:root {
    --bg: #111111;
    --text: #f3f3f3;
    --border: #2b2b2b;
    --hover: #1d1d1d;
    --menu-bg: #111111;
    --menu-text: #f3f3f3;
    --menu-border: #2b2b2b;
    --menu-hover: #1d1d1d;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.hidden {
    display: none !important;
}

#menuStrip,
button {
    font-family: inherit;
}

#menuStrip {
    flex: 0 0 30px;
    height: 100vh;
    border: 0;
    border-right: 1px solid var(--menu-border);
    background: var(--menu-bg);
    color: var(--menu-text);
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    font-size: 14px;
    font-weight: 600;
}

#menuStrip:hover {
    background: var(--menu-hover);
}

#menu {
    width: 220px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--menu-border);
    background: var(--menu-bg);
    color: var(--menu-text);
}

#menu.hidden {
    display: none;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0 0 20px;
    overflow-y: auto;
    scrollbar-color: #3a3a3a #141414;
    scrollbar-width: thin;
}

#menu ul::-webkit-scrollbar {
    width: 10px;
}

#menu ul::-webkit-scrollbar-track {
    background: #141414;
}

#menu ul::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 8px;
    border: 2px solid #141414;
}

#menu ul::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

#menu li a {
    display: block;
    padding: 11px 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

#menu li a:hover {
    background: var(--menu-hover);
}

.custom-links {
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#content {
    flex: 1;
    height: 100%;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.welcome {
    display: none;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding: 32px;
    background: var(--bg);
    overflow-y: auto;
}

.welcome.show {
    display: flex;
}

.welcome-shell {
    width: min(980px, 92vw);
    display: grid;
    gap: 14px;
}

.welcome-topbar {
    display: flex;
    justify-content: flex-end;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.welcome-card {
    border: 1px solid var(--border);
    background: #151515;
    padding: 28px 30px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.welcome-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

#aboutRicky {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.welcome-card h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
}

.welcome-card p {
    margin: 0;
    line-height: 1.5;
}

.welcome-topbar button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: #1a1a1a;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
}

.welcome-topbar button:hover {
    background: #242424;
}

.small-screen-note {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--border);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

@media (max-width: 900px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }

    #menu,
    #menuStrip,
    #toolframe {
        display: none !important;
    }

    .welcome {
        display: flex !important;
    }

    .small-screen-note {
        display: inline-flex;
        align-items: center;
    }
}
