:root {
  --accent: #20a464;
  --accent-dark: #16834e;
  --accent-light: #e5f7ed;

  --background: #f4faf6;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #f7faf8;

  --text: #17221c;
  --muted: #6c786f;

  --border: #dfe9e3;

  --shadow:
    0 25px 80px rgba(22, 76, 47, 0.18);
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--background);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}


/* =========================
   BOOT SCREEN
========================= */

.boot-screen {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: grid;
  place-items: center;

  background: #f8fcf9;

  transition:
    opacity 0.35s ease;
}

.boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-container {
  text-align: center;
}

.evermint-logo {
  display: grid;
  place-items: center;

  color: white;

  font-weight: 900;

  background:
    linear-gradient(
      145deg,
      var(--accent),
      #59ca8c
    );

  box-shadow:
    0 16px 40px rgba(32, 164, 100, 0.25);
}

.boot-logo {
  width: 78px;
  height: 78px;

  margin: auto;

  border-radius: 23px;

  font-size: 40px;
}

.boot-container h1 {
  margin: 17px 0 3px;

  font-size: 23px;
}

.boot-container p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
}

.boot-loader {
  width: 140px;
  height: 4px;

  margin: 18px auto 0;

  overflow: hidden;

  border-radius: 20px;

  background: #e2eee7;
}

.boot-loader-bar {
  width: 45%;
  height: 100%;

  border-radius: inherit;

  background: var(--accent);

  animation:
    boot-loader 1s infinite ease-in-out;
}

@keyframes boot-loader {

  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }

}


/* =========================
   DESKTOP
========================= */

.desktop {
  position: fixed;
  inset: 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(91, 210, 140, 0.27),
      transparent 28%
    ),

    radial-gradient(
      circle at 85% 75%,
      rgba(32, 164, 100, 0.14),
      transparent 31%
    ),

    linear-gradient(
      135deg,
      #fafffb,
      #e9f7ef 55%,
      #f7fcf8
    );
}

.desktop.wallpaper-meadow {
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(32, 164, 100, 0.23),
      transparent 30%
    ),

    linear-gradient(
      135deg,
      #e6f7ec,
      #ccefd9,
      #f5fcf7
    );
}

.desktop.wallpaper-white {
  background: #fbfdfb;
}


/* =========================
   DESKTOP ICONS
========================= */

.desktop-icons {
  position: absolute;

  left: 22px;
  top: 22px;

  display: flex;
  flex-direction: column;

  gap: 17px;

  z-index: 2;
}

.desktop-icon {
  width: 78px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 7px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  font-size: 12px;
}

.desktop-icon-image {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.84);

  border:
    1px solid rgba(30, 90, 55, 0.10);

  box-shadow:
    0 8px 22px rgba(22, 80, 49, 0.10);

  font-size: 25px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.desktop-icon:hover .desktop-icon-image {
  transform: translateY(-3px);

  box-shadow:
    0 13px 28px rgba(22, 80, 49, 0.15);
}


/* =========================
   WINDOWS
========================= */

.window {
  position: absolute;

  left: 50%;
  top: 46%;

  width:
    min(
      1120px,
      calc(100vw - 42px)
    );

  height:
    min(
      710px,
      calc(100vh - 105px)
    );

  transform:
    translate(-50%, -50%);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--surface);

  border:
    1px solid rgba(25, 84, 51, 0.12);

  border-radius: 18px;

  box-shadow: var(--shadow);

  backdrop-filter: blur(22px);

  z-index: 10;

  animation:
    window-open 0.18s ease-out;
}

@keyframes window-open {

  from {
    opacity: 0;
    transform:
      translate(-50%, -48%)
      scale(0.985);
  }

  to {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      scale(1);
  }

}

.window.active {
  z-index: 100;
}

.window.maximized {
  inset:
    12px
    12px
    69px
    12px;

  width: auto;
  height: auto;

  transform: none;
}


/* =========================
   TITLEBAR
========================= */

.window-titlebar {
  height: 50px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    0
    9px
    0
    17px;

  background:
    rgba(255, 255, 255, 0.78);

  border-bottom:
    1px solid var(--border);

  user-select: none;
}

.window-title {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 13px;
}

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

.window-controls button {
  width: 35px;
  height: 31px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  cursor: pointer;

  font-size: 17px;
}

.window-controls button:hover {
  background: #edf3ef;
}

.window-controls .window-close:hover {
  color: white;

  background: #e95b68;
}


/* =========================
   GAMES
========================= */

.window-content {
  flex: 1;

  min-height: 0;

  overflow: hidden;
}

.games-layout {
  display: flex;
}

.games-sidebar {
  width: 192px;

  flex-shrink: 0;

  padding: 20px 12px;

  background:
    rgba(247, 251, 248, 0.86);

  border-right:
    1px solid var(--border);
}

.sidebar-label {
  padding:
    0
    10px
    9px;

  color: #89958d;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: 0.14em;
}

.category-label {
  margin-top: 23px;
}

.sidebar-item {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px;

  border: 0;
  border-radius: 9px;

  background: transparent;

  color: var(--muted);

  text-align: left;

  cursor: pointer;

  font-size: 12px;
}

.sidebar-item:hover,
.sidebar-item.active {
  color: var(--accent-dark);

  background: var(--accent-light);

  font-weight: 700;
}

.games-main {
  flex: 1;

  min-width: 0;

  padding: 27px;

  overflow: auto;
}

.games-header {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 23px;
}

.eyebrow {
  color: var(--accent-dark);

  font-size: 9px;

  font-weight: 850;

  letter-spacing: 0.15em;
}

.games-header h1 {
  margin:
    5px
    0
    4px;

  font-size: 29px;

  letter-spacing: -0.04em;
}

.games-header p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
}

.game-search {
  width: min(290px, 40%);
  height: 42px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 0 12px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  background: white;

  color: #849188;
}

.game-search input {
  width: 100%;

  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);
}


/* =========================
   GAME GRID
========================= */

.game-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(178px, 1fr)
    );

  gap: 15px;
}

.game-card {
  position: relative;

  min-width: 0;

  overflow: hidden;

  padding: 0;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background: white;

  cursor: pointer;

  text-align: left;

  box-shadow:
    0 5px 18px rgba(28, 71, 46, 0.05);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);

  border-color: #a7d8ba;

  box-shadow:
    0 14px 30px rgba(28, 91, 54, 0.12);
}

.game-cover {
  height: 112px;

  display: grid;
  place-items: center;

  font-size: 40px;

  background:
    linear-gradient(
      135deg,
      #e9f8ef,
      #d6f0df
    );
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-cover-emoji {
  display: inline-block;
  line-height: 1;
}

.game-cover.cover-1 {
  background:
    linear-gradient(
      135deg,
      #eef8f0,
      #e1f2e7
    );
}

.game-cover.cover-2 {
  background:
    linear-gradient(
      135deg,
      #f0faf4,
      #d0ecd9
    );
}

.game-cover.cover-3 {
  background:
    linear-gradient(
      135deg,
      #e5f6eb,
      #edf9f1
    );
}

.game-info {
  padding:
    11px
    12px
    13px;
}

.game-name {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 13px;

  font-weight: 800;
}

.game-category {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
}

.favorite-button {
  position: absolute;

  right: 8px;
  top: 8px;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(255, 255, 255, 0.8);

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.88);

  cursor: pointer;

  color: #819087;

  font-size: 14px;
}

.favorite-button.active {
  color: var(--accent-dark);
}


/* =========================
   BROWSER
========================= */

.browser-content {
  display: flex;
  flex-direction: column;

  background: #f8fbf9;
}

.browser-toolbar {
  display: flex;

  gap: 7px;

  padding: 10px;

  background: white;

  border-bottom:
    1px solid var(--border);
}

.browser-toolbar button {
  width: 35px;
  height: 34px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  background: white;

  cursor: pointer;
}

.browser-toolbar button:hover {
  background: var(--accent-light);
}

.browser-toolbar input {
  flex: 1;

  min-width: 0;

  padding: 0 12px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  outline: 0;
}

.browser-go {
  width: 48px !important;

  color: white;

  background: var(--accent) !important;

  border-color:
    var(--accent) !important;
}

.browser-view {
  flex: 1;

  overflow: hidden;
}

.browser-home {
  height: 100%;

  display: grid;

  place-content: center;

  text-align: center;

  color: var(--muted);
}

.browser-home-logo {
  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  margin: auto;

  border-radius: 20px;

  background: var(--accent-light);

  font-size: 30px;
}

.browser-home h2 {
  margin:
    13px
    0
    5px;

  color: var(--text);
}

.browser-home p {
  margin: 0;

  font-size: 12px;
}

.browser-home small {
  margin-top: 8px;
}

.browser-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.scramjet-settings-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scramjet-settings-wrap input[type="url"] {
  min-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.scramjet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
}


/* =========================
   SETTINGS
========================= */

.settings-content {
  max-width: 760px;

  padding: 30px;

  overflow: auto;
}

.settings-heading {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 25px;
}

.settings-logo {
  width: 53px;
  height: 53px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      var(--accent),
      #58c88b
    );

  color: white;

  font-size: 25px;
}

.settings-heading h1 {
  margin:
    3px
    0
    0;

  font-size: 26px;
}

.setting-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 0;

  border-bottom:
    1px solid var(--border);
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row strong {
  font-size: 13px;
}

.setting-row span {
  margin-top: 4px;

  color: var(--muted);

  font-size: 11px;
}

.setting-row input[type="color"] {
  width: 48px;
  height: 34px;

  padding: 3px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  background: white;
}

.setting-row select {
  padding:
    8px
    10px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  background: white;
}

.reset-settings {
  margin-top: 24px;

  padding:
    10px
    13px;

  border:
    1px solid #efc8cc;

  border-radius: 8px;

  background: #fff5f5;

  color: #b33e49;

  cursor: pointer;
}


/* =========================
   START MENU
========================= */

.start-menu {
  position: absolute;

  left: 11px;
  bottom: 74px;

  width: 305px;

  padding: 10px;

  border:
    1px solid rgba(23, 76, 48, 0.12);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(22px);

  box-shadow: var(--shadow);

  z-index: 500;
}

.start-header {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 9px;
}

.start-logo {
  width: 37px;
  height: 37px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      var(--accent),
      #51c787
    );

  color: white;

  font-size: 18px;
  font-weight: 900;
}

.start-header strong,
.start-header span {
  display: block;
}

.start-header span {
  margin-top: 2px;

  color: var(--muted);

  font-size: 10px;
}

.start-search {
  display: flex;

  align-items: center;

  gap: 7px;

  margin:
    4px
    0
    8px;

  padding:
    9px
    10px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  color: #8a978e;
}

.start-search input {
  width: 100%;

  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;
}

.start-menu > button {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px;

  border: 0;
  border-radius: 9px;

  background: transparent;

  text-align: left;

  cursor: pointer;
}

.start-menu > button:hover {
  background: var(--accent-light);
}

.start-app-icon {
  font-size: 20px;
}

.start-menu small {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 10px;
}


/* =========================
   TOAST
========================= */

.toast {
  position: absolute;

  right: 23px;
  bottom: 77px;

  padding:
    11px
    14px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background: white;

  box-shadow: var(--shadow);

  font-size: 12px;

  opacity: 0;

  transform: translateY(7px);

  pointer-events: none;

  transition:
    opacity 0.2s,
    transform 0.2s;

  z-index: 1000;
}

.toast.show {
  opacity: 1;

  transform: translateY(0);
}


/* =========================
   TASKBAR
========================= */

.taskbar {
  position: absolute;

  left: 11px;
  right: 11px;
  bottom: 10px;

  height: 54px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 7px;

  border:
    1px solid rgba(24, 81, 50, 0.12);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.86);

  backdrop-filter: blur(22px);

  box-shadow:
    0 10px 30px rgba(30, 79, 50, 0.12);

  z-index: 800;
}

.start-button {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  border: 0;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      var(--accent),
      #51c787
    );

  color: white;

  font-size: 18px;
  font-weight: 900;

  cursor: pointer;
}

.taskbar-apps {
  display: flex;

  gap: 4px;

  flex: 1;
}

.taskbar-app {
  height: 40px;

  padding:
    0
    12px;

  border: 0;

  border-radius: 9px;

  background: transparent;

  color: var(--muted);

  cursor: pointer;

  font-size: 12px;
}

.taskbar-app:hover,
.taskbar-app.active {
  color: var(--accent-dark);

  background: var(--accent-light);
}

.system-tray {
  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--muted);

  font-size: 11px;
}

.online-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #2db36d;
}


/* =========================
   REDUCED MOTION
========================= */

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;

  transition: none !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .desktop-icons {
    left: 8px;
    top: 10px;

    flex-direction: row;

    gap: 3px;
  }

  .desktop-icon {
    width: 64px;

    font-size: 10px;
  }

  .desktop-icon-image {
    width: 44px;
    height: 44px;

    border-radius: 13px;

    font-size: 21px;
  }

  .window {
    left: 7px;
    top: 7px;

    width:
      calc(100vw - 14px);

    height:
      calc(100vh - 76px);

    transform: none;

    border-radius: 14px;
  }

  .window.maximized {
    inset:
      7px
      7px
      62px;
  }

  .games-sidebar {
    width: 124px;
  }

  .games-main {
    padding: 17px;
  }

  .games-header {
    align-items: stretch;

    flex-direction: column;
  }

  .game-search {
    width: 100%;
  }

  .game-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 10px;
  }

  .game-cover {
    height: 90px;
  }

  .online-text {
    display: none;
  }

}
