/* ======================================================================
   Eclipse: cuenta del jugador (account.management.html.twig de esta plantilla)
   y los widgets de la barra derecha (.ew-*).
   Azul marino casi negro, tarjetas con borde fino, datos en Inter, dorados.
   ====================================================================== */
:root {
	--ac-card-1: #161f36;
	--ac-card-2: #0f1528;
	--ac-borde: rgba(255, 255, 255, .08);
	--ac-fila-1: #141b2e;
	--ac-fila-2: #10172a;
	--ac-label: #c3cad8;
	--ac-valor: #ffffff;
	--ac-oro: #e8b94a;
	--ac-oro-claro: #f6dc93;
	--ac-oro-osc: #9a6b1c;
}

/* ---- logo de TheOne (cabecera y pie) ------------------------------------
   El PNG es de 160 px de alto (el doble de lo que se pinta) para que se vea nitido
   en pantallas de alta densidad. La sombra lo separa del fondo de la cabecera. */
.ec-logo { height: 76px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
.ec-logo-pie { height: 56px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
@media (max-width: 640px) { .ec-logo { height: 56px; } }

.ac { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--ac-valor); font-size: 13.5px; line-height: 1.5; }
.ac-ico { width: 15px; height: 15px; flex: none; }
.ac-card {
	background: linear-gradient(160deg, var(--ac-card-1) 0%, var(--ac-card-2) 100%);
	border: 1px solid var(--ac-borde); border-radius: 12px;
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
}

/* columnas: User Hub | contenido. minmax(0, ...) y no 1fr: con 1fr la columna crece
   hasta el ancho de las tablas y en el movil las tarjetas se salian por la derecha */
.ac-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.ac-left { display: flex; flex-direction: column; gap: 12px; }
.ac-col { min-width: 0; }

/* ---- User Hub --------------------------------------------------------- */
.ac-hub { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 12px 16px; gap: 6px; }
.ac-hub-title { font: 700 13px 'Cinzel', serif; letter-spacing: .03em; color: #fff; margin-bottom: 4px; }
.ac-avatar {
	position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 40%, #232c44 0%, #0b0f1c 75%);
	box-shadow: 0 0 0 2px #c79a3c, 0 0 0 4px rgba(0, 0, 0, .55), 0 0 18px rgba(232, 185, 74, .25);
	margin-bottom: 6px;
}
.ac-avatar span {
	font: 800 38px/1 'Cinzel', serif;
	background: linear-gradient(180deg, #fff1c2 0%, #e8b94a 50%, #8f6116 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
.ac-avatar-dot {
	position: absolute; right: 2px; bottom: 4px; width: 15px; height: 15px; border-radius: 50%;
	background: #22c55e; border: 3px solid #0f1528; box-shadow: 0 0 8px rgba(34, 197, 94, .6);
}
.ac-hub-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #c3cad8; }
.ac-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ac-hub-name { font-size: 17px; font-weight: 700; color: #fff; }
.ac-badge { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.35; }
.ac-badge .ac-ico { width: 14px; height: 14px; margin-top: 1px; }
.ac-badge.is-premium { color: var(--ac-oro); }
.ac-badge.is-free { color: var(--ac-label); }

.ac-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.ac-menu a {
	display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px;
	color: #d3d9e6; font-size: 12.5px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.ac-menu a .ac-ico { width: 14px; height: 14px; color: var(--ac-oro); opacity: .85; }
.ac-menu a:hover { background: rgba(232, 185, 74, .1); color: var(--ac-oro-claro); }
.ac-menu a.is-active { background: rgba(232, 185, 74, .13); color: var(--ac-oro-claro); }
.ac-menu a.is-logout { color: #fca5a5; }
.ac-menu a.is-logout .ac-ico { color: #f87171; }
.ac-menu a.is-logout:hover { background: rgba(248, 113, 113, .1); color: #fecaca; }

/* ---- Bienvenida destacada -------------------------------------------- */
.ac-hero {
	text-align: center; padding: 22px 20px 20px; border-radius: 12px;
	background:
		radial-gradient(ellipse 80% 120% at 50% 0%, rgba(74, 96, 150, .45), rgba(74, 96, 150, 0) 70%),
		linear-gradient(180deg, #1c2744 0%, #121a30 100%);
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 30px -14px rgba(0, 0, 0, .8);
}
.ac-hero h1 { font: 800 25px 'Cinzel', serif; letter-spacing: .05em; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.ac-hero p { margin: 0 0 4px; color: #e3e8f2; font-size: 14px; }
.ac-hero .ac-hero-sub { color: #aeb7c9; font-size: 12.5px; }
.ac-hero .ac-hero-alert { margin: 12px 0 10px; }
.ac-hero-alert span { color: var(--ac-oro); font-weight: 700; }
.ac-hero form { margin: 0; }
.ac-notice { margin-top: 12px; padding: 12px 14px; border-radius: 10px; text-align: left; font-size: 12.5px; color: #e7ebf4;
	background: rgba(232, 185, 74, .07); border: 1px solid rgba(232, 185, 74, .22); }
.ac-notice form { margin-top: 8px; }

/* ---- Secciones con tabla --------------------------------------------- */
.ac-section { display: flex; align-items: center; gap: 10px; font: 700 16px 'Cinzel', serif; letter-spacing: .02em; color: #fff; margin: 24px 0 10px; }
.ac-count { font: 700 11px 'Inter', sans-serif; color: var(--ac-oro-claro); background: rgba(232, 185, 74, .12); border: 1px solid rgba(232, 185, 74, .3); border-radius: 999px; padding: 1px 9px; }
.ac-after { margin: 12px 0 0; }
.ac-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-buttons form { margin: 0; }

.ac-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; overflow: hidden; margin: 0; font-size: 13px; }
.ac-table th, .ac-table td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.ac-table tr:last-child > td, .ac-table tr:last-child > th { border-bottom: 0; }
.ac-table thead th { background: #1b2439; color: #dfe5f1; font-weight: 600; font-size: 12.5px; position: sticky; top: 0; z-index: 1; }
.ac-table tbody tr:nth-child(odd) > td, .ac-table-kv tr:nth-child(odd) > * { background: var(--ac-fila-1); }
.ac-table tbody tr:nth-child(even) > td, .ac-table-kv tr:nth-child(even) > * { background: var(--ac-fila-2); }
.ac-table tbody tr:hover > td { background: rgba(232, 185, 74, .05); }
.ac-table td { color: var(--ac-valor); }
.ac-table-kv th { width: 30%; color: var(--ac-label); font-weight: 500; }
/* MyAAC manda el estado con colores en linea (green/red) pensados para fondo blanco */
.ac-table span[style*="color: green"] { color: #4ade80 !important; font-weight: 500; }
.ac-table span[style*="color: red"] { color: #f87171 !important; font-weight: 500; }
.ac-table b { font-weight: 600; }
.ac-scroll { max-height: 330px; overflow-y: auto; border-radius: 8px; }
.ac-scroll-x { overflow-x: auto; max-height: none; }
.ac-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.ac-scroll::-webkit-scrollbar-thumb { background: rgba(232, 185, 74, .3); border-radius: 4px; }
.ac-muted { color: #6b7590 !important; }
.ac-nowrap { white-space: nowrap; }
.ac-link { color: var(--ac-oro); font-weight: 600; text-decoration: none; }
.ac-link:hover { color: var(--ac-oro-claro); text-decoration: underline; }
.ac-pill { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
td > .ac-pill:first-child { margin-left: 0; }
.ac-pill.is-good { color: #4ade80; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }
.ac-pill.is-bad { color: #f87171; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .28); }

/* ---- Botones dorados (los usan la cuenta y los widgets) --------------- */
.ac-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	padding: 9px 20px; border: 1px solid #6f4c12; border-radius: 8px; text-decoration: none;
	font: 600 13px 'Inter', sans-serif; color: #1c1206;
	background: linear-gradient(180deg, #f7dc93 0%, #e2b14c 45%, #c58f2f 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 14px -6px rgba(232, 185, 74, .6);
	transition: filter .15s, transform .1s;
}
.ac-btn:hover { filter: brightness(1.08); color: #1c1206; }
.ac-btn:active { transform: translateY(1px); }
.ac-btn .ac-ico { width: 15px; height: 15px; }
.ac-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 7px; }
.ac-btn-ghost { color: var(--ac-oro-claro); background: rgba(232, 185, 74, .08); border-color: rgba(232, 185, 74, .35); box-shadow: none; }
.ac-btn-ghost:hover { background: rgba(232, 185, 74, .16); filter: none; color: var(--ac-oro-claro); }

/* ======================================================================
   Widgets de la barra derecha
   ====================================================================== */
.ew-card {
	background: linear-gradient(160deg, var(--ac-card-1) 0%, var(--ac-card-2) 100%);
	border: 1px solid var(--ac-borde); border-radius: 12px; overflow: hidden;
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
}
.ew-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ac-borde); }
.ew-head h3 { font: 700 11.5px 'Cinzel', serif; letter-spacing: .07em; text-transform: uppercase; color: #fff; margin: 0; }
.ew-body { padding: 14px; }

.ew-estado { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ew-chico {
	margin-left: auto; padding: 4px 10px; border-radius: 6px; cursor: pointer;
	font: 600 11px 'Inter', sans-serif; color: #dfe5f1; background: #1b2439; border: 1px solid rgba(255, 255, 255, .12);
}
.ew-chico:hover { border-color: rgba(232, 185, 74, .45); color: var(--ac-oro-claro); }

/* reloj del server save */
.ew-reloj {
	position: relative; text-align: center; padding: 10px 26px 10px 10px; border-radius: 8px;
	font: 700 28px 'Inter', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .04em;
	color: var(--ac-oro-claro); text-shadow: 0 0 10px rgba(232, 185, 74, .35);
	background: linear-gradient(180deg, #080c17, #0d1222);
	border: 1px solid rgba(232, 185, 74, .35);
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7);
}
.ew-reloj::after {
	content: ""; position: absolute; right: 10px; top: 50%; width: 4px; height: 24px; border-radius: 2px;
	transform: translateY(-50%); background: linear-gradient(180deg, rgba(232, 185, 74, .7), rgba(232, 185, 74, .2));
}

/* top 3 */
.ew-top { list-style: none; margin: 0; padding: 4px 0; }
.ew-top li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.ew-top li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.ew-puesto {
	width: 22px; height: 22px; border-radius: 4px; flex: none; display: grid; place-items: center;
	font: 800 11.5px 'Inter', sans-serif; color: #1c1206; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ew-puesto.oro { background: linear-gradient(180deg, #f7dc93, #d9a43c); border: 1px solid #8f6116; }
.ew-puesto.plata { background: linear-gradient(180deg, #f1f5f9, #a9b4c4); border: 1px solid #5d6878; }
.ew-puesto.bronce { background: linear-gradient(180deg, #f2c49b, #b8733a); border: 1px solid #6e3c13; }
.ew-top .ew-nombre { font-size: 12.5px; font-weight: 700; color: #f1f5f9; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ew-top .ew-nombre:hover { color: var(--ac-oro-claro); }
.ew-top .ew-nombre.en-linea { color: #4ade80; }
.ew-top small { display: block; font-size: 10.5px; color: #8b95ab; }
/* outfit: la imagen es de 64 px con el personaje centrado; la caja de 48 recorta solo
   aire, asi se ve grande sin escalarlo (escalado, el pixel art se emborrona) */
.ew-outfit { width: 48px; height: 48px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 8px;
	background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%); }
.ew-outfit img { width: 64px; height: 64px; max-width: none; image-rendering: pixelated; }
/* vocacion abreviada: MS, ED, RP, EK... */
.ew-voc { margin-left: auto; flex: none; min-width: 30px; padding: 2px 6px; border-radius: 6px; text-align: center;
	font: 800 11px 'Inter', sans-serif; letter-spacing: .04em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ew-voc.oro { color: #f6dc93; border-color: rgba(232, 185, 74, .45); background: rgba(232, 185, 74, .1); }
.ew-voc.plata { color: #dbe4f3; border-color: rgba(203, 213, 225, .35); }
.ew-voc.bronce { color: #f2c49b; border-color: rgba(208, 138, 74, .4); background: rgba(208, 138, 74, .08); }
.ew-todos { display: block; text-align: center; padding: 8px 14px 4px; font: 700 12px 'Inter', sans-serif; color: var(--ac-oro); text-decoration: none; }
.ew-todos:hover { color: var(--ac-oro-claro); }

/* buscador */
.ew-buscar { display: flex; align-items: center; gap: 6px; padding: 8px 14px 14px; }
.ew-buscar input {
	flex: 1; min-width: 0; padding: 7px 12px; border-radius: 7px;
	background: #080c17; border: 1px solid var(--ac-borde); color: #e2e8f0; font: 500 12px 'Inter', sans-serif;
	transition: border-color .15s, box-shadow .15s;
}
.ew-buscar input::placeholder { color: #5b6580; }
.ew-buscar input:focus { outline: none; border-color: rgba(232, 185, 74, .55); box-shadow: 0 0 0 3px rgba(232, 185, 74, .15); }
.ew-buscar button { width: 34px; height: 32px; padding: 0; border-radius: 7px; flex: none; }

/* ---- "Coming soon": cuenta atras de la apertura (eclipse config: apertura) ----- */
.ew-ap-titulo { text-align: center; font: 900 20px 'Cinzel', serif; letter-spacing: .14em; text-transform: uppercase;
	background: linear-gradient(180deg, #fff3c4, #e8b94a 55%, #a56c1e); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 10px rgba(232, 185, 74, .35)); }
.ew-ap-sub { text-align: center; font: 600 11px 'Inter', sans-serif; color: var(--ac-label); letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 12px; }
.ew-ap-cajas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.ew-ap-caja { background: linear-gradient(180deg, #080c17, #0e1324); border: 1px solid rgba(232, 185, 74, .35); border-radius: 8px; padding: 8px 2px 6px; text-align: center;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7), 0 0 16px -8px rgba(232, 185, 74, .6); }
.ew-ap-num { font: 800 24px 'Orbitron', 'JetBrains Mono', monospace; color: var(--ac-oro-claro); text-shadow: 0 0 10px rgba(232, 185, 74, .5); }
.ew-ap-lbl { font: 700 9px 'Inter', sans-serif; color: #8b95ab; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.ew-ap-fecha { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font: 700 12px 'Inter', sans-serif; color: #fde68a; }
.ew-ap-ya { text-align: center; padding: 10px 0; font: 900 18px 'Cinzel', serif; color: #4ade80; text-shadow: 0 0 12px rgba(34, 197, 94, .5); }

/* ---- "Test mode ON" (eclipse config: modo_test) --------------------------------- */
.ew-test { padding: 14px; text-align: center; border-color: rgba(34, 197, 94, .35);
	box-shadow: 0 0 0 1px rgba(34, 197, 94, .12), 0 10px 30px -14px rgba(0, 0, 0, .7); }
.ew-test-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .45); font: 900 13px 'Inter', sans-serif; letter-spacing: .16em; color: #4ade80; }
.ew-test-luz { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; animation: ew-latido 1.6s infinite; }
@keyframes ew-latido {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
	70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.ew-test-t { font: 800 16px 'Cinzel', serif; margin-top: 10px; letter-spacing: .04em; color: #fff; }
.ew-test-x { font: 500 11.5px/1.5 'Inter', sans-serif; color: var(--ac-label); margin-top: 4px; }
.ew-test-chips { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ew-test-chips span { font: 700 10.5px 'Inter', sans-serif; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #dfe5f1; }

/* ---- selector de idioma (assets/js/traductor.js) --------------------------------- */
.ec-idiomas { display: inline-flex; align-items: center; gap: 6px; }
.ec-idiomas-movil { display: flex; justify-content: center; gap: 10px; padding: 6px 0 2px; }
.ec-bandera {
	width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer; flex: none;
	border: 2px solid rgba(255, 255, 255, .15); background-size: cover; background-position: center;
	opacity: .55; filter: saturate(.7); transition: opacity .15s, transform .15s, filter .15s, box-shadow .15s;
}
.ec-idiomas-movil .ec-bandera { width: 30px; height: 30px; }
.ec-bandera:hover { opacity: 1; filter: none; transform: translateY(-1px); }
.ec-bandera.is-activo { opacity: 1; filter: none; border-color: var(--ac-oro); box-shadow: 0 0 10px rgba(232, 185, 74, .5); }
.ec-es { background-image: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%); }
.ec-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23012169'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23fff' stroke-width='12'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='18'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23C8102E' stroke-width='10'/%3E%3C/svg%3E"); }
.ec-pt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%23009c3b'/%3E%3Cpath d='M10 3 18 10 10 17 2 10z' fill='%23ffdf00'/%3E%3Ccircle cx='10' cy='10' r='3.6' fill='%23002776'/%3E%3C/svg%3E"); }
/* lo que mete Google al traducir: su barra de arriba (que ademas baja la pagina), el
   recuadro al pasar el raton y el resaltado; el idioma se elige con las banderas */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-l4eHX-hSRGPd { display: none !important; }
html.ec-traducida body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---- pantallas estrechas (al final: si va antes, lo pisan las reglas de arriba) */
@media (max-width: 900px) {
	.ac-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.ac-hero { padding: 18px 14px; }
	.ac-table th, .ac-table td { padding: 9px 11px; }
	.ac-table-kv th { width: 40%; }
}
