/* ===== Estilos compartidos: franja roja de menú + botones tipo menú del juego ===== */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500;700;900&family=Roboto+Condensed:wght@700&display=swap");

/* ---------- Franja roja superior ---------- */
.red-band {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; height: 64px;
  /* como el botón "Sign Up" oficial: rojo plano + textura de manchas y bordes oscuros, todo en multiply */
  background-color: #cc0000;
  background-image:
    /* bordes que se oscurecen y desaparecen */
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 8%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 68%, rgba(0,0,0,.85) 92%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, rgba(0,0,0,.55)),
    /* manchones (nube grande) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2600' height='160'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='1.9 0 0 0 -0.25  1.9 0 0 0 -0.25  1.9 0 0 0 -0.25  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    /* grano fino */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0.5 0 0 0 0.55  0.5 0 0 0 0.55  0.5 0 0 0 0.55  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 2600px 160px, 300px 120px;
  background-position: 0 0, 0 0, center, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-blend-mode: multiply;
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
}
.red-band a { color: #f2f2f2; text-decoration: none; }
.red-band .brand { font: 900 30px/1 Roboto, Arial, sans-serif; letter-spacing: .02em; text-shadow: 0 2px 3px rgba(0,0,0,.7); }
.red-band .brand span { color: #fff; opacity: .65; }
.red-band nav { display: flex; gap: 6px; margin-left: auto; }
.red-band nav a {
  font: 700 19px/1 "Roboto Condensed", Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .02em;
  padding: 10px 16px; text-shadow: 0 2px 3px rgba(0,0,0,.7); border: 2px solid transparent; transition: background .15s, border-color .15s;
}
.red-band nav a:hover, .red-band nav a.active { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.35); }
.band-search { display: flex; width: fit-content; margin: 22px auto 0; border: 2px solid rgba(0,0,0,.55); background: rgba(0,0,0,.45); }
.band-search input { width: min(280px, 34vw); background: none; border: 0; outline: 0; color: #fff; padding: 9px 12px; font: 500 15px Roboto, Arial, sans-serif; }
.band-search input::placeholder { color: rgba(255,255,255,.6); }
.band-search button { background: rgba(0,0,0,.55); color: #fff; border: 0; padding: 0 16px; cursor: pointer; font: 700 14px Roboto, Arial, sans-serif; text-transform: uppercase; }
@media (max-width: 760px) { .red-band { gap: 12px; } .red-band nav a { font-size: 14px; padding: 8px 8px; } .red-band .brand { font-size: 20px; } }

/* ---------- Botón tipo menú del juego ----------
   El panel (::before) y el marco (.frame) usan filtros SVG (#dbd-rough, #dbd-worn)
   definidos en cada página: bordes irregulares y líneas con desgaste. */
.dbd-btn {
  --h: 96px; --frame: rgba(170,180,185,.38);
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px;
  height: var(--h); padding: 0 26px 0 14px; cursor: pointer;
  color: #fff; text-decoration: none; text-align: left; background: none; border: 0;
  font: 700 21px/1 Roboto, Arial, sans-serif; text-transform: uppercase; letter-spacing: .01em;
  transition: transform .15s;
}
/* fondo negro semitransparente con bordes gastados */
.dbd-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(14,18,20,.74), rgba(6,9,10,.8));
  filter: url(#dbd-rough);
  transition: background .15s;
}
/* marco con líneas desgastadas (dos trazos superpuestos, como dibujado) */
.dbd-btn .frame {
  position: absolute; inset: 3px; z-index: -1; pointer-events: none;
  border: 2px solid var(--frame); filter: url(#dbd-worn);
  transition: border-color .15s;
}
.dbd-btn .frame::after {
  content: ""; position: absolute; inset: -4px -3px -3px -4px;
  border: 1px solid var(--frame); opacity: .55; filter: url(#dbd-worn2);
}
.dbd-btn .icon { position: relative; width: calc(var(--h) - 22px); height: calc(var(--h) - 22px); flex: none; display: grid; place-items: center; }
.dbd-btn .icon img { width: 100%; height: 100%; object-fit: contain; opacity: .78; filter: grayscale(1) brightness(1.3); transition: opacity .15s, filter .15s, transform .2s ease-out; }
/* barra diagonal sobre el ícono (aparece al seleccionar), también gastada */
.dbd-btn .icon::after {
  content: ""; position: absolute; left: 50%; top: -6%; width: 3px; height: 112%;
  background: linear-gradient(180deg, transparent, #fff 15%, #fff 85%, transparent);
  transform: translateX(-50%) rotate(38deg) scaleY(0); transform-origin: center;
  filter: url(#dbd-worn); transition: transform .18s ease-out;
}
.dbd-btn .label { text-shadow: 0 2px 2px rgba(0,0,0,.6); }
/* triángulo abajo a la derecha: <span class="arrow"></span> */
.dbd-btn .arrow {
  position: absolute; right: 16px; bottom: 14px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 9px solid rgba(255,255,255,.75);
}
/* estado seleccionado / hover */
.dbd-btn:hover, .dbd-btn.active { --frame: rgba(240,244,245,.85); }
.dbd-btn:hover::before, .dbd-btn.active::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(3,5,6,.93), rgba(0,1,2,.95));
}
.dbd-btn:hover .icon img, .dbd-btn.active .icon img { opacity: 1; filter: grayscale(1) brightness(1.6); }
.dbd-btn:hover .icon img, .dbd-btn.active .icon img { transform: scale(1.12); }
.dbd-btn:active { transform: translateY(1px); }
/* globo rojo de aviso (opcional) */
.dbd-btn .badge {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; display: grid; place-items: center;
  font: 900 15px Roboto, Arial, sans-serif; color: #fff;
  background: radial-gradient(circle at 40% 35%, #e0262f, #8d0d14); border-radius: 50%; box-shadow: 0 0 0 2px #2a0003;
}
/* lista vertical de botones */
.dbd-menu { display: flex; flex-direction: column; gap: 10px; }
/* variante compacta (pestañas) */
.dbd-btn.small { --h: 64px; font-size: 17px; gap: 14px; padding-right: 18px; }

  /* barra superior: negro, línea roja que respira, buscador al medio, secciones a la derecha */
  .topbar { position:sticky; top:0; z-index:30; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; height:70px; padding:0 4vw; background:#050607; box-shadow:0 8px 24px rgba(0,0,0,.6); }
  .topbar::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:#e0262f; animation:breathe 3s ease-in-out infinite; }
  @keyframes breathe { 50% { box-shadow:0 0 22px 2px #e0262f; opacity:.6; } }
  .tb-logo { display:flex; align-items:center; gap:14px; color:#fff; text-decoration:none; line-height:1; justify-self:start; }
  .tb-logo .mark { width:38px; height:38px; flex:none; border:2px solid #e0262f; border-radius:50%; display:grid; place-items:center; font:700 18px Oswald, Impact, sans-serif; color:#e0262f; }
  .tb-logo b { display:block; font:700 24px Oswald, Impact, sans-serif; letter-spacing:.2em; }
  .tb-logo b em { font-style:normal; color:#e0262f; }
  /* Logo DBDEZ estilo etiqueta: DBD con borde blanco + EZ en bloque rojo */
  .lg { display:inline-flex; align-items:stretch; border:.07em solid #f1f1f1; font-family:Oswald, Impact, sans-serif; font-weight:700; line-height:1; letter-spacing:.05em !important; text-transform:uppercase; text-shadow:none; }
  .lg i, .lg em { font-style:normal; padding:.16em .21em .16em .23em; text-box:trim-both cap alphabetic; }
  .lg i { color:#f1f1f1 !important; padding-left:.245em; padding-right:.195em; }
  .lg em { background:#e0262f !important; color:#0b0d11 !important; }
  .tb-logo b.lg { display:flex; width:fit-content; font-size:22px; margin-bottom:6px; }
  .tb-logo small { font:400 11px Inter, sans-serif; letter-spacing:.25em; color:#7b838d; text-transform:uppercase; }
  .tb-search { display:flex; border:1px solid #2a3038; background:rgba(255,255,255,.03); border-radius:8px; overflow:hidden; }
  .tb-search:focus-within { border-color:#e0262f88; }
  .tb-search input { width:min(320px, 30vw); background:none; border:0; outline:0; color:#fff; padding:10px 14px; font:400 14px Inter, sans-serif; }
  .tb-search input::placeholder { color:#6d7580; }
  .tb-search button { background:#e0262f; border:0; color:#fff; padding:0 18px; font:600 13px Inter, sans-serif; cursor:pointer; }
  .tb-search button:hover { background:#f03540; }
  .tb-nav { display:flex; gap:4px; justify-self:end; grid-column:3; }
  .tb-nav a { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; line-height:1; color:#8a929c; text-decoration:none; font:600 13px Inter, sans-serif; padding:9px 14px; border-radius:20px; transition:background .15s, color .15s; }
  .tb-nav a.on, .tb-nav a:hover { color:#fff; background:#1c2128; }
  .tb-nav a.on { display:none; } /* el de la página actual no se muestra */
  @media (max-width: 980px) { .topbar { grid-template-columns:1fr; height:auto; padding:12px 4vw; gap:10px; justify-items:center; } .tb-logo, .tb-nav { justify-self:center; } .tb-nav { grid-column:auto; flex-wrap:wrap; justify-content:center; } }

/* Que nada se pinte de azul al arrastrar el mouse (textos y fotos); en los campos de texto sí se puede seleccionar */
body { -webkit-user-select:none; user-select:none; }
input, textarea, [contenteditable] { -webkit-user-select:text; user-select:text; }
img { -webkit-user-drag:none; }
/* En el celular: sin el menú de "guardar imagen" al mantener apretada una foto */
img { -webkit-touch-callout:none; }
