:root {
  --navy: #12224a; --navy2: #0d1730;
  --panel: rgba(30, 37, 54, 0.94); --panel2: #2a3349; --panel3: #343e57; --card: #262e42; --card2: #2f3850;
  --line: rgba(255, 255, 255, 0.12); --line2: rgba(255, 255, 255, 0.22);
  --cyan: #2fc6d8; --cyan2: #1a9fb5; --teal: #1d8a9b; --yellow: #f2c230; --red: #d42f35; --red2: #a91f25; --green: #3ccf6a;
  --text: #fff; --muted: #9aa7bd; --muted2: #6d7a91;
  --cond: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif; --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0b0f17; color: var(--text); font-family: var(--cond); user-select: none; -webkit-user-select: none; }
button { font-family: var(--cond); color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font-family: var(--body); }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; position: absolute; top: 2px; right: -9px; box-shadow: 0 0 6px #ff3b3b; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: flex-end; font-family: var(--cond); font-weight: 900; font-style: italic; letter-spacing: -1px; color: #fff; text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.35); position: relative; }
.logo.big { font-size: 150px; line-height: 0.9; transform: skewX(-6deg) rotate(-2deg); }
.logo-s { position: relative; font-size: 1.18em; margin-right: -2px; }
.logo-s::after { content: ''; position: absolute; left: -18%; right: 55%; top: 46%; height: 9%; background: var(--navy); transform: skewY(-10deg); }
.logo-bullet { width: 0.45em; height: 0.22em; align-self: flex-start; margin: 0.06em 0 0 0.05em; transform: rotate(-35deg); filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.35)); }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 45%, #1a3168 0%, var(--navy) 45%, var(--navy2) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; transition: opacity 0.5s; }
#splash.fade { opacity: 0; pointer-events: none; }
.splash-bar { width: min(420px, 70vw); height: 6px; background: rgba(255, 255, 255, 0.12); margin-top: 70px; transform: skewX(-20deg); overflow: hidden; }
#splash-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan2), var(--cyan)); transition: width 0.25s; box-shadow: 0 0 12px var(--cyan); }
#splash-msg { margin-top: 14px; color: #8fa2c8; font-weight: 700; letter-spacing: 3px; font-size: 14px; }

/* ---------- Lobby ---------- */
#lobby { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#lobby > * { pointer-events: auto; }
.topnav { position: absolute; left: 22px; top: 12px; display: flex; gap: 26px; }
.topnav button { position: relative; font-size: 31px; font-weight: 800; letter-spacing: 0.3px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); transition: color 0.15s, transform 0.15s; }
.topnav button:hover { color: #ffe9a6; transform: translateY(-1px); }
.topnav button.active { color: var(--yellow); }
.gear { position: absolute; left: 22px; top: 62px; width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); transition: transform 0.4s; }
.gear:hover { transform: rotate(90deg); }
.gear svg { width: 100%; height: 100%; }
.wallet { position: absolute; right: 22px; top: 14px; display: flex; gap: 26px; align-items: center; font-size: 24px; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.cur { display: flex; align-items: center; gap: 8px; position: relative; }
.cur i:first-child { width: 24px; height: 24px; border-radius: 50%; display: inline-block; }
.cur.coin i:first-child { background: radial-gradient(circle at 35% 35%, #fff2b0, #e9a91f 55%, #9a6a0a); box-shadow: inset 0 0 0 2px #c48a14; }
.cur.shard i:first-child { background: linear-gradient(135deg, #c9d6e8, #6f7f98); clip-path: polygon(50% 0, 100% 40%, 80% 100%, 20% 100%, 0 40%); border-radius: 0; }
.cur.lvl b { font-size: 24px; } .cur.lvl small { font-size: 15px; margin-left: -6px; }
.live-chip { position: absolute; right: 22px; top: 56px; text-align: right; font-weight: 800; font-size: 20px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.live-chip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; margin-right: 8px; box-shadow: 0 0 8px #ff3b3b; animation: blink 1.6s infinite; }
.live-chip span { display: block; font-size: 13px; font-weight: 600; color: #d8deea; }
@keyframes blink { 50% { opacity: 0.25; } }
.dailybox { position: absolute; right: 22px; top: 122px; width: 210px; height: 100px; background: linear-gradient(160deg, #3a7fd0, #1b4a92); border: 2px solid rgba(255, 255, 255, 0.55); cursor: pointer; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.dailybox:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(47, 198, 216, 0.4); }
.db-title { position: absolute; left: 10px; top: 4px; font-weight: 800; font-size: 19px; }
.db-art { position: absolute; left: 30px; top: 30px; width: 150px; height: 48px; background: linear-gradient(180deg, #9ec3f0 0%, #4a83c9 45%, #2c5a99 100%); clip-path: polygon(6% 20%, 94% 0, 100% 75%, 8% 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35); }
.db-art::after { content: ''; position: absolute; left: 44%; top: 30%; width: 14%; height: 34%; background: #e6eef8; }
.db-free { position: absolute; right: 8px; bottom: 3px; font-weight: 900; font-style: italic; font-size: 19px; color: var(--yellow); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.dailybox.claimed .db-free { color: #aab6c8; }

#nametags { position: absolute; inset: 0; pointer-events: none !important; }
.nametag { position: absolute; transform: translate(-50%, -100%); font-family: var(--body); font-weight: 600; font-size: 20px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); white-space: nowrap; }
.nametag small { display: block; text-align: center; font-size: 12px; color: var(--yellow); }
.friend-slot { position: absolute; width: 15.5vw; height: 26vw; max-height: 52vh; max-width: 230px; top: 31vh; border: 3px solid rgba(255, 255, 255, 0.5); border-radius: 6px; background: rgba(255, 255, 255, 0.05); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transition: background 0.15s, border-color 0.15s; transform: perspective(600px) rotateY(var(--ry)); }
.friend-slot[data-slot="1"] { left: 27vw; --ry: 12deg; } .friend-slot[data-slot="2"] { right: 27vw; --ry: -12deg; }
.friend-slot:hover { background: rgba(255, 255, 255, 0.13); border-color: #fff; }
.friend-slot span { font-weight: 700; font-size: 18px; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.5px; }
.fs-plus { width: 54px; height: 54px; position: relative; opacity: 0.6; }
.fs-plus::before, .fs-plus::after { content: ''; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.fs-plus::before { width: 54px; height: 10px; } .fs-plus::after { width: 10px; height: 54px; }
.friend-slot.filled { border-color: transparent; background: transparent; justify-content: flex-end; }
.friend-slot.filled .fs-plus { display: none; }
.friend-slot.filled span { background: rgba(0, 0, 0, 0.5); padding: 3px 10px; font-size: 14px; color: #ffb4b4; }
.change-skin { position: absolute; left: 50%; bottom: 25vh; transform: translateX(-50%); font-weight: 700; font-size: 19px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
.change-skin:hover { color: #fff; }
.party-info { position: absolute; right: 22px; bottom: 216px; font-family: var(--body); font-size: 13px; color: #cfd6e2; text-align: right; display: flex; align-items: center; gap: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.party-info b { color: var(--cyan); font-weight: 600; }
.region { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 11px; line-height: 1; }
.region small { color: #aab; font-size: 9px; }
.flag { width: 22px; height: 14px; background: linear-gradient(180deg, #2fc6d8 0 33%, #fff 33% 66%, #2fc6d8 66%); margin-bottom: 2px; }
.play-stack { position: absolute; right: -22px; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; }
.btn-join, .btn-mode { transform: skewX(-18deg); margin-bottom: 6px; padding: 0 40px 0 34px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; transition: filter 0.15s, transform 0.15s; }
.btn-join > *, .btn-mode > * { transform: skewX(18deg); }
.btn-join { width: 330px; background: linear-gradient(90deg, #1f8f9f, #29b4c4); box-shadow: 0 4px 0 #136a77; }
.btn-mode { width: 380px; height: 52px; background: linear-gradient(90deg, #1b2130, #2a3246); box-shadow: 0 4px 0 #0d1119; gap: 14px; justify-content: flex-start; padding-left: 40px; }
.btn-mode b { font-size: 24px; display: block; line-height: 1; text-align: center; }
.btn-mode small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; letter-spacing: 0.5px; }
.btn-mode > span:last-child { flex: 1; }
.tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 11px solid #fff; }
.btn-join:hover, .btn-mode:hover { filter: brightness(1.18); }
.btn-play { width: 430px; height: 120px; transform: skewX(-18deg); background: linear-gradient(180deg, #4ad8e6 0%, #25b6c8 48%, #1797aa 100%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 -2px 0 #0f6f7d; position: relative; overflow: hidden; transition: filter 0.15s; }
.btn-play span { display: block; transform: skewX(18deg); font-size: 82px; font-weight: 900; font-style: italic; letter-spacing: 1px; color: #fff; text-shadow: 0 4px 0 #11788a, 0 6px 12px rgba(0, 0, 0, 0.3); padding-right: 40px; }
.btn-play::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: shine 3.2s infinite; }
@keyframes shine { 0%, 70% { left: -80px; } 100% { left: 480px; } }
.btn-play:hover { filter: brightness(1.12); }
.btn-play.joining span { font-size: 60px; }
.community { position: absolute; left: 14px; bottom: 26px; display: flex; gap: 8px; align-items: center; background: #5865f2; padding: 6px 12px 6px 8px; border-radius: 4px; cursor: pointer; box-shadow: 0 3px 0 #3c45b0; }
.community svg { width: 28px; height: 28px; }
.community b { display: block; font-size: 15px; line-height: 1; } .community small { font-family: var(--body); font-size: 11px; }
.version { position: absolute; left: 16px; bottom: 6px; font-family: var(--body); font-size: 10px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Modales ---------- */
#modal-root { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#modal-root > * { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(5, 8, 14, 0.6); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; animation: fadein 0.18s; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { transform: scale(0.94); opacity: 0; } }
.panel { position: relative; background: linear-gradient(180deg, #2a3349 0%, #222a3d 100%); border: 1px solid var(--line); width: min(860px, 94vw); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); animation: popin 0.2s ease-out; }
.panel::before, .panel::after, .panel .c3, .panel .c4 { content: ''; position: absolute; width: 14px; height: 14px; border: 3px solid #cfd8e6; pointer-events: none; }
.panel::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; } .panel::after { right: -4px; top: -4px; border-left: 0; border-bottom: 0; }
.panel .c3 { left: -4px; bottom: -4px; border-right: 0; border-top: 0; } .panel .c4 { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 30px; font-weight: 700; letter-spacing: 0.3px; }
.x-btn { width: 36px; height: 36px; border: 2px solid var(--cyan); color: #fff; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.x-btn:hover { background: rgba(47, 198, 216, 0.25); }
.tabs { display: flex; gap: 26px; padding: 12px 18px 0; align-items: center; }
.tabs button { font-size: 24px; font-weight: 700; color: #fff; padding-bottom: 6px; border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--cyan); }
.subtabs { display: flex; gap: 20px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.subtabs button { font-size: 16px; font-weight: 700; color: #cfd6e2; }
.subtabs button.on { color: var(--cyan); }
.subtabs button.on::after { content: ' ✓'; }
.panel-body { padding: 18px; overflow-y: auto; flex: 1; }
.panel-body::-webkit-scrollbar { width: 8px; } .panel-body::-webkit-scrollbar-thumb { background: #4a5570; }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-card { position: relative; aspect-ratio: 16 / 9; border: 2px solid transparent; background: #111 center / cover; cursor: pointer; overflow: hidden; transition: transform 0.15s, border-color 0.15s; }
.mode-card:hover { transform: translateY(-2px); }
.mode-card.on { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 6px 16px rgba(242, 194, 48, 0.25); }
.mode-card .mc-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-weight: 800; font-style: italic; font-size: 17px; display: flex; justify-content: space-between; align-items: flex-end; }
.mode-card .mc-label small { font-style: normal; font-weight: 600; font-size: 12px; color: #cfd6e2; }
.mode-card.on .mc-label::after { content: '✓'; color: var(--yellow); font-style: normal; }
.mode-card.locked { filter: grayscale(1) brightness(0.55); cursor: default; }
.mode-card.locked .mc-label { color: #aab; }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.field label { display: block; font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 8px 14px; background: var(--card2); border: 1px solid var(--line); font-weight: 700; font-size: 16px; transition: background 0.15s; }
.seg button:hover { background: var(--panel3); }
.seg button.on { background: var(--cyan2); border-color: var(--cyan); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--cyan); }
.range-row b { min-width: 48px; text-align: right; font-size: 18px; }
.btn { padding: 10px 26px; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; transition: filter 0.15s, transform 0.1s; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: translateY(1px); }
.btn.red { background: linear-gradient(180deg, #e0353b, #b8232a); box-shadow: 0 0 0 2px #ff6a6a inset, 0 4px 0 #7a1418; }
.btn.cyan { background: linear-gradient(180deg, #3ad0e0, #1d9fb3); box-shadow: 0 4px 0 #116f7d; }
.btn.ghost { border: 2px solid var(--cyan); }
.btn.dark { background: #1b2130; border: 1px solid var(--line2); }
.btn[disabled] { filter: grayscale(1) brightness(0.6); cursor: default; }

/* Inventario / tienda */
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.item { position: relative; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-bottom: 4px solid var(--rc, #9aa4b5); padding: 8px; cursor: pointer; transition: transform 0.12s, border-color 0.12s; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.item:hover { transform: translateY(-2px); border-color: var(--line2); }
.item.equipped { outline: 2px solid var(--yellow); }
.item .it-name { font-weight: 800; font-size: 17px; }
.item .it-rar { font-size: 12px; font-weight: 700; color: var(--rc); letter-spacing: 0.5px; }
.item .it-img { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 64px; }
.item .it-img img { max-width: 100%; max-height: 70px; }
.item .it-foot { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; }
.item .price { display: flex; align-items: center; gap: 5px; color: var(--yellow); }
.item .price i { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b0, #e9a91f 55%, #9a6a0a); }
.item .tag { font-size: 12px; padding: 2px 7px; background: rgba(255, 255, 255, 0.1); }
.item .tag.eq { background: var(--yellow); color: #222; }
.swatch { width: 70px; height: 86px; position: relative; }
.swatch i { position: absolute; display: block; }
.weapon-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.weapon-filter button { padding: 5px 10px; background: var(--card2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.weapon-filter button.on { background: var(--cyan2); }
.loadout-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lo-card { background: var(--card); border: 1px solid var(--line); padding: 10px; }
.lo-card h4 { font-size: 18px; margin-bottom: 8px; color: var(--yellow); }
.lo-card select { width: 100%; padding: 6px; background: #1b2130; color: #fff; border: 1px solid var(--line2); font-weight: 600; margin-bottom: 8px; }

/* Perfil */
.profile-top { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.avatar { width: 92px; height: 92px; background: linear-gradient(135deg, #3a4560, #1e2536); border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; font-style: italic; }
.name-edit { display: flex; gap: 8px; align-items: center; }
.name-edit input { background: #1b2130; border: 1px solid var(--line2); color: #fff; padding: 6px 10px; font-size: 18px; font-weight: 600; width: 220px; }
.xpbar { height: 10px; background: #151a26; margin-top: 8px; width: 320px; max-width: 60vw; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan2), var(--cyan)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); padding: 12px; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.stat b { font-size: 30px; }

/* Noticias */
.news-hero { height: 190px; margin: -18px -18px 16px; background: linear-gradient(120deg, rgba(10, 16, 30, 0.2), rgba(10, 16, 30, 0.85)), var(--hero) center / cover; position: relative; }
.news-hero .date { position: absolute; right: 14px; top: 10px; background: rgba(0, 0, 0, 0.5); padding: 2px 8px; font-size: 14px; }
.news h3 { font-size: 40px; font-weight: 900; font-style: italic; } .news h3 small { font-size: 16px; color: var(--muted); font-style: normal; }
.news ul { margin: 10px 0 18px 20px; font-family: var(--body); font-size: 14px; line-height: 1.7; color: #d6dcea; }
.news h4 { font-size: 22px; margin-top: 6px; }
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 26px; font-family: var(--body); font-size: 14px; }
.keys div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 5px 0; }
kbd { font-family: var(--cond); font-weight: 800; background: #fff; color: #1b2130; padding: 1px 7px; border-radius: 3px; font-size: 14px; box-shadow: 0 2px 0 #9aa4b5; }

/* Recompensas diarias */
.daily { width: min(820px, 94vw); background: linear-gradient(115deg, #2b3247 0 18%, #2aa35a 18% 30%, #2b3247 30% 44%, #6a3bd6 44% 58%, #2b3247 58% 70%, #c9b52a 70% 82%, #2b3247 82%); border: 2px solid rgba(255, 255, 255, 0.4); padding: 26px 26px 30px; position: relative; animation: popin 0.2s; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.daily::before { content: ''; position: absolute; inset: 0; background: rgba(30, 36, 52, 0.55); }
.daily > * { position: relative; }
.daily h2 { font-size: 46px; font-weight: 900; color: var(--yellow); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); line-height: 1; }
.daily .sub { color: var(--cyan); font-weight: 700; font-style: italic; font-size: 17px; margin-bottom: 18px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.day { text-align: center; }
.day > b { display: block; font-size: 19px; margin-bottom: 6px; }
.day .card { aspect-ratio: 0.85; border: 2px solid rgba(255, 255, 255, 0.35); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 4px; font-weight: 800; font-size: 14px; }
.ric { display: block; width: 46px; height: 46px; position: relative; }
.ric.coin { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b0, #e9a91f 55%, #9a6a0a); box-shadow: inset 0 0 0 3px #c48a14, 0 3px 6px rgba(0,0,0,.4); }
.ric.coin::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; border: 3px solid rgba(150,100,10,.55); }
.ric.shard { background: linear-gradient(135deg, #f0f4fa, #8a9ab4 60%, #5a6880); clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.ric.skin { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; }
.ric.skin img { width: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.ric.skin b { position: absolute; font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.day.today .card { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, 0.35); }
.day.done .card { opacity: 0.45; }
.day .arrow { width: 0; height: 0; margin: 8px auto 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid var(--yellow); visibility: hidden; }
.day.today .arrow { visibility: visible; }
.daily .row { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }

/* Caja diaria */
.boxopen { text-align: center; padding: 30px 10px; }
.boxopen .crate3d { width: 220px; height: 120px; margin: 0 auto 20px; background: linear-gradient(180deg, #9ec3f0, #2c5a99); clip-path: polygon(6% 20%, 94% 0, 100% 75%, 8% 100%); animation: shake 0.5s infinite; }
.boxopen.open .crate3d { animation: none; transform: scale(1.15); filter: brightness(1.6); transition: all 0.4s; }
@keyframes shake { 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }
.reward-name { font-size: 34px; font-weight: 900; font-style: italic; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 8; pointer-events: none; font-family: var(--cond); }
.top-score { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.ts-box { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 22px; background: rgba(30, 40, 58, 0.85); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); border: 0; }
.ts-box b { font-size: 25px; font-weight: 700; } .ts-box small { font-size: 12px; font-weight: 700; color: #b8c2d4; letter-spacing: 0.4px; }
.ts-box.blue { background: rgba(32, 96, 190, 0.85); } .ts-box.red { background: rgba(190, 40, 46, 0.85); }
.ts-time { display: flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.ts-time i { font-style: normal; color: #cfd6e2; font-size: 26px; }
.ts-time.low b { color: #ff5a5a; }
.chat { position: absolute; left: 16px; top: 12px; width: 360px; font-family: var(--body); font-size: 13px; font-weight: 600; }
.chat-log div { margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); animation: fadein 0.2s; transition: opacity 1s; }
.chat-log div.old { opacity: 0; }
.chat.open .chat-log div.old { opacity: 1; }
.chat-log b { color: #9fd2ff; }
#chat-input { display: none; width: 100%; margin-top: 4px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; padding: 5px 8px; font-weight: 600; pointer-events: auto; outline: none; }
.chat.open #chat-input { display: block; }
.chat-hint { display: inline-block; background: #f2f2f2; color: #222; font-weight: 700; padding: 2px 10px; margin-top: 4px; font-size: 13px; }
.chat.open .chat-hint { display: none; }
.killfeed { position: absolute; right: 16px; top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--body); font-size: 14px; font-weight: 600; }
.kf { display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: rgba(0, 0, 0, 0.35); text-shadow: 0 1px 2px #000; animation: kfin 0.25s ease-out; transition: opacity 0.5s; }
.kf.me { background: rgba(212, 47, 53, 0.55); }
.kf.mine { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.kf img { height: 18px; filter: drop-shadow(0 1px 1px #000); }
.kf .hs { width: 16px; height: 16px; }
.kf .blue { color: #7fb6ff; } .kf .red { color: #ff8a8a; }
@keyframes kfin { from { transform: translateX(30px); opacity: 0; } }
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --gap: 6px; --len: 8px; --w: 2px; --c: #fff; }
.crosshair i { position: absolute; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.ch-t, .ch-b { width: var(--w); height: var(--len); left: calc(var(--w) / -2); }
.ch-l, .ch-r { height: var(--w); width: var(--len); top: calc(var(--w) / -2); }
.ch-t { bottom: var(--gap); } .ch-b { top: var(--gap); } .ch-l { right: var(--gap); } .ch-r { left: var(--gap); }
.ch-dot { width: 2px; height: 2px; left: -1px; top: -1px; display: none; }
.crosshair.dot .ch-dot { display: block; }
.crosshair.dotonly i:not(.ch-dot) { display: none; } .crosshair.dotonly .ch-dot { display: block; width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; }
.crosshair.hide { display: none; }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.hitmarker i { position: absolute; width: 2px; height: 9px; background: #fff; left: -1px; top: -4.5px; box-shadow: 0 0 2px #000; }
.hitmarker i:nth-child(1) { transform: rotate(45deg) translateY(-11px); } .hitmarker i:nth-child(2) { transform: rotate(135deg) translateY(-11px); }
.hitmarker i:nth-child(3) { transform: rotate(225deg) translateY(-11px); } .hitmarker i:nth-child(4) { transform: rotate(315deg) translateY(-11px); }
.hitmarker.show { animation: hm 0.25s ease-out; }
.hitmarker.head i { background: #ffd23a; } .hitmarker.kill i { background: #ff3b3b; height: 12px; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.35); } 100% { opacity: 0; transform: scale(1); } }
.scope { position: absolute; inset: 0; display: none; z-index: -1; }
.scope.on { display: block; }
.scope-ring { position: absolute; left: 50%; top: 50%; width: 92vh; height: 92vh; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 100vmax #050608, inset 0 0 50px 20px rgba(0, 0, 0, 0.8); }
.scope .sl-h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.scope .sl-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #000; }
.hurt { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 0, 0.55) 100%); opacity: 0; transition: opacity 0.4s; }
.dmg-layer { position: absolute; left: 50%; top: 50%; }
.dmg { position: absolute; left: -60px; top: -170px; width: 120px; height: 40px; transform-origin: 60px 170px; opacity: 0.9; transition: opacity 0.8s; }
.dmg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(255, 30, 30, 0.95), rgba(255, 30, 30, 0) 70%); clip-path: polygon(0 100%, 50% 0, 100% 100%, 50% 75%); }
.dmg.fade { opacity: 0; }
#tags { position: absolute; inset: 0; }
.tag3d { position: absolute; transform: translate(-50%, -100%); font-family: var(--body); font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; white-space: nowrap; text-align: center; }
.tag3d .tb { height: 4px; width: 60px; margin: 2px auto 0; background: rgba(0, 0, 0, 0.6); }
.tag3d .tb i { display: block; height: 100%; background: #4ee07a; }
.tag3d.enemy { color: #ff6b6b; } .tag3d.enemy .tb i { background: #ff4b4b; } .tag3d.ally { color: #7fb6ff; }
.killbanner { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); text-align: center; }
.kb { animation: kbin 0.25s cubic-bezier(.2, 1.6, .5, 1); }
.kb .kb-main { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; text-shadow: 0 2px 4px #000; }
.kb .kb-main span { color: #ff5a5a; }
.kb .kb-streak { font-size: 40px; font-weight: 900; font-style: italic; color: var(--yellow); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5); }
.kb .kb-hs { color: var(--yellow); font-size: 16px; font-weight: 800; }
@keyframes kbin { from { transform: scale(1.6); opacity: 0; } }
.toast-hud { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 20px; font-weight: 800; color: var(--yellow); text-shadow: 0 2px 4px #000; }
.toast-hud div { animation: tup 1.2s ease-out forwards; }
@keyframes tup { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.pickup { position: absolute; left: 50%; top: 75%; transform: translateX(-50%); font-size: 20px; font-weight: 700; text-shadow: 0 2px 4px #000; display: none; }
.pickup.on { display: block; }
.shield { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); font-weight: 800; font-size: 16px; color: var(--cyan); letter-spacing: 2px; text-shadow: 0 2px 4px #000; display: none; }
.shield.on { display: block; animation: blink 0.8s infinite; }
.health { position: absolute; left: 22px; bottom: 26px; }
.hp-row { display: flex; align-items: center; gap: 6px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
.hp-row svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px #000); }
.hp-row b { font-size: 26px; font-weight: 700; } .hp-row small { font-size: 17px; color: #d6dcea; font-weight: 600; }
.hp-row.low b { color: #ff4b4b; }
.hp-bar { display: flex; gap: 4px; margin-top: 4px; }
.hp-bar i { width: 30px; height: 10px; background: rgba(255, 255, 255, 0.18); position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.hp-bar i b { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; transition: width 0.15s; }
.hp-row.low ~ .hp-bar i b { background: #ff4b4b; }
.actions { position: absolute; right: 22px; top: 44%; display: flex; flex-direction: column; gap: 10px; }
.act { display: flex; align-items: center; gap: 6px; background: rgba(30, 38, 56, 0.6); padding: 4px 6px; }
.act svg { width: 28px; height: 28px; color: #e8ecf4; }
.act kbd { font-size: 13px; padding: 2px 6px; }
.slots { position: absolute; right: 18px; bottom: 116px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.slot { display: flex; align-items: center; gap: 14px; opacity: 0.45; transition: opacity 0.15s, transform 0.15s; }
.slot img { height: 34px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.slot .sn { font-size: 18px; font-weight: 700; display: flex; flex-direction: column; align-items: center; text-shadow: 0 1px 3px #000; }
.slot .sn::after { content: ''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--cyan); margin-top: 2px; }
.slot.on { opacity: 1; transform: translateX(-6px); }
.slot.empty img { opacity: 0.25; }
.ammo { position: absolute; right: 22px; bottom: 16px; text-align: right; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.ammo-name { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; }
.ammo-count { font-size: 50px; font-weight: 600; line-height: 1; }
.ammo-count b { font-weight: 700; } .ammo-count span { color: #cfd6e2; margin: 0 2px; } .ammo-count small { font-size: 40px; color: #d6dcea; }
.ammo-count.low b { color: #ff4b4b; } .ammo-count.inf { font-size: 40px; }
.reload-bar { height: 4px; background: rgba(255, 255, 255, 0.2); margin-top: 4px; width: 120px; margin-left: auto; visibility: hidden; }
.reload-bar.on { visibility: visible; } .reload-bar i { display: block; height: 100%; background: var(--cyan); width: 0; }
.fps { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-family: var(--body); font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.scoreboard { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: min(760px, 94vw); background: rgba(24, 30, 44, 0.92); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.sb-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sb-head h3 { font-size: 26px; font-weight: 800; } .sb-head span { color: var(--muted); font-weight: 700; }
.sb-table { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 14px; }
.sb-table th { text-align: left; font-family: var(--cond); color: var(--muted); font-size: 14px; padding: 6px 12px; letter-spacing: 0.5px; }
.sb-table td { padding: 6px 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-weight: 600; }
.sb-table tr.me td { background: rgba(242, 194, 48, 0.16); color: #ffe7a0; }
.sb-table tr.dead td { opacity: 0.5; }
.sb-table td.num, .sb-table th.num { text-align: center; }
.sb-team { padding: 6px 12px; font-family: var(--cond); font-weight: 800; font-size: 18px; }
.sb-team.blue { background: rgba(32, 96, 190, 0.5); } .sb-team.red { background: rgba(190, 40, 46, 0.5); }
.death { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); text-align: center; pointer-events: none; animation: fadein 0.4s; }
.death .killed-by { font-size: 16px; font-weight: 700; color: #cfd6e2; letter-spacing: 2px; }
.death .kcard { display: flex; align-items: center; gap: 16px; background: rgba(20, 26, 40, 0.85); padding: 10px 22px; margin: 8px 0; border-left: 4px solid var(--red); }
.death .kname { font-size: 30px; font-weight: 800; }
.death .khp { font-family: var(--body); font-size: 13px; color: #ff8a8a; font-weight: 700; }
.death img { height: 40px; }
.death .resp { font-size: 22px; font-weight: 800; text-shadow: 0 2px 4px #000; }
.death .resp b { color: var(--cyan); }
.death .hint { font-size: 14px; color: #cfd6e2; font-weight: 600; margin-top: 4px; }

/* Overlays en partida */
.overlay { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 20, 0.55); animation: fadein 0.15s; }
.lo-wrap { width: min(1020px, 96vw); text-align: center; }
.lo-wrap h1 { font-size: 64px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); line-height: 1; }
.lo-wrap .lo-sub { color: var(--yellow); font-weight: 700; font-size: 16px; margin: 6px 0 16px; }
.lo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lo { position: relative; background: rgba(24, 30, 44, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); height: 132px; cursor: pointer; text-align: left; padding: 8px 10px; transition: border-color 0.12s, background 0.12s, transform 0.12s; }
.lo:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(34, 42, 62, 0.95); transform: translateY(-2px); }
.lo.on { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.lo .lo-t { font-size: 14px; font-weight: 800; letter-spacing: 0.3px; }
.lo .lo-k { position: absolute; right: 6px; top: 6px; font-size: 11px; background: #2c6ad6; padding: 0 5px; font-weight: 800; }
.lo .lo-p { position: absolute; left: 4px; top: 30px; width: 70%; height: 64px; object-fit: contain; filter: brightness(1.15) drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.lo .lo-s { position: absolute; right: 8px; top: 34px; width: 24%; height: 26px; object-fit: contain; filter: brightness(1.8); }
.lo .lo-kn { position: absolute; right: 8px; top: 70px; width: 24%; height: 20px; object-fit: contain; filter: brightness(1.8); }
.lo .lo-n { position: absolute; left: 10px; bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lo .lo-u { position: absolute; left: 16px; bottom: 26px; width: 50%; height: 2px; background: rgba(255, 255, 255, 0.5); }
.lo-close { margin-top: 18px; }
.pause-box { display: flex; flex-direction: column; gap: 10px; width: 300px; }
.pause-box h1 { font-size: 48px; font-weight: 900; text-align: center; margin-bottom: 8px; }
.pause-box .btn { width: 100%; }
.results { width: min(820px, 96vw); }
.res-title { text-align: center; font-size: 84px; font-weight: 900; font-style: italic; line-height: 1; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); }
.res-title.win { color: var(--yellow); } .res-title.lose { color: #ff5a5a; }
.res-sub { text-align: center; font-size: 22px; font-weight: 700; color: #d6dcea; margin-bottom: 16px; }
.res-rewards { display: flex; justify-content: center; gap: 16px; margin: 14px 0; }
.res-rewards div { background: rgba(24, 30, 44, 0.9); border: 1px solid var(--line); padding: 10px 22px; text-align: center; min-width: 120px; }
.res-rewards small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.res-rewards b { font-size: 30px; }
.res-btns { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
#click-to-play { position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(8, 12, 20, 0.35); cursor: pointer; }
#click-to-play div { font-size: 56px; font-weight: 900; font-style: italic; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4); animation: blink 1.6s infinite; }
#click-to-play small { font-family: var(--body); font-weight: 600; font-size: 14px; color: #d6dcea; }
#toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toast div { background: rgba(20, 26, 40, 0.95); border-left: 4px solid var(--cyan); padding: 8px 18px; font-weight: 700; font-size: 18px; animation: tup 2.6s ease-out forwards; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }

@media (max-width: 1100px) {
  .topnav { gap: 16px; } .topnav button { font-size: 24px; }
  .btn-play { width: 330px; height: 96px; } .btn-play span { font-size: 64px; }
  .btn-mode { width: 300px; } .btn-join { width: 260px; }
  .friend-slot[data-slot="1"] { left: 20vw; } .friend-slot[data-slot="2"] { right: 20vw; }
  .logo.big { font-size: 100px; }
  .lo-grid { grid-template-columns: repeat(3, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .topnav button { font-size: 18px; } .topnav { gap: 10px; left: 12px; }
  .wallet { gap: 12px; font-size: 18px; } .dailybox, .live-chip, .friend-slot, .party-info { display: none; }
  .btn-play { width: 260px; height: 80px; } .btn-play span { font-size: 50px; }
  .btn-mode, .btn-join { width: 240px; font-size: 16px; }
  .logo.big { font-size: 64px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .custom-grid { grid-template-columns: 1fr; }
}

.score-pop { position: absolute; left: calc(50% + 34px); top: calc(50% - 14px); font-size: 22px; font-weight: 800; font-style: italic; color: #fff; text-shadow: 0 2px 3px #000; animation: spop 0.9s ease-out forwards; pointer-events: none; }
.score-pop.head { color: var(--yellow); }
@keyframes spop { 0% { opacity: 0; transform: translateY(6px) scale(1.4); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.tag3d.killer { color: #ff4b4b; font-size: 15px; }
.tag3d.killer span { background: rgba(120, 0, 0, 0.6); padding: 1px 6px; }

.announce { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.4); white-space: nowrap; animation: ann 2.6s ease-out forwards; pointer-events: none; }
.announce.gold { color: var(--yellow); } .announce.red { color: #ff5a5a; } .announce.white { color: #fff; }
@keyframes ann { 0% { opacity: 0; transform: translateX(-50%) scale(1.5); } 10% { opacity: 1; transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.intro { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); text-align: center; animation: ann 3.6s ease-out forwards; pointer-events: none; }
.intro small { display: block; font-size: 18px; font-weight: 700; letter-spacing: 6px; color: var(--cyan); text-shadow: 0 2px 4px #000; }
.intro b { display: block; font-size: 64px; font-weight: 900; font-style: italic; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.45); }
.intro span { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 800; letter-spacing: 2px; background: rgba(20,26,40,.8); padding: 4px 14px; }
