* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #000;
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif; font-size: 11px;
  user-select: none; -webkit-user-select: none;
}
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; }
button { font-family: inherit; font-size: 11px; }

/* ---------- Windows flag ---------- */
.flag { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; transform: perspective(200px) rotateY(-14deg) skewY(-4deg); }
.flag i { display: block; border-radius: 18% 30% 18% 30% / 30% 18% 30% 18%; }
.flag i:nth-child(1) { background: linear-gradient(135deg, #ff7b4a, #e8380d); }
.flag i:nth-child(2) { background: linear-gradient(135deg, #b5e04b, #4ea409); }
.flag i:nth-child(3) { background: linear-gradient(135deg, #63c3ff, #0a78d6); }
.flag i:nth-child(4) { background: linear-gradient(135deg, #ffe066, #f3a800); }
.flag.big { width: 92px; height: 82px; }
.flag.med { width: 62px; height: 56px; }
.flag.tiny { width: 18px; height: 16px; transform: skewY(-4deg); gap: 1.5px; }

/* ---------- Boot ---------- */
#boot { background: #000; display: flex; align-items: center; justify-content: center; cursor: none; }
.boot-center { display: flex; flex-direction: column; align-items: center; gap: 70px; margin-top: -40px; }
.boot-logo { display: flex; align-items: center; gap: 16px; }
.boot-word { display: flex; flex-direction: column; color: #fff; font-family: "Franklin Gothic Medium", "Trebuchet MS", Arial, sans-serif; }
.boot-word .ms { font-size: 18px; margin-left: 4px; letter-spacing: .5px; }
.boot-word .ms sup { font-size: 8px; }
.boot-word .wword { font-size: 54px; line-height: 1; letter-spacing: -1px; font-weight: 600; }
.boot-word .wword b { font-size: 34px; color: #ff6b1a; vertical-align: super; font-style: italic; margin-left: 3px; font-family: "Trebuchet MS", Arial, sans-serif; }
.boot-bar { width: 156px; height: 20px; border: 2px solid #b2b2b2; border-radius: 4px; padding: 2px 2px; overflow: hidden; position: relative; }
.boot-blocks { position: absolute; top: 2px; left: -40px; display: flex; gap: 2px; animation: bootSlide 2s linear infinite; }
.boot-blocks i { width: 9px; height: 12px; border-radius: 2px; background: linear-gradient(to bottom, #2838c7, #8197fb 45%, #3c4fe0 55%, #2232b0); }
@keyframes bootSlide { from { left: -40px; } to { left: 160px; } }
.boot-hint { position: absolute; bottom: 20px; width: 100%; text-align: center; color: #444; font-size: 11px; }

/* ---------- Login ---------- */
#login { background: #5a7edc; display: flex; flex-direction: column; color: #fff; }
.login-top { height: 12%; background: #00309c; border-bottom: 2px solid; border-image: linear-gradient(to right, #00309c, #f5f5f5 30%, #f5f5f5 50%, #00309c) 1; }
.login-mid { flex: 1; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 10% 10%, #91b0f3 0%, #5a7edc 45%); }
.login-left { flex: 1; display: flex; flex-direction: column; align-items: flex-end; padding-right: 24px; }
.login-word { font-family: "Franklin Gothic Medium", "Trebuchet MS", Arial; font-size: 40px; font-weight: 600; margin-top: 8px; }
.login-word b { font-size: 24px; color: #ff6b1a; font-style: italic; vertical-align: super; font-family: "Trebuchet MS", Arial; }
.login-hint { font-size: 18px; margin-top: 30px; font-family: "Trebuchet MS", Arial; }
.login-divider { width: 1px; height: 340px; background: linear-gradient(to bottom, transparent, #fff 30%, #fff 70%, transparent); opacity: .8; }
.login-right { flex: 1; padding-left: 24px; }
.user-tile { display: flex; align-items: flex-start; gap: 14px; width: 330px; padding: 10px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.user-tile:hover, .user-tile.active { background: linear-gradient(to right, #00309c, #5a7edc); }
.user-pic { width: 58px; height: 58px; border: 3px solid #fff; border-radius: 5px; background: linear-gradient(135deg, #f8d48a, #d9a446);
  color: #5a3a10; font-size: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-tile:not(.active):not(:hover) .user-pic { border-color: #ffffffaa; opacity: .85; }
.user-name { font-size: 22px; font-family: "Trebuchet MS", Arial; margin-top: 4px; }
.user-signin { display: none; margin-top: 8px; font-size: 12px; }
.user-tile.active .user-signin { display: block; }
.pw-row { display: flex; gap: 6px; margin-top: 4px; align-items: center; }
.pw-row input { width: 170px; height: 24px; border: 1px solid #00309c; border-radius: 3px; padding: 2px 6px; font-size: 13px; }
.go-btn { width: 26px; height: 26px; border: 1px solid #fff; border-radius: 4px; color: #fff; font-size: 15px; font-weight: bold; cursor: pointer;
  background: linear-gradient(to bottom, #6ccc5c, #2e9a1e); }
.go-btn:hover { filter: brightness(1.15); }
.login-bottom { height: 12%; background: #00309c; display: flex; align-items: center; justify-content: space-between; padding: 0 36px;
  border-top: 2px solid; border-image: linear-gradient(to right, #00309c, #ff9a3c 30%, #ff9a3c 50%, #00309c) 1; }
.turnoff { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.turnoff .pwr, .pwr { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 4px;
  background: linear-gradient(to bottom, #f08561, #d23b0c); border: 1px solid #fff; font-size: 14px; color: #fff; }
.turnoff:hover { text-decoration: underline; }
.login-note { font-size: 12px; text-align: right; opacity: .9; }
.welcome-msg { position: absolute; inset: 12% 0; display: flex; align-items: center; justify-content: center; font-size: 56px; font-style: italic;
  font-family: "Franklin Gothic Medium", "Trebuchet MS", Arial; font-weight: bold; text-shadow: 2px 2px 3px #0005;
  background: radial-gradient(ellipse at 10% 10%, #91b0f3 0%, #5a7edc 45%); }

/* ---------- Desktop / Bliss ---------- */
#desktop { overflow: hidden; }
.bliss { position: absolute; inset: 0;
  background: linear-gradient(to bottom, #2d63d4 0%, #4b8ae8 25%, #8dbcf2 55%, #c7e0f8 70%); }
.dicon.dragging { opacity: .6; z-index: 5; }
.marquee { position: absolute; z-index: 4; background: #316ac540; border: 1px solid #316ac5; pointer-events: none; }
.bliss, #icons { touch-action: none; user-select: none; }
.bliss-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bliss-photo { position: absolute; inset: 0; background: url(bliss.jpg) center / cover no-repeat; }
.dicon.lnk .ii { position: relative; }
.dicon.lnk .ii::after { content: '↗'; position: absolute; left: -2px; bottom: -2px; width: 12px; height: 12px; font-size: 10px; line-height: 12px; text-align: center; background: #fff; color: #000; border: 1px solid #777; }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(ellipse, #fffffff0 0%, #ffffff90 40%, transparent 70%); filter: blur(6px); }
.c1 { width: 520px; height: 140px; top: 12%; left: 8%; }
.c2 { width: 380px; height: 110px; top: 6%; left: 55%; }
.c3 { width: 650px; height: 160px; top: 34%; left: 35%; opacity: .8; }
.hill { position: absolute; left: -25%; right: -10%; top: 58%; height: 120%; border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  background: radial-gradient(ellipse at 40% 8%, #8fd448 0%, #5cad1e 25%, #3e8a10 55%, #2e6e0a 80%);
  box-shadow: 0 -4px 30px #b5e86b80 inset; transform: rotate(-3deg); }

#icons { position: absolute; inset: 0 0 30px 0; }
.dicon { position: absolute; width: 76px; padding: 4px 2px; touch-action: none; user-select: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: default; }
.dicon .ii { font-size: 32px; line-height: 36px; height: 36px; filter: drop-shadow(1px 2px 1px #0006); }
.dicon .il { color: #fff; text-align: center; font-size: 11px; text-shadow: 1px 1px 1px #000, 0 0 3px #000; padding: 0 2px; line-height: 13px; }
.dicon.sel .il { background: #316ac5; text-shadow: none; outline: 1px dotted #fff; }
.dicon.sel .ii { filter: drop-shadow(1px 2px 1px #0006) brightness(.75) sepia(1) hue-rotate(180deg) saturate(3); }

/* ---------- Taskbar ---------- */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; z-index: 9000;
  background: linear-gradient(to bottom, #3168d5 0%, #4993e6 6%, #2157d7 20%, #2663e0 60%, #245dd7 92%, #1941a5 100%); }
#startBtn { height: 30px; padding: 0 22px 0 10px; display: flex; align-items: center; gap: 5px; border: none; cursor: pointer;
  border-radius: 0 10px 10px 0; color: #fff; font-family: "Franklin Gothic Medium", "Trebuchet MS", Arial; font-size: 19px; font-style: italic; font-weight: bold;
  text-shadow: 1px 1px 2px #0008; box-shadow: 2px 0 4px #0006 ;
  background: linear-gradient(to bottom, #3c8f3c 0%, #5eb35e 10%, #3c9b3c 25%, #2f8a2f 70%, #1e6e1e 100%); }
#startBtn:hover { filter: brightness(1.1); }
#startBtn.on { filter: brightness(.85); }
#startBtn .flag { transform: skewY(-4deg); filter: drop-shadow(1px 1px 1px #0008); }
#tasks { flex: 1; display: flex; gap: 3px; padding: 3px 8px; overflow: hidden; }
.task { width: 160px; min-width: 40px; height: 24px; border-radius: 3px; color: #fff; display: flex; align-items: center; gap: 5px; padding: 0 8px;
  background: #3c81f3; box-shadow: inset -1px 0 #0003, inset 1px 1px #ffffff40; cursor: default; overflow: hidden; white-space: nowrap; }
.task span.t { overflow: hidden; text-overflow: ellipsis; }
.task:hover { background: #53a3ff; }
.task.active { background: #1e52b7; box-shadow: inset 1px 1px 2px #0008; }
#tray { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #fff; border-left: 1px solid #092e9e;
  background: linear-gradient(to bottom, #0c59b9 0%, #139ee9 6%, #18b9ff 12%, #139beb 50%, #1290e8 92%, #0d8dea 100%); box-shadow: inset 1px 0 #1ed7ff; }
.tray-ico { font-size: 13px; }
#clock { margin-left: 4px; }

/* ---------- Start menu ---------- */
#startmenu { position: absolute; left: 0; bottom: 30px; width: 380px; z-index: 9500; border-radius: 8px 8px 0 0; overflow: visible;
  box-shadow: 2px -2px 10px #0008; background: #4282d6; }
.sm-head { height: 56px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: #fff; font-size: 15px; font-weight: bold;
  font-family: "Trebuchet MS", Arial; text-shadow: 1px 1px 2px #0008; border-radius: 8px 8px 0 0;
  background: linear-gradient(to bottom, #1868ce 0%, #0e60cb 12%, #0e60cb 30%, #2c75d2 70%, #4282d6 100%); }
.user-pic.small { width: 42px; height: 42px; font-size: 28px; border-width: 2px; }
.sm-body { display: flex; border-top: 2px solid; border-image: linear-gradient(to right, transparent, #ff9a3c, transparent) 1; }
.sm-left { width: 50%; background: #fff; padding: 6px 0; display: flex; flex-direction: column; }
.sm-right { width: 50%; background: #d3e5fa; padding: 6px 0; border-left: 1px solid #95bdee; }
.sm-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; cursor: default; color: #000; }
.sm-item .ico { font-size: 22px; width: 26px; text-align: center; }
.sm-left .sm-item .ico { font-size: 26px; width: 32px; }
.sm-item b { display: block; }
.sm-item small { color: #888; }
.sm-right .sm-item { color: #00136b; padding: 3px 8px; }
.sm-right .sm-item .ico { font-size: 18px; }
.sm-item:hover { background: #316ac5; color: #fff; }
.sm-item:hover small { color: #fff; }
.sm-sep { height: 1px; margin: 4px 8px; background: linear-gradient(to right, transparent, #c5c2b2, transparent); }
.sm-allprogs { margin-top: auto; justify-content: center; font-weight: bold; }
.sm-allprogs .arrow { display: inline-block; width: 18px; height: 18px; border-radius: 3px; background: #3aa83a; color: #fff; text-align: center; line-height: 18px; }
.sm-foot { height: 40px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 0 10px; color: #fff;
  background: linear-gradient(to bottom, #4282d6, #3b77d0 40%, #1e5fc2); }
.sm-foot-btn { display: flex; align-items: center; gap: 4px; padding: 3px 4px; cursor: default; }
.sm-foot-btn:hover { background: #ffffff30; border-radius: 3px; }
.sm-foot-btn .ico { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid #fff; }
.sm-foot-btn .key { background: linear-gradient(to bottom, #f3c34a, #d38b00); }

.menu { position: absolute; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 3px #0006; padding: 2px; z-index: 9800; min-width: 160px; }
.menu .mi { padding: 4px 20px 4px 8px; display: flex; gap: 8px; align-items: center; cursor: default; white-space: nowrap; }
.menu .mi .ico { width: 18px; text-align: center; font-size: 14px; }
.menu .mi:hover { background: #316ac5; color: #fff; }
.menu .mi.dis { color: #aca899; }
.menu .msep { height: 1px; background: #aca899; margin: 3px 2px; }
#allprogs { left: 100%; bottom: 40px; background: #fff; border-left: 3px solid #316ac5; }

/* ---------- Balloon ---------- */
#balloon { position: absolute; right: 12px; bottom: 40px; width: 270px; padding: 8px 12px; background: #ffffe1; border: 1px solid #000; border-radius: 8px;
  z-index: 9100; box-shadow: 2px 2px 4px #0005; cursor: pointer; }
#balloon::after { content: ""; position: absolute; right: 60px; bottom: -12px; border: 12px solid transparent; border-top-color: #ffffe1; border-bottom: 0; border-right: 0; }
#balloon p { margin: 6px 0 0; }
.balloon-x { position: absolute; right: 6px; top: 4px; font-size: 10px; border: 1px solid #aaa; border-radius: 3px; padding: 0 3px; }

/* ---------- Windows ---------- */
.win { position: absolute; display: flex; flex-direction: column; min-width: 200px; min-height: 120px; padding: 0 3px 3px;
  background: #0831d9; border-radius: 8px 8px 0 0; box-shadow: 2px 2px 8px #0006;
  background: linear-gradient(to right, #0846d8, #0058ee 3%, #0058ee 97%, #0846d8); }
.win.inactive { background: #7a96df; }
.win.max { border-radius: 0; }
.titlebar { height: 28px; display: flex; align-items: center; gap: 4px; padding: 0 2px 0 4px; color: #fff; flex-shrink: 0;
  font-family: "Trebuchet MS", Tahoma, Arial; font-weight: bold; font-size: 13px; text-shadow: 1px 1px #0f1089; border-radius: 8px 8px 0 0;
  background: linear-gradient(to bottom, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7 100%); margin: 0 -3px; }
.win.inactive .titlebar { background: linear-gradient(to bottom, #7697e7, #7e9ee3 10%, #94afe8 80%, #8da5e3); color: #d8e4f8; text-shadow: none; }
.win.max .titlebar { border-radius: 0; }
.titlebar, .resizer, .p-canvas-wrap canvas { touch-action: none; }
.titlebar .ti { font-size: 15px; }
.titlebar .tt { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-btn { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; color: #fff; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 80% 90%, #0054e9, #2263d5 40%, #4683ee 80%, #6696eb); cursor: default; font-size: 12px; font-weight: bold; padding: 0; }
.tb-btn:hover { filter: brightness(1.2); }
.tb-btn.close { background: radial-gradient(circle at 90% 90%, #cc4600, #dc6527 50%, #e7703b 70%, #f19f7e); }
.win.inactive .tb-btn { opacity: .6; }
.win-body { flex: 1; background: #ece9d8; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.resizer { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; }
.menubar { display: flex; background: #ece9d8; border-bottom: 1px solid #fff; flex-shrink: 0; position: relative; }
.menubar > div { padding: 3px 7px; cursor: default; }
.menubar > div:hover, .menubar > div.open { background: #316ac5; color: #fff; }

.xp-btn { min-width: 75px; height: 23px; padding: 0 10px; border: 1px solid #003c74; border-radius: 3px; cursor: default;
  background: linear-gradient(to bottom, #fff, #ecebe6 86%, #d6d0c5); }
.xp-btn:hover { box-shadow: inset 0 0 0 2px #f8b330; }
.xp-btn:active { background: linear-gradient(to bottom, #e3e3db, #f0f0ea); }
.sunken { border: 1px solid #7f9db9; background: #fff; }

/* ---------- Shutdown ---------- */
#shutdown { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: #00000040; backdrop-filter: grayscale(1); }
.sd-box { width: 312px; background: #5a7edc; border: 1px solid #000; box-shadow: 0 0 12px #0008; }
.sd-head { height: 46px; background: #00309c; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  font-family: "Trebuchet MS", Arial; font-size: 18px; }
.sd-body { display: flex; justify-content: space-around; padding: 28px 10px; color: #fff; background: linear-gradient(to bottom, #6e8fe0, #5a7edc); }
.sd-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.sd-btn { width: 34px; height: 34px; border: 1px solid #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.sd-opt:hover .sd-btn { filter: brightness(1.2); box-shadow: 0 0 6px #fff; }
.sd-btn.yellow { background: linear-gradient(#f9d54a, #d9a000); }
.sd-btn.red { background: linear-gradient(#f08561, #d23b0c); }
.sd-btn.green { background: linear-gradient(#6ccc5c, #2e9a1e); }
.sd-foot { background: #00309c; padding: 10px; text-align: right; }
#off { background: #000; color: #ff9a3c; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; font-family: "Trebuchet MS", Arial; cursor: pointer; }
#off small { color: #666; font-size: 12px; }
#saving { background: #5a7edc; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-family: "Trebuchet MS", Arial; }

/* ================= APPS ================= */
/* Notepad */
.np-text { flex: 1; resize: none; border: none; outline: none; font-family: "Lucida Console", Consolas, monospace; font-size: 13px; padding: 2px 4px;
  border-top: 1px solid #7f9db9; user-select: text; -webkit-user-select: text; }
.np-text.nowrap { white-space: pre; overflow-x: auto; }
.status { height: 20px; border-top: 1px solid #aca899; padding: 3px 6px; flex-shrink: 0; }

/* Calculator */
.calc { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.calc-disp { height: 26px; text-align: right; padding: 4px 6px; font-size: 15px; border: 1px solid #7f9db9; background: #fff; overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.calc-grid button { height: 28px; padding: 0; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(to bottom, #fff, #ecebe6 86%, #d6d0c5); color: #00c; font-size: 13px; }
.calc-grid button.red { color: #d00; }
.calc-grid button:hover { box-shadow: inset 0 0 0 2px #f8b330; }
.calc-grid button:active { background: #d6d0c5; }
.calc-top { display: flex; gap: 5px; }
.calc-top .mem { width: 34px; border: 1px inset #ccc; background: #ece9d8; }
.calc-top button { flex: 1; min-width: 0; padding: 0; height: 28px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(to bottom, #fff, #ecebe6 86%, #d6d0c5); color: #d00; }

/* Minesweeper */
.mine { padding: 6px; background: #c0c0c0; display: inline-flex; flex-direction: column; gap: 6px; border: 3px solid; border-color: #fff #808080 #808080 #fff; margin: 0 auto; }
.ms-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 5px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.ms-led { background: #000; color: #f00; font-family: "Courier New", monospace; font-weight: bold; font-size: 22px; width: 46px; text-align: center; letter-spacing: 1px; line-height: 26px; }
.ms-face { width: 28px; height: 28px; font-size: 18px; border: 2px solid; border-color: #fff #808080 #808080 #fff; background: #c0c0c0; display: flex; align-items: center; justify-content: center; cursor: default; }
.ms-face:active { border-color: #808080 #fff #fff #808080; }
.ms-grid { display: grid; border: 3px solid; border-color: #808080 #fff #fff #808080; }
.ms-cell { width: 18px; height: 18px; border: 2px solid; border-color: #fff #808080 #808080 #fff; background: #c0c0c0; font-weight: bold; font-size: 12px;
  display: flex; align-items: center; justify-content: center; font-family: Verdana, Arial; cursor: default; line-height: 1; }
.ms-cell.open { border: 1px solid #808080; border-width: 0 1px 1px 0; }
.ms-cell.boom { background: #f00; }

/* Paint */
.paint { flex: 1; display: flex; min-height: 0; }
.p-tools { width: 56px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; border-right: 1px solid #aca899; }
.p-tools button { height: 25px; border: 1px solid transparent; background: transparent; font-size: 14px; padding: 0; }
.p-tools button.on { border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; }
.p-tools .p-size { grid-column: span 2; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; border: 1px solid; border-color: #808080 #fff #fff #808080; padding: 3px; }
.p-size div { height: 14px; display: flex; align-items: center; justify-content: center; cursor: default; }
.p-size div.on { background: #316ac5; }
.p-size div i { display: block; width: 30px; background: #000; }
.p-size div.on i { background: #fff; }
.p-canvas-wrap { flex: 1; overflow: auto; background: #808080; padding: 4px; }
.p-canvas-wrap canvas { background: #fff; display: block; cursor: crosshair; box-shadow: 1px 1px 0 #000; }
.p-palette { display: flex; align-items: center; gap: 8px; padding: 4px; border-top: 1px solid #fff; flex-shrink: 0; }
.p-cur { width: 32px; height: 32px; position: relative; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; }
.p-cur i { position: absolute; width: 14px; height: 14px; border: 1px solid #000; }
.p-cur i.fg { left: 4px; top: 4px; z-index: 1; } .p-cur i.bg { right: 4px; bottom: 4px; }
.p-colors { display: grid; grid-template-columns: repeat(14, 16px); grid-template-rows: 16px 16px; gap: 1px; }
.p-colors div { border: 1px solid; border-color: #808080 #fff #fff #808080; }

/* Command prompt */
.cmd { flex: 1; background: #000; color: #c0c0c0; font-family: "Lucida Console", Consolas, monospace; font-size: 13px; padding: 4px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all; user-select: text; -webkit-user-select: text; cursor: text; }
.cmd input { background: transparent; border: none; outline: none; color: inherit; font: inherit; width: 60%; padding: 0; caret-color: currentColor; }

/* Internet Explorer / Explorer */
.ie-bar { display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-bottom: 1px solid #aca899; flex-shrink: 0; }
.ie-bar .nav { display: flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 3px; cursor: default; }
.ie-bar .nav:hover { box-shadow: inset 0 0 0 1px #aca899; background: #f5f4ee; }
.ie-bar .round { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: bold;
  background: radial-gradient(circle at 40% 30%, #9ce78d, #2fa320); font-size: 15px; }
.ie-bar .round.dis { filter: grayscale(1); opacity: .6; }
.ie-addr { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-bottom: 1px solid #aca899; flex-shrink: 0; }
.ie-addr input { flex: 1; height: 20px; border: 1px solid #7f9db9; padding: 0 4px; font-size: 12px; user-select: text; }
.ie-addr .go { display: flex; align-items: center; gap: 3px; cursor: default; padding: 1px 6px; }
.ie-addr .go b { background: #2fa320; color: #fff; border-radius: 3px; padding: 0 3px; }
.ie-frame { flex: 1; border: none; background: #fff; width: 100%; }
.ie-home { flex: 1; overflow: auto; background: #fff; font-family: Verdana, Arial; font-size: 12px; user-select: text; }

.exp { flex: 1; display: flex; min-height: 0; background: #fff; }
.exp-side { width: 190px; padding: 10px; overflow-y: auto; flex-shrink: 0; background: linear-gradient(to bottom, #7ba2e7, #6375d6); }
.exp-box { background: #d6dff7; border-radius: 4px 4px 0 0; margin-bottom: 12px; overflow: hidden; }
.exp-box h4 { margin: 0; padding: 5px 8px; color: #215dc6; background: linear-gradient(to right, #fff, #c6d3f7); font-size: 11px; }
.exp-box div { padding: 3px 8px; color: #215dc6; cursor: pointer; }
.exp-box div:hover { text-decoration: underline; color: #428eff; }
.exp-main { flex: 1; padding: 10px; overflow-y: auto; }
.exp-main h5 { margin: 4px 0 8px; font-size: 11px; border-bottom: 1px solid; border-image: linear-gradient(to right, #70bfff, transparent) 1; padding-bottom: 2px; }
.exp-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.exp-item { width: 200px; display: flex; align-items: center; gap: 6px; padding: 3px; cursor: default; }
.exp-item .ii { font-size: 30px; }
.exp-item small { color: #777; display: block; }
.exp-item:hover { background: #e8eefa; }
.exp-item.sel { background: #316ac5; color: #fff; } .exp-item.sel small { color: #ddd; }

/* Winamp (classic 2.x look) */
.wa { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #282838; color: #00e000; font: 11px Tahoma, Verdana, sans-serif; padding: 4px; gap: 4px; }
.wa-main, .wa-pl { background: linear-gradient(#3a3a52, #23232f); border: 1px solid; border-color: #5a5a78 #14141c #14141c #5a5a78; padding: 6px; }
.wa-lcd { display: flex; gap: 6px; background: #000; border: 1px solid; border-color: #14141c #5a5a78 #5a5a78 #14141c; padding: 5px 6px; }
.wa-left { display: grid; grid-template-columns: 12px auto; align-items: center; column-gap: 4px; width: 88px; flex: none; }
.wa-state { color: #00e000; font-size: 10px; }
.wa-time { font: bold 22px/1 'Courier New', monospace; color: #00ff00; text-shadow: 0 0 4px #00ff0088; letter-spacing: 1px; }
.wa-vis { grid-column: 1 / 3; margin-top: 4px; width: 76px; height: 22px; image-rendering: pixelated; }
.wa-right { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.wa-marq { overflow: hidden; white-space: pre; color: #00ff00; font: 12px 'Courier New', monospace; padding: 2px 0; }
.wa-marq span { display: inline-block; animation: wa-scroll 14s linear infinite; }
@keyframes wa-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wa-meta { color: #00b000; font-size: 9px; }
.wa-meta b { color: #00ff00; font-weight: normal; }
.wa-tag { color: #000; background: #d6b42a; padding: 0 3px; margin-left: 4px; }
.wa-seek { width: 100%; margin: 6px 0 4px; accent-color: #d6b42a; height: 10px; }
.wa-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wa-btns { display: flex; gap: 1px; }
.wa button { background: linear-gradient(#6e6e8c, #3c3c52); color: #e8e8f0; border: 1px solid; border-color: #9a9ab8 #1a1a24 #1a1a24 #9a9ab8; font-size: 11px; min-width: 24px; height: 20px; padding: 0 4px; cursor: pointer; }
.wa button:active { border-color: #1a1a24 #9a9ab8 #9a9ab8 #1a1a24; background: #3c3c52; }
.wa-vol { display: flex; align-items: center; gap: 3px; color: #c8c8d8; font-size: 9px; flex: 1; min-width: 70px; }
.wa-vol input { flex: 1; min-width: 40px; accent-color: #2ad62a; height: 10px; }
.wa button.wa-tog { font-size: 9px; color: #888; }
.wa button.wa-tog.on { color: #00ff00; text-shadow: 0 0 3px #00ff00; }
.wa-plhead { color: #d6d6e6; font-size: 9px; letter-spacing: 2px; text-align: center; background: linear-gradient(#4a4a66, #2a2a3a); padding: 2px; }
.wa-pl { flex: 1; min-height: 60px; overflow-y: auto; background: #000; padding: 2px 0; }
.wa-it { display: flex; gap: 8px; padding: 1px 6px; cursor: pointer; color: #00e000; white-space: nowrap; }
.wa-it span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.wa-it em { font-style: normal; }
.wa-it:hover { background: #10202a; }
.wa-it.on { color: #fff; background: #0000c8; }
.wa-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #9a9ab8; }
.wa-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-msg.err { color: #ff6a5a; }
.wa-store { color: #d6b42a; white-space: nowrap; }
.wa-store:not([href]) { visibility: hidden; }

/* Solitaire */
.sol { flex: 1; background: #008000; position: relative; overflow: auto; padding: 10px; }
.sol-row { display: flex; gap: 10px; }
.slot { width: 71px; height: 96px; border: 1px solid #00b000; border-radius: 4px; position: relative; flex-shrink: 0; }
.slot.found::after { content: "A"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #00b000; font-size: 32px; font-family: Georgia; }
.card { position: absolute; z-index: 1; left: -1px; top: -1px; width: 71px; height: 96px; border-radius: 4px; background: #fff; border: 1px solid #000; cursor: pointer; font-family: Georgia, serif; }
.card .cr { position: absolute; left: 3px; top: 1px; font-size: 13px; font-weight: bold; line-height: 13px; text-align: center; }
.card .cb { position: absolute; right: 3px; bottom: 1px; font-size: 13px; font-weight: bold; line-height: 13px; transform: rotate(180deg); text-align: center; }
.card .cc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.card.red { color: #d00; }
.card.back { background: repeating-linear-gradient(45deg, #1f4fbf 0 4px, #3b6fe0 4px 8px); border: 3px solid #fff; outline: 1px solid #000; }
.card.sel { box-shadow: 0 0 0 3px #ffeb3b; z-index: 50; }
.sol-cols { display: flex; gap: 10px; margin-top: 16px; }
.sol-col { width: 71px; position: relative; min-height: 96px; }
.sol-win { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; font-weight: bold; text-shadow: 2px 2px #000; pointer-events: none; }

/* Dialog */
.dlg { padding: 14px; display: flex; gap: 14px; align-items: flex-start; }
.dlg .big { font-size: 32px; }
.dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 0 0 12px; }

/* Control panel / display */
.cp-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.wall-opts { display: flex; flex-direction: column; gap: 4px; }
.wall-opts label { display: flex; gap: 6px; align-items: center; }

/* ---------- Extras ---------- */
.xp-notify { position: absolute; right: 12px; bottom: 40px; width: 280px; padding: 8px 12px; background: #ffffe1; border: 1px solid #000; border-radius: 8px;
  font-size: 11px; box-shadow: 2px 2px 6px #0006; z-index: 9000; cursor: pointer; animation: pop .25s ease-out; }
.xp-notify::after { content: ""; position: absolute; right: 70px; bottom: -12px; border: 12px solid transparent; border-top-color: #ffffe1; border-bottom: 0; border-right: 0; }
.xp-notify p { margin: 6px 0 0; }
.xp-notify .balloon-x { position: absolute; right: 6px; top: 4px; cursor: pointer; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }

.ph { height: 100%; display: flex; flex-direction: column; background: #1c1c1c; color: #fff; font-family: system-ui, Tahoma, sans-serif; font-size: 13px; overflow: auto; }
.ph-top { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #2c2c2c; }
.ph-top small { display: block; color: #999; font-size: 11px; }
.ph-av { width: 32px; height: 32px; border-radius: 50%; background: #ab9ff2; display: grid; place-items: center; font-size: 18px; }
.ph-bal { text-align: center; padding: 22px 0 14px; }
.ph-amt { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.ph-sub { color: #999; font-size: 12px; margin-top: 4px; }
.ph-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 14px 14px; }
.ph-acts button { background: #2a2a2a; color: #fff; border: 0; border-radius: 10px; padding: 10px 0 8px; font-size: 11px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-acts button span { color: #ab9ff2; font-size: 16px; }
.ph-acts button:hover { background: #333; }
.ph-tabs { display: flex; gap: 16px; padding: 0 14px; border-bottom: 1px solid #2c2c2c; }
.ph-tabs div { padding: 8px 0; color: #888; cursor: pointer; border-bottom: 2px solid transparent; }
.ph-tabs div.on { color: #fff; border-color: #ab9ff2; }
.ph-pane { flex: 1; padding: 10px 14px; }
.ph-row { display: flex; gap: 10px; align-items: center; background: #2a2a2a; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.ph-row small { display: block; color: #999; }
.ph-r { margin-left: auto; font-weight: 600; }
.ph-r.pos { color: #3fd68b; }
.ph-tok { width: 36px; height: 36px; border-radius: 50%; background: #444; display: grid; place-items: center; font-size: 16px; }
.ph-tok.solana { background: linear-gradient(135deg, #9945ff, #14f195); font-weight: bold; }
.ph-tok.in { color: #3fd68b; }
.ph-nft { width: 150px; background: #2a2a2a; border-radius: 10px; padding: 8px; cursor: pointer; }
.ph-nft small { display: block; color: #999; font-size: 11px; }
.ph-nimg { height: 110px; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(to bottom, #2c74e0 0%, #9cc8f4 55%, #6fbf2a 56%, #3e8a10 100%); }
.ph-warn { padding: 8px 14px; font-size: 11px; color: #bbb; background: #241f33; }

.clippy { position: absolute; right: 310px; bottom: 50px; z-index: 8000; display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 640px) { .clippy { right: 12px; bottom: 150px; } }
.clip-bubble { width: 230px; background: #ffffe1; border: 1px solid #000; border-radius: 8px; padding: 8px 10px; font-size: 11px; position: relative; margin-bottom: 10px; }
.clip-bubble::after { content: ""; position: absolute; right: 26px; bottom: -10px; border: 10px solid transparent; border-top-color: #ffffe1; border-bottom: 0; }
.clip-bubble p { margin: 0 0 8px; }
.clip-btns { display: flex; gap: 6px; justify-content: flex-end; }
.clip-body { font-size: 56px; cursor: pointer; animation: bob 2s ease-in-out infinite; filter: drop-shadow(2px 3px 2px #0006); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }

#desktop.barrel { animation: barrel 1.2s ease-in-out; }
@keyframes barrel { to { transform: rotate(360deg); } }
.bsod { position: fixed; inset: 0; z-index: 99999; background: #0000aa; color: #fff; font: 15px/1.35 'Lucida Console', monospace; padding: 40px; cursor: none; }
.bsod p { margin: 0 0 14px; max-width: 900px; }
.saver { position: fixed; inset: 0; z-index: 99998; cursor: none; }

/* ---------- 3D intro ---------- */
#intro { position: fixed; inset: 0; z-index: 100000; background: #04050a; cursor: default; transition: opacity .6s; overflow: hidden; }
#intro .in-cap { position: absolute; left: 16px; bottom: 56px; max-width: min(360px, calc(100% - 32px)); padding: 12px 14px; background: rgba(8,10,18,.78); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: #d9def0; font: 13px/1.45 Tahoma, Verdana, sans-serif; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; pointer-events: none; }
#intro .in-cap.on { opacity: 1; transform: none; }
#intro .in-cap b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
#intro .in-cap i { display: block; margin-top: 8px; font-style: normal; font-size: 11px; color: rgba(217,222,240,.55); }
#intro canvas { display: block; width: 100%; height: 100%; }
#intro .in-fx { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6)), repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
#intro .in-hint { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; color: #cfd8ff; font: 12px/1 Tahoma, Verdana, sans-serif; letter-spacing: .35em; text-transform: uppercase; opacity: 0; transition: opacity 1s; text-shadow: 0 0 8px rgba(120,150,255,.6); pointer-events: none; padding: 0 16px; }
#intro .in-hint.on { opacity: .85; animation: inBlink 1.6s ease-in-out infinite; }
@keyframes inBlink { 50% { opacity: .3; } }
#intro .in-skip { position: absolute; right: 16px; bottom: 16px; background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); font: 11px Tahoma, sans-serif; padding: 6px 12px; border-radius: 3px; cursor: pointer; }
#intro .in-skip:hover { color: #fff; border-color: #fff; }
#intro.go { cursor: default; }
#intro.go .in-hint { opacity: 0; animation: none; }
#intro.out { opacity: 0; pointer-events: none; }

/* ================= Launchpad ================= */
.lp-exp { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lp-exp .exp-box p { margin: 0; padding: 6px 8px; line-height: 1.5; color: #333; }
.lp-vsep { width: 1px; height: 20px; background: #aca899; margin: 0 6px; }
.lp-q { height: 20px; border: 1px solid #7f9db9; padding: 0 4px; width: 160px; user-select: text; }
.lp-main { flex: 1; overflow: auto; background: #fff; }
.lp-narrow .exp-side, .lp-narrow .c-age, .lp-narrow .c-rep, .lp-narrow .c-safe { display: none; }
.lp-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.lp-tbl th { position: sticky; top: 0; background: linear-gradient(#fff, #ebeadb); border-bottom: 1px solid #d6d2c2; border-right: 1px solid #d6d2c2; text-align: left; font-weight: normal; padding: 3px 6px; white-space: nowrap; cursor: default; z-index: 1; }
.lp-tbl th:hover { background: #f8f8f2; }
.lp-tbl th[data-s]:not([data-s=""])::after { content: " " attr(data-s); font-size: 8px; color: #888; }
.lp-tbl td { padding: 3px 6px; white-space: nowrap; cursor: default; }
.lp-tbl tbody tr:hover td { background: #eef3fc; }
.lp-tbl tr.sel td { background: #316ac5 !important; color: #fff; }
.lp-tbl tr.sel small, .lp-tbl tr.sel .pos, .lp-tbl tr.sel .neg { color: #fff; }
.lp-tbl tr.lp-mine td:first-child { box-shadow: inset 3px 0 #f8b330; }
.lp-tbl small { color: #888; }
.lp-e { display: inline-block; width: 20px; font-size: 14px; }
.pos { color: #148a2c; } .neg { color: #c4231c; }
.lp-tbl td.up { animation: lpUp 1s; } .lp-tbl td.dn { animation: lpDn 1s; }
@keyframes lpUp { from { background: #a8f0b4; } } @keyframes lpDn { from { background: #f8b4ae; } }
.lp-empty { color: #888; text-align: center; padding: 30px !important; white-space: normal !important; }
.lp-pbar { display: inline-block; width: 70px; height: 9px; border: 1px solid #888; background: #fff; vertical-align: middle; padding: 1px; border-radius: 2px; }
.lp-pbar i { display: block; height: 100%; background: repeating-linear-gradient(to right, #2fc84a 0 6px, transparent 6px 8px); }
.lp-pbar.done i { background: repeating-linear-gradient(to right, #3a7bd5 0 6px, transparent 6px 8px); }
.lp-shield { font-size: 10px; padding: 0 4px; border-radius: 3px; font-weight: bold; }
.gA { background: #c9f2cf; color: #126b24; } .gB { background: #ddf4c4; color: #3d6b12; } .gC { background: #fbefb8; color: #7a5d00; } .gD { background: #fcd9b0; color: #8a4300; } .gF { background: #f8c4c0; color: #9d1810; }
.lp-st { white-space: nowrap; overflow: hidden; }

.lp-coin { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px; gap: 6px; }
.lp-head { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #7f9db9; padding: 6px 10px; }
.lp-emo { font-size: 32px; }
.lp-id { flex: 1; min-width: 0; } .lp-id b { font-size: 15px; } .lp-id span { color: #666; }
.lp-id small { display: block; color: #777; }
.lp-mc { text-align: right; } .lp-mc b { display: block; font-size: 18px; } .lp-mc small { font-weight: bold; }
.lp-progrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-progrow .lp-pbar { flex: 1; min-width: 100px; height: 14px; }
.lp-progrow .pg { color: #555; }
.lp-split { flex: 1; display: flex; gap: 8px; min-height: 0; }
.lp-left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lp-tabs { display: flex; padding-left: 2px; }
.lp-tabs div { padding: 3px 9px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; margin-right: -1px; background: linear-gradient(#fff, #ecebe5); cursor: default; position: relative; top: 1px; }
.lp-tabs div.on { background: #fcfcfe; border-top: 2px solid #ffc83c; padding-top: 2px; z-index: 1; }
.lp-pane { flex: 1; border: 1px solid #919b9c; background: #fcfcfe; min-height: 0; overflow: hidden; display: flex; }
.lp-pane > div { flex: 1; min-width: 0; overflow: auto; padding: 8px; }
.lp-perf { display: flex; flex-direction: column; gap: 6px; }
.lp-perf fieldset { flex: 1; margin: 0; border: 1px solid #d0d0bf; border-radius: 3px; padding: 2px 6px 6px; min-height: 110px; display: flex; }
.lp-perf legend { color: #0046d5; padding: 0 3px; }
.lp-perf canvas { flex: 1; width: 100%; min-height: 0; display: block; border: 1px solid #555; }
.lp-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 10px; }
.lp-kv small { display: block; color: #777; } .lp-kv b { word-break: break-all; }
.lp-about .lp-kv { grid-template-columns: 1fr; }
.mono { font-family: Consolas, monospace; font-weight: normal; font-size: 11px; }
.lp-list { padding: 0 !important; }
.lp-chat { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden !important; }
.lp-msgs { flex: 1; overflow-y: auto; padding: 6px 8px; }
.lp-msg { padding: 4px 6px; margin-bottom: 4px; background: #fff; border: 1px solid #e3e3db; border-radius: 3px; }
.lp-msg.me { background: #fffbe0; } .lp-msg small { color: #888; } .lp-msg div div { margin-top: 2px; word-wrap: break-word; }
.lp-msg { display: flex; gap: 6px; align-items: flex-start; } .lp-msg > div { flex: 1; min-width: 0; }
.lp-av { flex: none; width: 22px; height: 22px; border-radius: 3px; color: #fff; font-weight: bold; display: grid; place-items: center; font-size: 11px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.lp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 99999; }
.lp-confetti i { position: absolute; top: -12px; width: 7px; height: 11px; animation: lpConf linear forwards; }
@keyframes lpConf { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }
.lp-post { display: flex; gap: 4px; padding: 6px; border-top: 1px solid #d0d0bf; }
.lp-post input { flex: 1; height: 21px; border: 1px solid #7f9db9; padding: 0 4px; user-select: text; min-width: 0; }
.lp-post .xp-btn { min-width: 50px; }
.lp-grade { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; margin-bottom: 8px; font-size: 20px; }
.lp-grade b { font-size: 26px; } .lp-grade span { font-size: 11px; font-weight: bold; }
.lp-chk { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dotted #ddd; }
.lp-chk small { display: block; color: #777; }
.lp-trade { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid #7f9db9; padding: 8px; overflow-y: auto; }
.lp-bs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #7f9db9; border-radius: 3px; overflow: hidden; }
.lp-bs div { text-align: center; padding: 4px 0; cursor: default; font-weight: bold; color: #555; }
.lp-bs div[data-s=buy].on { background: #2fa846; color: #fff; } .lp-bs div[data-s=sell].on { background: #d2382f; color: #fff; }
.lp-lbl { color: #555; margin-top: 4px; }
.lp-amt { height: 22px; border: 1px solid #7f9db9; padding: 0 4px; user-select: text; width: 100%; box-sizing: border-box; }
.lp-quick { display: flex; gap: 3px; } .lp-quick .xp-btn { min-width: 0; flex: 1; padding: 0 2px; font-size: 10px; }
.lp-est { color: #555; min-height: 14px; }
.lp-go { height: 28px; font-weight: bold; }
.lp-go.buy { background: linear-gradient(#5fd86f, #26a33c); color: #fff; border-color: #17702a; }
.lp-go.sell { background: linear-gradient(#f2766e, #c42c22); color: #fff; border-color: #8a1a13; }
.lp-pos { margin-top: auto; padding-top: 6px; border-top: 1px solid #ddd; line-height: 1.5; color: #333; border-radius: 3px; }
.lp-pos.flash { animation: lpUp 1s; }
.lp-perf canvas { cursor: crosshair; }
.lp-feed { margin-top: 4px; font-size: 10px; min-height: 0; overflow: hidden; }
.lp-feed small { display: block; color: #777; margin-bottom: 2px; }
.lp-feed div { display: flex; gap: 4px; padding: 1px 0; border-bottom: 1px dotted #eee; }
.lp-feed span { width: 44px; font-weight: bold; } .lp-feed em { flex: 1; font-style: normal; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-feed i { font-style: normal; color: #999; } .lp-feed .lp-mine { background: #fffbe0; }
.lp-narrow .lp-feed, .lp-narrow .lp-lbl { display: none; }
/* narrow coin window: trade panel collapses to a compact 2-column strip so Buy stays in view */
.lp-narrow .lp-trade { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "bs amt" "quick go" "est pos"; align-items: center; gap: 4px 8px; padding: 6px; overflow: visible; }
.lp-narrow .lp-bs { grid-area: bs; } .lp-narrow .lp-amt { grid-area: amt; } .lp-narrow .lp-quick { grid-area: quick; }
.lp-narrow .lp-go { grid-area: go; height: 24px; } .lp-narrow .lp-est { grid-area: est; } .lp-narrow .lp-pos { grid-area: pos; margin: 0; padding: 0; border: 0; line-height: 1.3; font-size: 10px; }
.lp-spark { vertical-align: middle; margin-left: 6px; } .lp-narrow .lp-spark { display: none; }
.lp-tbl tr.fresh td { background: #fff8d6; }
.lp-new { display: inline-block; margin-left: 4px; padding: 0 3px; font-size: 9px; font-weight: bold; color: #fff; background: #e8590c; border-radius: 2px; vertical-align: 1px; }
.lp-narrow .lp-split { flex-direction: column; overflow-y: auto; }
.lp-narrow .lp-left { min-height: 230px; } .lp-narrow .lp-trade { width: auto; }
.lp-narrow .lp-mc b { font-size: 14px; } .lp-narrow .lp-emo { font-size: 24px; }

.lp-cbar { height: 16px; border: 1px solid #888; padding: 1px; background: #fff; border-radius: 2px; }
.lp-cbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(to right, #2fc84a 0 8px, transparent 8px 10px); transition: width .25s; }
.lp-copy { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.lp-copy p { margin: 0; }
.lp-fly { position: relative; height: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 30px; padding: 0 10px; }
.lp-fly i { position: absolute; left: 40px; top: 10px; font-size: 18px; font-style: normal; animation: lpFly 1.5s linear infinite; opacity: 0; }
.lp-fly i:nth-of-type(2) { animation-delay: .5s; } .lp-fly i:nth-of-type(3) { animation-delay: 1s; }
@keyframes lpFly { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 50% { transform: translate(130px, -14px) rotate(-20deg); opacity: 1; } 100% { transform: translate(270px, 0) rotate(0); opacity: 0; } }

.wz { flex: 1; display: flex; flex-direction: column; background: #fff; min-height: 0; }
.wz-page { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.wz-page.wz-edge { flex-direction: row; }
.wz-side { width: 164px; flex-shrink: 0; background: linear-gradient(160deg, #1e57c8 0%, #4f8ef0 55%, #7fb9f6 70%, #64b23a 71%, #3b8c1d 100%); position: relative; }
.wz-side::after { content: "🚀"; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font-size: 54px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.wz-side.done::after { content: "🎉"; }
.wz-wel { flex: 1; padding: 16px 20px; line-height: 1.5; }
.wz-wel h2 { font: bold 17px Verdana, Tahoma, sans-serif; margin: 0 0 14px; }
.wz-wel p { margin: 0 0 10px; }
.wz-note { color: #666; font-size: 11px; }
.wz-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #aca899; }
.wz-head b { display: block; } .wz-head p { margin: 3px 0 0 16px; color: #444; }
.wz-hi { font-size: 32px; }
.wz-body { flex: 1; padding: 12px 30px; background: #ece9d8; display: flex; flex-direction: column; gap: 8px; }
.wz-body label { display: flex; flex-direction: column; gap: 3px; }
.wz-body input, .wz-body textarea { border: 1px solid #7f9db9; padding: 3px 4px; font: inherit; user-select: text; resize: none; }
.wz-body input { height: 16px; }
.wz-emo { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 4px; }
.wz-emo span { font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 3px; cursor: default; background: #fff; }
.wz-emo span:hover { border-color: #7f9db9; } .wz-emo span.on { background: #316ac5; border-color: #0a246a; }
.wz-est { margin: 0; color: #215dc6; }
.wz-sum { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.wz-steps { margin: 0; padding: 0 0 0 4px; list-style: none; line-height: 1.9; }
.wz-steps li { color: #999; } .wz-steps li::before { content: "○ "; }
.wz-steps li.run { color: #000; font-weight: bold; } .wz-steps li.run::before { content: "➤ "; color: #215dc6; }
.wz-steps li.ok { color: #000; } .wz-steps li.ok::before { content: "✔ "; color: #2fa846; }
.wz-chk { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.wz-row { display: flex; gap: 10px; } .wz-row label { flex: 1; } .wz-row .wz-tk { flex: 0 0 130px; }
.wz-cnt { align-self: flex-end; color: #666; font-size: 10px; }
.wz-fee { flex-direction: row !important; align-items: flex-start; gap: 8px !important; padding: 8px 10px; background: #fff; border: 1px solid #aca899; border-radius: 3px; }
.wz-fee.on { border-color: #316ac5; box-shadow: 0 0 0 1px #316ac5; }
.wz-fee input { height: auto !important; margin: 2px 0 0; } .wz-fee b { display: block; margin-bottom: 2px; } .wz-fee span { color: #444; line-height: 1.35; }
.wz-pre { display: flex; gap: 6px; flex-wrap: wrap; } .wz-pre .xp-btn { min-width: 58px; } .wz-pre .xp-btn.on { box-shadow: inset 0 0 0 2px #316ac5; font-weight: bold; }
.wz-rev { display: flex; gap: 10px; }
.wz-prev { flex: 1; display: flex; gap: 10px; padding: 8px; background: #fff; min-width: 0; }
.wz-pimg { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; font-size: 40px; background: #eef3fc; border: 1px solid #c3d3ef; overflow: hidden; }
.wz-pimg .lp-img { width: 100%; height: 100%; object-fit: cover; }
.wz-pinfo { min-width: 0; } .wz-pinfo b { font-size: 13px; } .wz-ptk { margin-left: 6px; color: #215dc6; font-weight: bold; }
.wz-pinfo p { margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; color: #333; font-size: 11px; word-break: break-word; }
.wz-psoc { display: flex; gap: 8px; font-size: 11px; color: #215dc6; }
.wz-rev .wz-sum { flex: 0 0 190px; padding: 6px 8px; gap: 2px; font-size: 11px; background: #fff; }
.wz-rev .wz-sum div { display: flex; justify-content: space-between; gap: 6px; } .wz-rev .wz-sum span { color: #666; }
.wz-rev .wz-sum .tot { border-top: 1px solid #ccc; padding-top: 2px; margin-top: 2px; }
.wz-foot { display: flex; justify-content: flex-end; gap: 4px; padding: 10px 12px; border-top: 1px solid #aca899; background: #ece9d8; box-shadow: inset 0 1px #fff; }
.wz-foot .xp-btn:disabled { color: #aca899; border-color: #c4c2b8; box-shadow: none; }

#ticker { width: clamp(240px, 34vw, 520px); flex-shrink: 0; overflow: hidden; position: relative; margin: 3px 4px; border-radius: 3px; background: rgba(0,20,80,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.tk-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap; will-change: transform; }
.tk-chip { color: #fff; font-size: 11px; cursor: pointer; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.tk-chip:hover { text-decoration: underline; }
.tk-chip.buy b { color: #8dffa0; } .tk-chip.sell b { color: #ffa29b; } .tk-chip.new b, .tk-chip.grad b { color: #ffe27a; }
@media (max-width: 700px) { #ticker { display: none; } }

.ph-pane { overflow-y: auto; }
.ph-row[data-id] { cursor: pointer; } .ph-row[data-id]:hover { background: #333; }
.ph-r small { display: block; text-align: right; color: #999; font-weight: normal; }
.ph-r small.pos { color: #3fd68b; } .ph-r small.neg { color: #ff6b6b; }
.lp-mc b.up { animation: lpTxtUp 1s; } .lp-mc b.dn { animation: lpTxtDn 1s; }
@keyframes lpTxtUp { from { color: #1fb83f; } } @keyframes lpTxtDn { from { color: #e0342a; } }

/* token images */
.lp-img { width: 1em; height: 1em; object-fit: cover; border-radius: 3px; vertical-align: -0.15em; }
.ph-tok .lp-img { width: 100%; height: 100%; border-radius: 50%; }
.lp-e .lp-img { width: 16px; height: 16px; }
.wz-up { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 11px; color: #444; }

