:root {
  --bg: #0d1419;
  --panel: rgba(14, 22, 29, 0.92);
  --panel-2: rgba(22, 31, 39, 0.94);
  --panel-3: #0f1820;
  --line: #4b6370;
  --line-soft: rgba(137, 173, 186, 0.22);
  --text: #edf6f8;
  --muted: #9db2bb;
  --accent: #ffb12a;
  --accent-2: #7ac0d2;
  --danger: #ff7c7c;
  --warning: #ffd16a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --taskbar-h: 48px;
  --topbar-h: 36px;
  --font-mono: "Courier New", Courier, monospace;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body { font-family: var(--font-ui); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.noscript {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  background: #111; color: #fff; font: 18px var(--font-mono);
}

.boot-screen {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: linear-gradient(180deg, #05070a 0%, #091017 100%);
  color: #dfe5ed; transition: opacity .45s ease, visibility .45s ease;
}
.boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-noise, .scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.05) 2px 3px);
}
.boot-panel { width: min(640px, calc(100vw - 42px)); position: relative; z-index: 1; }
.boot-brand { display: flex; align-items: center; gap: 18px; }
.boot-brand img { width: clamp(62px, 12vw, 92px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.boot-logo { font: 900 clamp(26px, 6vw, 54px)/1 var(--font-mono); letter-spacing: -3px; }
.boot-os { margin-top: 6px; color: var(--accent-2); font: 700 14px/1 var(--font-mono); letter-spacing: 2px; }
.boot-version { margin-top: 14px; color: #98a8b1; font: 12px var(--font-mono); letter-spacing: 1.8px; }
.boot-log { min-height: 170px; margin-top: 34px; font: 13px/1.75 var(--font-mono); color: #bbcad1; }
.boot-log .ok { color: var(--accent); }
.boot-log .warn { color: var(--warning); }
.boot-progress { height: 7px; border: 1px solid #39414d; margin-top: 16px; padding: 1px; }
.boot-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffd16a); transition: width .2s linear; }
.text-button { margin-top: 16px; border: 0; background: transparent; color: #778692; padding: 0; font: 11px var(--font-mono); cursor: pointer; }
.text-button:hover { color: var(--text); }

.desktop {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4,12,16,.04), rgba(4,10,14,.18)),
    url("assets/branding/wallpaper.webp") center center / cover no-repeat;
}
.wallpaper-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(122,192,210,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(5,12,16,.06) 52%, rgba(4,8,11,.20) 100%);
}
.desktop::before,
.desktop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.desktop::before {
  opacity: .7;
  background:
    linear-gradient(145deg, transparent 0 58%, rgba(255,255,255,.025) 58.2% 58.5%, transparent 58.7%),
    linear-gradient(32deg, transparent 0 69%, rgba(255,177,42,.05) 69.2% 69.5%, transparent 69.8%);
}
.desktop::after {
  background: radial-gradient(circle at center, transparent 58%, rgba(4,8,10,.12) 100%);
}
.ambient-grid {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 76%, transparent);
}
.scanlines { z-index: 9999; opacity: .03; }

.system-bar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 8000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: rgba(8,14,18,.6); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px);
  font: 10px var(--font-mono); letter-spacing: 1.2px; color: #d2dee3;
}
.system-brand, .system-meta { display: flex; align-items: center; gap: 10px; }
.system-logo { width: 22px; height: 22px; object-fit: contain; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255,177,42,.65); }
.system-brand strong { color: #f5fbfc; font-weight: 700; }

.desktop-icons {
  position: absolute; top: calc(var(--topbar-h) + 18px); left: 20px; bottom: calc(var(--taskbar-h) + 14px); z-index: 10;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.desktop-icon {
  width: 88px; height: 88px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: default; padding: 5px;
  font: 10px/1.15 var(--font-mono); text-align: center; color: #f5fbfc; text-shadow: 0 2px 7px rgba(0,0,0,.82), 0 0 2px rgba(0,0,0,.9);
}
.desktop-icon:hover, .desktop-icon:focus-visible { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); outline: none; }
.desktop-icon.selected { background: rgba(122,192,210,.14); border-color: rgba(122,192,210,.34); }
.icon-tile {
  width: 48px; height: 48px; display: grid; place-items: center; position: relative;
  background: rgba(12,18,24,.88); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.03), 0 10px 18px rgba(0,0,0,.22);
  font: 800 17px var(--font-mono); color: var(--accent); letter-spacing: -1px;
}
.icon-tile::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(255,255,255,.12); pointer-events: none; }
.icon-games { color: var(--accent-2); }
.icon-about { color: #ffd16a; }
.icon-projects { color: #fff4a4; }
.icon-terminal { color: #b9ff9a; font-size: 14px; }
.icon-contact { color: #9de8ff; }

.window-layer { position: absolute; inset: var(--topbar-h) 0 var(--taskbar-h) 0; z-index: 100; pointer-events: none; }
.window {
  position: absolute; left: var(--x); top: var(--y); width: min(var(--w), calc(100vw - 24px)); height: min(var(--h), calc(100vh - var(--topbar-h) - var(--taskbar-h) - 24px));
  min-width: 340px; min-height: 220px; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid rgba(220, 243, 248, 0.18); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
  pointer-events: auto; resize: both; backdrop-filter: blur(14px);
}
.window.hidden { display: none; }
.window.minimized { display: none; }
.window.maximized {
  left: 8px !important; top: 8px !important; width: calc(100vw - 16px) !important;
  height: calc(100vh - var(--topbar-h) - var(--taskbar-h) - 16px) !important; resize: none;
}
.window.active { border-color: rgba(255,177,42,.38); box-shadow: 0 30px 90px rgba(0,0,0,.52), 0 0 0 1px rgba(255,177,42,.08); }
.window-bar {
  flex: 0 0 38px; height: 38px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(rgba(35,50,59,.95), rgba(18,27,34,.95)); border-bottom: 1px solid rgba(255,255,255,.08); user-select: none; cursor: move;
}
.window.active .window-bar { background: linear-gradient(rgba(41,57,66,.97), rgba(18,27,34,.97)); }
.window-title { display: flex; align-items: center; gap: 9px; padding-left: 12px; font: 10px var(--font-mono); letter-spacing: 1.15px; color: #dce9ed; }
.mini-led { width: 6px; height: 6px; background: #6a7c85; border-radius: 50%; }
.window.active .mini-led { background: var(--accent); box-shadow: 0 0 8px rgba(255,177,42,.55); }
.window-controls { height: 100%; display: flex; }
.window-controls button {
  width: 42px; border: 0; border-left: 1px solid rgba(255,255,255,.08); background: transparent; color: #a9bcc3; cursor: pointer; font: 17px var(--font-mono);
}
.window-controls button:hover { background: rgba(255,255,255,.08); color: #fff; }
.window-controls button:last-child:hover { background: #8b3035; }
.window-content { flex: 1; min-height: 0; overflow: auto; }

.welcome-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: clamp(24px, 4vw, 44px); align-items: center; }
.eyebrow { color: var(--accent); font: 10px var(--font-mono); letter-spacing: 1.8px; margin-bottom: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: .96; letter-spacing: -3px; margin-bottom: 22px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -2px; margin-bottom: 14px; }
h3 { margin-bottom: 8px; }
p { color: #d7e7eb; line-height: 1.65; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ui-button {
  border: 1px solid rgba(255,255,255,.18); background: rgba(22,31,39,.92); color: #edf6f8; padding: 11px 14px; font: 10px var(--font-mono); letter-spacing: 1px; cursor: pointer;
}
.ui-button:hover { border-color: rgba(255,255,255,.35); background: rgba(30,40,49,.98); }
.ui-button.primary { color: #14110a; background: var(--accent); border-color: var(--accent); font-weight: 800; }
.ui-button.primary:hover { filter: brightness(1.05); }
.hero-terminal { min-height: 250px; background: rgba(7,10,12,.92); border: 1px solid rgba(255,255,255,.1); box-shadow: 11px 11px 0 rgba(0,0,0,.16); }
.hero-terminal-head { padding: 9px 12px; background: rgba(18,24,30,.95); border-bottom: 1px solid rgba(255,255,255,.08); color: #99aab4; font: 9px var(--font-mono); }
.hero-terminal pre { margin: 0; padding: 18px; color: #d3dde2; font: 11px/1.8 var(--font-mono); white-space: pre-wrap; }
.term-good { color: #b8ff92; }
.term-warn { color: #ffd56a; }
.term-bad { color: #ff7f84; }
.term-muted { color: #7f919b; }
.welcome-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.welcome-highlights span {
  border: 1px solid rgba(255,255,255,.16); background: rgba(10,16,20,.35); padding: 6px 8px; font: 8px var(--font-mono); letter-spacing: 1px;
}
.blink-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.app-shell { display: grid; grid-template-columns: 178px 1fr; height: 100%; overflow: hidden; }
.app-sidebar { padding: 18px 10px 12px; border-right: 1px solid var(--line-soft); background: rgba(9,14,18,.45); display: flex; flex-direction: column; min-height: 0; }
.sidebar-label { color: #bfd0d7; font: 9px var(--font-mono); letter-spacing: 1.5px; padding: 0 9px 10px; }
.sidebar-item { display: flex; justify-content: space-between; width: 100%; border: 0; background: transparent; color: #d1dee2; padding: 9px; text-align: left; font: 10px var(--font-mono); cursor: pointer; }
.sidebar-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-item.active { background: rgba(255,177,42,.12); color: var(--accent); }
.sidebar-spacer { flex: 1; }
.tiny-status { color: #adc2ca; font: 8px var(--font-mono); padding: 8px; }
.tiny-status span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.app-main { min-width: 0; min-height: 0; overflow: auto; padding: 26px; }
.app-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.app-heading.compact { margin-bottom: 18px; }
.app-heading h2 { margin: 0; }
.view-chip, .live-pill { border: 1px solid rgba(255,255,255,.14); background: rgba(10,15,18,.34); padding: 7px 9px; color: #d6e4e8; font: 9px var(--font-mono); white-space: nowrap; }
.live-pill span { display: inline-block; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-right: 6px; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card {
  min-width: 0; border: 1px solid rgba(255,255,255,.12); background: rgba(7, 12, 16, 0.58); overflow: hidden; cursor: default; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: rgba(255,177,42,.42); background: rgba(10, 16, 20, 0.72); }
.game-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0b0e13;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) contrast(1.03); }
.game-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.58)); pointer-events: none; }
.game-badge { position: absolute; top: 9px; right: 9px; z-index: 2; padding: 5px 7px; background: rgba(10,12,16,.85); border: 1px solid rgba(255,255,255,.18); font: 8px var(--font-mono); color: var(--accent); }
.game-info { padding: 14px; }
.game-info h3 { font-size: 17px; margin-bottom: 5px; }
.game-info p { font-size: 11px; line-height: 1.55; margin: 0 0 13px; min-height: 34px; }
.game-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.game-tags span { border: 1px solid rgba(255,255,255,.14); color: #dbebef; padding: 3px 5px; font: 8px var(--font-mono); background: rgba(255,255,255,.03); }
.game-link { text-decoration: none; color: #aeeeff; font: 9px var(--font-mono); }
.game-link:hover { text-decoration: underline; }
.empty-state { padding: 18px; border: 1px dashed rgba(255,255,255,.18); font: 11px var(--font-mono); color: #e7f1f4; }

.about-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 34px; }
.profile-card { border: 1px solid rgba(255,255,255,.12); background: rgba(8,13,16,.38); padding: 18px; align-self: start; }
.profile-avatar { height: 180px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, rgba(122,192,210,.18), rgba(255,177,42,.08)); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 15px; }
.photo-avatar { height: 285px; background: #101820; }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.profile-name { font: 800 13px var(--font-mono); margin-bottom: 6px; }
.profile-role { font: 8px var(--font-mono); color: #d4e4e9; margin-bottom: 15px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-tags span { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #eef8fa; padding: 4px 6px; font: 8px var(--font-mono); }
.about-copy { padding-top: 4px; }
.about-copy p { max-width: 620px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 21px; }
.stat-grid > div { background: rgba(8,13,16,.32); border: 1px solid rgba(255,255,255,.1); padding: 13px; display: flex; flex-direction: column; gap: 4px; }
.stat-grid strong { color: var(--accent); font: 700 15px var(--font-mono); }
.stat-grid span { color: #e0eef2; font: 8px var(--font-mono); }


.projects-layout { padding: 30px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { position: relative; min-height: 320px; display: flex; flex-direction: column; padding: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); background: rgba(8,13,16,.48); }
.project-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -80px; border-radius: 50%; background: rgba(255,177,42,.09); }
.project-fiverr::before { background: rgba(122,192,210,.12); }
.project-number { position: absolute; right: 16px; top: 14px; color: rgba(255,255,255,.24); font: 28px var(--font-mono); }
.project-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--accent); font: 800 17px var(--font-mono); }
.project-fiverr .project-icon { color: #aeeeff; }
.project-type { color: var(--accent); font: 8px var(--font-mono); letter-spacing: 1.4px; margin-bottom: 7px; }
.project-fiverr .project-type { color: #aeeeff; }
.project-card h3 { font-size: 26px; margin-bottom: 10px; }
.project-card p { flex: 1; margin-bottom: 18px; font-size: 12px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span { border: 1px solid rgba(255,255,255,.13); padding: 4px 6px; color: #e7f1f4; font: 8px var(--font-mono); }

.terminal-window { background: rgba(7,10,12,.96); }
.terminal-body { height: 100%; overflow: auto; padding: 17px; background: rgba(7,10,12,.96); color: #dce9e2; font: 12px/1.65 var(--font-mono); cursor: text; }
.terminal-output { white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-input-row { display: flex; align-items: center; gap: 8px; }
.terminal-input-row label { color: var(--accent); white-space: nowrap; }
.terminal-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #eff8f5; font: 12px var(--font-mono); caret-color: var(--accent); }

.contact-layout { padding: 34px; }
.contact-layout > div:first-child { max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.contact-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(8,13,16,.38); text-decoration: none; }
.contact-card:hover { border-color: rgba(255,177,42,.4); background: rgba(10,15,18,.48); }
.contact-card > span:last-child { color: #d1e2e7; }
.contact-symbol { color: var(--accent); font: 13px var(--font-mono); }
.contact-card strong { display: block; font: 10px var(--font-mono); margin-bottom: 4px; }
.contact-card small { display: block; color: #eef6f8; font: 9px var(--font-mono); }
.contact-card-wide { grid-column: 1 / -1; }
.contact-note { margin-top: 20px; color: #ebf4f7; font: 9px var(--font-mono); }

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 9000;
  display: flex; align-items: center; background: rgba(8,14,18,.78); border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 -10px 30px rgba(0,0,0,.25); backdrop-filter: blur(14px);
}
.start-button { height: 100%; min-width: 118px; display: flex; align-items: center; gap: 9px; border: 0; border-right: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 0 14px; font: 10px var(--font-mono); cursor: pointer; }
.start-button:hover, .start-button.active { background: rgba(255,255,255,.08); }
.start-logo { width: 23px; height: 23px; display: grid; place-items: center; background: rgba(255,177,42,.16); border: 1px solid rgba(255,255,255,.16); }
.start-logo img { width: 18px; height: 18px; object-fit: contain; }
.task-list { min-width: 0; flex: 1; display: flex; align-items: center; gap: 3px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
.task-list::-webkit-scrollbar { display: none; }
.task-button { max-width: 160px; height: 34px; display: flex; align-items: center; gap: 7px; border: 1px solid transparent; background: transparent; color: #eff8fa; padding: 0 10px; font: 9px var(--font-mono); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.task-button.active { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.14); box-shadow: inset 0 -2px 0 var(--accent); }
.task-button::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: rgba(255,255,255,.45); }
.task-button.active::before { background: var(--accent); }
.taskbar-status { align-self: stretch; min-width: 104px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; border-left: 1px solid rgba(255,255,255,.1); padding: 0 13px; color: #eef7fa; font: 9px var(--font-mono); }
.network-icon { color: var(--accent); }

.start-menu {
  position: absolute; left: 7px; bottom: calc(var(--taskbar-h) + 6px); width: 300px; z-index: 8999;
  border: 1px solid rgba(255,255,255,.18); background: rgba(12,18,22,.92); box-shadow: 0 25px 70px rgba(0,0,0,.55); backdrop-filter: blur(14px);
}
.start-menu.hidden { display: none; }
.start-banner { display: flex; gap: 12px; align-items: center; padding: 16px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.start-mark { width: 39px; height: 39px; display: grid; place-items: center; background: rgba(255,177,42,.16); border: 1px solid rgba(255,255,255,.14); }
.start-mark img { width: 31px; height: 31px; object-fit: contain; }
.start-banner strong { display: block; font: 12px var(--font-mono); }
.start-banner span { color: #e7f2f5; font: 8px var(--font-mono); }
.start-items { padding: 7px; }
.start-items button, .start-footer button { width: 100%; border: 0; background: transparent; color: #eff8fa; text-align: left; padding: 10px 11px; cursor: pointer; font: 10px var(--font-mono); }
.start-items button span { display: inline-block; width: 29px; color: var(--accent); }
.start-items button:hover, .start-footer button:hover { background: rgba(255,255,255,.08); color: #fff; }
.start-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 5px 7px; }
.start-footer button { color: #f3fafc; }

.toast { position: absolute; z-index: 9500; right: 14px; bottom: calc(var(--taskbar-h) + 14px); max-width: 340px; background: rgba(12,18,22,.92); border: 1px solid rgba(255,255,255,.18); padding: 12px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); font: 9px/1.5 var(--font-mono); color: #f2fbfd; }
.toast::before { content: "SYSTEM // "; color: var(--accent); }
.toast.hidden { display: none; }

@media (max-width: 900px) {
  .window { min-width: 300px; }
  .welcome-layout { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  .about-layout { grid-template-columns: 180px 1fr; }
  .games-grid { grid-template-columns: 1fr; }
}


@media (max-height: 680px) and (min-width: 681px) {
  .desktop-icons { top: calc(var(--topbar-h) + 10px); gap: 0; }
  .desktop-icon { width: 80px; height: 78px; }
  .icon-tile { width: 42px; height: 42px; }
}

@media (max-width: 680px) {
  :root { --taskbar-h: 54px; --topbar-h: 34px; }
  .hide-mobile { display: none; }
  .desktop-icons { top: calc(var(--topbar-h) + 15px); left: 10px; right: 10px; bottom: auto; display: grid; grid-template-columns: repeat(3, 82px); grid-auto-flow: row; grid-auto-rows: 85px; gap: 3px; }
  .desktop-icon { width: 82px; height: 82px; }
  .icon-tile { width: 42px; height: 42px; }
  .window-layer { inset: var(--topbar-h) 0 var(--taskbar-h); }
  .window, .window.maximized {
    left: 5px !important; top: 5px !important; width: calc(100vw - 10px) !important; height: calc(100vh - var(--topbar-h) - var(--taskbar-h) - 10px) !important;
    min-width: 0; min-height: 0; resize: none;
  }
  .window-bar { cursor: default; }
  .window-controls button { width: 40px; }
  .welcome-layout, .about-layout, .contact-layout { padding: 22px; }
  .welcome-layout { display: block; }
  h1 { font-size: 42px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 20px; }
  .about-layout { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: 100px 1fr; column-gap: 14px; }
  .profile-avatar { grid-row: 1 / span 4; height: 100px; margin: 0; }
  .logo-avatar img { width: 74px; height: 74px; }
  .profile-tags { align-self: start; }
  .project-grid { grid-template-columns: 1fr; }
  .projects-layout { padding: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-wide { grid-column: auto; }
  .start-button { min-width: 54px; padding: 0 12px; }
  .start-button > span:last-child { display: none; }
  .taskbar-status { min-width: 72px; padding: 0 9px; }
  .network-icon { display: none; }
  .start-menu { left: 5px; width: min(320px, calc(100vw - 10px)); }
  .task-button { max-width: 105px; }
}

/* V4 polish */
.game-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.game-title-row h3 {
  margin: 0;
  min-width: 0;
}
.game-year {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--accent);
  font: 9px var(--font-mono);
  letter-spacing: .7px;
}
.taskbar-status {
  min-width: 218px;
  gap: 10px;
  white-space: nowrap;
}
#taskbar-date {
  color: #d6e8ed;
  font-size: 8px;
  letter-spacing: .4px;
}
#taskbar-clock {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 680px) {
  .taskbar-status {
    min-width: 142px;
    gap: 7px;
    padding: 0 8px;
  }
  #taskbar-date { font-size: 7px; }
  #taskbar-clock { font-size: 8px; }
}

/* V5 library cards + launch actions */
.library-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.library-card .game-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 210px;
}
.library-card .game-info > p {
  min-height: 52px;
  margin-bottom: 12px;
}
.library-card .game-tags {
  min-height: 46px;
  align-content: flex-start;
}
.game-action-slot {
  display: flex;
  align-items: flex-end;
  min-height: 42px;
  margin-top: auto;
  padding-top: 12px;
}
.game-action {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid rgba(255,177,42,.34);
  background: rgba(255,177,42,.10);
  color: var(--accent);
  text-decoration: none;
  font: 9px var(--font-mono);
  letter-spacing: .7px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.game-action::after { content: "LAUNCH"; color: rgba(255,255,255,.42); font-size: 7px; letter-spacing: 1px; }
.game-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110a;
}
.game-action:hover::after { color: rgba(20,17,10,.58); }
.game-action.disabled {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
  color: rgba(219,235,239,.42);
  cursor: default;
}
.game-action.disabled::after { content: "OFFLINE"; color: rgba(255,255,255,.20); }
.project-grid.games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .project-grid.games-grid { grid-template-columns: 1fr; }
  .library-card .game-info { min-height: 0; }
  .library-card .game-info > p { min-height: 0; }
  .library-card .game-tags { min-height: 0; }
}
