:root{
  --xp-blue:#0a246a;
  --xp-blue2:#3a6ea5;
  --xp-title1:#0058e6;
  --xp-title2:#3f8cf3;
  --xp-face:#ece9d8;
  --xp-shadow:#aca899;
  --xp-light:#ffffff;
  --taskbar1:#245edb;
  --taskbar2:#1941a5;
  --start1:#3c8d0d;
  --start2:#73bd44;
}
*{box-sizing:border-box;}
html,body{margin:0;height:100%;font-family:Tahoma,"MS Sans Serif",Geneva,sans-serif;font-size:12px;}
body{
  background:#5a7edc url("neocities.png") center/cover no-repeat;
  background-color:#3a6ea5;
  overflow:hidden;
  cursor:url("data:image/png;base64,") auto;
}

/* boot screen */
#boot{
  position:fixed;inset:0;z-index:9999;background:#000;color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;
}
#boot h1{font-size:34px;font-style:italic;margin:0;}
#boot h1 b{color:#e36c0a;}
.loadbar{width:200px;height:16px;border:1px solid #444;display:flex;gap:4px;padding:2px;overflow:hidden;}
.loadbar i{width:12px;height:100%;background:#3a6ea5;animation:slide 1.6s linear infinite;}
@keyframes slide{0%{transform:translateX(-40px);}100%{transform:translateX(220px);}}

/* desktop icons */
#desktop{position:absolute;inset:0;padding:10px;}
.icon{
  width:80px;text-align:center;color:#fff;cursor:pointer;
  margin-bottom:18px;text-shadow:1px 1px 2px #000;user-select:none;
}
.icon .glyph{font-size:34px;display:block;line-height:1;margin-bottom:4px;}
.icon span{padding:1px 3px;}
.icon:hover span{background:#3a6ea5cc;}

/* windows */
.window{
  position:absolute;min-width:280px;background:var(--xp-face);
  border:1px solid #003c74;border-radius:8px 8px 0 0;
  box-shadow:4px 4px 14px rgba(0,0,0,.45);display:none;flex-direction:column;
}
.window.open{display:flex;}
.titlebar{
  background:linear-gradient(180deg,var(--xp-title1),var(--xp-title2));
  color:#fff;font-weight:bold;padding:4px 6px;border-radius:6px 6px 0 0;
  display:flex;align-items:center;gap:6px;cursor:move;text-shadow:1px 1px 1px #00000088;
}
.titlebar .t-icon{font-size:14px;}
.titlebar .t-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tbtn{
  width:21px;height:21px;border:1px solid #fff;border-radius:3px;background:#3f8cf3;
  color:#fff;font-weight:bold;font-size:11px;cursor:pointer;line-height:1;
}
.tbtn.close{background:#e0492f;}
.win-body{padding:14px;background:#fff;border:1px solid #919b9c;margin:3px;overflow:auto;max-height:60vh;}

/* about */
.about{display:flex;gap:14px;}
.about .avatar{width:96px;height:96px;border:2px solid #3a6ea5;background:#ffd9ec;
  display:flex;align-items:center;justify-content:center;font-size:46px;flex-shrink:0;}
.about h2{margin:0 0 6px;color:#0a246a;}
.specs{width:100%;border-collapse:collapse;margin-top:10px;}
.specs td{border:1px solid #d4d0c8;padding:4px 6px;}
.specs td:first-child{background:#ece9d8;font-weight:bold;width:38%;}
marquee{color:#d62a87;font-weight:bold;}

/* msn messenger */
.msn{padding:0;background:#ece9d8;}
.msn-head{background:linear-gradient(180deg,#eef6fd,#cfe2f3 55%,#b6d3ea);
  border-bottom:1px solid #8ab0d0;padding:6px 12px;position:relative;overflow:hidden;}
.msn-head:before{content:"";position:absolute;right:-30px;top:-40px;width:120px;height:90px;
  background:radial-gradient(circle,#ffffff88,transparent 70%);transform:rotate(25deg);}
.msn-dname{color:#1f5bb0;font-weight:bold;font-size:14px;}
.msn-pm{color:#4a7ba8;font-size:11px;}
.msn-toolbar2{background:linear-gradient(180deg,#fdfeff,#dde9f4);
  border-bottom:1px solid #9db4d4;padding:5px 8px;display:flex;gap:10px;}
.msn-toolbar2 button{border:1px solid transparent;background:none;cursor:pointer;
  font-size:17px;padding:1px 3px;border-radius:3px;line-height:1;}
.msn-toolbar2 button:hover{border-color:#9db4d4;background:#fff;}
.msn-main{display:flex;}
.msn-left{flex:1;display:flex;flex-direction:column;padding:8px;gap:6px;}
.msn-right{width:104px;background:#cfe2f3;border-left:1px solid #9db4d4;
  padding:10px;display:flex;flex-direction:column;align-items:center;gap:12px;}
.msn-dp{width:72px;height:72px;background:#fff;border:1px solid #5a8bc0;
  box-shadow:0 0 0 2px #fff,0 0 0 3px #9bb8d6;}
.msn-dp svg{width:100%;height:100%;display:block;background:linear-gradient(135deg,#dcecf8,#a9cdeb);}
.msn-chat{list-style:none;margin:0;padding:8px;background:#fff;border:1px solid #9db4d4;
  height:200px;overflow:auto;font-size:12px;}
.msn-chat .msn-says{margin-top:6px;color:#222;}
.msn-chat .who{font-weight:bold;}
.msn-chat .when{color:#aaa;font-size:10px;margin-left:4px;}
.msn-chat .msn-text{color:#222;margin:1px 0 0 14px;}
.msn-chat .msn-empty{color:#999;}
.msn-emotbar{display:flex;gap:6px;align-items:center;background:#dfe8f6;
  border:1px solid #9db4d4;padding:4px 6px;}
.msn-emotbar button{border:1px solid transparent;background:none;cursor:pointer;
  font-size:15px;padding:1px 3px;border-radius:3px;}
.msn-emotbar button:hover{border-color:#9db4d4;background:#fff;}
.msn-input{display:flex;gap:6px;}
.msn-input textarea{flex:1;height:56px;resize:none;border:1px solid #9db4d4;
  font-family:inherit;font-size:12px;padding:4px;}
.msn-btns{display:flex;flex-direction:column;gap:4px;width:96px;}
.msn-btns input{border:1px solid #9db4d4;padding:4px;font-family:inherit;font-size:11px;}
.msn-send{background:linear-gradient(180deg,#fff,#cfe0a8);border:1px solid #6b8e23;
  border-radius:4px;padding:5px 0;cursor:pointer;font-weight:bold;color:#3a5a0a;}
.msn-send:active{background:#cfe0a8;}
.msn-statusbar{background:#ece9d8;border-top:1px solid #aca899;padding:3px 10px;font-size:10px;color:#666;}
.msn-ad{background:#fff;border-top:1px solid #d4d0c8;padding:4px 10px;font-size:11px;color:#1f5bb0;font-style:italic;}
.msn-status{color:#1c8a1c;font-weight:bold;}

/* gallery / links */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.gallery div,.gallery img{aspect-ratio:1;width:100%;background:#ffe1f0;border:1px solid #d62a87;
  display:flex;align-items:center;justify-content:center;font-size:28px;object-fit:cover;}
.links a{display:block;color:#0058e6;margin:5px 0;}
.btn88{display:inline-block;margin:3px;border:1px solid #000;background:#222;color:#0f0;
  width:88px;height:31px;text-align:center;line-height:31px;font-size:10px;}

/* taskbar */
#taskbar{
  position:fixed;left:0;right:0;bottom:0;height:32px;z-index:5000;
  background:linear-gradient(180deg,#245edb 0%,#3f8cf3 8%,#245edb 40%,#1941a5 100%);
  display:flex;align-items:center;border-top:1px solid #0831d9;
}
#start{
  height:100%;padding:0 16px 0 10px;color:#fff;font-style:italic;font-weight:bold;font-size:15px;
  background:linear-gradient(180deg,#5eac56,#3c8d0d);border:none;border-radius:0 9px 9px 0;
  cursor:pointer;text-shadow:1px 1px 1px #00000099;
}
#tasks{flex:1;display:flex;gap:4px;padding:0 6px;overflow:hidden;}
.task{background:#3f8cf3;color:#fff;border:1px solid #1941a5;border-radius:3px;
  padding:3px 10px;font-size:11px;cursor:pointer;max-width:160px;overflow:hidden;white-space:nowrap;}
.task.active{background:#1c52c9;}
#tray{color:#fff;background:#1290e9;height:100%;display:flex;align-items:center;
  padding:0 12px;border-left:1px solid #0831d9;text-shadow:1px 1px 1px #000;}

/* start menu */
#startmenu{
  position:fixed;left:0;bottom:32px;width:240px;z-index:5500;display:none;
  background:#fff;border:1px solid #0831d9;border-radius:8px 8px 0 0;box-shadow:3px 0 12px #0006;
}
#startmenu.open{display:block;}
#startmenu .head{background:linear-gradient(180deg,#1c52c9,#245edb);color:#fff;
  padding:10px;font-weight:bold;border-radius:7px 7px 0 0;}
#startmenu .item{padding:8px 12px;cursor:pointer;}
#startmenu .item:hover{background:#2f71ec;color:#fff;}

/* winamp clásico */
.wamp{background:#2a2f3a;color:#00e676;padding:8px;border:2px solid #1a1d24;}
.wa-hidden{position:absolute;left:-9999px;top:0;width:200px;height:150px;}
.wamp-display{background:#0a0e08;border:2px inset #3a4150;padding:6px 8px;margin-bottom:8px;
  font-family:"Lucida Console",monospace;}
.wamp-row1{display:flex;align-items:center;gap:10px;}
.wamp-time{color:#00ff66;font-size:22px;font-weight:bold;text-shadow:0 0 6px #00ff6688;letter-spacing:1px;}
.wamp-vis{display:flex;align-items:flex-end;gap:2px;height:22px;flex:1;}
.wamp-vis i{width:4px;height:4px;background:linear-gradient(0deg,#00ff66,#caff00);opacity:.5;}
.wamp-vis.playing i{animation:vis .8s ease-in-out infinite;}
.wamp-vis.playing i:nth-child(2n){animation-duration:.6s;}
.wamp-vis.playing i:nth-child(3n){animation-duration:1s;}
@keyframes vis{0%,100%{height:3px;}50%{height:20px;}}
.wamp-track{overflow:hidden;white-space:nowrap;margin-top:4px;color:#00ff66;font-size:12px;}
.wamp-track span{display:inline-block;animation:wamq 9s linear infinite;}
@keyframes wamq{0%{transform:translateX(8%);}100%{transform:translateX(-70%);}}
.wamp-row3{display:flex;gap:10px;font-size:10px;color:#0a8a3a;margin-top:3px;}
.wamp-row3 .wamp-kbps{color:#00ff66;}.wamp-row3 .wamp-st{color:#00ff66;}
.wamp-vol{width:100%;margin-top:6px;}
.wamp-controls{display:flex;gap:3px;margin-bottom:8px;}
.wamp-controls button{flex:1;background:linear-gradient(180deg,#4a525f,#2a2f3a);color:#cfe;
  border:2px outset #5a6270;height:26px;cursor:pointer;font-size:12px;}
.wamp-controls button:active{border-style:inset;}
.wamp-pl-title{background:linear-gradient(180deg,#3a4150,#222732);color:#9fb;font-size:10px;
  text-align:center;padding:2px;letter-spacing:2px;border:1px solid #1a1d24;}
.wamp-list{list-style:none;margin:0;padding:4px;background:#000;border:2px inset #3a4150;
  max-height:120px;overflow:auto;}
.wamp-list li{padding:2px 4px;color:#00d65a;font-family:"Lucida Console",monospace;
  font-size:11px;cursor:pointer;white-space:nowrap;}
.wamp-list li:hover{background:#0c2c14;}
.wamp-list li.on{color:#ffe14d;}

/* juegos */
.win-body.game{background:#bdbdbd;border:2px inset #fff;padding:8px;}
.card-bar{margin-bottom:6px;font-size:11px;color:#003a8c;}
.card-bar span{font-weight:bold;color:#c0008c;}

/* buscaminas */
.mw-top{display:flex;justify-content:space-between;align-items:center;
  background:#c0c0c0;border:3px inset #fff;padding:4px;margin-bottom:6px;}
.mw-led{background:#000;color:#f00;font-family:"Lucida Console",monospace;
  font-size:20px;padding:1px 4px;letter-spacing:1px;}
.mw-face{width:30px;height:30px;font-size:16px;border:2px outset #fff;background:#c0c0c0;cursor:pointer;}
.mw-face:active{border-style:inset;}
.mw-flag{width:28px;height:28px;font-size:13px;border:2px outset #fff;background:#c0c0c0;cursor:pointer;}
.mw-flag.on{border-style:inset;background:#ffe28a;}
.mw-grid{display:grid;gap:0;border:3px inset #fff;background:#7b7b7b;width:max-content;}
.mw-cell{width:24px;height:24px;border:2px outset #fff;background:#bdbdbd;
  display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:14px;cursor:pointer;user-select:none;}
.mw-cell.open{border:1px solid #7b7b7b;background:#c8c8c8;}
.mw-cell.boom{background:#f00;}
.mw-cell[data-n="1"]{color:#0000ff;}.mw-cell[data-n="2"]{color:#008000;}
.mw-cell[data-n="3"]{color:#ff0000;}.mw-cell[data-n="4"]{color:#000080;}
.mw-cell[data-n="5"]{color:#800000;}.mw-cell[data-n="6"]{color:#008080;}
.mw-cell[data-n="7"]{color:#000;}.mw-cell[data-n="8"]{color:#808080;}

/* cartas */
.card-board{background:#067a3e;border:2px inset #045a2e;padding:8px;min-width:430px;}
.card{width:44px;height:62px;border:1px solid #555;border-radius:4px;background:#fff;
  display:flex;flex-direction:column;justify-content:space-between;padding:3px;font-weight:bold;box-sizing:border-box;}
.card span{font-size:13px;}.card b{font-size:18px;align-self:flex-end;}
.card.red{color:#d40000;}.card.blk{color:#000;}
.card.back{background:repeating-linear-gradient(45deg,#1f5bb0,#1f5bb0 4px,#3f7bd0 4px,#3f7bd0 8px);}
.card.empty{background:#0a8a4a;border:1px dashed #cfe9d8;color:#cfe9d8;
  display:flex;align-items:center;justify-content:center;font-size:18px;}
.pile{cursor:pointer;}
.kl-top,.fc-top{display:flex;gap:6px;margin-bottom:10px;}
.fc-group{display:flex;gap:6px;}
.fc-top{justify-content:space-between;}
.spacer{flex:1;}
.kl-cols{display:flex;gap:6px;align-items:flex-start;}
.col{cursor:pointer;min-height:62px;width:44px;}
.stack{margin-top:-44px;}
.col .stack:first-child{margin-top:0;}
.stack.sel .card{outline:3px solid #ffd700;}
.sel-col .card{outline:2px solid #ffd700;}
.pile.sel .card{outline:3px solid #ffd700;}

/* foto de perfil */
.about .avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.msn-dp img{width:100%;height:100%;object-fit:cover;display:block;}
.wa-hidden iframe{width:200px;height:150px;}

/* ===== responsive (móvil) ===== */
@media (max-width:720px){
  html,body{overflow:auto;height:auto;min-height:100%;}
  body{padding-bottom:44px;}
  #desktop{position:static;display:flex;flex-wrap:wrap;gap:4px;padding:10px;}
  .icon{margin-bottom:4px;width:74px;}
  .window{position:static!important;left:auto!important;top:auto!important;
    width:auto!important;max-width:100%;margin:10px;transform:none!important;}
  .window.open{display:flex;}
  .titlebar{cursor:default;}
  .win-body{max-height:none;}
  /* msn: mantener forma de messenger (fotos a la derecha) */
  .msn-right{width:88px;padding:8px 6px;gap:8px;}
  .msn-dp{width:60px;height:60px;}
  .msn-input{flex-direction:column;}
  .msn-btns{width:auto;}
  /* cartas más chicas + scroll si hace falta */
  .win-body.game{overflow-x:auto;}
  .card-board{min-width:0;}
  .card,.card.empty{width:34px;height:48px;}
  .card span{font-size:10px;}.card b{font-size:13px;}
  .col{width:34px;min-height:48px;}
  .stack{margin-top:-34px;}
  .kl-cols,.kl-top,.fc-top,.fc-group{gap:3px;}
  /* winamp full width */
  .wamp{width:auto;}
}