:root{
  --bg:#07070b;
  --fg:#e9e9ff;
  --muted:#a7a7c7;
  --line:rgba(255,255,255,.12);
  --card:rgba(18,18,28,.76);
  --glass:rgba(255,255,255,.07);

  --pink:#ff2aa1;
  --cyan:#2dfcff;
  --lime:#9bff4a;
  --vio:#7c5cff;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius:18px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--fg);
  background:
    radial-gradient(1000px 560px at 20% 10%, rgba(255,42,161,.20), transparent 58%),
    radial-gradient(800px 520px at 88% 25%, rgba(45,252,255,.16), transparent 60%),
    radial-gradient(900px 600px at 45% 110%, rgba(124,92,255,.14), transparent 65%),
    var(--bg);
  overflow-x:hidden;
}
.mono{ font-family:var(--mono); letter-spacing:.4px; }
.strong{ font-weight:800; }

.bg-grid{
  position:fixed; inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity:.16;
  pointer-events:none;
}
.bg-noise{
  position:fixed; inset:0;
  background: rgba(255,255,255,.04);
  opacity:.06;
  pointer-events:none;
  mix-blend-mode: overlay;
}
.scanlines{
  position:fixed; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.06),
    rgba(255,255,255,.06) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity:0;
  pointer-events:none;
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background: rgba(8,8,12,.64);
  backdrop-filter: blur(10px);
}
.brand{ display:flex; gap:12px; align-items:center; }
.sigil{
  width:56px; height:56px; display:grid; place-items:center;
  border-radius:16px;
  background:
    linear-gradient(145deg, rgba(255,42,161,.26), rgba(45,252,255,.18)),
    rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  font-family:var(--mono);
  font-weight:900;
  letter-spacing:1.5px;
}
.title{ font-family:var(--mono); font-weight:900; letter-spacing:1.2px; }
.sub{ color:var(--muted); font-size:.92rem; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Beveled chips (Steam-ish) */
.chip{
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.04));
  color:var(--fg);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  font-family:var(--mono);
  font-size:.9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(45,252,255,.35); }
.chip.is-selected{
  border-color: rgba(45,252,255,.55);
  filter: saturate(1.1);
}
.chip-hot{ border-color: rgba(255,42,161,.45); }
.chip-hot:hover{ border-color: rgba(255,42,161,.7); }

/* Layout */
.wrap{
  max-width:1100px;
  margin:18px auto 40px;
  padding:0 18px;
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:16px;
}
@media (max-width: 980px){
  .wrap{ grid-template-columns: 1fr; }
}

.panel, .card{
  border:1px solid rgba(255,255,255,.14);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.panel-head{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-bottom:1px solid rgba(255,255,255,.10);
}
.panel-title{ margin-left:8px; font-family:var(--mono); font-size:.86rem; color:var(--muted); }
.panel-right{ margin-left:auto; color:var(--muted); font-size:.86rem; }

.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-r{ background: rgba(255,70,70,.9); }
.dot-y{ background: rgba(255,210,70,.9); }
.dot-g{ background: rgba(90,255,160,.9); }

.panel-body{ padding:14px; }

/* Messenger block */
.messenger .mycard{
  display:flex; gap:10px; align-items:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background: rgba(0,0,0,.22);
}
.avatar{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  font-family:var(--mono); font-weight:900;
  background:
    radial-gradient(circle at 30% 30%, rgba(45,252,255,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255,42,161,.30), transparent 55%),
    rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
}
.statusline{ color:var(--muted); margin-top:2px; display:flex; align-items:center; gap:8px; }
.presence{ width:10px; height:10px; border-radius:50%; display:inline-block; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.presence.online{ background: rgba(90,255,160,.95); }
.presence.away{ background: rgba(255,210,70,.95); }
.presence.busy{ background: rgba(255,70,70,.95); }

.hr{ border:none; border-top:1px solid rgba(255,255,255,.12); margin:14px 0; }
.label{ display:block; color:var(--muted); font-size:.86rem; margin-bottom:8px; }
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color:var(--fg);
  outline:none;
}
.input:focus{
  border-color: rgba(45,252,255,.45);
  box-shadow: 0 0 0 4px rgba(45,252,255,.12);
}

/* DVD menu */
.dvdmenu{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(400px 200px at 20% 20%, rgba(45,252,255,.14), transparent 60%),
    radial-gradient(400px 200px at 80% 80%, rgba(255,42,161,.12), transparent 60%),
    rgba(0,0,0,.22);
}
.dvd-title{ color:var(--muted); font-weight:800; margin-bottom:10px; }
.dvd-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.dvd-btn{
  padding:12px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color:var(--fg);
  font-family:var(--mono);
  cursor:pointer;
  text-align:center;
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.dvd-btn:hover{
  border-color: rgba(45,252,255,.35);
  text-shadow: 1px 0 0 rgba(45,252,255,.35), -1px 0 0 rgba(255,42,161,.25);
}
.dvd-btn.is-focus{
  outline: none;
  border-color: rgba(255,42,161,.55);
  box-shadow: 0 0 0 4px rgba(255,42,161,.14);
}
.dvd-hint{ margin-top:10px; color:var(--muted); font-size:.82rem; opacity:.9; }

/* Buddy list */
.friends{ margin-top:14px; }
.friends-title{ color:var(--muted); font-weight:800; margin-bottom:10px; }
.buddy{
  width:100%;
  display:grid;
  grid-template-columns: 14px 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--fg);
  cursor:pointer;
  margin-bottom:8px;
}
.buddy:hover{ border-color: rgba(45,252,255,.30); background: rgba(45,252,255,.06); }
.buddy-name{ font-weight:700; }
.buddy-meta{ color:var(--muted); font-size:.82rem; }

/* Content */
.content{ display:grid; gap:16px; }
.card-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.04));
}
.card-title{ font-weight:900; letter-spacing:1px; }
.badge{
  font-family:var(--mono);
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(45,252,255,.35);
  background: rgba(45,252,255,.10);
}
.badge-2{ border-color: rgba(155,255,74,.35); background: rgba(155,255,74,.10); }
.badge-3{ border-color: rgba(255,42,161,.40); background: rgba(255,42,161,.10); }

.tab{ display:none; }
.tab.is-active{ display:block; }

.postlist{ list-style:none; padding:0; margin:0; }
.post{ border-top:1px solid rgba(255,255,255,.08); }
.post:first-child{ border-top:none; }

.post-link{
  display:flex; flex-direction:column; gap:6px;
  padding:14px;
  text-decoration:none;
  color:var(--fg);
}
.post-link:hover{ background: rgba(255,255,255,.04); }
.post-title{
  font-family:var(--mono);
  letter-spacing:.5px;
}
.post-link:hover .post-title{
  text-shadow: 1px 0 0 rgba(45,252,255,.35), -1px 0 0 rgba(255,42,161,.35);
}
.post-meta{ color:var(--muted); font-size:.92rem; }

.postbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 14px 14px;
}
.views{ color:var(--muted); }
.react{ display:flex; align-items:center; gap:8px; }
.rbtn{
  width:34px; height:30px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--fg);
  cursor:pointer;
  font-size:14px;
}
.rbtn:hover{ border-color: rgba(45,252,255,.30); }
.rcount{ color:var(--muted); min-width:64px; text-align:right; }
.quote{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color:var(--fg);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}
.quote:hover{ border-color: rgba(255,42,161,.35); }

/* Reply box (foro) */
.replybox{
  margin:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.replyhead{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  background: rgba(255,255,255,.04);
}
.textarea{
  width:100%;
  border:none;
  padding:12px;
  resize:vertical;
  background: transparent;
  color: var(--fg);
  outline:none;
}
.replyrow{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px 12px;
  border-top:1px solid rgba(255,255,255,.10);
}
.btn{
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color:var(--fg);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-family:var(--mono);
}
.btn:hover{ border-color: rgba(155,255,74,.30); }

.replies{ padding:0 12px 12px; display:grid; gap:10px; }
.reply{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.reply .q{
  color:var(--muted);
  border-left:2px solid rgba(255,42,161,.45);
  padding-left:10px;
  margin-bottom:8px;
}
.reply .t{ white-space:pre-wrap; }

/* Threads */
.threads{ padding:14px; display:grid; gap:10px; }
.thread{
  display:block;
  text-decoration:none;
  color:var(--fg);
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.thread:hover{ border-color: rgba(45,252,255,.28); background: rgba(45,252,255,.05); }
.thread-meta{ color:var(--muted); margin-top:6px; }

/* Footer */
.foot{
  max-width:1100px;
  margin:0 auto;
  padding:12px 18px 28px;
  color:var(--muted);
  display:flex; gap:10px; align-items:center; justify-content:center;
}
.sep{ opacity:.4; }

/* Toast */
.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  color:var(--fg);
  opacity:0;
  transform: translateY(8px);
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
}
.toast.show{ opacity:1; transform: translateY(0); }

/* Chat popup (Messenger) */
.chat{
  position:fixed;
  right:18px;
  top:88px;
  width:320px;
  max-width: calc(100vw - 36px);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,12,18,.92);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  overflow:hidden;
  z-index:30;
}
.chat.hidden{ display:none; }
.chatbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-bottom:1px solid rgba(255,255,255,.10);
}
.chat-title{ color:var(--muted); font-weight:900; }
.xbtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--fg);
  border-radius:12px;
  padding:6px 8px;
  cursor:pointer;
}
.chatlog{
  height:280px;
  overflow:auto;
  padding:12px;
  display:grid;
  gap:10px;
}
.bubble{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.bubble.me{
  border-color: rgba(45,252,255,.25);
  background: rgba(45,252,255,.06);
}
.chatinput{
  display:flex; gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.10);
}

/* CRT */
html.crt .scanlines{ opacity:.18; }
html.crt body{ filter: contrast(1.05) saturate(1.08); }
/* ==========================
   SKIN MODE (Winamp/2000s)
   ========================== */

html.skin body{
  font-family: Tahoma, Verdana, Arial, sans-serif;
  background:
    url("img/patterns/noise-tile.png") repeat,
    radial-gradient(900px 420px at 20% 10%, rgba(255,120,0,.10), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(255,0,140,.10), transparent 60%),
    #07070b;
}

/* apaga lo "future glass" */
html.skin .topbar{
  backdrop-filter: none;
  background: linear-gradient(#2a2a2f, #141419);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ventanas tipo “skin”: borde duro, textura, brillo */
html.skin .panel,
html.skin .card,
html.skin .chat{
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(0,0,0,.22)),
    url("img/patterns/brushed-dark.png") repeat;
  box-shadow:
    0 18px 60px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.10);
}

/* borde “marco” más agresivo */
html.skin .panel::before,
html.skin .card::before,
html.skin .chat::before{
  border-top: 2px solid rgba(255,255,255,.10);
  border-left: 2px solid rgba(255,255,255,.08);
  border-right: 2px solid rgba(0,0,0,.75);
  border-bottom: 2px solid rgba(0,0,0,.85);
}

/* titlebars tipo player */
html.skin .card-head,
html.skin .panel-head,
html.skin .chatbar{
  background:
    linear-gradient(#3a332f, #1b1716);
  border-bottom: 1px solid rgba(0,0,0,.7);
}

/* texto más “UI vieja” */
html.skin .sub{ opacity:.85; }
html.skin .mono{ letter-spacing: .2px; }

/* botones como “plastic-metal” */
html.skin .chip,
html.skin .dvd-btn,
html.skin .btn,
html.skin .quote,
html.skin .rbtn{
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(#3a3a44, #1d1d25);
  color: #e9e9ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 22px rgba(0,0,0,.35);
}
html.skin .chip:hover,
html.skin .dvd-btn:hover,
html.skin .btn:hover,
html.skin .quote:hover,
html.skin .rbtn:hover{
  border-color: rgba(255,120,0,.35);
  text-shadow: 1px 0 0 rgba(255,120,0,.25);
}

/* input/textarea más “app” */
html.skin .input,
html.skin .textarea{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
}
html.skin .input:focus{
  border-color: rgba(255,120,0,.45);
  box-shadow: 0 0 0 4px rgba(255,120,0,.12);
}

/* reduce neon/scanlines */
html.skin .bg-grid{ opacity:.08; }
html.skin .scanlines{ opacity:.10; } /* opcional, puedes dejar 0 */

/* badge LIVE más “player” */
html.skin .badge{
  border-color: rgba(255,120,0,.35);
  background: rgba(255,120,0,.10);
}

/* sutil “glow” duro */
html.skin .sigil{
  background:
    linear-gradient(145deg, rgba(255,120,0,.20), rgba(255,0,140,.14)),
    rgba(255,255,255,.06);
}
.skin-banner{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(0,0,0,.20));
}
.skin-banner img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.skin-bannerbar{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(#2b241f, #171312);
  color: rgba(255,255,255,.82);
}
.skin-bannerbar .np{
  color: rgba(255,120,0,.95);
  margin-left:8px;
}
/* BONUS: marcos “skin” sin imágenes */
html.skin .panel.messenger{
  border-radius: 18px;
  clip-path: polygon(0% 6%, 6% 0%, 94% 0%, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0% 94%);
}

html.skin .card{
  border-radius: 14px;
}
.skin-banner{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(0,0,0,.20));
}
.skin-banner img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.skin-bannerbar{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(#2b241f, #171312);
  color: rgba(255,255,255,.82);
}
.skin-bannerbar .np{
  color: rgba(255,120,0,.95);
  margin-left:8px;
}
