:root{
  color-scheme: dark;
  --accent: #8be5cf;
  --accent-rgb: 139,229,207;
  --ink: #eaf5f8;
  --muted: #b4c8d0;
  --line: rgba(165,223,233,.22);
  --panel: #0e2030;
  --base: #07111d;
  --mine-cell-size: 2.5rem;
  font: 15px/1.45 "Segoe UI",Inter,system-ui,sans-serif;
}
*{
  box-sizing: border-box;
}
html,body,.os{
  min-height: 100%;
  height: 100%;
  margin: 0;
}
body{
  background: #07111d;
  color: var(--ink);
}
button,input,select,textarea{
  font: inherit;
}
button{
  cursor: pointer;
}
button:disabled{
  cursor: not-allowed;
  opacity: .55;
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button{
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #193549;
  color: var(--ink);
  padding: .5rem .75rem;
}
button:hover{
  background: #24506a;
}
input,select,textarea{
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #071724;
  color: var(--ink);
  padding: .5rem;
}
textarea{
  resize: vertical;
}
a{
  color: var(--accent);
}
[hidden]{
  display: none!important;
}
.accent{
  color: var(--accent);
}
.eyebrow{
  color: var(--accent);
  letter-spacing: .18em;
  font-size: .73rem;
  font-weight: 700;
}
.boot{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem,9vw,10rem);
  background: radial-gradient(circle at 68% 32%,rgba(var(--accent-rgb),.15),transparent 28rem),linear-gradient(145deg,#07111d,#0d2334);
}
.boot__brand{
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 2rem rgba(var(--accent-rgb),.5);
}
.boot h1{
  font-size: clamp(3rem,8vw,7rem);
  letter-spacing: -.07em;
  line-height: 1;
  margin: .2rem 0 1rem;
}
.boot #boot-line{
  color: var(--muted);
  font-family: ui-monospace,Consolas,monospace;
  min-height: 2.5rem;
}
.boot__fine{
  color: var(--muted);
  font-size: .8rem;
  margin-top: 2.5rem;
}
.boot__fine a {
  color: inherit;
  text-decoration: none;
}

.boot__fine a:hover {
  text-decoration: underline;
}

.boot__fine a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.desktop{
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 23%,rgba(var(--accent-rgb),.17),transparent 35%),radial-gradient(ellipse at 17% 82%,rgba(47,104,152,.22),transparent 40%),linear-gradient(135deg,#07111d,#0d2435 58%,#071522);
}
.desktop[data-wallpaper=ember]{
  background: radial-gradient(circle at 77% 21%,#7b3740,transparent 35%),linear-gradient(145deg,#211725,#482b34 58%,#0e1828);
}
.desktop[data-wallpaper=deep]{
  background: radial-gradient(circle at 51% 72%,#15566b,transparent 34%),linear-gradient(125deg,#050b16,#102937 70%,#040f1b);
}
.desktop[data-scanlines=true]::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(to bottom,transparent 0 3px,rgba(0,0,0,.08) 4px 5px);
}
.wallpaper-mark{
  position: absolute;
  right: 9%;
  top: 24%;
  font-size: clamp(8rem,23vw,24rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.14em;
  color: rgba(201,242,245,.045);
  pointer-events: none;
  user-select: none;
}
.wallpaper-mark span{
  color: rgba(var(--accent-rgb),.09);
}
.desktop-top{
  position: absolute;
  top: 1.4rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: #c0dae1;
}
.desktop-icons{
  position: absolute;
  top: 5rem;
  left: 2rem;
  bottom: 5rem;
  display: grid;
  grid-template-columns: repeat(2,5.5rem);
  align-content: start;
  gap: 1rem;
}
.desktop-icon{
  border: 1px solid transparent;
  background: transparent;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  font-size: .77rem;
  line-height: 1.1;
}
.desktop-icon:hover{
  background: rgba(197,242,246,.08);
  border-color: var(--line);
}
.desktop-icon__glyph{
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(var(--accent-rgb),.4);
  background: linear-gradient(150deg,#244c60,#112a3d);
  border-radius: 1rem;
  color: var(--accent);
  font-size: 1.7rem;
  box-shadow: 0 8px 24px #03091077;
}
.windows{
  position: absolute;
  inset: 0 0 3.6rem;
  pointer-events: none;
}
.window{
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 220px;
  width: 600px;
  height: 440px;
  background: rgba(10,26,39,.97);
  border: 1px solid rgba(var(--accent-rgb),.35);
  border-radius: .8rem;
  box-shadow: 0 22px 80px #020812b3,0 0 0 1px #ffffff0b;
  overflow: hidden;
  pointer-events: auto;
  resize: none;
}
.window[hidden]{
  display: none;
}
.window.active{
  border-color: var(--accent);
}
.window.maximized{
  left: 1rem!important;
  top: 1rem!important;
  width: calc(100% - 2rem)!important;
  height: calc(100% - 2rem)!important;
  resize: none;
}
.resize-handle{
  position: absolute;
  z-index: 2;
  touch-action: none;
  user-select: none;
}
.resize-n,.resize-s{
  left: 16px;
  right: 16px;
  height: 6px;
  cursor: ns-resize;
}
.resize-n{top: 0;}
.resize-s{bottom: 0;}
.resize-e,.resize-w{
  top: 16px;
  bottom: 16px;
  width: 6px;
  cursor: ew-resize;
}
.resize-e{right: 0;}
.resize-w{left: 0;}
.resize-ne,.resize-nw,.resize-se,.resize-sw{
  width: 16px;
  height: 16px;
}
.resize-ne,.resize-sw{cursor: nesw-resize;}
.resize-nw,.resize-se{cursor: nwse-resize;}
.resize-ne{top: 0;right: 0;}
.resize-nw{top: 0;left: 0;}
.resize-se{bottom: 0;right: 0;}
.resize-sw{bottom: 0;left: 0;}
.resize-handle::after{
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.resize-n::after,.resize-s::after{
  left: 20%;
  right: 20%;
  height: 1px;
  bottom: auto;
}
.resize-e::after,.resize-w::after{
  top: 20%;
  bottom: 20%;
  width: 1px;
  right: auto;
}
.resize-ne::after,.resize-nw::after,.resize-se::after,.resize-sw::after{
  background: transparent;
  border: solid var(--accent);
  border-width: 0;
}
.resize-ne::after{border-top-width: 1px;border-right-width: 1px;}
.resize-nw::after{border-top-width: 1px;border-left-width: 1px;}
.resize-se::after{border-bottom-width: 1px;border-right-width: 1px;}
.resize-sw::after{border-bottom-width: 1px;border-left-width: 1px;}
.window > .resize-handle:hover::after,.window.resizing > .resize-handle::after{opacity: .85;}
.window.maximized > .resize-handle{
  display: none;
  pointer-events: none;
}
.window-header{
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.9rem;
  padding: .4rem .6rem;
  background: linear-gradient(90deg,#17394a,#102839);
  border-bottom: 1px solid var(--line);
  cursor: move;
  user-select: none;
  touch-action: none;
}
.window-symbol{
  color: var(--accent);
  font-size: 1.2rem;
}
.window-title{
  font-weight: 750;
  flex: 1;
}
.window-controls{
  display: flex;
  gap: .3rem;
}
.window-controls button{
  width: 2rem;
  height: 1.9rem;
  padding: 0;
  background: transparent;
  border-color: transparent;
}
.window-controls button:hover{
  background: #ffffff18;
}
.window-controls button:last-child:hover{
  background: #a83d4b;
}
.window-body{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}
.window-body h2{
  font-size: 1.25rem;
  margin: .2rem 0 .8rem;
}
.window-body h3{
  font-size: 1rem;
  margin: .6rem 0;
}
.window-body p{
  margin: .4rem 0 1rem;
  color: var(--muted);
}
.window-body .small,.small{
  font-size: .8rem;
  color: var(--muted);
}
.toolbar{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .8rem;
}
.toolbar input{
  min-width: 0;
  flex: 1;
}
.grid-two{
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
}
.grid-two>*{min-width:0}
.file-breadcrumbs{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .8rem}
.file-breadcrumbs button{padding:.25rem .5rem;font-size:.8rem}
.file-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.9rem;line-height:1.6}
#file-list button[aria-current=true]{border-color:var(--accent);background:#24506a}
.browser-page #browser-copy{max-width:48rem;line-height:1.7}
.browser-page nav{margin:1rem 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.browser-page nav button{font-size:.8rem;overflow-wrap:anywhere;min-height:2.8rem}
.list{
  display: grid;
  align-content: start;
  gap: .3rem;
}
.list button{
  text-align: left;
}
.card{
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: 1rem;
  background: #10293a;
}
.taskbar{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.6rem;
  background: rgba(7,18,29,.94);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  z-index: 1000;
  backdrop-filter: blur(14px);
}
.start-button{
  font-weight: 800;
  color: var(--accent);
}
.task-buttons{
  display: flex;
  gap: .35rem;
  min-width: 0;
  flex: 1;
  overflow: auto;
}
.task-buttons button{
  white-space: nowrap;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-buttons button.active{
  border-color: var(--accent);
}
.taskbar-status{
  display: flex;
  gap: 1rem;
  align-items: center;
  white-space: nowrap;
  font-size: .8rem;
  color: var(--muted);
}
.start-menu,.context-menu{
  position: absolute;
  bottom: 4rem;
  left: .8rem;
  width: min(25rem,calc(100vw - 1.6rem));
  max-height: 70vh;
  overflow: auto;
  background: #0e2537;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 1rem;
  box-shadow: 0 25px 70px #000a;
  z-index: 1100;
}
.start-menu h2{
  margin: .2rem 0 1rem;
  font-size: 1rem;
  letter-spacing: .12em;
}
.start-menu__grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: .4rem;
}
.start-menu__grid button{
  text-align: left;
}
.context-menu{
  bottom: auto;
  width: 12rem;
  padding: .4rem;
}
.context-menu button{
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
}
.toast-stack{
  position: absolute;
  right: 1rem;
  bottom: 4.5rem;
  z-index: 1200;
  display: grid;
  gap: .5rem;
  width: min(22rem,calc(100vw - 2rem));
  pointer-events: none;
}
.toast{
  background: #153c4c;
  border: 1px solid var(--accent);
  padding: .7rem 1rem;
  border-radius: .6rem;
  box-shadow: 0 8px 30px #0008;
  pointer-events: auto;
}
.terminal{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #06131b;
  border-radius: .5rem;
  padding: .7rem;
  font-family: ui-monospace,Consolas,monospace;
  font-size: .87rem;
}
.terminal-output{
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #bce5d9;
}
.terminal-line{
  display: flex;
  gap: .45rem;
  align-items: center;
}
.terminal-line label{
  color: var(--accent);
  white-space: nowrap;
}
.terminal-line input{
  flex: 1;
  border: 0;
  background: transparent;
  padding: .5rem 0;
  outline: none;
  color: var(--ink);
}
.note-editor{
  width: 100%;
  min-height: 15rem;
}
.paint-canvas{
  background: #fff;
  max-width: 100%;
  touch-action: none;
  border-radius: .3rem;
}
.mine-grid{
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: 2px;
  overflow: auto;
  padding: .3rem;
  background: #183747;
}
.mine-cell{
  width: var(--mine-cell-size);
  height: var(--mine-cell-size);
  min-width: var(--mine-cell-size);
  padding: 0;
  border-radius: .2rem;
  background: #2c5365;
  font-size: .85rem;
  font-weight: 800;
}
.mine-cell.revealed{
  background: #102736;
  border-color: #224252;
}
.mine-cell.mine{
  background: #9b3c4e;
}
.mine-wrap{
  overflow: auto;
  max-width: 100%;
}
.status-row{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.score-list{
  padding-left: 1.4rem;
}
.meter{
  height: .6rem;
  background: #173143;
  border-radius: 1rem;
  overflow: hidden;
}
.meter span{
  display: block;
  height: 100%;
  background: var(--accent);
}
.app-table{
  width: 100%;
  border-collapse: collapse;
}
.app-table th,.app-table td{
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: .45rem;
}
.achievement-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(12rem,1fr));
  gap: .5rem;
}
.achievement{
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--muted);
}
.achievement.unlocked{
  border-color: var(--accent);
  color: var(--ink);
}
.dialog-backdrop{
  position: absolute;
  inset: 0;
  background: #000a;
  z-index: 1500;
  display: grid;
  place-items: center;
}
.dialog{
  width: min(28rem,90vw);
  padding: 1.5rem;
  background: #10293a;
  border: 1px solid var(--accent);
  border-radius: .8rem;
  box-shadow: 0 24px 80px #000a;
}
.dialog-actions{
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
@media(max-width:700px){
  .desktop-top{
    left: 1rem;
    right: 1rem;
    top: .8rem;
  }
  .desktop-icons{
    top: 3.7rem;
    left: 1rem;
    grid-template-columns: repeat(3,5rem);
    gap: .5rem;
  }
  .window,.window.maximized{
    position: absolute;
    left: 0!important;
    top: 0!important;
    width: 100%!important;
    height: 100%!important;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    resize: none;
  }
  .window > .resize-handle{
    display: none;
    pointer-events: none;
  }
  .window-header{
    cursor: default;
    touch-action: auto;
  }
  .windows{
    bottom: 3.6rem;
  }
  .taskbar-status #network-indicator{
    display: none;
  }
  .taskbar{gap:.35rem;padding:.4rem .5rem}
  .taskbar-status{gap:.45rem;font-size:.7rem}
  .taskbar-status #account-sync{font-size:0;line-height:1}
  .taskbar-status #account-sync::before{content:attr(data-symbol);font-size:.8rem}
  .task-buttons button{
    max-width: 5rem;
  }
  .grid-two{
    grid-template-columns: 1fr;
  }
  .mine-cell{
    --mine-cell-size: 2.25rem;
  }
  .window-body{
    padding: .7rem;
  }
}
.no-motion *, .no-motion *::before, .no-motion *::after{
  animation: none!important;
  transition: none!important;
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation: none!important;
    transition: none!important;
  }
}
@media(prefers-reduced-motion:no-preference){
  .window,.desktop-icon,button{
    transition: background .15s,border-color .15s;
  }
  .toast{
    animation: appear .2s ease-out;
  }
  @keyframes appear{
    from{
      transform: translateY(.5rem);
      opacity: 0;
    }
  }
}

.session-choices{width:min(100%,45rem)}
.session-actions{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}
.session-actions--primary{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;width:min(100%,26rem);align-items:stretch}
.session-actions--primary>button{width:100%;min-height:3.25rem;padding:.75rem 1rem;text-align:left;background:var(--accent);border-color:var(--accent);color:#07111d;font-weight:700}
.session-actions--secondary{gap:.55rem;font-size:.87rem}
.session-choices .boot__fine{margin-top:1.25rem}
.account-profile-form{max-width:30rem;margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel)}
.account-profile-form h2{margin-top:0;font-size:1.2rem}
.account-profile-form label,.account-profile-form input{display:block;width:100%}
.account-profile-form input{margin-top:.4rem}
.account-profile-form button{min-height:2.8rem}
#account-status{max-width:45rem;min-height:2.9em;color:var(--muted)}
.start-session{margin-top:.8rem;border-top:1px solid var(--line);padding-top:.8rem}
.start-session p{font-size:.8rem;color:var(--muted);margin:.35rem 0}
.start-session button{margin:.2rem .35rem .2rem 0}
@media(max-width:700px){.boot{padding:2rem 1.2rem;justify-content:flex-start}.boot__brand{font-size:3.5rem}.session-actions>button{width:100%;text-align:left}.session-actions--secondary>button{width:auto}.desktop-top #session-label{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
