body {
  margin: 0;
  padding: 0;
  font-family: "Tahoma", sans-serif;
  background: #008080;
  color: black;
  overflow: hidden;
}
.window {
  width: 400px;
  min-height: 150px;
  border: 2px solid #000080;
  background: #c0c0c0;
  box-shadow: 2px 2px #808080;
  position: absolute;
  top: 100px;
  left: 100px;
  cursor: default;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.title-bar {
  background: linear-gradient(to right, #000080, #0000cd);
  color: white;
  padding: 3px 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}
.title-bar-buttons span {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #c0c0c0;
  border: 1px solid #000;
  margin-left: 4px;
  text-align: center;
  line-height: 14px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.content {
  flex-grow: 1;
  padding: 10px;
  background: #ffffff;
  overflow: auto;
  user-select: text;
  display: flex;
  flex-direction: column;
  font-family: Tahoma, sans-serif;
}
.start-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: #c0c0c0;
  border-top: 2px solid #808080;
  display: flex;
  align-items: center;
}
.start-button {
  margin: 2px;
  padding: 3px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.start-button img {
  width: 16px;
  height: 16px;
}
.start-button:hover {
  background: #e0e0e0;
}
.start-menu {
  position: fixed;
  bottom: 30px;
  left: 2px;
  width: 180px;
  background: #c0c0c0;
  border: 2px outset #fff;
  display: none;
  flex-direction: column;
  font-size: 14px;
  z-index: 1000;
  user-select: none;
}
.start-menu button {
  padding: 5px 10px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.start-menu button:hover {
  background: #000080;
  color: white;
}
#taskbar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-left: 4px;
}
.taskbar-app {
  margin: 2px;
  padding: 2px 8px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
  z-index: 9999;
  opacity: 0;
  transition: opacity 1s linear;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
/* Minesweeper styles matching Windows Me */
#minesweeper-container {
  user-select: none;
  margin-top: 8px;
}
#minesweeper-info {
  display: flex;
  justify-content: space-between;
  background: black;
  color: red;
  font-weight: bold;
  padding: 2px 6px;
  font-family: "Tahoma", sans-serif;
  font-size: 18px;
  border: 2px inset #c0c0c0;
}
#minesweeper-timer, #minesweeper-mines {
  width: 50px;
  text-align: center;
}
#minesweeper {
  border: 2px inset #c0c0c0;
  background: #c0c0c0;
  margin-top: 2px;
}
#minesweeper table {
  border-collapse: collapse;
}
#minesweeper td {
  width: 18px;
  height: 18px;
  border: 2px outset #fff;
  background: #c0c0c0;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-family: "Tahoma", sans-serif;
  font-size: 14px;
  cursor: pointer;
  line-height: 18px;
  user-select: none;
  padding: 0;
}
#minesweeper td.revealed {
  border-style: solid;
  background: #e0e0e0;
  cursor: default;
  box-shadow: inset 1px 1px 0 #fff;
}
#minesweeper td.flagged {
  color: red;
}
/* Number colors exactly as original */
.num1 { color: blue; }
.num2 { color: green; }
.num3 { color: red; }
.num4 { color: darkblue; }
.num5 { color: brown; }
.num6 { color: cyan; }
.num7 { color: black; }
.num8 { color: gray; }
#message-box {
  margin-top: 8px;
  height: 22px;
  font-family: "Tahoma", sans-serif;
  font-weight: bold;
  color: #000080;
  min-height: 22px;
}
/* ENA shimeji style */
#ena-shimeji {
  position: fixed;
  bottom: 30px;
  right: 10px;
  width: 48px;
  height: 48px;
  user-select: none;
  pointer-events: none;
  z-index: 10000;
  image-rendering: pixelated;
  animation: walk-left-right 4s ease-in-out infinite;
}
@keyframes walk-left-right {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(-40px) scaleX(-1); }
}