/* Propuesta 3D / animada de la portada. Se carga después de vmu.css y vmu-rediseno.css. */

[hidden] { display: none; }
.empty { grid-column: 1 / -1; padding: 2rem 1.2rem; color: var(--text-dim); text-align: center; border: 1px dashed var(--border-bright); list-style: none; }
.sample-tag { margin-top: 1rem; font: 400 0.78rem var(--mono); color: var(--gold); }
.sample-tag[hidden] { display: none; }
.head { margin-bottom: 2.4rem; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.head p { color: var(--text-dim); margin-top: 0.5rem; max-width: 52ch; }
.head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

.nav.is-scrolled { border-bottom-color: var(--accent-bright); box-shadow: 0 6px 30px rgba(31, 166, 217, 0.12); }

/* ---------- Luz que sigue al cursor (borde) ---------- */
[data-fx] { position: relative; --gc: var(--accent-bright); }
[data-fx]::before {
  content: ''; position: absolute; inset: -1px; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.25s; z-index: 3;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--gc), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
[data-fx]:hover::before { opacity: 1; }
.tip[data-fx]::before { display: none; }

/* ---------- Héroe ---------- */
.hero {
  position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; padding: 120px 0 90px;
  overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border-bright);
  --px: 0; --py: 0; --sy: 0px;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
    linear-gradient(90deg, rgba(4, 8, 14, 0.97) 0%, rgba(4, 8, 14, 0.76) 42%, rgba(4, 8, 14, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%); }
.hero__plane {
  position: absolute; inset: 0; z-index: -3; will-change: transform;
  transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -10px + var(--sy) * 0.22), 0) scale(1.08);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 38%; }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__fog { position: absolute; inset: -10%; z-index: -1; pointer-events: none; background:
    radial-gradient(38% 30% at 22% 82%, rgba(79, 212, 255, 0.1), transparent 70%),
    radial-gradient(34% 28% at 78% 72%, rgba(31, 166, 217, 0.12), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 24rem); gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.hero__copy { transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 4px), 0); }
.hero__side { position: relative; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px + var(--sy) * -0.06), 0); }

.hero__kicker { font: 400 0.9rem var(--mono); color: var(--accent-bright); margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.02em; }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: clamp(0.6rem, 2vw, 1.8rem); }
.hero__title span:nth-child(3) { padding-left: clamp(1.2rem, 4vw, 3.6rem); }
.hero__title-hot { color: var(--accent-bright); }
.hero__lead { margin-top: 1.6rem; max-width: 44ch; font-size: 1.15rem; color: #c3d3e2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero__actions .btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.hero__live { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); max-width: 34rem; }
.hero__live[hidden] { display: none; }
.hero__live div { display: flex; flex-direction: column; }
.hero__live b { font: 700 2rem/1.1 var(--serif); color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.hero__live .is-online b::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 0.45rem; background: var(--green); box-shadow: 0 0 10px var(--green); vertical-align: middle; }
.hero__live span { font: 400 0.8rem var(--mono); color: var(--text-dim); }

/* Anillos holográficos: pedestal del panel */
.hero__rings { position: absolute; z-index: -1; left: 50%; top: 100%; width: 150%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%) perspective(900px) rotateX(72deg); }
.hero__rings i { position: absolute; border-radius: 50%; }
.hero__rings i:nth-child(1) { inset: 0; border: 1px dashed rgba(79, 212, 255, 0.5); }
.hero__rings i:nth-child(2) { inset: 11%; border: 2px solid rgba(79, 212, 255, 0.22); border-top-color: var(--accent-bright); border-bottom-color: transparent; }
.hero__rings i:nth-child(3) { inset: 24%; border: 1px dotted rgba(95, 227, 154, 0.6); }
.hero__rings i:nth-child(4) { inset: 36%; border: 1px solid rgba(79, 212, 255, 0.3); box-shadow: 0 0 40px rgba(79, 212, 255, 0.25), inset 0 0 40px rgba(79, 212, 255, 0.15); }
.hero__rings i:nth-child(5) { inset: 8%; border: 1px solid var(--accent-bright); opacity: 0; }

/* Joya 3D opcional (variante B) */
.hero__gem { position: absolute; z-index: 2; right: -30px; top: -170px; width: 260px; height: 260px; pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(79, 212, 255, 0.45)); }

/* ---------- Eventos ---------- */
.events { padding: 1.6rem 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.events__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.events__title { font: 400 0.85rem var(--mono); color: var(--text-dim); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border); transition: border-color 0.2s, translate 0.2s; }
.chip:hover { border-color: var(--green); }
.chip__dot { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip--ready .chip__dot { background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }
.chip__name { font-weight: 600; }
.chip__st { font: 400 0.75rem var(--mono); color: var(--text-dim); }

/* ---------- Ruta ---------- */
.route { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.route__track { position: relative; --p: 0; }
.route__line { position: absolute; z-index: 0; left: 0; right: 0; top: 1.4rem; height: 2px; background: var(--border); }
.route__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); box-shadow: 0 0 12px rgba(79, 212, 255, 0.6);
  transform: scaleX(var(--p)); transform-origin: left; }
.route__steps { list-style: none; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.step { position: relative; padding-top: 3.8rem; }
.step__node { position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; font: 500 0.95rem var(--mono);
  background: var(--bg); border: 1px solid var(--border-bright); color: var(--text-dim); transition: color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-on .step__node { color: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 22px rgba(79, 212, 255, 0.35); }
.step__card { height: 100%; background: var(--bg-card); border: 1px solid var(--border-bright); padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; }
.step__card h3 { font-size: 1.5rem; }
.step__card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
.step__link { margin-top: auto; font: 500 0.88rem var(--mono); color: var(--accent-bright); }
.step__link:hover { text-decoration: underline; }
.step__chip { margin-top: auto; align-self: flex-start; font: 500 0.82rem var(--mono); color: var(--green); border: 1px solid rgba(95, 227, 154, 0.35); background: rgba(95, 227, 154, 0.08); padding: 0.15rem 0.6rem; }

/* ---------- Ranking ---------- */
.fame, .guilds, .news { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.guilds { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.podium { list-style: none; display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 1.1rem; align-items: end; perspective: 1100px; margin-top: 1.4rem; }
.pcard { position: relative; background: var(--bg-card); border: 1px solid var(--border-bright); padding: 1.5rem 1.4rem 1.4rem; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pcard--1 { order: 2; padding-top: 2.6rem; border-color: var(--gold); box-shadow: 0 0 70px rgba(232, 195, 106, 0.16); --gc: var(--gold); }
.pcard--2 { order: 1; } .pcard--3 { order: 3; }
.pcard__rank { position: absolute; right: 0.9rem; top: 0.2rem; font: 700 5.4rem/1 var(--serif); color: rgba(214, 228, 240, 0.07); pointer-events: none; }
.pcard--1 .pcard__rank { color: rgba(232, 195, 106, 0.16); font-size: 6.6rem; }
.pcard__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; font-size: 1.7rem; border: 1px solid var(--border-bright); background: rgba(79, 212, 255, 0.05); margin-bottom: 1rem; }
.pcard--1 .pcard__icon { border-color: var(--gold); width: 3.8rem; height: 3.8rem; font-size: 2rem; }
.pcard__name { font: 700 1.55rem/1.15 var(--serif); overflow-wrap: anywhere; }
.pcard--1 .pcard__name { color: var(--gold); font-size: 1.9rem; }
.pcard__class { font: 400 0.85rem var(--mono); color: var(--text-dim); margin-top: 0.2rem; }
.pcard__resets { margin-top: 1.3rem; font: 700 2.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.pcard--1 .pcard__resets { font-size: 3.4rem; }
.pcard__resets small { font: 400 0.85rem var(--mono); color: var(--text-dim); margin-left: 0.4rem; }
.pcard__meta { display: flex; gap: 1.2rem; margin-top: 0.8rem; font: 400 0.82rem var(--mono); color: var(--text-dim); }
.pcard__meta b { color: var(--text); font-weight: 500; }

.toplist { list-style: none; margin-top: 1.4rem; border: 1px solid var(--border); background: var(--bg-card); }
.trow { display: grid; grid-template-columns: 2.6rem minmax(0, 1.6fr) minmax(5rem, 2fr) 6.5rem 5.2rem; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--border); }
.trow:first-child { border-top: 0; }
.trow:hover { background: rgba(79, 212, 255, 0.05); }
.trow__rank { font: 500 0.95rem var(--mono); color: var(--text-dim); }
.trow__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.trow__name small { display: block; font: 400 0.78rem var(--mono); color: var(--text-dim); font-weight: 400; }
.bar { height: 4px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transform: scaleX(var(--w, 1)); transform-origin: left; }
.trow__num { font: 500 0.95rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.trow__lvl { font: 400 0.85rem var(--mono); color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }

.gcards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.gcard { position: relative; background: var(--bg-card); border: 1px solid var(--border-bright); padding: 1.6rem 1.5rem 1.4rem; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.gcard--1 { border-color: var(--gold); box-shadow: 0 0 60px rgba(232, 195, 106, 0.13); --gc: var(--gold); }
.gcard__rank { position: absolute; right: 0.8rem; top: -0.4rem; font: 700 7.2rem/1 var(--serif); color: rgba(214, 228, 240, 0.06); pointer-events: none; }
.gcard--1 .gcard__rank { color: rgba(232, 195, 106, 0.15); }
.gcard__name { position: relative; font: 700 1.7rem/1.15 var(--serif); overflow-wrap: anywhere; padding-right: 3rem; }
.gcard--1 .gcard__name { color: var(--gold); }
.gcard__resets { margin-top: 1.3rem; font: 700 2.4rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.gcard__resets small { display: block; margin-top: 0.3rem; font: 400 0.8rem var(--mono); color: var(--text-dim); }
.gcard .bar { margin: 1.1rem 0 0.9rem; }
.gcard--1 .bar i { background: linear-gradient(90deg, #b8923a, var(--gold)); }
.gcard__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font: 400 0.82rem var(--mono); color: var(--text-dim); }
.gcard__meta b { color: var(--text); font-weight: 500; }

/* ---------- Anuncios ---------- */
.ncards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.ncard { display: flex; flex-direction: column; gap: 0.7rem; background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--accent-bright); padding: 1.3rem 1.3rem 1.2rem; }
.ncard--event { border-top-color: var(--green); --gc: var(--green); }
.ncard--maintenance { border-top-color: var(--gold); --gc: var(--gold); }
.ncard__top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.ncard__badge { font: 500 0.75rem var(--mono); padding: 0.15rem 0.5rem; color: var(--accent-bright); background: rgba(79, 212, 255, 0.1); border: 1px solid rgba(79, 212, 255, 0.3); }
.ncard--event .ncard__badge { color: var(--green); background: rgba(95, 227, 154, 0.1); border-color: rgba(95, 227, 154, 0.35); }
.ncard--maintenance .ncard__badge { color: var(--gold); background: rgba(232, 195, 106, 0.1); border-color: rgba(232, 195, 106, 0.35); }
.ncard__date { font: 400 0.8rem var(--mono); color: var(--text-dim); white-space: nowrap; }
.ncard__title { font: 600 1.2rem/1.25 var(--serif); }
.ncard__body { color: var(--text-dim); font-size: 0.93rem; line-height: 1.65; }
.ncard__img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top left; margin-top: auto; border: 1px solid var(--border); background: var(--bg); }

/* ---------- Cierre ---------- */
.cta { position: relative; padding: clamp(70px, 10vw, 120px) 0; overflow: hidden; isolation: isolate; }
.cta__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 8, 14, 0.96), rgba(4, 8, 14, 0.7)); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.cta p { margin-top: 1rem; color: #b5c8d8; font-size: 1.1rem; max-width: 40ch; }

/* ---------- Micro-interacciones ---------- */
.btn .arr { display: inline-block; }
.btn--primary::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); }

/* ---------- Movimiento (solo si el usuario no pidió reducirlo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { opacity: 0; animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero__title span:nth-child(1) { animation-delay: 0.05s; }
  .hero__title span:nth-child(2) { animation-delay: 0.2s; }
  .hero__title span:nth-child(3) { animation-delay: 0.35s; }
  .hero__kicker, .hero__lead, .hero__actions, .hero__live { opacity: 0; animation: rise 0.6s ease-out forwards; }
  .hero__lead { animation-delay: 0.5s; } .hero__actions { animation-delay: 0.62s; } .hero__live { animation-delay: 0.74s; }
  .hero__title .hero__title-hot { background: linear-gradient(100deg, var(--accent-bright) 35%, #fff 50%, var(--accent-bright) 65%) 0 0 / 250% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) 0.35s forwards, shine 6s ease-in-out 1.6s infinite; }
  .hero__fog { animation: fog 24s ease-in-out infinite alternate; }
  .hero__rings i:nth-child(1) { animation: spin 46s linear infinite; }
  .hero__rings i:nth-child(2) { animation: spin 22s linear infinite reverse; }
  .hero__rings i:nth-child(3) { animation: spin 34s linear infinite; }
  .hero__rings i:nth-child(5) { animation: ping 4.5s ease-out infinite; }
  .chip__dot { animation: blink 2.4s ease-in-out infinite; }

  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 80ms), translate 0.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 80ms); }
  .js [data-reveal][data-fx~="tilt"] { transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 80ms), translate 0.7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 80ms), transform 0.15s ease-out; }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  .js .bar i { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) 0.2s; }
  .js .is-in .bar i, .js .bar.is-in i { transform: scaleX(var(--w, 1)); }
  .route__line i { transition: transform 0.2s linear; }

  .btn { transition: background 0.18s, border-color 0.18s, color 0.18s, scale 0.12s; }
  .btn:active { scale: 0.97; }
  .btn--primary:hover::after { transform: translateX(120%); transition: transform 0.6s ease; }
  .btn:hover .arr { transform: translateX(5px); }
  .btn .arr { transition: transform 0.2s; }
  .chip:hover { translate: 0 -2px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes fog { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1.05); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.45; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__side { max-width: 26rem; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .pcard--1, .pcard--2, .pcard--3 { order: initial; }
  .pcard--1 { order: -1; }
  .gcards, .ncards { grid-template-columns: minmax(0, 1fr); }
  .route__steps { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .route__line { left: 1.4rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route__line i { transform: scaleY(var(--p)); transform-origin: top; }
  .step { padding: 0 0 0 4rem; }
  .step__node { top: 0; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: 92px 0 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 8, 14, 0.3) 0, rgba(4, 8, 14, 0.35) 200px, var(--bg) 440px); }
  .hero__plane { bottom: auto; height: 440px; }
  .hero__img { object-position: 70% 40%; }
  .hero__copy { padding-top: 130px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3.6rem); }
  .hero__title span:nth-child(2), .hero__title span:nth-child(3) { padding-left: 0.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .hero__live b { font-size: 1.6rem; }
  .hero__side { max-width: none; margin-top: 2.4rem; }
  .hero__rings { opacity: 0.5; }
  .trow { grid-template-columns: 2rem minmax(0, 1fr) 5.4rem; }
  .trow .bar, .trow__lvl { display: none; }
  .events__inner { gap: 0.8rem; }
}

/* ---------- Eventos: chip de Kalima (abre el panel), destacado de bosses y panel ---------- */
.chip--btn { padding: 0; }
.chip__btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.9rem; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chip__btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.chip--btn:hover, .chip--btn:focus-within { border-color: var(--accent-bright); }
.chip__more { padding-left: 0.6rem; border-left: 1px solid var(--border); font: 400 0.72rem var(--mono); color: var(--accent-bright); white-space: nowrap; }
.chip--feature { flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.55rem 1.1rem; border-color: rgba(232, 195, 106, 0.55); background: linear-gradient(135deg, rgba(232, 195, 106, 0.14), var(--bg-card) 70%); box-shadow: 0 0 22px rgba(232, 195, 106, 0.12); }
.chip--feature:hover { border-color: var(--gold); }
.chip__big { font: 700 1.2rem/1.2 var(--serif); color: var(--gold); }
.chip__sub { font: 400 0.75rem var(--mono); color: var(--text-dim); }

body.kmodal-open { overflow: hidden; }
.kmodal { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 1rem; }
.kmodal[hidden] { display: none; }
.kmodal__back { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.84); backdrop-filter: blur(3px); }
.kmodal__dlg { min-width: 0; position: relative; display: flex; flex-direction: column; width: min(900px, 100%); max-height: min(92vh, 900px); max-height: min(92dvh, 900px); background: var(--bg-card); border: 1px solid var(--border-bright); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(79, 212, 255, 0.06); outline: none; }
.kmodal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem 0.9rem; border-bottom: 1px solid var(--border); }
.kmodal__kicker { font: 400 0.75rem var(--mono); color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.1em; }
.kmodal__head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
.kmodal__x { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: transparent; border: 1px solid var(--border-bright); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.kmodal__x:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.kmodal__x:focus-visible, .kmodal__foot .btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.kmodal__body { overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.4rem 1.4rem; }
.kmodal__body section { margin-bottom: 1.5rem; }
.kmodal__body section:last-child { margin-bottom: 0; }
.kmodal__body h3 { font: 600 1.05rem var(--serif); color: var(--accent-bright); margin-bottom: 0.55rem; }
.kmodal__body p, .kmodal__body li { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
.kmodal__body strong { color: var(--text); }
.kmodal__body ol { margin: 0 0 0 1.2rem; display: grid; gap: 0.35rem; }
.kmodal__tw { overflow-x: auto; border: 1px solid var(--border); margin-top: 0.4rem; }
.kmodal__tw table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.kmodal__tw th { text-align: left; white-space: nowrap; padding: 0.55rem 0.8rem; font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); background: rgba(31, 166, 217, 0.08); border-bottom: 1px solid var(--border); }
.kmodal__tw td { padding: 0.5rem 0.8rem; white-space: nowrap; color: var(--text); border-bottom: 1px solid rgba(31, 166, 217, 0.1); }
.kmodal__tw tr:last-child td { border-bottom: 0; }
.kmodal__tw td.r, .kmodal__tw th.r { text-align: right; }
.kmodal__tw td b { color: var(--gold); font-weight: 600; }
.kmodal__note { font-size: 0.8rem !important; margin-top: 0.5rem; }
.kmodal__foot { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: space-between; align-items: center; padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); background: var(--bg-alt); }
@media (prefers-reduced-motion: no-preference) {
  .kmodal:not([hidden]) .kmodal__dlg { animation: kIn 0.22s cubic-bezier(.2, .7, .2, 1); }
  .kmodal:not([hidden]) .kmodal__back { animation: kFade 0.22s ease; }
}
@keyframes kIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@keyframes kFade { from { opacity: 0; } }
@media (max-width: 640px) {
  .chips { width: 100%; }
  .chip--btn, .chip--feature { flex: 1 1 100%; }
  .kmodal { padding: 0; }
  .kmodal__dlg { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-width: 0; }
  .kmodal__head, .kmodal__body, .kmodal__foot { padding-left: 1rem; padding-right: 1rem; }
  .kmodal__foot .btn { flex: 1 1 100%; justify-content: center; }
}
