:root {
  --taskbar-height: 52px;
  --bg: #e8e2d9;
  --surface: rgba(255,255,255,0.75);
  --surface-solid: #f5f1eb;
  --border: rgba(0,0,0,0.12);
  --text: #1a1410;
  --text-muted: #7a6f63;
  --accent: #c4622d;
  --accent2: #4a7c59;
  --accent3: #6b4f8a;
  --accent4: #d97a3e;
  --accent5: #2b8fa3;
  --accent6: #c9a142;
  --accent7: #5a4fa5;
  --accent8: #a85e7e;
  --taskbar-bg: rgba(240,235,228,0.85);
  --titlebar: rgba(220,213,203,0.9);
  --shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  --icon-bg: rgba(255,255,255,0.6);
}
[data-theme="dark"] {
  --bg: #1a1612;
  --surface: rgba(40,33,26,0.88);
  --surface-solid: #2a2318;
  --border: rgba(255,255,255,0.1);
  --text: #f0e8dc;
  --text-muted: #b7aa9d;
  --accent: #e07a45;
  --accent2: #6aab7a;
  --accent3: #9b7ec8;
  --accent4: #f39056;
  --accent5: #4bb4d4;
  --accent6: #e8c153;
  --accent7: #8375d4;
  --accent8: #d888ad;
  --taskbar-bg: rgba(20,16,12,0.9);
  --titlebar: rgba(30,25,18,0.95);
  --shadow: 0 8px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --icon-bg: rgba(255,255,255,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Mono', monospace;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  cursor: default;
}

/* Desktop background */
#desktop {
  position: fixed;
  inset: 0;
  bottom: var(--taskbar-height);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196,98,45,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(74,124,89,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(107,79,138,0.07) 0%, transparent 70%);
  overflow: hidden;
}

/* Desktop grid pattern */
#desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

/* Icons */
#icon-grid {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 80px;
  padding: 8px 6px;
  border-radius: 10px;
  transition: background 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.desktop-icon:hover { background: rgba(196, 104, 55, 0.12); }
.desktop-icon:active { background: rgba(196, 104, 55, 0.12); }

.icon-emoji {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.desktop-icon:hover .icon-emoji { transform: scale(1.15) translateY(-2px); }

.icon-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.desktop-icon-spacer {
  visibility: hidden;
  pointer-events: none;
}

.desktop-icon-dino {
  margin-top: 18px;
}

/* Taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background: var(--taskbar-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 9999;
}

#taskbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

#taskbar-clock {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  min-width: 80px;
  text-align: right;
}

#darkmode-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--icon-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
#darkmode-btn:hover { background: rgba(196,98,45,0.15); transform: scale(1.05); }

.taskbar-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--icon-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
  max-width: 140px;
}
.taskbar-btn:hover { background: rgba(196,98,45,0.12); color: var(--text); }
.taskbar-btn.active {
  background: rgba(196,98,45,0.2);
  color: var(--accent);
  border-color: rgba(196,98,45,0.3);
}
.taskbar-btn .tb-icon { font-size: 14px; }
.taskbar-btn .tb-label { overflow: hidden; text-overflow: ellipsis; }

/* Windows */
.window {
  position: absolute;
  min-width: 320px;
  min-height: 200px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--taskbar-height) - 24px);
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.window:not(.focused) { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.window.hidden { display: none; }
.window.minimized { display: none; }

/* Title bar */
.titlebar {
  height: 40px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  cursor: grab;
  flex-shrink: 0;
}
.titlebar:active { cursor: grabbing; }

.window-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.wc {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.wc:hover { transform: scale(1.15); }
.wc-close { background: #ff5f56; }
.wc-min { background: #febc2e; }
.wc-max { background: #28c840; }

.titlebar-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.titlebar-icon { font-size: 14px; }

/* Window content */
.window-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  cursor: se-resize;
  opacity: 0.4;
}
.resize-handle::after {
  content: '⌟';
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Content styles */
.win-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.win-h2 {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.win-h3 {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 8px;
}
.win-p {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.win-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* About window */
.avatar-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(196,98,45,0.3);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* GitHub window */
.github-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--icon-bg);
}
.github-avatar {
  width: 72px;
  height: 72px;
  font-size: 30px;
}
.github-name {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.github-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--accent);
  word-break: break-word;
}
.github-link:hover {
  color: var(--accent3);
}

/* Work window */
.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--icon-bg);
}
.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.project-emoji { font-size: 20px; }
.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.project-year {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.project-body { padding: 10px 14px; }
.project-desc {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Q&A window */
.qa-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.qa-item {
  border: 1px solid var(--border);
  background: var(--icon-bg);
  border-radius: 10px;
  padding: 9px 10px;
}
.qa-q {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 4px;
}
.qa-a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.95;
}

/* Skills window */
.skill-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.skill-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--icon-bg);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 1;
  color: var(--text-muted);
}
.skill-icon-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

:is(.tag, .skill-icon-pill).accent { background: rgba(196,98,45,0.12); border-color: rgba(196,98,45,0.25); color: var(--accent); }
:is(.tag, .skill-icon-pill).accent2 { background: rgba(74,124,89,0.12); border-color: rgba(74,124,89,0.25); color: var(--accent2); }
:is(.tag, .skill-icon-pill).accent3 { background: rgba(107,79,138,0.12); border-color: rgba(107,79,138,0.25); color: var(--accent3); }
:is(.tag, .skill-icon-pill).accent4 { background: rgba(217,122,62,0.12); border-color: rgba(217,122,62,0.25); color: var(--accent4); }
:is(.tag, .skill-icon-pill).accent5 { background: rgba(43,143,163,0.12); border-color: rgba(43,143,163,0.25); color: var(--accent5); }
:is(.tag, .skill-icon-pill).accent6 { background: rgba(201,161,66,0.12); border-color: rgba(201,161,66,0.25); color: var(--accent6); }
:is(.tag, .skill-icon-pill).accent7 { background: rgba(90,79,165,0.12); border-color: rgba(90,79,165,0.25); color: var(--accent7); }
:is(.tag, .skill-icon-pill).accent8 { background: rgba(168,94,126,0.12); border-color: rgba(168,94,126,0.25); color: var(--accent8); }
.skill-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.skill-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  width: 100px;
  flex-shrink: 0;
}
.skill-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transform-origin: left;
  animation: skillIn 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform: scaleX(0);
}
@keyframes skillIn {
  to { transform: scaleX(1); }
}

/* Window entrance animation */
@keyframes windowOpen {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.window-opening { animation: windowOpen 0.25s cubic-bezier(0.34,1.56,0.64,1); }

/* Scrollbar */
.window-body::-webkit-scrollbar { width: 4px; }
.window-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Status bar dot */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Desktop label */
#desktop-label {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: 'Instrument Serif', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.5;
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
}

#desktop-label:hover {
  opacity: 0.72;
}

/* Welcome hint */
#hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  opacity: 0.25;
  transition: opacity 1s;
}
#hint.gone { opacity: 0; }
#hint-emoji { font-size: 48px; margin-bottom: 12px; }
#hint-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text);
}

/* Notification toast */
#toast {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 16px);
  right: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* Dino window */
.dino-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dino-score {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent2);
  border: 1px solid var(--border);
  background: var(--icon-bg);
  border-radius: 999px;
  padding: 7px 12px;
  letter-spacing: 0.04em;
}

.dino-mobile-note {
  display: none;
  border: 1px solid rgba(196,98,45,0.28);
  background: rgba(196,98,45,0.12);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
}

.dino-stage-wrap {
  width: 100%;
  height: clamp(240px, 46vh, 380px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
}

#dino-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dino-controls {
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.02em;
}

/* Minesweeper window */
.ms-shell {
  --ms-cell-size: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-reset {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ece8df, #d4cfbf);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: #3c352b;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.ms-reset-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.ms-reset-label {
  white-space: nowrap;
}

.ms-reset:active {
  transform: translateY(1px);
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.ms-hud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #c9c4b4;
  border: 1px solid #8b877b;
  padding: 6px;
}

.ms-counter {
  min-width: 86px;
  font-size: 12px;
  color: #f44;
  background: #160d0d;
  border: 1px solid #877f72;
  border-top-color: #786f61;
  border-left-color: #786f61;
  padding: 6px 8px;
  font-family: 'DM Mono', monospace;
}

.ms-counter-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.ms-difficulty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
}

.ms-difficulty-btn,
.ms-flag-mode {
  border: 1px solid #8d877b;
  background: linear-gradient(180deg, #ece8df, #d4cfbf);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0, 0, 0, 0.2);
  color: #413a30;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 6px 8px;
  cursor: pointer;
}

.ms-button-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: -2px;
}

.ms-difficulty-btn:active,
.ms-difficulty-btn.active,
.ms-flag-mode:active,
.ms-flag-mode.active {
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}

.ms-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ms-selected-difficulty {
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.ms-board-wrap {
  border: 1px solid #8a8478;
  background: #c9c4b4;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset -2px -2px 0 rgba(0, 0, 0, 0.2);
  padding: 8px;
  width: fit-content;
  max-width: 100%;
  align-self: center;
  margin-inline: auto;
  overflow: auto;
  max-height: 52vh;
}

.ms-board {
  display: grid;
  gap: 0;
  width: fit-content;
}

.ms-cell {
  width: var(--ms-cell-size);
  height: var(--ms-cell-size);
  border: 1px solid #8f8a7f;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #7f7b71;
  border-bottom-color: #7f7b71;
  background: #d5d0c2;
  color: #1a1612;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.ms-cell-icon {
  width: calc(var(--ms-cell-size) * 0.58);
  height: calc(var(--ms-cell-size) * 0.58);
  display: block;
}

.ms-cell.revealed {
  border: 1px solid #9a9386;
  background: #bfb8a6;
}

.ms-cell.flagged {
  color: #c22;
}

.ms-cell.mine {
  background: #d5b0a8;
}

.ms-cell.exploded {
  background: #e06753;
}

.ms-num {
  line-height: 1;
}

.ms-num-1 { color: #1f4db8; }
.ms-num-2 { color: #2f7a2f; }
.ms-num-3 { color: #a82222; }
.ms-num-4 { color: #2f2b84; }
.ms-num-5 { color: #7d2a2a; }
.ms-num-6 { color: #2f7a7a; }
.ms-num-7 { color: #1f1f1f; }
.ms-num-8 { color: #666; }

.ms-mobile-note {
  display: none;
  border: 1px solid rgba(196,98,45,0.28);
  background: rgba(196,98,45,0.12);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  :root {
    --taskbar-height: 46px;
  }

  #desktop {
    overflow: auto;
  }

  #desktop::before {
    background-size: 28px 28px;
  }

  #icon-grid {
    top: 12px;
    left: 12px;
    gap: 10px;
  }

  .desktop-icon {
    width: 68px;
    padding: 6px 4px;
    gap: 4px;
  }

  .icon-emoji {
    font-size: 24px;
  }

  .icon-label {
    font-size: 9px;
  }

  .desktop-icon-spacer {
    min-height: 46px;
  }

  .desktop-icon-dino {
    margin-top: 10px;
  }

  #taskbar {
    padding: 0 8px;
    gap: 6px;
  }

  .taskbar-btn {
    max-width: 40px;
    padding: 0 8px;
    justify-content: center;
  }

  .taskbar-btn .tb-label {
    display: none;
  }

  #taskbar-clock {
    min-width: 56px;
    font-size: 10px;
  }

  #darkmode-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  #windows-root {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: calc(var(--taskbar-height) + 8px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    pointer-events: none;
    z-index: 200;
  }

  .window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: min(74vh, 620px) !important;
    min-width: 0;
    min-height: 220px;
    max-width: 100%;
    max-height: none;
    margin-top: 0;
    pointer-events: auto;
    border-radius: 12px;
  }

  .window-body {
    padding: 16px;
  }

  .titlebar {
    height: 38px;
    cursor: default;
  }

  .titlebar:active {
    cursor: default;
  }

  .resize-handle {
    display: none;
  }

  .win-h1 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .win-h2 {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .win-h3 {
    font-size: 9px;
    margin: 14px 0 6px;
  }

  .win-p {
    font-size: 11px;
    line-height: 1.7;
  }

  .skill-name {
    width: 88px;
    font-size: 10px;
  }

  #desktop-label,
  #hint {
    display: none;
  }

  #toast {
    left: 8px;
    right: 8px;
    bottom: calc(var(--taskbar-height) + 8px);
    text-align: center;
  }

  .dino-mobile-note {
    display: block;
  }

  .dino-stage-wrap,
  .dino-controls,
  .dino-score {
    display: none;
  }

  .ms-shell {
    --ms-cell-size: 24px;
  }

  .ms-hud-row,
  .ms-toolbar {
    flex-wrap: wrap;
  }

  .ms-counter {
    min-width: 76px;
    font-size: 11px;
    padding: 5px 7px;
  }

  .ms-difficulty-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .ms-difficulty-btn,
  .ms-flag-mode {
    font-size: 9px;
    padding: 6px;
  }

  .ms-board-wrap {
    max-height: 48vh;
  }

  .ms-mobile-note {
    display: block;
  }

  .ms-reset,
  .ms-hud-row,
  .ms-toolbar,
  .ms-board-wrap {
    display: none;
  }
}
