:root {
  --glass: rgba(173, 217, 243, 0.42);
  --glass-strong: rgba(252, 254, 255, 0.96);
  --edge: rgba(13, 63, 99, 0.82);
  --blue: #2da8f0;
  --blue-dark: #0a4e82;
  --text: #18232c;
  --muted: #5f6e79;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --radius: 7px;
  color-scheme: light;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
}

button,
a,
textarea {
  font: inherit;
}

a {
  color: #0a62a3;
}

.desktop {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 26%, rgba(255, 255, 255, 0.92) 0 4%, rgba(197, 237, 255, 0.35) 12%, transparent 30%),
    radial-gradient(ellipse at 77% 78%, rgba(170, 224, 93, 0.75) 0 8%, rgba(79, 161, 68, 0.32) 24%, transparent 42%),
    linear-gradient(135deg, #081a3a 0%, #0e5b9d 33%, #2aa5d7 58%, #72b93f 100%);
}

.desktop::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(114deg, transparent 0 39%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.05) 43%, transparent 46%),
    linear-gradient(65deg, transparent 0 44%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.08) 49%, transparent 52%),
    radial-gradient(ellipse at 50% 52%, transparent 0 18%, rgba(255, 255, 255, 0.16) 19%, transparent 21%),
    radial-gradient(ellipse at 49% 52%, transparent 0 28%, rgba(255, 255, 255, 0.14) 29%, transparent 31%);
  opacity: 0.72;
  pointer-events: none;
}

.desktop::after {
  position: absolute;
  right: -5vw;
  bottom: 80px;
  width: 48vw;
  min-width: 460px;
  aspect-ratio: 1.25;
  content: "";
  background:
    linear-gradient(90deg, transparent 48.5%, rgba(255, 255, 255, 0.74) 49.2%, rgba(255, 255, 255, 0.74) 50.8%, transparent 51.5%),
    linear-gradient(0deg, transparent 48.5%, rgba(255, 255, 255, 0.72) 49.2%, rgba(255, 255, 255, 0.72) 50.8%, transparent 51.5%),
    conic-gradient(from 12deg, rgba(244, 76, 46, 0.66), rgba(246, 177, 34, 0.58), rgba(99, 184, 62, 0.62), rgba(36, 150, 218, 0.64), rgba(244, 76, 46, 0.66));
  filter: blur(0.2px) drop-shadow(0 0 34px rgba(255, 255, 255, 0.34));
  opacity: 0.34;
  transform: perspective(900px) rotateY(-20deg) rotateZ(-7deg);
  pointer-events: none;
}

.desktop-icons {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 18px;
  display: grid;
  grid-template-columns: 92px;
  gap: 12px;
}

.desktop-icon {
  width: 86px;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  border-color: rgba(187, 230, 255, 0.85);
  background: linear-gradient(rgba(255, 255, 255, 0.24), rgba(69, 171, 231, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  outline: none;
}

.icon-art {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 3px auto 6px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.92), inset 0 -10px 16px rgba(0, 0, 0, 0.16), 0 5px 14px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.icon-art.profile { background: linear-gradient(#6fd2ff, #1571b4); }
.icon-art.resume { background: linear-gradient(#fff8cb, #d6a02c); }
.icon-art.projects { background: linear-gradient(#92e0a2, #237a45); }
.icon-art.skills { background: linear-gradient(#d0c6ff, #5e59b8); }
.icon-art.admin { background: linear-gradient(#f9a7a7, #b13f56); }
.icon-art.game { background: linear-gradient(#f0f0f0, #7b8a94); }

.windows {
  position: absolute;
  inset: 0 0 42px;
  z-index: 3;
  pointer-events: none;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: min(780px, calc(100vw - 34px));
  max-height: calc(100vh - 78px);
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.54), rgba(129, 196, 236, 0.18) 36px, rgba(92, 156, 196, 0.34)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  pointer-events: auto;
  backdrop-filter: blur(16px) saturate(1.25);
}

.window.active {
  border-color: rgba(188, 233, 255, 0.98);
  box-shadow: 0 25px 78px rgba(0, 0, 0, 0.5), 0 0 22px rgba(81, 181, 243, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.window.minimized {
  display: none;
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 35px;
  padding: 0 7px 0 12px;
  border-bottom: 1px solid rgba(29, 85, 122, 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.26) 43%, rgba(72, 159, 213, 0.28) 44%, rgba(42, 113, 164, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 24%, rgba(255, 255, 255, 0.28) 76%, transparent);
  cursor: move;
  user-select: none;
}

.titlebar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.titlebar-title span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-control {
  display: grid;
  width: 45px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(29, 77, 107, 0.64);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#fafdff, #cfe5f6 48%, #96bfdc 50%, #dff1fc);
  color: #13324a;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.window-control.close {
  border-color: rgba(115, 24, 15, 0.68);
  background: linear-gradient(#ffd4cc, #e87965 48%, #ba321c 50%, #db664e);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.window-content {
  margin: 0 7px 7px;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(120, 150, 174, 0.7);
  border-radius: 3px;
  background:
    linear-gradient(#ffffff, #f6fbff 74%, #eef7fc),
    var(--glass-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.profile-grid {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.avatar {
  width: 154px;
  aspect-ratio: 1;
  border: 1px solid #b8c7d3;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 38%;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  color: #1b557e;
  font-size: 22px;
}

h3 {
  color: #14384f;
  font-size: 17px;
}

p {
  line-height: 1.55;
}

.tagline {
  margin: 8px 0 14px;
  max-width: 62ch;
  color: #324653;
}

.contact-grid,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-pill,
.glass-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(55, 105, 138, 0.7);
  border-radius: 4px;
  background: linear-gradient(#ffffff, #eaf7ff 45%, #bedef2 47%, #f7fdff);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(15, 58, 88, 0.1);
  color: #15384f;
  padding: 5px 10px;
  text-decoration: none;
}

.glass-button {
  cursor: pointer;
}

.glass-button:hover {
  border-color: #176fa7;
  background: linear-gradient(#fff, #d8f5ff 50%, #abdff9 51%, #f7fdff);
}

.section-list,
.timeline,
.project-list {
  display: grid;
  gap: 14px;
}

.timeline-item,
.project-card,
.info-card {
  border: 1px solid #c4d5e0;
  border-radius: 5px;
  background: linear-gradient(#fff, #f8fcff);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 69, 103, 0.08);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.stack {
  color: #31566d;
  font-weight: 600;
}

ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

li {
  margin: 7px 0;
  line-height: 1.45;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chip {
  border: 1px solid #b8cbd9;
  border-radius: 999px;
  background: linear-gradient(#fff, #e7f3fa);
  padding: 4px 9px;
  color: #28485c;
  font-size: 13px;
}

.taskbar {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(159, 221, 255, 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), transparent 48%, rgba(0, 0, 0, 0.32) 50%),
    linear-gradient(rgba(18, 53, 77, 0.82), rgba(5, 22, 35, 0.92));
  box-shadow: 0 -1px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  padding: 4px 8px;
  backdrop-filter: blur(16px) saturate(1.3);
}

.start-button,
.task-button {
  height: 34px;
  border: 1px solid rgba(147, 207, 240, 0.52);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04) 45%, rgba(0, 0, 0, 0.16) 46%, rgba(98, 183, 235, 0.2)),
    rgba(17, 83, 125, 0.32);
  color: #fff;
  text-shadow: 0 1px 2px #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 9px rgba(0, 0, 0, 0.2);
}

.start-button {
  display: inline-flex;
  min-width: 86px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-weight: 700;
}

.orb {
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, 0.95), transparent 18%),
    conic-gradient(from -18deg, #f04b35 0 25%, #87c848 0 50%, #2b9be7 0 75%, #f8c33d 0);
  box-shadow: 0 0 10px rgba(128, 222, 255, 0.95), inset 0 -3px 5px rgba(0, 0, 0, 0.28);
}

.task-buttons {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.task-button {
  max-width: 190px;
  min-width: 76px;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-button.active {
  border-color: rgba(197, 236, 255, 0.9);
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.1) 44%, rgba(40, 147, 213, 0.28) 46%, rgba(121, 207, 255, 0.36)),
    rgba(33, 137, 196, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 0 12px rgba(94, 197, 255, 0.55);
}

.tray {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: #fff;
  padding-left: 12px;
  font-size: 12px;
  text-align: right;
  text-shadow: 0 1px 2px #000;
}

.start-menu {
  position: absolute;
  z-index: 21;
  bottom: 45px;
  left: 8px;
  width: min(380px, calc(100vw - 18px));
  border: 1px solid rgba(124, 203, 246, 0.8);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.36), rgba(56, 135, 184, 0.18)),
    rgba(34, 83, 116, 0.55);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  padding: 8px;
  backdrop-filter: blur(18px) saturate(1.28);
}

.start-menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.start-menu-list,
.start-menu-side {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  padding: 8px;
}

.start-menu button,
.start-menu a {
  display: flex;
  width: 100%;
  min-height: 33px;
  align-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #163c56;
  padding: 6px 8px;
  text-align: left;
  text-decoration: none;
}

.start-menu button:hover,
.start-menu a:hover {
  background: linear-gradient(#f4fbff, #c6eaff 48%, #91d3f8 50%, #dff5ff);
  box-shadow: inset 0 0 0 1px rgba(54, 149, 205, 0.45);
}

.boot-screen,
.power-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #1c3857, #02060a 62%);
  color: #fff;
  text-align: center;
}

.boot-screen[hidden],
.power-screen[hidden] {
  display: none;
}

.boot-screen.boot-done {
  opacity: 0;
  transition: opacity 450ms ease;
}

.boot-logo {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 5px;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 22px rgba(124, 205, 255, 0.85));
  transform: perspective(500px) rotateY(-14deg);
}

.boot-logo span {
  height: 40px;
}

.boot-logo span:nth-child(1) { background: linear-gradient(#ff8a75, #d53b27); }
.boot-logo span:nth-child(2) { background: linear-gradient(#9ee36f, #3ea83a); }
.boot-logo span:nth-child(3) { background: linear-gradient(#60bfff, #1779ca); }
.boot-logo span:nth-child(4) { background: linear-gradient(#ffe074, #e6a91d); }

.boot-loader {
  width: 180px;
  height: 7px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #314a5d;
  border-radius: 999px;
  background: #05090d;
}

.boot-loader span {
  display: block;
  width: 70px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #65c5ff, transparent);
  animation: boot-progress 1.2s infinite;
}

@keyframes boot-progress {
  from { transform: translateX(-80px); }
  to { transform: translateX(190px); }
}

.power-screen {
  background: #000;
}

.power-screen h1 {
  margin-bottom: 8px;
  color: #fff;
}

.power-screen p {
  margin-bottom: 18px;
  color: #b7c7d4;
}

.mine-app {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #808080;
  background: #bdbdbd;
  box-shadow:
    inset 3px 3px 0 #ffffff,
    inset -3px -3px 0 #7b7b7b,
    0 1px 0 rgba(255, 255, 255, 0.7);
  font-family: Arial, sans-serif;
  user-select: none;
}

.mine-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 264px;
  height: 48px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border: 0;
  background: #c0c0c0;
  box-shadow:
    inset 2px 2px 0 #7b7b7b,
    inset -2px -2px 0 #ffffff;
}

.mine-display {
  display: flex;
  width: 58px;
  height: 34px;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #222;
  background: #050505;
  color: #ff1b1b;
  padding: 2px 5px 0;
  font-family: "Courier New", Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  text-shadow: 0 0 4px rgba(255, 0, 0, 0.65);
  letter-spacing: 1px;
}

.mine-face {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: #c0c0c0;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #7b7b7b;
  color: #111;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.mine-face:active {
  box-shadow:
    inset 2px 2px 0 #7b7b7b,
    inset -1px -1px 0 #ffffff;
  transform: translate(1px, 1px);
}

.mine-face span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #5a4b00;
  border-radius: 50%;
  background: #ffd84a;
  font-size: 17px;
  font-family: Arial, sans-serif;
}

.mine-board {
  display: grid;
  grid-template-columns: repeat(8, 33px);
  width: 264px;
  border: 0;
  background: #bdbdbd;
  box-shadow:
    inset 3px 3px 0 #7b7b7b,
    inset -3px -3px 0 #ffffff;
  padding: 3px;
}

.mine-cell {
  width: 33px;
  height: 33px;
  border: 0;
  background: #c0c0c0;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #7b7b7b;
  color: #0000ff;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 33px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

.mine-cell.open {
  border: 1px solid #808080;
  background: #bdbdbd;
  box-shadow: none;
  line-height: 31px;
  cursor: default;
}

.mine-cell.flagged {
  color: #e00000;
  font-size: 22px;
}

.mine-cell[data-count="2"] { color: #147b2e; }
.mine-cell[data-count="3"] { color: #c42d24; }
.mine-cell[data-count="4"] { color: #34339a; }
.mine-cell[data-count="5"],
.mine-cell[data-count="6"],
.mine-cell[data-count="7"],
.mine-cell[data-count="8"] { color: #5f1f1f; }

.mine-hit {
  background: #ff6b6b !important;
}

.revealed-mine {
  color: #111;
}

.mine-footer {
  width: 264px;
  margin-top: 8px;
  color: #333;
  font-size: 12px;
  text-align: center;
}

.admin-body {
  overflow: auto;
  background:
    radial-gradient(ellipse at 28% 26%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, #081a3a, #0e5b9d 35%, #2aa5d7 58%, #72b93f);
}

.admin-shell {
  width: min(1100px, calc(100vw - 28px));
  margin: 24px auto;
}

.admin-titlebar,
.admin-panel {
  border: 1px solid rgba(124, 203, 246, 0.8);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(146, 207, 242, 0.2)),
    var(--glass);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(16px) saturate(1.25);
}

.admin-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-titlebar p {
  margin: 5px 0 0;
}

.admin-panel {
  background: var(--glass-strong);
}

.lock-card {
  align-items: stretch;
}

.lock-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.lock-form input {
  min-height: 32px;
  width: 180px;
  border: 1px solid #7ea3bc;
  border-radius: 4px;
  padding: 5px 8px;
  background: #fbfdff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#configEditor {
  width: 100%;
  min-height: 66vh;
  resize: vertical;
  border: 1px solid #8aa8bc;
  border-radius: 4px;
  padding: 14px;
  background: #fbfdff;
  color: #152432;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.48;
}

.admin-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #17435d;
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .desktop {
    min-height: 100svh;
    overflow: auto;
    padding-bottom: 52px;
  }

  .desktop-icons {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .windows {
    position: relative;
    inset: auto;
    display: grid;
    gap: 12px;
    padding: 0 10px 12px;
  }

  .window {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-height: none;
  }

  .window.minimized {
    display: none;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 132px;
  }

  .start-menu-inner {
    grid-template-columns: 1fr;
  }

  .tray span:first-child {
    display: none;
  }
}
