/* SkateMU landing — ported from the original register-portal design. Scoped to the
   landing layout only; subpages keep style.css. */
* { box-sizing: border-box }
html, body { margin: 0 }
img { max-width: 100% }
:root { --gold: #e8c65a; --gold2: #a9781a; --purple: #9a6bff; --ember: #c8471f; --ink: #0a0507; --parch: #e9dcc4 }
body { min-height: 100vh; font-family: 'EB Garamond', Georgia, serif; color: var(--parch); background: var(--ink) }
a { color: #d9c390; text-decoration: none }

/* fondo epico general */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(200,71,31,.28), transparent 62%),
    radial-gradient(900px 700px at 82% 8%, rgba(150,90,255,.16), transparent 60%),
    radial-gradient(1000px 800px at 12% 30%, rgba(120,40,10,.22), transparent 60%),
    linear-gradient(180deg,#1a0a06 0%,#0d0608 45%,#0a0509 100%) }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 3px 3px;
  box-shadow: inset 0 0 300px 60px rgba(0,0,0,.85) }
.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 18px }

/* NAV ornamentado */
nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 9px 20px;
  background: linear-gradient(180deg, rgba(20,10,7,.96), rgba(12,7,6,.82));
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold2), var(--gold), var(--gold2), transparent) 1;
  backdrop-filter: blur(5px) }
nav .brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 2px; color: var(--gold); font-size: 1.05rem; text-shadow: 0 0 14px rgba(200,71,31,.5) }
nav .brand img { height: 30px; filter: drop-shadow(0 0 6px rgba(232,198,90,.5)) }
nav a.lnk { font-family: 'Cinzel', serif; font-size: .71rem; letter-spacing: 1.5px; text-transform: uppercase; color: #cbb78a; padding: 8px 12px; border-radius: 4px; border: 1px solid transparent; transition: .15s }
nav a.lnk:hover { border-color: #5c451d; color: #fff2cf; text-shadow: 0 0 8px rgba(232,198,90,.6) }
nav a.lnk.on { color: #2a1704; background: linear-gradient(180deg,#f6e27a, var(--gold) 55%, var(--gold2)); border-color: #6a4e1f; box-shadow: 0 0 12px rgba(232,198,90,.4) }
nav a.lnk i { font-style: normal; opacity: .85; margin-right: 4px }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: 'Cinzel', serif; font-size: .64rem; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; border: 1px solid #4a3a18; margin-left: 6px }
.dot { width: 8px; height: 8px; border-radius: 50% }
.on-c { color: #bff0c0; background: rgba(40,120,50,.18); border-color: #3a7a3f } .on-c .dot { background: #4fe06a; box-shadow: 0 0 9px #4fe06a }
.off-c { color: #f0b7b7; background: rgba(120,30,30,.2); border-color: #8a3a3a } .off-c .dot { background: #e05050 }

/* HERO */
.hero { position: relative; z-index: 1; min-height: 74vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 18px 30px; overflow: hidden }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 460px at 50% 34%, rgba(200,71,31,.30), transparent 62%),
    radial-gradient(560px 420px at 50% 120%, rgba(150,90,255,.14), transparent 60%) }
.hero-logo { width: min(34%, 220px); filter: drop-shadow(0 10px 26px rgba(200,71,31,.55)) drop-shadow(0 0 14px rgba(0,0,0,.7)); animation: float 6s ease-in-out infinite }
/* Banner hero (reemplaza el logo+titulo) */
.hero-banner { min-height: auto; padding: 0 0 24px; justify-content: flex-start }
.hero-banner::before { display: none }
.banner-img { width: 100%; max-width: 1600px; height: auto; display: block; margin: 0 auto;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold2), var(--gold), var(--gold2), transparent) 1;
  box-shadow: 0 14px 40px rgba(0,0,0,.6) }
.hero-banner .tag { margin-top: 16px }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.hero h1 { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2.2rem, 7vw, 4rem); margin: 6px 0 2px; color: #f8ecc4; letter-spacing: 3px; text-shadow: 0 0 30px rgba(200,71,31,.6), 0 3px 0 rgba(0,0,0,.6) }
.hero .tag { color: #cbb184; font-style: italic; font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: 2px; margin: 0 0 4px }
.hero .clock { margin-top: 10px; font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: 2px; color: #a98f5f; text-transform: uppercase }
.scrolldown { margin-top: 20px; color: #8f7c55; font-size: 1.4rem; animation: bob 1.8s infinite }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(6px); opacity: 1 } }

/* ACTION BAR (paneles + contadores) */
.action { position: relative; z-index: 2; margin-top: -30px; display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 16px }
.panel-o { border: 1px solid #8a6a2a; border-radius: 6px; background: linear-gradient(180deg, rgba(22,14,9,.97), rgba(10,6,5,.98));
  box-shadow: 0 10px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.85), inset 0 0 0 2px rgba(138,106,42,.35), inset 0 1px 0 rgba(246,226,122,.14); padding: 18px }
.dlbig { display: flex; align-items: center; gap: 14px; justify-content: center; text-align: left }
.dlbig .ic { font-size: 2rem; filter: drop-shadow(0 0 8px rgba(232,198,90,.6)) }
.dlbig .t1 { font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 2px; color: var(--gold); font-size: 1.15rem }
.dlbig .t2 { color: #9a835a; font-size: .78rem }
.authrow { display: flex; flex-direction: column; gap: 10px; justify-content: center }
/* Botones estilo "JUGAR AHORA" del boceto: carmesi profundo + marco dorado doble */
.btn { position: relative; display: inline-block; text-align: center; padding: 12px 22px; border-radius: 4px;
  font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem;
  border: 1px solid #8a6a2a; outline: 1px solid rgba(0,0,0,.85); outline-offset: -3px;
  transition: filter .15s, transform .05s, box-shadow .15s }
.btn:active { transform: translateY(1px) }
.btn:hover { filter: brightness(1.18); box-shadow: 0 0 18px rgba(232,198,90,.35), 0 4px 16px rgba(0,0,0,.55) }
.btn.gold { color: #f8ecc4; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  background: linear-gradient(180deg, #a2211a, #7a120e 45%, #560a08); border-color: #c9a24a;
  box-shadow: 0 4px 16px rgba(122,18,14,.55), inset 0 1px 0 rgba(255,210,120,.35), inset 0 -8px 14px rgba(0,0,0,.45) }
.btn.purple { color: #f8ecc4; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  background: linear-gradient(180deg, #3a2a14, #241708 55%, #170e05);
  border-color: #c9a24a;
  box-shadow: 0 4px 14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,210,120,.28), inset 0 -8px 14px rgba(0,0,0,.5) }
.btn.ghost { color: #e6d3a0; background: rgba(24,15,8,.6); border-color: #6a4e1f;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6) }
.btn.big { padding: 15px 30px; font-size: .95rem }
/* Botones-imagen (PNGs ornamentados con texto integrado) */
.btn-img { display: inline-block; line-height: 0; transition: filter .15s, transform .06s }
.btn-img img { display: block; height: auto; max-width: 100% }
.btn-img:hover { filter: drop-shadow(0 0 13px rgba(232,198,90,.55)) brightness(1.08) }
.btn-img:active { transform: translateY(1px) }
.dlbig .btn-img img { width: min(100%, 380px); margin: 0 auto }
.authrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center }
.authrow .btn-img img { height: 54px; width: auto }
.counters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-around }
.ct { position: relative; width: 96px; height: 96px; display: grid; place-items: center; text-align: center }
.ct svg { position: absolute; inset: 0; transform: rotate(-90deg) } .ct .trk { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7 }
.ct .arc { fill: none; stroke-width: 7; stroke-linecap: round }
.ct.g .arc { stroke: url(#gg) } .ct.o .arc { stroke: #4fe06a } .ct.off .arc { stroke: #e05050 } .ct.p .arc { stroke: var(--purple) }
.ct .cn { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.15rem; line-height: 1; color: #f8ecc4 }
.ct .cl { font-size: .6rem; letter-spacing: 1px; text-transform: uppercase; color: #a98f5f; margin-top: 3px }
/* Cuentas y personajes no entran como cuarto circulo sin desbalancear la fila, asi que
   van de pie al ras de los tres. */
.ct-note { flex: 1 0 100%; text-align: center; color: #8f7c55; font-size: .72rem; letter-spacing: .3px; margin-top: 2px }

/* secciones */
section { position: relative; z-index: 1; padding: 52px 0 10px }
.stitle { text-align: center; font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: #e7c766; font-size: 1.5rem; margin: 0 0 4px; text-shadow: 0 0 18px rgba(200,71,31,.4) }
.rule { height: 18px; margin: 2px auto 26px; max-width: 340px; background: linear-gradient(90deg, transparent, rgba(232,198,90,.8), transparent) center/100% 1px no-repeat; position: relative }
.rule::after { content: "\2756"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: var(--gold); font-size: .9rem; background: #0d0608; padding: 0 12px }

/* ficha del server (rates y topes) */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px }
.srv-card { border: 1px solid #5c451d; border-radius: 8px; padding: 16px 12px; text-align: center;
  background: linear-gradient(180deg, rgba(30,20,14,.7), rgba(12,7,7,.85)); position: relative; overflow: hidden }
.srv-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130px 90px at 50% 0%, rgba(232,198,90,.16), transparent 70%); pointer-events: none }
.srv-val { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.5rem; line-height: 1; color: #f8ecc4; text-shadow: 0 0 16px rgba(200,71,31,.45) }
.srv-tit { font-family: 'Cinzel', serif; letter-spacing: 1.5px; text-transform: uppercase; color: #e7c766; font-size: .68rem; margin-top: 8px }
.srv-det { color: #8f7c55; font-size: .74rem; margin-top: 4px; line-height: 1.3 }
.srv-ip { text-align: center; margin-top: 18px; color: #bda986; font-size: .92rem }
.srv-ip code { font-size: 1rem; letter-spacing: 1px }

/* news */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px }
.ncard { border: 1px solid #5c451d; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, rgba(28,19,13,.85), rgba(13,8,8,.9)); transition: transform .15s, box-shadow .15s }
.ncard:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(200,71,31,.22) }
.ncard .top { height: 6px; background: linear-gradient(90deg, var(--ember), var(--gold), var(--purple)) }
.ncard .in { padding: 16px 18px } .ncard h3 { font-family: 'Cinzel', serif; color: #f2d98a; margin: 0 0 8px; font-size: 1rem }
.ncard p { color: #bda986; font-size: .92rem; margin: 0 }

/* patch notes */
.pn { border: 1px solid #5c451d; border-radius: 8px; padding: 16px 20px; margin: 14px 0; background: linear-gradient(180deg, rgba(28,19,13,.8), rgba(13,8,8,.9)) }
.pn-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(92,69,29,.4); padding-bottom: 8px; margin-bottom: 10px }
.pn-d { font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: 1px; color: #2a1704; background: linear-gradient(180deg,#f6e27a, var(--gold)); padding: 3px 10px; border-radius: 20px }
.pn-h h3 { font-family: 'Cinzel', serif; color: #f2d98a; margin: 0; font-size: 1.05rem }
.pn ul { margin: 0; padding-left: 20px } .pn li { color: #c8b591; font-size: .92rem; margin: 6px 0; line-height: 1.4 }

/* steps */
.steps { display: grid; gap: 12px; margin: 8px 0 }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid #5c451d; border-radius: 8px; background: rgba(20,14,10,.6) }
.step .sn { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: 'Cinzel', serif; font-weight: 900; color: #2a1704; background: linear-gradient(180deg,#f6e27a, var(--gold)) }
code { background: #0e0a07; border: 1px solid #5c451d; border-radius: 3px; padding: 1px 6px; color: var(--gold) }
.muted { color: #8f7c55 }

/* clases */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px }
.cl-card { border: 1px solid #5c451d; border-radius: 8px; padding: 18px 14px; text-align: center; background: linear-gradient(180deg, rgba(30,20,14,.7), rgba(12,7,7,.85)); position: relative; overflow: hidden }
.cl-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 90px at 50% 0%, rgba(200,71,31,.22), transparent 70%); pointer-events: none }
.cl-card .em { font-size: 2rem; filter: drop-shadow(0 0 8px rgba(200,71,31,.5)) }
.cl-card h4 { font-family: 'Cinzel', serif; color: #f2d98a; margin: 8px 0 5px; font-size: .92rem; letter-spacing: .5px }
.cl-card p { color: #a08a63; font-size: .76rem; margin: 0; line-height: 1.35 }

.foot { position: relative; z-index: 1; text-align: center; color: #7c6a48; font-size: .78rem; margin: 56px 0 26px; padding-top: 20px; border-top: 1px solid rgba(92,69,29,.4) }

/* --- Home: contenido + sidebar (Ranking arriba, Eventos abajo) --- */
.home-grid { display: grid; grid-template-columns: 300px 1fr 300px; gap: 26px; align-items: start; margin-top: 8px }
.home-main { min-width: 0 }
.home-main > section { margin-bottom: 8px }
.home-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto }
.home-side-l { order: 0 } .home-main { order: 1 } .home-side-r { order: 2 }

.side-card { border: 1px solid #8a6a2a; border-radius: 6px; padding: 14px 14px 8px;
  background: linear-gradient(180deg, rgba(22,14,9,.97), rgba(10,6,5,.98));
  box-shadow: 0 8px 26px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.85), inset 0 0 0 2px rgba(138,106,42,.35) }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold2), var(--gold), transparent) 1 }
.side-title { font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  color: #e7c766; font-size: 1.05rem; margin: 0; text-shadow: 0 0 14px rgba(200,71,31,.4) }
.seeall { color: var(--gold2); font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; text-decoration: none }
.seeall:hover { color: var(--gold) }
.hl-empty { color: #7c6a48; font-size: .82rem; padding: 10px 2px }

/* ranking (compacto, columna angosta) */
.home-rank { display: flex; flex-direction: column }
/* Dos lineas como los eventos: con 15 clases distintas, saber cual es cada uno importa. */
.rk-row { display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "pos name meta" "pos cls meta";
  align-items: center; gap: 0 8px; padding: 7px 2px; border-bottom: 1px solid rgba(92,69,29,.3) }
.rk-row:last-child { border-bottom: 0 }
.rk-pos { grid-area: pos; font-family: 'Cinzel', serif; font-weight: 900; color: #7c6a48; text-align: center; font-size: .85rem }
.rk-row.top .rk-pos { color: var(--gold); text-shadow: 0 0 10px rgba(232,198,90,.5) }
.rk-name { grid-area: name; color: var(--parch); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem }
.rk-cls { grid-area: cls; color: #8f7c55; font-size: .66rem; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rk-meta { grid-area: meta; color: #a08a63; font-size: .68rem; letter-spacing: .5px; white-space: nowrap; text-align: right }

/* eventos (compacto, columna angosta) */
.home-events { display: flex; flex-direction: column }
.ev-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name cd" "next cd"; align-items: center; gap: 0 8px; padding: 8px 2px; border-bottom: 1px solid rgba(92,69,29,.3) }
.ev-row:last-child { border-bottom: 0 }
.ev-name { grid-area: name; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .5px; color: #e7c766; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ev-next { grid-area: next; color: #a08a63; font-size: .68rem; letter-spacing: .5px }
.ev-cd { grid-area: cd; font-family: 'Cinzel', serif; font-variant-numeric: tabular-nums; color: var(--parch); font-size: .9rem; text-align: right; min-width: 74px; text-shadow: 0 0 10px rgba(200,71,31,.4) }

@media(max-width:980px) {
  .home-grid { grid-template-columns: 1fr }
  .home-side { position: static; max-height: none; overflow: visible }
  .home-side-l { order: 1 } .home-main { order: 0 } .home-side-r { order: 2 }
}
@media(max-width:720px) { .action { grid-template-columns: 1fr } .hero { min-height: 60vh } }
